Skip to content
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

@zxlhhyccc 编译openwrt+helloworld的时候,dnsmasq和dnsmasq-full同时选编译不过去 #1629

Open
rosaxe opened this issue Dec 8, 2024 · 19 comments

Comments

@rosaxe
Copy link

rosaxe commented Dec 8, 2024

编译openwrt+helloworld的时候,dnsmasq和dnsmasq-full同时选编译不过去,10月的op官方master源码,不选dnsmasq可以正常全无错编译,还有,现在的op官方master源码,naiveproxy-129.0.6668.81-2始终编译不过去,说是无效的版本,老大请回复一下所以然。。。

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Dec 9, 2024

1、要么dnsmasq要么dnsmasq-full,什么时间要求全部编译;
2、naiveproxy编译失败,请检查你的编译环境,其中:gcc最低必须是9.6.0以上版本。

@rosaxe
Copy link
Author

rosaxe commented Dec 9, 2024

1、要么dnsmasq要么dnsmasq-full,什么时间要求全部编译; 2、naiveproxy编译失败,请检查你的编译环境,其中:gcc最低必须是9.6.0以上版本。

op官方现在的12月的master源码,naiveproxy-129.0.6668.81-2始终编译不过去,说是无效的版本

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Dec 10, 2024

op官方现在的12月的master源码,naiveproxy-129.0.6668.81-2始终编译不过去,说是无效的版本

我也是官方最新的commit编译,一切没有问题,你试试大屌大佬还没合并的这个PR: #1608
另外,请贴出报错提示。

@rosaxe
Copy link
Author

rosaxe commented Dec 11, 2024

op官方现在的12月的master源码,naiveproxy-129.0.6668.81-2始终编译不过去,说是无效的版本

我也是官方最新的commit编译,一切没有问题,你试试大屌大佬还没合并的这个PR: #1608 另外,请贴出报错提示。

我的开发环境
gcc (Gentoo 14.2.1_p20241116 p3) 14.2.1 20241116
g++ (Gentoo 14.2.1_p20241116 p3) 14.2.1 20241116
GNU Make 4.4.1
Python 3.12.7
cmake version 3.31.1

@rosaxe
Copy link
Author

rosaxe commented Dec 12, 2024

op官方现在的12月的master源码,naiveproxy-129.0.6668.81-2始终编译不过去,说是无效的版本

我也是官方最新的commit编译,一切没有问题,你试试大屌大佬还没合并的这个PR: #1608 另外,请贴出报错提示。

~/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src ~/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy
~/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.prepared_d4888f5aa0eab18fb4e91d9173af4308_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.configured_*
rm -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/stamp/.naiveproxy_installed
( pushd "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src" ; . ../init_env.sh "i386" "pentium4" "" "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/toolchain-i386_pentium4_gcc-13.3.0_musl" ; export naive_flags+=" ${naive_ccache_flags}" ; mkdir -p "out" ; gn gen "out/Release" --args="${naive_flags}" --script-executable="python3" ; popd ; )
~/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src ~/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy
Done. Made 728 targets from 154 files in 437ms
/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.built
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.built_check
MAKEFLAGS="" /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/ninja -j1 -C "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src/out/Release" naive
ninja: Entering directory `/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src/out/Release'
[1701/3478] CXX obj/base/base/unix_domain_socket.o
../../base/posix/unix_domain_socket.cc:177:51: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
177 | for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
| ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../staging_dir/toolchain-i386_pentium4_gcc-13.3.0_musl/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
358 | __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char )(cmsg)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[3322/3478] CXX obj/net/net/udp_socket_posix.o
../../net/socket/udp_socket_posix.cc:774:19: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
774 | cmsg = CMSG_NXTHDR(&msg, cmsg)) {
| ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../staging_dir/toolchain-i386_pentium4_gcc-13.3.0_musl/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
358 | __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char )(cmsg)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[3478/3478] LINK ./naive
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.built
rm -rf /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy.installed /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy
install -d -m0755 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy/usr/bin
install -m0755 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src/out/Release/naive /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy/usr/bin/naive
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy.installed
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/root-x86/stamp
SHELL= flock /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/tmp/.root-copy.flock -c 'cp -fpR /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/.pkgdir/naiveproxy/. /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/root-x86/'
touch /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/root-x86/stamp/.naiveproxy_installed
rm -rf /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/bin/targets/x86/generic/packages /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/pkginfo
install -d -m0755 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/usr/bin
install -m0755 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/src/out/Release/naive /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/usr/bin/naive
find /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy -name 'CVS' -o -name '.svn' -o -name '.#
' -o -name '
'| xargs -r rm -rf
export CROSS="i486-openwrt-linux-musl-" NO_RENAME=1 ; NM="i486-openwrt-linux-musl-nm" STRIP="/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/scripts/strip-kmod.sh" PATCHELF="/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/patchelf" /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/scripts/rstrip.sh /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy
rstrip.sh: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/usr/bin/naive: executable
install -d -m0755 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/bin/packages/i386_pentium4/helloworld/tmp
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/
(cd /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy; )
( 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/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/postinst-pkg ] || cat "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/postinst-pkg"; ) > /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/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/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/prerm-pkg ] || cat "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/prerm-pkg"; ) > /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/pre-deinstall;
if [ -n "" ]; then echo > /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.rusers; fi;
if [ -n "" ]; then echo > /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.alternatives; fi;
(cd /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy && find . -type f,l -printf "/%P\n" > /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.list)

Move conffiles to IDIR and build conffiles_static with csums

if [ -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/conffiles ]; then mv -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/conffiles /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.conffiles; for file in $(cat /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.conffiles); do [ -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/$file ] || continue; csum=$(/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/mkhash sha256 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/$file); echo $file $csum >> /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/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/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL/conffiles ]; then echo $(IDIR_naiveproxy)/CONTROL/conffiles >> /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.conffiles; for file in $(cat /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL/conffiles); do [ -f /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/$file ] || continue; csum=$(/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/mkhash sha256 /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/$file); echo $file $csum >> /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/lib/apk/packages/naiveproxy.conffiles_static; done; rm -rf /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL/conffiles; fi
if [ -z "$(ls -A /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL 2>/dev/null)" ]; then rm -rf /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL; else echo "CONTROL directory /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy/CONTROL is not empty! This is not right and should be checked!" >&2; exit 1; fi
/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/fakeroot /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/host/bin/apk mkpkg --info "name:naiveproxy" --info "version:129.0.6668.81-2-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:i386_pentium4" --info "license:BSD 3-Clause" --info "origin:feeds/helloworld/naiveproxy" --info "url:https://github.com/klzgrad/naiveproxy" --info "maintainer:Tianling Shen cnsztl@immortalwrt.org" --info "provides:" --script "post-install:/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/post-install" --script "pre-deinstall:/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/apk-i386_pentium4/naiveproxy/pre-deinstall" --info "depends:libc libatomic1" --files "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/build_dir/target-i386_pentium4_musl/naiveproxy-129.0.6668.81-2/ipkg-i386_pentium4/naiveproxy" --output "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/bin/packages/i386_pentium4/helloworld/naiveproxy-129.0.6668.81-2-r1.apk" --sign "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/private-key.pem"
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/bin/packages/i386_pentium4/helloworld/naiveproxy-129.0.6668.81-2-r1.apk: package version is invalid
make[3]: *** [Makefile:140: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/bin/packages/i386_pentium4/helloworld/naiveproxy-129.0.6668.81-2-r1.apk] Error 99
make[3]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy'
time: package/feeds/helloworld/naiveproxy/compile#3395.89#210.05#3504.54
ERROR: package/feeds/helloworld/naiveproxy failed to build.
make[2]: *** [package/Makefile:185: package/feeds/helloworld/naiveproxy/compile] Error 1
make[2]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf'
make[1]: *** [package/Makefile:179: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf'
make: *** [/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/include/toplevel.mk:233: world] Error 2

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Dec 12, 2024

@rosaxe 难怪报错,你编译的是APK而不是IPKG,你把Makefile里的这几行:

PKG_NAME:=naiveproxy
PKG_VERSION:=129.0.6668.81-2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REAL_VERSION)

改成:

PKG_NAME:=naiveproxy
PKG_REAL_VERSION:=129.0.6668.81-2
PKG_VERSION:=$(subst -,.,$(PKG_REAL_VERSION))
PKG_RELEASE:=1


PKG_SOURCE:=$(PKG_NAME)-$(PKG_REAL_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_REAL_VERSION)?
PKG_HASH:=c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REAL_VERSION)

即可。
这个修改兼容IPKG也兼容APK。

或者直接用我提交的这个PR: #1608

@rosaxe
Copy link
Author

rosaxe commented Dec 12, 2024

@rosaxe 难怪报错,你编译的是APK而不是IPKG,你把Makefile里的这几行:

PKG_NAME:=naiveproxy
PKG_VERSION:=129.0.6668.81-2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REAL_VERSION)

改成:

PKG_NAME:=naiveproxy
PKG_REAL_VERSION:=129.0.6668.81-2
PKG_VERSION:=$(subst -,.,$(PKG_REAL_VERSION))
PKG_RELEASE:=1


PKG_SOURCE:=$(PKG_NAME)-$(PKG_REAL_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_REAL_VERSION)?
PKG_HASH:=c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REAL_VERSION)

即可。 这个修改兼容IPKG也兼容APK。

或者直接用我提交的这个PR: #1608

为什么他会是apk呢?,用10月的官方源码编译他就没有问题???

@rosaxe
Copy link
Author

rosaxe commented Dec 12, 2024

src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy'
mkdir -p /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/dl
SHELL= flock /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/tmp/.naiveproxy-.tar.gz.flock -c ' /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/scripts/download.pl "/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/dl" "naiveproxy-.tar.gz" "c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e" "" "https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v?" '

  • curl -f --connect-timeout 20 --retry 5 --location https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v?/naiveproxy-.tar.gz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
  • curl -f --connect-timeout 20 --retry 5 --location https://sources.cdn.openwrt.org/naiveproxy-.tar.gz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
  • curl -f --connect-timeout 20 --retry 5 --location https://sources.openwrt.org/naiveproxy-.tar.gz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
  • curl -f --connect-timeout 20 --retry 5 --location https://mirror2.openwrt.org/sources/naiveproxy-.tar.gz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
    No more mirrors to try - giving up.
    make[3]: *** [Makefile:115: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/dl/naiveproxy-.tar.gz] Error 2
    make[3]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/feeds/helloworld/naiveproxy'
    time: package/feeds/helloworld/naiveproxy/compile#0.30#0.06#4.02
    ERROR: package/feeds/helloworld/naiveproxy failed to build.
    make[2]: *** [package/Makefile:185: package/feeds/helloworld/naiveproxy/compile] Error 1
    make[2]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf'
    make[1]: *** [package/Makefile:179: /home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf'
    make: *** [/home/donkey/openwrt_gentoo_build/openwrt_realtime_src_feeds_helloworld_oaf/include/toplevel.mk:233: world] Error 2

@zxlhhyccc
Copy link
Contributor

@rosaxe 官方默认改为APK了。

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Dec 12, 2024

@rosaxe 你这个报错是Makefile改错了吧?贴出你修改后的Makefile。

@rosaxe
Copy link
Author

rosaxe commented Dec 12, 2024

@rosaxe 你这个报错是Makefile改错了吧?贴出你修改后的Makefile。

include $(TOPDIR)/rules.mk

PKG_NAME:=naiveproxy
PKG_VERSION:=129.0.6668.81-2
PKG_VERSION:=$(subst -,.,$(PKG_REAL_VERSION))
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c66ac95b0a685fb84f931a267873979cd59708e8966fb9764c53fe2deb24227e

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Dec 12, 2024

@rosaxe 我不知道你怎么改的,你仔细看看我上面要你改的,我发出来的你直接全部替换不就行了?你不会改为啥不干脆用PR :#1608

@rosaxe
Copy link
Author

rosaxe commented Dec 12, 2024

官方默认改为APK

原来如此
OpenWrt 于 11 月 15 日发布公告,宣布自 2024 年 11 月开始,OpenWrt 的主开发分支 Snapshot 和未来稳定 Builds 中,软件包管理器已从 opkg 更改为 apk

@rosaxe
Copy link
Author

rosaxe commented Dec 14, 2024

@rosaxe 我不知道你怎么改的,你仔细看看我上面要你改的,我发出来的你直接全部替换不就行了?你不会改为啥不干脆用PR :#1608

未标题-1
未标题-2

@zxlhhyccc
Copy link
Contributor

@rosaxe 现在正常了是吗?你现在是APK还是opkg?

@rosaxe
Copy link
Author

rosaxe commented Dec 14, 2024

@rosaxe 现在正常了是吗?你现在是APK还是opkg?

10月的官方master源码编译正常(ipk),12月的源码编译也正常(apk)都是无错编译,就是免费节点太慢了,我买了收费节点很快,很好用^_^

@rosaxe
Copy link
Author

rosaxe commented Dec 14, 2024

@rosaxe 现在正常了是吗?你现在是APK还是opkg?

感谢大佬帮忙
image

@zxlhhyccc
Copy link
Contributor

我买了收费节点很快,很好用^_^

啥节点?发一个我试试咋样?

@rosaxe
Copy link
Author

rosaxe commented Dec 14, 2024

掠影lles.me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants