-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
naiveproxy编译出错 #185
Comments
找到原因了,把naiveproxy/Makefile改成下面的代码编译通过了 `include $(TOPDIR)/rules.mk PKG_NAME:=naiveproxy ARCH_PREBUILT:=$(ARCH_PACKAGES) intel 80386 & riscv64 & cortex-a76ifeq ($(ARCH_PREBUILT),aarch64_cortex-a76) PKG_SOURCE:=naiveproxy-v$(PKG_VERSION)-$(PKG_RELEASE)-openwrt-$(ARCH_PREBUILT).tar.xz ifeq ($(ARCH_PREBUILT),aarch64_cortex-a53) PKG_LICENSE:=BSD 3-Clause PKG_BUILD_DIR:=$(BUILD_DIR)/naiveproxy-v$(PKG_VERSION)-$(PKG_RELEASE)-openwrt-$(ARCH_PACKAGES) include $(INCLUDE_DIR)/package.mk define Package/naiveproxy define Package/naiveproxy/description define Package/naiveproxy/conffiles define Build/Prepare define Build/Compile define Package/naiveproxy/install |
make[3]: Entering directory '/home/udb/openwrt/feeds/small/naiveproxy'
rm -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.built
touch /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.built_check
touch /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.built
rm -rf /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy.installed /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy
mkdir -p /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy
install -d -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/usr/bin
install -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/naive /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/usr/bin/naive
install -d -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/etc/config /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/etc/init.d
install -m0600 /home/udb/openwrt/feeds/small/naiveproxy/files/naiveproxy.config /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/etc/config/naiveproxy
install -m0755 /home/udb/openwrt/feeds/small/naiveproxy/files/naiveproxy.init /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/etc/init.d/naiveproxy
touch /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy.installed
mkdir -p /home/udb/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp
SHELL= flock /home/udb/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/.pkgdir/naiveproxy/. /home/udb/openwrt/staging_dir/target-x86_64_musl/root-x86/'
touch /home/udb/openwrt/staging_dir/target-x86_64_musl/root-x86/stamp/.naiveproxy_installed
rm -rf /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy
mkdir -p /home/udb/openwrt/bin/targets/x86/64/packages /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy /home/udb/openwrt/staging_dir/target-x86_64_musl/pkginfo
install -d -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/usr/bin
install -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/naive /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/usr/bin/naive
install -d -m0755 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/etc/config /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/etc/init.d
install -m0600 /home/udb/openwrt/feeds/small/naiveproxy/files/naiveproxy.config /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/etc/config/naiveproxy
install -m0755 /home/udb/openwrt/feeds/small/naiveproxy/files/naiveproxy.init /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/etc/init.d/naiveproxy
find /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy -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/udb/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/udb/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/udb/openwrt/staging_dir/host/bin/patchelf" /home/udb/openwrt/scripts/rstrip.sh /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy
rstrip.sh: /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/usr/bin/naive: executable
install -d -m0755 /home/udb/openwrt/bin/packages/x86_64/small/tmp
mkdir -p /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/
mkdir -p /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/
(cd /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy; echo "$V_Package_naiveproxy_conffiles" > conffiles; )
( 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="naiveproxy"'; echo "add_group_and_user"; echo "default_postinst"; [ ! -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/postinst-pkg ] || cat "/home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/postinst-pkg"; ) > /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/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="naiveproxy"'; echo "default_prerm"; [ ! -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/prerm-pkg ] || cat "/home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/prerm-pkg"; ) > /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/pre-deinstall;
if [ -n "" ]; then echo > /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.rusers; fi;
if [ -n "" ]; then echo > /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.alternatives; fi;
(cd /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy && find . -type f,l -printf "/%P\n" > /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.list)
Move conffiles to IDIR and build conffiles_static with csums
if [ -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/conffiles ]; then mv -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/conffiles /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.conffiles; for file in $(cat /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.conffiles); do [ -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/$file ] || continue; csum=$(/home/udb/openwrt/staging_dir/host/bin/mkhash sha256 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/$file); echo $file $csum >> /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.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/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL/conffiles ]; then echo$(IDIR_naiveproxy)/CONTROL/conffiles >> /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.conffiles; for file in $ (cat /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL/conffiles); do [ -f /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/$file ] || continue; csum=$(/home/udb/openwrt/staging_dir/host/bin/mkhash sha256 /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/$file); echo $file $csum >> /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/lib/apk/packages/naiveproxy.conffiles_static; done; rm -rf /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL/conffiles; fi
if [ -z "$(ls -A /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL 2>/dev/null)" ]; then rm -rf /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL; else echo "CONTROL directory /home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy/CONTROL is not empty! This is not right and should be checked!" >&2; exit 1; fi
/home/udb/openwrt/staging_dir/host/bin/fakeroot /home/udb/openwrt/staging_dir/host/bin/apk mkpkg --info "name:naiveproxy" --info "version:131.0.6778.86-1-r1" --info "description:NaïveProxy uses Chrome's network stack to camouflage traffic with strong censorship resistance and low detectability. Reusing Chrome's stack also ensures best practices in performance and security." --info "arch:x86_64" --info "license:BSD 3-Clause" --info "origin:feeds/small/naiveproxy" --info "url:https://github.com/klzgrad/naiveproxy" --info "maintainer:sbwml [email protected]" --info "provides:" --script "post-install:/home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/post-install" --script "pre-deinstall:/home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/apk-x86_64/naiveproxy/pre-deinstall" --info "depends:libc libatomic1" --files "/home/udb/openwrt/build_dir/target-x86_64_musl/naiveproxy-v131.0.6778.86-1-openwrt-x86_64/ipkg-x86_64/naiveproxy" --output "/home/udb/openwrt/bin/packages/x86_64/small/naiveproxy-131.0.6778.86-1-r1.apk" --sign "/home/udb/openwrt/private-key.pem"
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: /home/udb/openwrt/bin/packages/x86_64/small/naiveproxy-131.0.6778.86-1-r1.apk: package version is invalid
make[3]: *** [Makefile:139: /home/udb/openwrt/bin/packages/x86_64/small/naiveproxy-131.0.6778.86-1-r1.apk] Error 99
make[3]: Leaving directory '/home/udb/openwrt/feeds/small/naiveproxy'
time: package/feeds/small/naiveproxy/compile#0.26#0.50#0.66
ERROR: package/feeds/small/naiveproxy failed to build.
make[2]: *** [package/Makefile:185: package/feeds/small/naiveproxy/compile] Error 1
make[2]: Leaving directory '/home/udb/openwrt'
make[1]: *** [package/Makefile:179: /home/udb/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/udb/openwrt'
make: *** [/home/udb/openwrt/include/toplevel.mk:233:world] 错误 2
The text was updated successfully, but these errors were encountered: