Bug 1256862

Summary: devmapper.pc references non-existing *.pc
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.129-1.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-27 08:29:11 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:
Bug Depends On:    
Bug Blocks: 1240061    

Description Ralf Corsepius 2015-08-25 15:39:35 UTC
Description of problem:

The devmapper.pc as shipped with device-mapper-devel-1.02.105-1.fc24 is broken.

It tries to reference another *.pc file (librt.pc), which does not exist and causes calls to /usr/bin/pkg-config to fail.

Version-Release number of selected component (if applicable):
device-mapper-devel-1.02.105-1.fc24

How reproducible:
Always

Steps to Reproduce:
1. mock -r fedora-rawhide-x86_64 --init
2. mock -r fedora-rawhide-x86_64 --install \
  'pkgconfig(devmapper)' 'pkgconfig(libselinux)' 'pkgconfig(libudev)'
3. mock -r fedora-rawhide-x86_64 --shell
4. Run pkg-config inside of the chroot:
# pkg-config --cflags devmapper
Package librt was not found in the pkg-config search path.
Perhaps you should add the directory containing `librt.pc'
to the PKG_CONFIG_PATH environment variable
Package 'librt', required by 'devmapper', not found


Actual results:
cf. above

Expected results:
function.

Additional info:

- The problem here is the reference to librt in /usr/*/pkg-config/devmapper.pc:
...
Libs: -L${libdir} -ldevmapper
Requires.private: libselinux libudev librt

pkg-config expects to find a librt.pc.

This file does not exist, so pkg config errors out.

- This bug already is causing FTBFSs

Comment 1 Peter Rajnoha 2015-08-27 08:29:11 UTC
Fixed in lvm2-2.02.129-1.fc24/device-mapper-1.02.106-1.fc24.