Bug 2018492

Summary: pkg-config returns bad library flags on 64-bit
Product: [Fedora] Fedora Reporter: veractor
Component: libsepolAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 34CC: dwalsh, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libsepol-3.3-2.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-15 05:47:01 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 veractor 2021-10-29 13:59:34 UTC
Description of problem:
On 64-bit Fedora, pkgconfig returns bad library flags for libsepol that eventually causes compiler errors when called from build systems in projects where libsepol is a dependency.

Version-Release number of selected component (if applicable):
3.2-1

How reproducible:
Very.

Steps to Reproduce:
1. Install pkg-config.
2. Install libsepol-devel-3.2-1.fc34.
3. Run `pkg-config --libs libsepol`.

Actual results:
`-L/usr/lib -lsepol`

Expected results:
`-lsepol`

Additional info:
Should not be a change in upstream as the Makefile specifies an overridable default LIBDIR.

Comment 2 Fedora Update System 2021-11-11 16:12:44 UTC
FEDORA-2021-67efe88c29 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-67efe88c29

Comment 3 Fedora Update System 2021-11-12 01:03:00 UTC
FEDORA-2021-67efe88c29 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-67efe88c29`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-67efe88c29

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-11-15 05:47:01 UTC
FEDORA-2021-67efe88c29 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.