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 642576 - Valac doesn't set the shared-library attribute in generated GIR
Valac doesn't set the shared-library attribute in generated GIR
Status: RESOLVED DUPLICATE of bug 585116
Product: vala
Classification: Core
Component: GObject Introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
: 656893 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-17 14:51 UTC by Mikkel Kamstrup Erlandsen
Modified: 2011-09-23 23:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample library to reproduce the problem (844 bytes, text/x-vala)
2011-02-17 14:51 UTC, Mikkel Kamstrup Erlandsen
Details

Description Mikkel Kamstrup Erlandsen 2011-02-17 14:51:52 UTC
Created attachment 181132 [details]
Sample library to reproduce the problem

When compiling with --library foo --gir=Foo-1.0.gir the generated gir doesn't include the shared-library attribute on the <namespace> element. This is required for the typelibs to work with PyGI and other dynamic introspection languages.

See fx. in Gtk-3.0.gir:

            <namespace name="Gtk"
                       version="3.0"
                       shared-library="libgtk-3.so.0"
                       c:identifier-prefixes="Gtk"
                       c:symbol-prefixes="gtk">
Comment 1 Fabian Deutsch 2011-08-21 17:29:14 UTC
Just use the --shared-library swtch of g-ir-compiler:
$ g-ir-compiler --shared-library=libbaboon.so.1

This should crash.
Comment 2 Fabian Deutsch 2011-08-21 17:38:53 UTC
*** Bug 656893 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Deutsch 2011-09-14 07:16:57 UTC
Can this be closed? It seems as i it is enough to pass the library to g-ir-compiler. See bug 656893.
Comment 4 Philip Withnall 2011-09-14 16:23:45 UTC
There's also bug #585116. It would be nice if Vala added the attribute and automatically worked out the right libtool filename for the library; see bug #658002.
Comment 5 Philip Withnall 2011-09-14 18:06:40 UTC
See also: bug #659078.
Comment 6 Evan Nemerson 2011-09-23 23:23:06 UTC

*** This bug has been marked as a duplicate of bug 585116 ***