small-package icon indicating copy to clipboard operation
small-package copied to clipboard

luci-app-ap-modem在openwrt 24.10上编译失败

Open ChaingTsung opened this issue 10 months ago • 1 comments

log

install -d -m0755 /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/.pkgdir/luci-app-ap-modem/
cp -pR /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/root/* /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/.pkgdir/luci-app-ap-modem/
touch /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/.pkgdir/luci-app-ap-modem.installed
mkdir -p /home/yoki/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp
SHELL= flock /home/yoki/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/.pkgdir/luci-app-ap-modem/. /home/yoki/openwrt/staging_dir/target-x86_64_musl/root-x86/'
touch /home/yoki/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.luci-app-ap-modem_installed
rm -rf /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem
mkdir -p /home/yoki/openwrt/bin/targets/x86/64/packages /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem /home/yoki/openwrt/staging_dir/target-x86_64_musl/pkginfo
install -d -m0755 /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/www
cp -pR /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/htdocs/* /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/www/
true
true
install -d -m0755 /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/
cp -pR /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/root/* /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/
find /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="x86_64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="x86_64-openwrt-linux-musl-nm" STRIP="/home/yoki/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/yoki/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yoki/openwrt/staging_dir/host/bin/patchelf" /home/yoki/openwrt/scripts/rstrip.sh /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem
install -d -m0755 /home/yoki/openwrt/bin/packages/x86_64/base/tmp
mkdir -p /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/
mkdir -p /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/
(cd /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem; echo "$V_Package_luci_app_ap_modem_conffiles" > conffiles;  echo "$V_Package_luci_app_ap_modem_postinst" > postinst-pkg; chmod 0755 postinst-pkg;)
( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo 'export root="${IPKG_INSTROOT}"'; echo 'export pkgname="luci-app-ap-modem"'; echo "add_group_and_user"; echo "default_postinst"; [ ! -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/postinst-pkg ] || sed -z 's/^\s*#!/#!/' "/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/postinst-pkg"; ) > /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/post-install;
( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo 'export root="${IPKG_INSTROOT}"'; echo 'export pkgname="luci-app-ap-modem"'; echo "default_prerm"; [ ! -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/prerm-pkg ] || sed -z 's/^\s*#!/#!/' "/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/prerm-pkg"; ) > /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/pre-deinstall;
[ ! -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/postrm ] || sed -zi 's/^\s*#!/#!/' "/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/postrm";
if [ -n "" ]; then echo  > /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.rusers; fi;
if [ -n "" ]; then echo  > /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.alternatives; fi;
(cd /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem && find . -type f,l -printf "/%P\n" > /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.list)
# Move conffiles to IDIR and build conffiles_static with csums
if [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/conffiles ]; then mv -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/conffiles /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.conffiles; for file in $(cat /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.conffiles); do [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/$file ] || continue; csum=$(/home/yoki/openwrt/staging_dir/host/bin/mkhash sha256 /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/$file); echo $file $csum >> /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.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/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/CONTROL/conffiles ]; then echo $(IDIR_luci-app-ap-modem)/CONTROL/conffiles >> /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.conffiles; for file in $(cat /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/CONTROL/conffiles); do [ -f /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/$file ] || continue; csum=$(/home/yoki/openwrt/staging_dir/host/bin/mkhash sha256 /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/$file); echo $file $csum >> /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/lib/apk/packages/luci-app-ap-modem.conffiles_static; done; rm -rf /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/CONTROL/conffiles; fi
if [ -z "$(ls -A /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/CONTROL 2>/dev/null)" ]; then rm -rf /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/CONTROL; else echo "CONTROL directory /home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem/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:luci-app-ap-modem" --info "version:1.0.5-20241208" --info "description:Easy Access AP / Modem" --info "arch:noarch" --info "license:" --info "origin:feeds/base/luci-app-ap-modem" --info "url:https://github.com/openwrt/luci" --info "maintainer:OpenWrt LuCI community" --info "provides:"  --script "post-install:/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/post-install" --script "pre-deinstall:/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/apk-all/luci-app-ap-modem/pre-deinstall" --info "depends:libc" --files "/home/yoki/openwrt/build_dir/target-x86_64_musl/luci-app-ap-modem/ipkg-all/luci-app-ap-modem" --output "/home/yoki/openwrt/bin/packages/x86_64/base/luci-app-ap-modem-1.0.5-20241208.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]: *** [/home/yoki/openwrt/feeds/luci/luci.mk:387: /home/yoki/openwrt/bin/packages/x86_64/base/luci-app-ap-modem-1.0.5-20241208.apk] Error 99
make[3]: Leaving directory '/home/yoki/openwrt/package/luci-app-ap-modem'
time: package/luci-app-ap-modem/compile#1.35#0.22#1.80
    ERROR: package/luci-app-ap-modem failed to build.
make[2]: *** [package/Makefile:189: package/luci-app-ap-modem/compile] Error 1
make[2]: Leaving directory '/home/yoki/openwrt'
make[1]: *** [package/Makefile:183: /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
                                                                                          

ChaingTsung avatar Mar 07 '25 06:03 ChaingTsung

邮件已收到,我会尽快回复

small1ee avatar Mar 07 '25 06:03 small1ee