After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679315 - g-i: avoid multiple libraries in the shared-library tag
g-i: avoid multiple libraries in the shared-library tag
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other Mac OS
: Normal enhancement
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 710001
 
 
Reported: 2012-07-03 09:59 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2013-10-12 17:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johan (not receiving bugmail) Dahlin 2012-07-03 09:59:20 UTC
Using multiple libraries causes problems for the C# bindings and will for similiar languages such as Java when there are bindings for them.

It's actually not needed:

12:45 <jdahlin> shana:: I think you're confused about what the shared-library attribute means.
12:45 <jdahlin> shana: it actually means; a comma separated lists of libraries that need to be dynamically loaded in the global symbol namespace in the application

GstBase-0.10.gir:             shared-library="libgstreamer-0.10.so.0,libgstbase-0.10.so.0"
GstCheck-0.10.gir:             shared-library="libgstreamer-0.10.so.0,libgstcheck-0.10.so.0"
GstController-0.10.gir:             shared-library="libgstreamer-0.10.so.0,libgstcontroller-0.10.so.0"
GstNet-0.10.gir:             shared-library="libgstreamer-0.10.so.0,libgstnet-0.10.so.0"
GstPbutils-0.10.gir:             shared-library="libgstpbutils-0.10.so.0,libgstreamer-0.10.so.0"

The right thing here is to remove libgstreamer-0.10.so from all girs.

I did a quick check and this still applies to HEAD.
Comment 1 Tim-Philipp Müller 2012-10-28 17:21:05 UTC
commit 21a74a6b79ad7395c9d70b202e30b859752dc4fd
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Oct 28 17:17:49 2012 +0000

    libs: g-i: avoid multiple libraries in the shared-library tag
    
    Using multiple libraries causes problems for the C# bindings and
    will for similiar languages such as Java when there are bindings
    for them.
    
    Also change --library=libgstfoo-X.la to --library=gstfoo-X as
    the man page suggests it should be done.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679315
Comment 2 Tim-Philipp Müller 2012-10-28 18:02:10 UTC
And:


commit 973f4f09ea86c70dd57e9276691fa8fe899adcca
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Oct 28 17:59:27 2012 +0000

    audio: try harder to make g-i use the build-tree libgsttag
    
    without adding additional --library= tags, which shouldn't be there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679315

commit 9453d7c287d00c7579a09de1e6acaca1003c319c
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Oct 28 17:52:54 2012 +0000

    pbutils: try harder to make g-i use the build-tree libgsttag,-audio, and -video
    
    without adding additional --library= tags, which shouldn't be there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679315

commit e39fbe6b7e14ccccbf47a5726a18eb963535063b
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Oct 28 17:34:59 2012 +0000

    g-i: change g-ir-scanner arg --library=libgstfoo-X.la to --library=gstfoo-X
    
    As it should be according to the man page.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679315


Fingers crossed it won't break something for someone..