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

能修复一下吗?adguardhome 一直有错。 #232

Open
dukmonki opened this issue Dec 5, 2021 · 7 comments
Open

能修复一下吗?adguardhome 一直有错。 #232

dukmonki opened this issue Dec 5, 2021 · 7 comments

Comments

@dukmonki
Copy link

dukmonki commented Dec 5, 2021

install -a 时,出错如下。

WARNING: Makefile 'package/feeds/kenzo/adguardhome/Makefile' has a build dependency on 'node-yarn/host', which does not exist
WARNING: Makefile 'package/feeds/kenzo/adguardhome/Makefile' has a build dependency on 'packr/host', which does not exist
Installing all packages from feed packages.

@dukmonki
Copy link
Author

dukmonki commented Dec 5, 2021

全新安装的,一直有错。

@dukmonki
Copy link
Author

行么?

@kenzok8
Copy link
Owner

kenzok8 commented Dec 11, 2021

明天我本地编译下,看下是否会出错,再解决

@sbwml
Copy link

sbwml commented Dec 13, 2021

adg哪有这么麻烦,直接官方openwrt feed 下修改,每次build 永远是最新版本

# AdGuardHome Beta - Fix build with go17.x
pushd feeds/packages
adguardhome_version=`curl -s "https://api.github.com/repos/AdguardTeam/AdGuardHome/releases" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g' | awk -F "v" '{print $2}'`
sed -ri "s/(PKG_VERSION:=)[^\"]*/\1$adguardhome_version/" net/adguardhome/Makefile
sed -i 's/release/beta/g' net/adguardhome/Makefile
sed -i 's/.*PKG_MIRROR_HASH.*/#&/' net/adguardhome/Makefile
sed -i '/init/d' net/adguardhome/Makefile
popd

@wang1zhen
Copy link

本地编译可以复现同样的问题,建议更新一下

@git-earth
Copy link

你这只是缺少依赖,自己补齐就行了

@smdx
Copy link

smdx commented Jan 6, 2024

adg哪有这么麻烦,直接官方openwrt feed 下修改,每次build 永远是最新版本

# AdGuardHome Beta - Fix build with go17.x
pushd feeds/packages
adguardhome_version=`curl -s "https://api.github.com/repos/AdguardTeam/AdGuardHome/releases" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g' | awk -F "v" '{print $2}'`
sed -ri "s/(PKG_VERSION:=)[^\"]*/\1$adguardhome_version/" net/adguardhome/Makefile
sed -i 's/release/beta/g' net/adguardhome/Makefile
sed -i 's/.*PKG_MIRROR_HASH.*/#&/' net/adguardhome/Makefile
sed -i '/init/d' net/adguardhome/Makefile
popd

大佬你好,云编译还是会出错

1486
make[3]: Entering directory '/workdir/openwrt/feeds/packages/net/adguardhome'
1487
mkdir -p /workdir/openwrt/dl
1488
SHELL= flock /workdir/openwrt/tmp/.adguardhome-0.107.43.tar.xz.flock -c ' /workdir/openwrt/scripts/dl_github_archive.py --dl-dir="/workdir/openwrt/dl" --url="https://github.com/AdguardTeam/AdGuardHome" --version="v0.107.43" --subdir="adguardhome-0.107.43" --source="adguardhome-0.107.43.tar.xz" --hash="x" || ( echo "Checking out files from the git repository..."; mkdir -p /workdir/openwrt/tmp/dl && cd /workdir/openwrt/tmp/dl && rm -rf adguardhome-0.107.43 && [ ! -d adguardhome-0.107.43 ] && git clone https://github.com/AdguardTeam/AdGuardHome adguardhome-0.107.43 && (cd adguardhome-0.107.43 && git checkout v0.107.43 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd adguardhome-0.107.43 && git log -1 --format='\''@%ct'\'' && rm -rf adguardhome-0.107.43/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c adguardhome-0.107.43 | xz -zc -7e > /workdir/openwrt/tmp/dl/adguardhome-0.107.43.tar.xz && mv /workdir/openwrt/tmp/dl/adguardhome-0.107.43.tar.xz /workdir/openwrt/dl/ && rm -rf adguardhome-0.107.43; ); '
1489
adguardhome-0.107.43.tar.xz: Download from https://github.com/AdguardTeam/AdGuardHome failed
1490
adguardhome-0.107.43.tar.xz: Requires sha256sum for verification
1491
Checking out files from the git repository...
1492
Cloning into 'adguardhome-0.107.43'...
1493
Note: switching to 'v0.107.43'.
1494

1495
You are in 'detached HEAD' state. You can look around, make experimental
1496
changes and commit them, and you can discard any commits you make in this
1497
state without impacting any branches by switching back to a branch.
1498

1499
If you want to create a new branch to retain commits you create, you may
1500
do so (now or later) by using -c with the switch command. Example:
1501

1502
git switch -c
1503

1504
Or undo this operation with:
1505

1506
git switch -
1507

1508
Turn off this advice by setting config variable advice.detachedHead to false
1509

1510
HEAD is now at f6ad64bf all: fix chlog link
1511
Packing checkout...
1512
touch /workdir/openwrt/build_dir/target-x86_64_musl/adguardhome-0.107.43/.prepared_027ffd8c90bcd1f4a08e743b26335944_6664517399ebbbc92a37c5bb081b5c53_check
1513
. /workdir/openwrt/include/shell.sh; xzcat /workdir/openwrt/dl/adguardhome-0.107.43.tar.xz | tar -C /workdir/openwrt/build_dir/target-x86_64_musl/adguardhome-0.107.43/.. -xf -
1514
[ ! -d ./src/ ] || cp -fpR ./src/. /workdir/openwrt/build_dir/target-x86_64_musl/adguardhome-0.107.43
1515

1516
Applying ./patches/0001-go-get-github.com-quic-go-quic-go-v0.37.6.patch using plaintext:
1517
patching file go.mod
1518
Hunk #1 FAILED at 28.
1519
Hunk #2 FAILED at 60.
1520
2 out of 2 hunks FAILED -- saving rejects to file go.mod.rej
1521
patching file go.sum
1522
Hunk #1 FAILED at 108.
1523
1 out of 1 hunk FAILED -- saving rejects to file go.sum.rej
1524
Patch failed! Please fix ./patches/0001-go-get-github.com-quic-go-quic-go-v0.37.6.patch!
1525
make[3]: *** [Makefile:80: /workdir/openwrt/build_dir/target-x86_64_musl/adguardhome-0.107.43/.prepared_027ffd8c90bcd1f4a08e743b26335944_6664517399ebbbc92a37c5bb081b5c53] Error 1
1526
make[3]: Leaving directory '/workdir/openwrt/feeds/packages/net/adguardhome'
1527
time: package/feeds/packages/adguardhome/compile#5.50#0.36#5.26
1528
ERROR: package/feeds/packages/adguardhome failed to build.
1529
make[2]: *** [package/Makefile:116: package/feeds/packages/adguardhome/compile] Error 1
1530
make[2]: Leaving directory '/workdir/openwrt'
1531
make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
1532
make[1]: Leaving directory '/workdir/openwrt'
1533
make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2
1534
Error: Process completed with exit code 2.

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

6 participants