Bug 1937822

Summary: geos-config and pkgconfig are both wrong
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: geosAssignee: Sandro Mani <manisandro>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: devrim, jmlich83, manisandro, tom
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-12 12:48:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry James 2021-03-11 15:43:12 UTC
Description of problem:
On a Rawhide x86_64 machine:
$ geos-config --clibs
-L/usr/lib@LIB_SUFFIX -lgeos_c
$ pkgconf --libs geos
-L/usr/lib -lgeos_c 

Both of them should either specify "-L/usr/lib64" or no -L flag at all.  The effects of this can be seen in the latest python-shapely build log:

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
cannot open shared object from 'geos-config --clibs': '-L/usr/lib@LIB_SUFFIX -lgeos_c'
there were 2 guess(es) for this path:
	/usr/lib@LIB_SUFFIX/libgeos_c.so
	/usr/lib@LIB_SUFFIX/libgeos_c.so.1

Version-Release number of selected component (if applicable):
geos-3.9.0-2.fc34.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install geos on a 64-bit Rawhide machine
2. Run "geos-config --clibs" and "pkgconf --libs geos"

Actual results:
The incorrect results shown above.

Expected results:
Correct library paths or no explicit library paths.

Additional info:

Comment 1 Sandro Mani 2021-03-12 12:48:51 UTC
I believe you reproduced this with geos-3.9.1-1.fc35, it should be fixed with geos-3.9.1-2.fc35.

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