Bug 1256871

Summary: devmapper.pc: Requires: pkgconfig(....) missing
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:28:47 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:51:10 UTC
Description of problem:

The fc24 device-mapper-devel rpm lacks the "R: pkgconfig()":
# rpm -q --requires -p device-mapper-devel-1.02.105-1.fc24.x86_64.rpm  | grep pkgconfig
..
pkgconfig

For comparison, the same for fc23:
# rpm -q --requires -p device-mapper-devel-1.02.102-2.fc23.x86_64.rpm | grep pkgconfig
...
pkgconfig
pkgconfig(libselinux)
pkgconfig(libudev)


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

Additional info:
- I am not sure who is to blame: the lvm2 packaging or rpm. 
  I would not want to exclude this could be a regression in rpm.
- This bug already is causing FTBFSs in other packages.

Comment 1 Ralf Corsepius 2015-08-25 16:07:07 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1256862
seems to be the cause of this bug.

Proof: When removing librt/@RT_PC@ from libdm/libdevmapper.pc.in by brute force, the device-mapper-devel package receives the missing pkgconfig(...) deps.

diff --git a/lvm2.spec b/lvm2.spec
index 0fe4a89..5a47840 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -103,6 +103,7 @@ or more physical volumes and creating one or more logical volumes
 %setup -q -n LVM2.%{version}
 %patch0 -p1 -b .preferred_names
 %patch1 -p1 -b .udev_no_mpath
+sed -i -e 's, @RT_PC@,,' libdm/libdevmapper.pc.in
 
 %build
 %define _default_pid_dir /run


# rpm -q --requires -p results_lvm2/2.02.128/1.fc24/device-mapper-devel-1.02.105-1.fc24.x86_64.rpm | grep pkgconfig
pkgconfig
pkgconfig(libselinux)
pkgconfig(libudev)

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