[oe] [PATCH] busybox: allow building when prefix is "", not "/usr".
Michael Smith
msmith at cbnco.com
Fri Jun 5 13:29:00 UTC 2009
Phil Blundell wrote:
> On Mon, 2009-05-25 at 23:35 -0400, Michael Smith wrote:
>> For insane backwards compatibility reasons (my own fault) I would like
>> to be able to create packages with no /usr and /sbin == /bin. Most
>> autoconf packages are happy about this; busybox just needs a little
>
> I found one more issuette: busybox udhcpc still expects to find its
> scripts in /usr/share/udhcpc irrespective of where ${datadir} actually
> points to (/share in my case). Can I persuade you to take a look at
> that?
This is in the defconfig (CONFIG_UDHCPC_DEFAULT_SCRIPT). We might be
able to get around it by passing
-DCONFIG_UDHCPC_DEFAULT_SCRIPT=${datadir}/udhcpc/default.script as a CFLAG.
It would make it a bit harder for someone to change the script name for
their distro. Should just leave it up to distros to fix the script name,
or should I force it as a CFLAG? (BTW, in my distro I pass a flag to
udhcpc to use an entirely different script path.)
I've also found it makes life easier to have symlinks for /usr pointing
to ., and /sbin pointing to /bin. It means if I miss a hardcoded path in
a binary like this, the package still works. But I have to chase down
any packages that actually install files to /usr or /sbin -- otherwise
when they're upgraded, dpkg removes the symlink and creates a /usr/bin
or /sbin with one file in it :)
Mike
More information about the Openembedded-devel
mailing list