From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Revert "package bbclass: strip static libs as well"
Date: Sat, 24 Oct 2009 10:48:22 +0200 [thread overview]
Message-ID: <hbuf0m$esa$1@ger.gmane.org> (raw)
In-Reply-To: <1256337084.9460.9.camel@utx.utx.cz>
On 24-10-09 00:31, Stanislav Brabec wrote:
> Holger Hans Peter Freyther wrote:
>> On Friday 23 October 2009 13:07:06 Stanislav Brabec wrote:
>
>>> I think that the logic should be:
>>>
>>> libfoo.a exists and libfoo.so exists => put .a to -static.
>>>
>>> libfoo.a exists and libfoo.so does not exist => put .a to -dev.
>>>
>>> This logic will work as most users expect and will need no exception for
>>> glibc.
>>
>> This will add even more python code to package.bbclass and can not be realized
>> with a FILES_* change. I would prefer a stupid QA check for that as I don't
>> expect this to happen on many packages.
>
> That it will happen for all packages that don't provide shared library.
> These packages may end by broken -dev package with just the
> *.a => -static rule.
Actually it's /lib/*.a,/usr/lib/*.a -> static, which means...
> I am not sure, how many such packages exist in the tree, but here is a
> list of files in my work directory that would need special care:
... becomes a bit smaller:
> alsa-oss-1.0.17-r0: /usr/lib/libossredir.a
> binutils-2.18-r8.1: /usr/lib/libiberty.a
> bison-2.3-r0: /usr/lib/liby.a
> bridge-utils-1.4-r0: /usr/lib/libbridge.a
> flex-2.5.31-r4: /usr/lib/libfl.a
> gcc-4.3.3-r7.1: /usr/lib/libstdc++_pic.a
> gcc-4.3.3-r7.1: /usr/lib/libssp_nonshared.a
> gcc-4.3.3-r7.1: /usr/lib/libsupc++.a
> gdb-7.0-r0: /usr/lib/libbfd.a
> gdb-7.0-r0: /usr/lib/libopcodes.a
> gdb-7.0-r0: /usr/lib/libiberty.a
> 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
> libassuan-0.6.9-r0: /usr/lib/libassuan.a
> libatomics-ops-1.2-r2: /usr/lib/libatomic_ops_gpl.a
> libatomics-ops-1.2-r2: /usr/lib/libatomic_ops.a
> libsdl-x11-1.2.11-r8: /usr/lib/libSDLmain.a
> 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
> orbit2-2.14.17-r0: /usr/lib/libname-server-2.a
> tcl-8.4.19-r2: /usr/lib/libtclstub8.4.a
> tk-8.4.19-r0: /usr/lib/libtkstub8.4.a
I would be happy to take special care of the above recipe in my fixup
branch. Do we all agree that the above .a files need to go into -dev
packages? If so I'll add something like FILES_${PN}-static = "" to the
affected recipes
And these wouldn't need special handling:
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libnss.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libnssutil.a
> firefox-3.5.2-r2:
/usr/lib/firefox-devel-3.5.2/sdk/lib/libunicharutil_external_s.a
> firefox-3.5.2-r2:
/usr/lib/firefox-devel-3.5.2/sdk/lib/libembed_base_standalone.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libsoftokn.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libssl.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libembed_base_s.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libcrmf.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libsmime.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libxpcomglue_s.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libmozreg_s.a
> firefox-3.5.2-r2: /usr/lib/firefox-devel-3.5.2/sdk/lib/libxpcomglue.a
> gcc-cross-4.3.3-r7.1: /OE/build/tmp/cross/armv5te/lib64/libiberty.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libgfortran.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libssp.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libiberty.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libstdc++_pic.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libssp_nonshared.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libsupc++.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi/lib/libstdc++.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcc.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcc_eh.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgfortranbegin.a
> gcc-cross-4.3.3-r7.1:
/OE/build/tmp/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcov.a
> perl-5.8.8-r28: /usr/lib/perl/5.8.8/auto/DynaLoader/DynaLoader.a
> python-2.6.1-ml8.0: /usr/lib/python2.6/config/libpython2.6.a
> tcl-native-8.4.19-r2:
/OE/build/tmp/staging/x86_64-linux/usr/lib/libtclstub8.4.a
> tk-native-8.4.19-r0:
/OE/build/tmp/staging/x86_64-linux/usr/lib/libtkstub8.4.a
> gcc-4.3.3-r7.1: /usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcc.a
> gcc-4.3.3-r7.1: /usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcc_eh.a
> gcc-4.3.3-r7.1:
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgfortranbegin.a
> gcc-4.3.3-r7.1: /usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/libgcov.a
regards,
Koen
> Found by this bash command:
> find */*/image -name '*.a' | fgrep -v .debug | while read ; do if ! test -f "${REPLY%.a}.so" ; then PKG=$REPLY ; PKG=${PKG#*/} ; PKG=${PKG%%/*} ; echo $PKG: ${REPLY#*/image} ; fi ; done
>
>
> ________________________________________________________________________
> Stanislav Brabec
> http://www.penguin.cz/~utx/zaurus
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2009-10-24 8:49 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 [this message]
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
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='hbuf0m$esa$1@ger.gmane.org' \
--to=k.kooi@student.utwente.nl \
--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