Compiling OpenWrt with passwd fork

Hi all. I have an definitely working passwd fork that works with with OpenWrt (don't ask why, that was not my decision, I'm just forced to work with it). Also I have almost the same passwd (another version for another mediagate) that was created by me in the following way: I compared original passwd and fork, picked the changes and put into my passwd.
So, when I try to build it i receive the following errors:

make[3]: Entering directory `/home/dmitry/repos/openwrt/package/utils/busybox'
touch /home/dmitry/repos/openwrt/build_dir/target-mipsel_24kc_glibc/busybox-1.29.2/.prepared_dcc2f0e699ad93662f1a5de805cc911b_6664517399ebbbc92a37c5bb081b5c53_check
. /home/dmitry/repos/openwrt/include/; bzcat /home/dmitry/repos/openwrt/dl/busybox-1.29.2.tar.bz2 | tar -C /home/dmitry/repos/openwrt/build_dir/target-mipsel_24kc_glibc/busybox-1.29.2/.. -xf - 
[ ! -d ./src/ ] || cp -fpR ./src/. /home/dmitry/repos/openwrt/build_dir/target-mipsel_24kc_glibc/busybox-1.29.2

Applying ./patches/100-trylink_bash.patch using plaintext: 
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|--- a/scripts/trylink
|+++ b/scripts/trylink
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch failed!  Please fix ./patches/100-trylink_bash.patch!
make[3]: *** [/home/dmitry/repos/openwrt/build_dir/target-mipsel_24kc_glibc/busybox-1.29.2/.prepared_dcc2f0e699ad93662f1a5de805cc911b_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory `/home/dmitry/repos/openwrt/package/utils/busybox'
Command exited with non-zero status 2
time: package/utils/busybox/compile#0.30#0.07#0.32
make[2]: *** [package/utils/busybox/compile] Error 2
make[2]: Leaving directory `/home/dmitry/repos/openwrt'
make[1]: *** [/home/dmitry/repos/openwrt/staging_dir/target-mipsel_24kc_glibc/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/dmitry/repos/openwrt'
make: *** [world] Error 2

What goes wrong? My version of passwd has no relations to trylink, it is wrote in correct C so it seems this problem is not about incorrect syntax. I can attach my passwd if needed.

Is this a proper buildroot, or some vendor SDK? I suppose the latter? Recent OpenWrt has long stopped relying on the GNU C library and uses musl nowadays.

1 Like