runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
919 stars 131 forks source link

PlatformNotAvailableError when docker compile wireguard #117

Closed yongpro closed 2 years ago

yongpro commented 2 years ago

Description Report follow alarm when use docker compile wireguard, platform is 918+... do we have any suggestion?

$ sudo docker run --rm --privileged --env PACKAGE_ARCH=apollolake --env DSM_VER=7.0.1 -v $(pwd)/artifacts:/result_spk synobuild
Password: 
WireGuard version:        1.0.20211208
WireGuard tools version:  1.0.20210914
libmnl version:           1.0.4

Cloning into 'pkgscripts-ng'...

PlatformNotAvailableError:
[apollolake] is not available platform.

[ERROR] pkgscripts-ng/EnvDeploy -p apollolake -v 7.0.1 failed!
cp: cannot create regular file '/build_env/ds.apollolake-7.0.1/etc/ssl/certs/': No such file or directory

Thanks Yong

runfalk commented 2 years ago

I think it's because you use DSM_VER 7.0.1 rather than 7.0. Synology only releases new toolchains when there is a major update.

yongpro commented 2 years ago

Thanks Runfalk! After changed to 7.0, no the alarm! But I found another issue: "ERROR: cannot verify netfilter.org's certificate", after reference topic: https://github.com/runfalk/synology-wireguard/issues/109, added "--no-check-certificate" in Makefile, then rebuild "sudo docker build -t synobuild .", at last, done compile, successful!

~/synology-wireguard/artifacts/WireGuard-1.0.20211208$ ls -l
total 3400
-rw-r--r-- 1 root root 1740800 Dec 23 11:25 WireGuard-apollolake-1.0.20211208_debug.spk
-rw-r--r-- 1 root root 1740800 Dec 23 11:25 WireGuard-apollolake-1.0.20211208.spk
~/synology-wireguard$ more Makefile |grep wget
        wget --no-check-certificate https://netfilter.org/projects/libmnl/files/$(LIBMNL_TAR)
        wget --no-check-certificate https://git.zx2c4.com/wireguard-linux-compat/snapshot/$(WIREGUARD_TAR)
        wget --no-check-certificate https://git.zx2c4.com/wireguard-tools/snapshot/$(WIREGUARD_TOOLS_TAR)