[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801850: busybox: readlink gets shadowed by busybox causing debconf to possibly fail

tags 801850 +moreinfo +patch

> With both coreutils and busybox installed however, the
> busybox variant gets used before the coreutils variant causing package
> failures.

Does such a breakage happen or is this rather a theoretical scenario?
Or: Is this an issue to be fixed in (old)stable as well?

> A quick fix/workaround:
> if [ -f /bin/readlink ]; then
>         unlink /usr/bin/readlink
> fi

Things are not that easy unfortunately. It's saner to fix the
underlying problem which took a while to understand: busybox --install
places the readlink link in /usr/bin/, a directory that has precedence
in $PATH over /bin/  where coreutils version resides. And things go
downhill from there.

The patch attached changes busybox' install path for readlink to /bin/
as well - since busybox never replaces existing files, everything
should be fine.

Please give it a try and report whether this helps in your situation.

--- a/coreutils/readlink.c
+++ b/coreutils/readlink.c
@@ -20,7 +20,7 @@
 //config:	help
 //config:	  Enable the readlink option (-f).
 //kbuild:lib-$(CONFIG_READLINK) += readlink.o

Attachment: signature.asc
Description: Digital signature

Reply to: