This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1312630 - pkgconfig doesn't find libparted
pkgconfig doesn't find libparted
Product: Fedora
Classification: Fedora
Component: parted (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Brian Lane
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-02-28 03:54 EST by Mattia Verga
Modified: 2016-03-05 01:21 EST (History)
3 users (show)

See Also:
Fixed In Version: parted-3.2-16 parted-3.2-16.fc23
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-03-05 01:21:13 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mattia Verga 2016-02-28 03:54:53 EST
I'm trying to use pkgconfig for BuildRequires in a .spec file.
Trying to add
BuildRequires:  pkgconfig(libparted)
errore: Dipendenze di build fallite:
        pkgconfig(libparted) necessario a kpmcore-2.0.1-1.fc23.x86_64

But I have parted-devel installed and libparted.pc is in /usr/lib64/pkgconfig/. In fact I can find it from CLI:
# pkg-config --modversion libparted
Comment 1 Christophe Fergeau 2016-02-29 09:22:16 EST
BuildRequires:  pkgconfig(libparted)
works thanks to some magic tags added by rpmbuild when the rpm is built.
For example:

$ rpm -q --provides glib2-devel |grep pkgconfig
pkgconfig(gio-2.0) = 2.46.2
pkgconfig(gio-unix-2.0) = 2.46.2
pkgconfig(glib-2.0) = 2.46.2
pkgconfig(gmodule-2.0) = 2.46.2
pkgconfig(gmodule-export-2.0) = 2.46.2
pkgconfig(gmodule-no-export-2.0) = 2.46.2
pkgconfig(gobject-2.0) = 2.46.2
pkgconfig(gthread-2.0) = 2.46.2

$ rpm -q --provides parted-devel
parted-devel = 3.2-11.fc23
parted-devel(x86-64) = 3.2-11.fc23

This most likely indicates an issue with parted spec file, this is probably not related to pkgconfig.
Comment 2 Brian Lane 2016-02-29 12:49:00 EST
I don't see anything obviously wrong with parted. The .spec has:


which puts it into /usr/lib64/pkgconfig/
Comment 3 Matthias Clasen 2016-02-29 14:02:56 EST
I think you may need a buildrequires against pkgconfig to make the magic dependency extraction work ?
Comment 4 Brian Lane 2016-02-29 19:10:59 EST
It ends up that switching from using %{_exec_prefix}/%{_lib} to %{_libdir} handles it.
Comment 5 Fedora Update System 2016-03-02 19:01:46 EST
parted-3.2-16.fc23 has been submitted as an update to Fedora 23.
Comment 6 Fedora Update System 2016-03-03 16:58:09 EST
parted-3.2-16.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:
Comment 7 Fedora Update System 2016-03-05 01:21:10 EST
parted-3.2-16.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, 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.