Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Stanislav Brabec <utx@penguin.cz>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Revert "package bbclass: strip static libs as well"
Date: Sat, 24 Oct 2009 17:39:17 +0200	[thread overview]
Message-ID: <1256398757.4681.0@zaurus> (raw)
In-Reply-To: <1256393164.15214.46.camel@lenovo.internal.reciva.com> (from philb@gnu.org on Sat Oct 24 16:06:04 2009)

Phil Blundell wrote:
> On Sat, 2009-10-24 at 10:48 +0200, Koen Kooi wrote:
> > On 24-10-09 00:31, Stanislav Brabec wrote:

> > > binutils-2.18-r8.1: /usr/lib/libiberty.a
> 
> I'm not convinced you really want to be shipping libiberty at all.
> Every project that uses this library tends to bundle a local copy in
> with its source code.

Probaby agree. One instance of libibery per distro with header still
can exist.

> > > bison-2.3-r0: /usr/lib/liby.a
> 
> That one is a special case: it wants to stay in the main bison
> package,
> since bison itself is a development tool.  I'm not sure why it is a
> static-only library; that might be an error.

It's OK. Ultra small shared libraries with one or two functions don't
make sense.

> > > bridge-utils-1.4-r0: /usr/lib/libbridge.a
> 
> I think this is an internal convenience library, not intended for
> external use.  Debian doesn't seem to package it at all and I suspect
> OE
> probably shouldn't either.

There shoud be another generic rule: No .h files for the library =>
don't package the library.

libbridge.h is available => it's OK to have libbridge. I cannot
decide whether it is useful without a knowledge of the package.

> > > flex-2.5.31-r4: /usr/lib/libfl.a
> 
> This is like bison.

Yes, again an ultra small library.
 
> > > gcc-4.3.3-r7.1: /usr/lib/libstdc++_pic.a
> > > gcc-4.3.3-r7.1: /usr/lib/libssp_nonshared.a
> 
> Those are probably special.  I'm not quite sure what the deal is with
> libstdc++_pic, that would need some further investigation.

_pic.a is a convenient name for static libraries, if their contents may
be linked into a shared library (i. e. they are compiled with -fPIC).
 
> > > gdb-7.0-r0: /usr/lib/libbfd.a
> > > gdb-7.0-r0: /usr/lib/libopcodes.a
> > > gdb-7.0-r0: /usr/lib/libiberty.a
> 
> As for libiberty above.

Yes.

> > > glibc-2.9-r35.2: /usr/lib/libc_nonshared.a
> > > glibc-2.9-r35.2: /usr/lib/libmcheck.a
> > > glibc-2.9-r35.2: /usr/lib/libg.a
> > > glibc-2.9-r35.2: /usr/lib/libbsd-compat.a
> > > glibc-2.9-r35.2: /usr/lib/libieee.a
> > > glibc-2.9-r35.2: /usr/lib/libpthread_nonshared.a
> 
> The nonshared ones are special.  The others belong in the -static
> package.

No for libpthread_nonshared.a. pthread_atfork is defined only here.

No for libmcheck.a. It is required for -mcheck*.

I am not sure for others. Some of them are dummy, but compiler may want
it. I guess we are on the safe side keeping all these in the main
package.

> > > mysql-4.1.22-r3: /usr/lib/libmysys.a
> > > mysql-4.1.22-r3: /usr/lib/libdbug.a
> > > mysql-4.1.22-r3: /usr/lib/libvio.a
> > > mysql-4.1.22-r3: /usr/lib/libheap.a
> > > mysql-4.1.22-r3: /usr/lib/libmerge.a
> > > mysql-4.1.22-r3: /usr/lib/libnisam.a
> > > mysql-4.1.22-r3: /usr/lib/libmysqld.a
> > > mysql-4.1.22-r3: /usr/lib/libmyisam.a
> > > mysql-4.1.22-r3: /usr/lib/libmyisammrg.a
> > > mysql-4.1.22-r3: /usr/lib/libmystrings.a
> 
> I think those are all internal convenience libraries and should
> probably
> not be packaged.

I don't know mysql in deep. But if it has correspondent headers
installed, somebody may consider it useful.


But There are many really obsolete .a files:

All libraries intended for load by ltdl, gmodule etc.

Static instances of dynamic modules have absolutely no use and may be 
silently deleted in the recipe.

It includes: GTK+ theme engines, input methods, pixbuf renderers and
a lot of other stuff.

Upstream does not do so, because libtool is not so flexible to create
static libraries only for part of the package.

-- 
Stanislav Brabec
http://www.penguin.cz/~utx




  parent reply	other threads:[~2009-10-24 15:40 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23  3:04 Revert "package bbclass: strip static libs as well" Holger Hans Peter Freyther
2009-10-23  7:23 ` Koen Kooi
2009-10-23  7:30   ` Holger Hans Peter Freyther
2009-10-23  7:58     ` Koen Kooi
2009-10-23  8:23       ` Holger Hans Peter Freyther
2009-10-23  8:36         ` Phil Blundell
2009-10-23  9:14           ` Koen Kooi
2009-10-23  9:33             ` Holger Hans Peter Freyther
2009-10-23  9:46               ` Koen Kooi
2009-10-23  9:54                 ` Holger Hans Peter Freyther
2009-10-23 10:03                   ` Koen Kooi
2009-10-23 10:24                   ` Phil Blundell
2009-10-23 11:07                 ` Stanislav Brabec
2009-10-23 11:34                   ` Holger Hans Peter Freyther
2009-10-23 22:31                     ` Stanislav Brabec
2009-10-24  0:29                       ` Khem Raj
2009-10-24  8:48                       ` Koen Kooi
2009-10-24 13:27                         ` Stanislav Brabec
2009-10-24 14:13                           ` Stanislav Brabec
2009-10-24 14:33                             ` Phil Blundell
2009-10-24 14:57                           ` Koen Kooi
2009-10-24 14:06                         ` Phil Blundell
2009-10-24 15:18                           ` Koen Kooi
2009-10-24 15:39                           ` Stanislav Brabec [this message]
2009-10-24 18:45                             ` Phil Blundell
2009-10-24 19:33                               ` Stanislav Brabec
2009-10-23 12:11                   ` Leon Woestenberg
2009-10-23 12:12                   ` Phil Blundell
2009-10-23 12:28               ` Koen Kooi
2009-10-23 12:37                 ` Phil Blundell
2009-10-23 12:42                 ` Phil Blundell
2009-10-23 12:56                   ` Koen Kooi
2009-10-24  2:32                     ` Holger Hans Peter Freyther
2009-10-24  3:42                       ` Denys Dmytriyenko
2009-10-24  8:40                       ` Koen Kooi
2009-10-23 18:21                   ` Denys Dmytriyenko
2009-10-23 18:36                     ` Phil Blundell
2009-10-23 19:53             ` Khem Raj
2009-10-23 18:26           ` Denys Dmytriyenko
2009-10-27  9:38 ` Koen Kooi
2009-10-27 10:21   ` Phil Blundell
2009-10-27 10:29     ` Koen Kooi
2009-10-27 10:50   ` Holger Hans Peter Freyther
2009-10-27 11:24     ` Koen Kooi

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=1256398757.4681.0@zaurus \
    --to=utx@penguin.cz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox