Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Install to /lib usr /usr/lib ?
Date: Fri, 13 Jul 2007 14:04:15 +0200	[thread overview]
Message-ID: <20070713120414.GA32559@aon.at> (raw)
In-Reply-To: <f0528b5b0707120848w682852a7i24137288712a53ae@mail.gmail.com>

On Thu, Jul 12, 2007 at 05:48:30PM +0200, Julien Letessier wrote:
>Dear buildroot maintainers,
>
>For the relative newcomer I am, there seems to be a lot of
>inconsistency in buildroot for package installation directories.
>
>>From what I undrestand, the policy is to install packages:
>* under $(STAGING_DIR)/{bin,lib,include} and $(STAGING_DIR)/{bin,lib}
>for the toolchain (e.g. uclibc)

No, this is not correct.
Everything that goes to $(STAGING_DIR)/include is wrong, it should be in
$(STAGING_DIR)/usr/include

Most of the packages should install into $(STAGING_DIR)/usr, a few
exceptions are allowed to go to $(STAGING_DIR)/lib (uClibc et al, refer
to your host for examples).

>* under $(STAGING_DIR)/usr/{bin,lib,include} and
>$(STAGING_DIR)/usr/{bin,lib} for other packages (e.g. gtk)
>
>Is this correct?

The scheme that is supposed to be used is to match a usual host as close
as possible. Some packages put their *.a into /usr/lib while they put
their *.so into /lib. Following this for the staging_dir is ok iff your
host hints it.
>
>If so, we have a problem.
>Half the of the package/*/*.mk use one option, half use the other.

The consistency is relatively new, alot of packages still do install
into $(STAGING_DIR) directly and have to be fixed to install into
$(STAGING_DIR)/usr. I corrected some already, patches to fix the rest
are very welcome.

>As I "svn uped" today, the fontconfig package I had a hard time
>patching broke, because expat decided AGAIN to install directly under
>/lib.
>
>Please, please establish a clear policy on this, so we can start
>submiting patches

      parent reply	other threads:[~2007-07-13 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 15:48 [Buildroot] Install to /lib usr /usr/lib ? Julien Letessier
2007-07-12 16:38 ` Ulf Samuelsson
2007-07-13 12:09   ` Bernhard Fischer
2007-07-13 12:04 ` Bernhard Fischer [this message]

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=20070713120414.GA32559@aon.at \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox