Bug 2022360

Summary: pkg-config returns bad library flags on 64-bit
Product: Red Hat Enterprise Linux 9 Reporter: Petr Lautrbach <plautrba>
Component: libsepolAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: apeetham, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libsepol-3.3-2.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:50:55 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 Petr Lautrbach 2021-11-11 13:01:00 UTC
This bug was initially created as a copy of Bug #2018492


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.


For fix, see

https://src.fedoraproject.org/rpms/libsepol/pull-request/22

Comment 7 errata-xmlrpc 2022-05-17 15:50:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: libsepol), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3924