openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
3.97k stars 3.46k forks source link

nft-qos: unable to install properly using image builder #14956

Open storm1er opened 3 years ago

storm1er commented 3 years ago

Maintainer: @rosysong Environment: target rpi-4, OpenWrt latest snapshot but may apply to every target

Description

When adding the nft-qos package to image builder script, we get some configuration error.
This is due to the fact that install scripts are refering to host root instead of builder folder (virtual system root folder?).

Command is something like opkg install $OPTIONS $PACKAGES which I can't give as it's build automatically by the image builder, here's the output

Enabling ...
Enabling ...
Enabling ...
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/core.sh: line 7: /lib/functions/procd.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/monitor.sh: line 6: /lib/nft-qos/core.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/dynamic.sh: line 6: /lib/nft-qos/core.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/static.sh: line 6: /lib/nft-qos/core.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/mac.sh: line 6: /lib/nft-qos/core.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/priority.sh: line 6: /lib/functions/network.sh: No such file or directory
/home/user/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/build_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/lib/nft-qos/priority.sh: line 7: /lib/nft-qos/core.sh: No such file or directory
Enabling nft-qos
Enabling ...
Enabling ...

Reproduction steps

wget -q --show-progress https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz
tar -xf openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz
cd openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64
make image PACKAGES="nft-qos"
storm1er commented 3 years ago

Updated reproduction step, bug confirmed

I will update if the builds work or not.

storm1er commented 3 years ago

Update: I'm unable to activate traffic priority feature (lua script error)