Bug 2018492 - 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: Fedora
Classification: Fedora
Component: libsepol
Version: 34
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-29 13:59 UTC by veractor
Modified: 2022-04-07 12:03 UTC (History)
4 users (show)

Fixed In Version: libsepol-3.3-2.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-15 05:47:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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