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 555303 - Use --library-path when scanning headers in gir-repo
Use --library-path when scanning headers in gir-repo
Status: RESOLVED NOTABUG
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on: 555293
Blocks:
 
 
Reported: 2008-10-06 21:57 UTC by Lucas Rocha
Modified: 2015-02-07 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple patch (7.74 KB, patch)
2008-10-06 21:59 UTC, Lucas Rocha
rejected Details | Review

Description Lucas Rocha 2008-10-06 21:57:36 UTC
So that we make sure we find the referenced libs (even if they on non-standard path)
Comment 1 Lucas Rocha 2008-10-06 21:59:38 UTC
Created attachment 120060 [details] [review]
Simple patch
Comment 2 Colin Walters 2008-10-07 00:14:39 UTC
Hm, it doesn't work to set LD_LIBRARY_PATH?
Comment 3 Colin Walters 2008-10-07 00:17:16 UTC
The reason I ask is that I'm not sure how/whether LPATH works on Windows and OS X.  

My ideal actually is that we can drop usage of ctypes' find_library in favor of GModule but that needs figuring out.
Comment 4 Lucas Rocha 2008-10-07 02:41:05 UTC
(In reply to comment #3)
> The reason I ask is that I'm not sure how/whether LPATH works on Windows and OS
> X.  
> 
> My ideal actually is that we can drop usage of ctypes' find_library in favor of
> GModule but that needs figuring out.

Yeah, I think we should drop usage of find_library as, based on the documentation[1], it does't seem portable enough for the purposes we're using it.

find_library doesn't really consult LD_LIBRARY_PATH[2]. Using LPATH seems to work (honestly, I'm sure why).

[1] http://www.python.org/doc/2.5.2/lib/ctypes-finding-shared-libraries.html
[2] http://bugs.python.org/issue2936
Comment 5 Lucas Rocha 2008-10-08 18:00:07 UTC
This patch is basically pointless as we get the list of paths from the passed pkgs. Closing.
Comment 6 André Klapper 2015-02-07 16:57:01 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]