lua-neturl在openwrt官方主线分支上无法编译导致luci-app-bypass、luci-app-ssr-plus这些插件全部无法编译
...
[ ! -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/postrm ] || sed -zi 's/^\s*#!/#!/' "/home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/postrm";
if [ -n "" ]; then echo > /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.rusers; fi;
if [ -n "" ]; then echo > /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.alternatives; fi;
(cd /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl && find . -type f,l -printf "/%P\n" > /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.list)
# Move conffiles to IDIR and build conffiles_static with csums
if [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/conffiles ]; then mv -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/conffiles /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.conffiles; for file in $(cat /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.conffiles); do [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/$file ] || continue; csum=$(/home/yoki/openwrt/staging_dir/host/bin/mkhash sha256 /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/$file); echo $file $csum >> /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.conffiles_static; done; fi
# Some package (base-files) manually append stuff to conffiles
# Append stuff from it and delete the CONTROL directory since everything else should be migrated
if [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL/conffiles ]; then echo $(IDIR_lua-neturl)/CONTROL/conffiles >> /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.conffiles; for file in $(cat /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL/conffiles); do [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/$file ] || continue; csum=$(/home/yoki/openwrt/staging_dir/host/bin/mkhash sha256 /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/$file); echo $file $csum >> /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/lib/apk/packages/lua-neturl.conffiles_static; done; rm -rf /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL/conffiles; fi
if [ -z "$(ls -A /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL 2>/dev/null)" ]; then rm -rf /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL; else echo "CONTROL directory /home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl/CONTROL is not empty! This is not right and should be checked!" >&2; exit 1; fi
/home/yoki/openwrt/staging_dir/host/bin/fakeroot /home/yoki/openwrt/staging_dir/host/bin/apk mkpkg --info "name:lua-neturl" --info "version:1.2-1-r3" --info "description:This small Lua library provides a few functions to parse URL with querystring and build new URL easily." --info "arch:noarch" --info "license:MIT" --info "origin:feeds/smpackage/lua-neturl" --info "url:https://github.com/golgote/neturl" --info "maintainer:Tianling Shen <cnsztl@immortalwrt.org>" --info "provides:" --script "post-install:/home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/post-install" --script "post-upgrade:/home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/post-upgrade" --script "pre-deinstall:/home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/apk-all/lua-neturl/pre-deinstall" --info "depends:libc lua" --files "/home/yoki/openwrt/build_dir/target-x86_64_musl/neturl-1.2-1/ipkg-all/lua-neturl" --output "/home/yoki/openwrt/bin/packages/x86_64/smpackage/lua-neturl-1.2-1-r3.apk" --sign "/home/yoki/openwrt/private-key.pem"
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: package version is invalid
make[3]: *** [Makefile:73: /home/yoki/openwrt/bin/packages/x86_64/smpackage/lua-neturl-1.2-1-r3.apk] Error 99
make[3]: Leaving directory '/home/yoki/openwrt/feeds/smpackage/lua-neturl'
time: package/feeds/smpackage/lua-neturl/compile#0.08#0.08#0.14
ERROR: package/feeds/smpackage/lua-neturl failed to build.
make[2]: *** [package/Makefile:183: package/feeds/smpackage/lua-neturl/compile] Error 1
make[2]: Leaving directory '/home/yoki/openwrt'
make[1]: *** [package/Makefile:177: /home/yoki/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/yoki/openwrt'
make: *** [/home/yoki/openwrt/include/toplevel.mk:233: world] Error 2
lua-neturl在openwrt官方主线分支上无法编译导致luci-app-bypass、luci-app-ssr-plus这些插件全部无法编译