Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153807 - dev-libs/glib should install both static and dynamic libs
Summary: dev-libs/glib should install both static and dynamic libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 153806
  Show dependency tree
 
Reported: 2006-11-02 05:54 UTC by Cyrius
Modified: 2006-11-02 19:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add shared and static flag to glib (glib-syslog-ng.patch,1.24 KB, patch)
2006-11-02 05:55 UTC, Cyrius
Details | Diff
patch to glib-2.12.4.ebuild to always build static library as well as dynamic. (glib-2.12.4.ebuild.patch,515 bytes, patch)
2006-11-02 16:06 UTC, Mr. Bones. (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cyrius 2006-11-02 05:54:57 UTC
When compiling the new version of syslog-ng, the compil failed cause syslog-ng must be dynamic when glib is shared. Or syslog-ng must be static when glib is static.
So i add static and shared use flags to glib to permit the users to do so.
Comment 1 Cyrius 2006-11-02 05:55:34 UTC
Created attachment 101044 [details, diff]
Patch to add shared and static flag to glib
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-02 07:02:55 UTC
Comment on attachment 101044 [details, diff]
Patch to add shared and static flag to glib

This is plain wrong. If a package can install both static and dynamic libs, then it should install both by default, without any flags. If dev-libs/glib doesn't do it, then it's an ebuild bug.
Comment 3 Cyrius 2006-11-02 07:12:42 UTC
What about the hardened version then ?
If i good remember, some grsecurity or pax options force us to do only static one.
This means that the shared part couldn't be done.

Am i right when saying that ? If not, i will do both then.
Comment 4 John N. Laliberte (RETIRED) gentoo-dev 2006-11-02 08:12:08 UTC
we should probably be passing --enable-static since its off by default.
Comment 5 Jimmy.Jazz 2006-11-02 12:37:01 UTC
(In reply to comment #4)
> we should probably be passing --enable-static since its off by default.
> 

Hi,

i have proposed a ebuild for glib to build both static and dynamic libs. In my case it was useful for evms

Have a look at bug number #152293

Jj
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2006-11-02 16:06:11 UTC
Created attachment 101100 [details, diff]
patch to glib-2.12.4.ebuild to always build static library as well as dynamic.

Here's a patch to the latest ebuild to also always build the static library.
Comment 7 John N. Laliberte (RETIRED) gentoo-dev 2006-11-02 19:01:04 UTC
thanks, in cvs with 2.12.4-r1.