From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Bizarre things on the allyespackageconfig build
Date: Fri, 10 May 2013 22:58:44 +0200 [thread overview]
Message-ID: <20130510225844.4f750b00@skate> (raw)
In-Reply-To: <20130510165356.GA19822@free.fr>
Dear Yann E. MORIN,
On Fri, 10 May 2013 18:53:56 +0200, Yann E. MORIN wrote:
> > * There is a usr/arm-buildroot-linux-gnueabi directory, which contains
> > just a 'bin' subdirectory, which contains ar, as, ld, nm, etc.
> >
> > $ ls usr/arm-buildroot-linux-gnueabi/bin/
> > ar as ld ld.bfd nm objcopy objdump ranlib strip
> >
> > That's a strange installation location for binutils.
>
> These should be hard-links to their fully-qualified counterparts in
> /usr/bin:
> arm-buildroot-linux-gnueabi-{ar,as,ld,ld,bfd,nm,objcopy,ranlib,strip}
>
> That's typical of a binutils installation.
They are indeed hardlinks.
> [--SNIP--]
> > * There a bunch of libraries that don't have the executable bit set in
> > usr/lib. I don't think it's a big problem, but it makes them
> > different from the others.
>
> Shared libraries do not need to be executable, except the dynamic linker
> ld.so which is both a progrm and a library.
>
> Also, libc.so from {,e}glibc is also executable, but not he libc.so from
> uClibc.
>
> I think it is not a problem per-se, and I think shared libraries should
> not be executable at all.
I agree, it's not a problem per se, it's just that 99% of the other
packages install their shared libraries with executable permissions, so
not having them for a few libraries is a bit strange.
Also, to be noted that we keep the .so symbolic link, even though it's
generally unneeded at runtime. However, unfortunately, simply removing
*.so isn't going to work: some of the .so files are directly the shared
libraries.
Examples:
$ ls -l libdvb*
-rw-r--r-- 1 thomas thomas 20469 May 9 13:21 libdvbapi.so
-rw-r--r-- 1 thomas thomas 13415 May 9 13:21 libdvbcfg.so
-rw-r--r-- 1 thomas thomas 52375 May 9 13:21 libdvben50221.so
-rw-r--r-- 1 thomas thomas 25523 May 9 13:21 libdvbsec.so
> > * Some packages seem to confuse /var with /usr/var: cups, netatalk,
> > squid, polkit-1, vtund, stunnel. Here's what I have in usr/var/ :
> [--SNIP--]
>
> Two options here:
> - ./configure --localstatedir=/var
> Some packages do set it in their .mk, eg. (=/var unless specified):
> avahi, sed, directfb, NM, lighttpd, dhcp (=/var/lib/dhcp),
> php, oprofile, xserver_xorg-server, samba, dbus, collectd,
> proftpd (=/var/run), sqlite, bind, dbus-glib, ndisc6, sql_net,
> sqlcipher, connman, pulseaudio
> Probably usefull to set it in the pkg-infra?
Seems like yes.
> [--SNIP--]
> > * usr/share represents 428 MB, which includes 121 MB of locales (I
> > didn't select the removal of locales in my configuration)
>
> Not a problem if locales where not /disabled/ in your config.
Sure, I was just giving a rough idea of the size of usr/share: it
represents almost half of the size of the filesystem. usr/share is 428
MB over the 1.1 GB of the filesystem. This line was mostly giving
numbers, not really raising any particular problem.
> > If people are interested in fixing some of those issues, reply to this
> > e-mail saying which issue you're going to have a look at.
>
> I'll look at the /var issue.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-05-10 20:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 15:51 [Buildroot] Bizarre things on the allyespackageconfig build Thomas Petazzoni
2013-05-10 16:53 ` Yann E. MORIN
2013-05-10 20:58 ` Thomas Petazzoni [this message]
2013-05-10 22:27 ` Yann E. MORIN
2013-05-11 10:31 ` Thomas Petazzoni
2013-05-12 17:29 ` Yann E. MORIN
2013-05-12 19:38 ` Peter Korsgaard
2013-05-10 21:52 ` Arnout Vandecappelle
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=20130510225844.4f750b00@skate \
--to=thomas.petazzoni@free-electrons.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 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.