From: Michael Smith <msmith@cbnco.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] busybox: allow building when prefix is "", not "/usr".
Date: Fri, 05 Jun 2009 09:29:00 -0400 [thread overview]
Message-ID: <4A291D9C.7040900@cbnco.com> (raw)
In-Reply-To: <1244207469.2611.163.camel@mill.internal.reciva.com>
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
next prev parent reply other threads:[~2009-06-05 13:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 3:35 [PATCH] busybox: allow building when prefix is "", not "/usr" Michael Smith
2009-05-26 3:40 ` Michael Smith
2009-05-26 3:44 ` Michael Smith
2009-06-03 18:44 ` Phil Blundell
2009-06-03 19:50 ` Michael Smith
2009-06-03 20:14 ` Phil Blundell
2009-06-03 20:31 ` [PATCH 1/2] busybox: let update-alternatives create all symlinks, and use INC_PR Michael Smith
2009-06-03 20:31 ` [PATCH 2/2] busybox: Split syslog initscript into busybox-syslog Michael Smith
2009-06-05 11:27 ` [PATCH 1/2] busybox: let update-alternatives create all symlinks, and use INC_PR Phil Blundell
2009-05-26 16:01 ` [PATCH] busybox: allow building when prefix is "", not "/usr" Phil Blundell
2009-05-27 1:53 ` Michael Smith
2009-05-27 10:36 ` Phil Blundell
2009-05-26 16:16 ` Phil Blundell
2009-06-05 13:11 ` Phil Blundell
2009-06-05 13:29 ` Michael Smith [this message]
2009-06-05 13:57 ` Phil Blundell
2009-06-07 20:38 ` Michael Smith
2009-06-07 20:43 ` [PATCH] busybox: Split syslog initscript into busybox-syslog Michael Smith
2009-06-07 20:43 ` [PATCH] busybox: fix udhcpc default script location when prefix is not "/usr" Michael Smith
2009-06-08 9:39 ` Phil Blundell
2009-06-08 9:52 ` [PATCH] busybox: Split syslog initscript into busybox-syslog Phil Blundell
2009-06-08 13:24 ` Michael Smith
2009-06-08 14:06 ` Phil Blundell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A291D9C.7040900@cbnco.com \
--to=msmith@cbnco.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.