On "real" ubuntu I did this. I assume you need to do same in docker?
Thanks, it worked!
On "real" ubuntu I did this. I assume you need to do same in docker?
Thanks, it worked!
There's another problem when I tried to build docker.
QuoteDisplay Moreroot@de0c7fbb5087:~/LibreELEC.tv# PROJECT=Odroid_C2 ARCH=aarch64 ./scripts/create_addon docker
GET docker
--2017-05-06 18:52:34-- v1.13.1.tar.gz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: v1.13.1.tar.gz [following]
--2017-05-06 18:52:35-- v1.13.1.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: v1.13.1 [following]
--2017-05-06 18:52:35-- v1.13.1
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'sources/docker/docker-1.13.1.tar.gz'sources/docker/dock [ <=> ] 7.43M 6.10MB/s in 1.2s
2017-05-06 18:52:37 (6.10 MB/s) - 'sources/docker/docker-1.13.1.tar.gz' saved [7788124]
UNPACK docker
APPLY PATCH (common) /root/http://LibreELEC.tv/packages/addons/service/docker/patches/docker-001-use-addon-storage-location.patch
patching file cmd/dockerd/daemon_solaris.go
patching file cmd/dockerd/daemon_unix.go
patching file integration-cli/docker_cli_authz_unix_test.go
patching file integration-cli/docker_cli_daemon_test.go
Hunk #1 succeeded at 542 (offset 1 line).
Hunk #2 succeeded at 561 (offset 1 line).
Hunk #3 succeeded at 578 (offset 1 line).
Hunk #4 succeeded at 1301 (offset 1 line).
Hunk #5 succeeded at 1311 (offset 1 line).
Hunk #6 succeeded at 1331 (offset 1 line).
patching file integration-cli/docker_cli_external_graphdriver_unix_test.go
Hunk #1 succeeded at 324 (offset 4 lines).
Hunk #2 succeeded at 336 (offset 4 lines).
patching file integration-cli/docker_cli_external_volume_driver_unix_test.go
patching file integration-cli/docker_cli_network_unix_test.go
patching file integration-cli/docker_cli_swarm_test.go
Hunk #1 succeeded at 679 (offset 20 lines).
patching file pkg/plugins/discovery_unix.go
patching file pkg/plugins/plugins.go
patching file registry/config_unix.go
patching file registry/endpoint_v1.go
APPLY PATCH (common) /root/http://LibreELEC.tv/packages/addons/service/docker/patches/docker-003-use-short-expected-commit-values.patch
patching file daemon/info_unix.go
GET go
--2017-05-06 18:52:38-- go1.7.5.tar.gz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: go1.7.5 [following]
--2017-05-06 18:52:39-- go1.7.5
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'sources/go/go-1.7.5.tar.gz'sources/go/go-1.7.5 [ <=> ] 13.49M 8.67MB/s in 1.6s
2017-05-06 18:52:41 (8.67 MB/s) - 'sources/go/go-1.7.5.tar.gz' saved [14143609]
UNPACK go
APPLY PATCH (common) /root/http://LibreELEC.tv/packages/addons/addon-depends/go/patches/go-0001-add-ca-cert-location.patch
patching file src/crypto/x509/root_unix.go
Hunk #1 succeeded at 16 (offset 3 lines).
BUILD go (host)
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /usr/lib/golang/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
I installed golang and golang-go packages on the host system, but it didn't help. How to fix this problem?
P.S. I'm not under root, I'm in docker container with Ubuntu 16.04, installed on my server.
QuoteFirst of all don't build as root user.
I build it inside docker container.
QuoteThe main problem here is that sources are now in folder moby-1.13.1 (content has been changed even if filename is the same - happen in the past for other packages). That's why docker package.mk needs new line
After I added this line, it seems to build properly (I didn't see completely because I removed all builds trying to fix problem myself and it will take a long time to build again). Please, can you fix this bug?
I tried to build docker with both "build " and "create_addon" scripts, but got error:
# PROJECT=Odroid_C2 ARCH=aarch64 ./scripts/build docker
GET docker
--2017-05-04 09:21:58-- https://github.com/docker/docker/archive/v1.13.1.tar.gz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/moby/moby/archive/v1.13.1.tar.gz [following]
--2017-05-04 09:21:59-- https://github.com/moby/moby/archive/v1.13.1.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/moby/moby/tar.gz/v1.13.1 [following]
--2017-05-04 09:21:59-- https://codeload.github.com/moby/moby/tar.gz/v1.13.1
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7788124 (7.4M) [application/x-gzip]
Saving to: 'sources/docker/docker-1.13.1.tar.gz'
sources/docker/docker-1.13.1.tar.gz 100% 7.43M 4.83MB/s in 1.5s
2017-05-04 09:22:01 (4.83 MB/s) - 'sources/docker/docker-1.13.1.tar.gz' saved [7788124/7788124]
UNPACK docker
APPLY PATCH (common) /root/upstream/packages/addons/service/docker/patches/docker-001-use-addon-storage-location.patch
patch: **** Can't change to directory build.LibreELEC-Odroid_C2.aarch64-8.0-devel/docker-1.13.1 : No such file or directory
root@a09a9e81b6e5:~/upstream# PROJECT=Odroid_C2 ARCH=aarch64 ./scripts/create_addon docker
UNPACK docker
APPLY PATCH (common) /root/upstream/packages/addons/service/docker/patches/docker-001-use-addon-storage-location.patch
patch: **** Can't change to directory build.LibreELEC-Odroid_C2.aarch64-8.0-devel/docker-1.13.1 : No such file or directory
Display More
Is docker broken or I did something wrong?
Quote
That is NOT a solution.
Why? It builds without a problem after this.
Quote
Why do you use Gentoo?
Because this is perfect desktop distro, which I use more than 5 years.
I use Gentoo x86_64 to build LibreELEC. When I build 8.0 branch, I always get error:
~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib64/libpng16.so.16)
make: *** [Makefile:12: image] Ошибка 1
I know, how to solve it. Here's solution:
cd ~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib
rm libz.so.1
ln -s /lib64/lib/libz.so.1 ~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib/libz.so.1
But I don't know, what need to change in LibreELEC source code to fix this problem. Can the developers fix it?
P.S. My system version of ZLIB is 1.2.11
Thank you very much!
You have detailed instruction, how to add custom package to LibreELEC, but I don't know, how to include my package to build. Even if I build my custom package (as described at section 8), it's not included when I compile full build (through PROJECT=Odroid_C2 ARCH=aarch64 make image). How to include my package to my LibreELEC build?
Thanks! It builds with your patches. Why did you not create pull request in official LibreELEC repo?
I want to create several aliases. How to do it in Busybox in LibreELEC 8.0? I tried to create ~/.profile, but it ignores this file.
I'd like to have network traffic statistic for my Raspberry Pi 2. The best program for it, that I know, is vnstat. Is avaiable to add it to LibreElec source and then recompile it? As I understood, LibreElec is based on Buildroot. I saw vnstat there. If I copy that package from Buildroot to LibreElec, would I succeed to add vnstat? Or should I do something more for it?