Bug 452418 - Strange version format in /usr/lib/pkgconfig/devmapper.pc
Strange version format in /usr/lib/pkgconfig/devmapper.pc
Product: Fedora
Classification: Fedora
Component: lvm2 (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Alasdair Kergon
Fedora Extras Quality Assurance
: EasyFix
Depends On:
  Show dependency treegraph
Reported: 2008-06-22 12:04 EDT by Robert Scheck
Modified: 2008-11-01 16:22 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-11-01 16:16:17 EDT
Type: ---
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 Robert Scheck 2008-06-22 12:04:39 EDT
Description of problem:
/usr/lib/pkgconfig/devmapper.pc contains:

  Version: "1.02.26 (2008-06-06)"

which is a very strange format. Can we please change this to

  Version: 1.02.26

for future packages, please? Thank you. AFAIK the device-mapper is the only
package in the whole Fedora which does such things. Please correct, thanks.

Version-Release number of selected component (if applicable):

How reproducible:
Everytime, see above.

Actual results:
Strange version format in /usr/lib/pkgconfig/devmapper.pc

Expected results:
Version: 1.02.26 in /usr/lib/pkgconfig/devmapper.pc without any quotation marks
Comment 1 Robert Scheck 2008-06-22 12:29:53 EDT
Best fix would be upstream. Downstream suggestion would be:

  sed -e 's/Version: .*/Version: %{device_mapper_version}/' \
    -i $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libdevmapper.pc

after installation somewhere in %install.
Comment 2 Robert Scheck 2008-06-22 12:31:17 EDT
Ehm...devmapper, not libdevmapper of course, so:

  sed -e 's/Version: .*/Version: %{device_mapper_version}/' \
    -i $RPM_BUILD_ROOT%{_libdir}/pkgconfig/devmapper.pc
Comment 3 Robert Scheck 2008-07-27 10:41:26 EDT
Comment 4 Robert Scheck 2008-11-01 14:55:01 EDT
Comment 5 Alasdair Kergon 2008-11-01 16:16:17 EDT
Only an upstream patch will be considered of course, not a spec file workaround.

Added DM_LIB_PATCHLEVEL.  Will hit rawhide in f11 rebase.

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