Bug 2022360 - pkg-config returns bad library flags on 64-bit
Summary: pkg-config returns bad library flags on 64-bit
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libsepol
Version: 9.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-11 13:01 UTC by Petr Lautrbach
Modified: 2022-05-17 16:14 UTC (History)
5 users (show)

Fixed In Version: libsepol-3.3-2.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:50:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-102512 0 None None None 2021-11-11 13:02:53 UTC
Red Hat Product Errata RHBA-2022:3924 0 None None None 2022-05-17 15:51:00 UTC

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


Note You need to log in before you can comment on or make changes to this bug.