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

Bug 590904

Summary: dev-scheme/guile: generated .pc file has invalid Libs.private settings
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Scheme Project <scheme>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36339
See Also: https://github.com/gentoo/gentoo/pull/12401
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 714088    
Bug Blocks:    

Description SpanKY gentoo-dev 2016-08-10 04:17:23 UTC
here's what my /usr/lib64/pkgconfig/guile-2.0.pc says:
Libs.private:  /usr/lib64/libgmp.so /usr/lib64/libltdl.so /usr/lib64/libdl.so -L/usr/lib64/../lib64 -lffi       \
  /usr/lib64/libunistring.so -Wl,-O1 -Wl,--hash-style=gnu  -lcrypt  -lm

problems:
(1) it shouldn't be hardcoding full paths.  e.g. "/usr/lib64/libgmp.so" should be "-lgmp".
(2) it shouldn't be including LDFLAGS.  e.g. drop the -Wl stuff that is from my own settings.
Comment 1 Pacho Ramos gentoo-dev 2017-07-17 10:55:39 UTC
The hardcoded libs look fixed, but I still see LDFLAGS in 2.0.14 :/
Comment 2 Cyprien Nicolas (fulax) 2019-06-16 20:21:29 UTC
(In reply to Pacho Ramos from comment #1)
> The hardcoded libs look fixed, but I still see LDFLAGS in 2.0.14 :/

Same in guile-2.2 and guile-3.0. The pc file includes $GUILE_LIBS, which is set at configure time:

  meta/Makefile:GUILE_LIBS = -Wl,-O1 -Wl,--as-needed  -lcrypt  -lm

I'll check with upstream
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-05 19:07:58 UTC
This should be fixed in 2.2.7: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e71660fab93bfb5fcdccaa6a01e934d0c52bdf23.