Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 378769

Summary: dev-libs/gmime : add USE=static-libs support
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: enhancement CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2011-08-11 12:27:08 UTC
This package installs also static libs ".a" please provide do add relative
USE. TIA

>>> /usr/lib64/libgmime-2.4.a
>>> /usr/lib64/libgmime-2.4.so.2.4.24
>>> /usr/lib64/libgmime-2.4.la

Please remove also .la if is not needed.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-11 13:27:45 UTC
There is no good reason for dev-libs/gmime to install static libraries and .la files at all; every package that uses it should be using dynamic linking and the pkg-config file.

I recommend adding --disable-static to G2CONF and 'find "${D}" -name '*.la' -exec rm -f {} + || die' to src_install, like in the overlay: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commitdiff;h=51490e1f29a1add04c2cd2ed0719900d680ab5c6
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-11 13:41:26 UTC
Actually, may want to add USE=static-libs after all since it looks like some users of gmime (e.g. net-mail/dbmail) do support static linking.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-08-14 04:36:39 UTC
USE=static-libs added, and .la files dropped conditionally, thanks for reporting.