Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 270350

Summary: sys-fs/device-mapper, sys-fs/lvm2: need to install pkgconfig files
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: agk, jeremyhu, kanelxake, nirbheek
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix Libs.private for libdevmapper.pc.in

Description Chris Mayo 2009-05-18 19:49:13 UTC
For me adding to econf:
--enable-pkgconfig

also installs:
/usr/lib/pkgconfig/devmapper-event.pc
/usr/lib/pkgconfig/devmapper.pc
Comment 1 Chris Mayo 2009-05-18 20:12:37 UTC
OK, a bit more to it than that. It was fixed in #235256 for device-mapper-1.02.27

also needs --libdir=/$(get_libdir)

but that breaks in 1.02.28:
mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir"

but this seems to be deletable to me
Comment 2 Chris Mayo 2009-05-23 15:11:29 UTC
pc files are going in /usr/lib instead of /usr/lib64

device-mapper-1.02.29 looks like it has a fix for this by introducing --with-usrlibdir:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/device-mapper/configure.in.diff?r1=1.49&r2=1.50&cvsroot=dm

This patch applies OK to 1.02.28 and then adding:
--with-usrlibdir=/usr/$(get_libdir)

works for me.

Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-25 21:59:09 UTC
This was raised by nirbheek last night on the gentoo-dev IRC channel.

1. device-mapper won't be getting more fixes. Migration to lvm2 is at hand (upstream merged device-mapper into lvm2).
2. lvm2's .pc.in files have bad hardcoded libraries (like hardcoding -lselinux and -lsepol and missing ncurses/readline) that I've asked nirbheek to fix.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-25 21:59:53 UTC
nirbheek: I asked you to fix this stuff last night.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-25 23:25:59 UTC
*** Bug 271179 has been marked as a duplicate of this bug. ***
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-05 21:08:10 UTC
nirbheek: ping
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-07 03:20:04 UTC
Created attachment 196983 [details, diff]
Fix Libs.private for libdevmapper.pc.in

(In reply to comment #3)
> 2. lvm2's .pc.in files have bad hardcoded libraries (like hardcoding -lselinux
> and -lsepol and missing ncurses/readline) that I've asked nirbheek to fix.
> 

Hardcoded SELinux libraries should be fixed by the attached patch. The ncurses/readline stuff isn't linked to by libdevmapper.so, so shouldn't be required for statically linking libdevmapper. However, that stuff is used by other libdevmapper-event.so etc, which is covered by a different (non-broken) pkgconfig file :-)

# lddtree.sh /lib/libdevmapper.so.1.02 
libdevmapper.so.1.02 => /lib/libdevmapper.so.1.02 (interpreter => none)
    libc.so.6 => /lib/libc.so.6
        ld-linux.so.2 => /lib/ld-linux.so.2
Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-07 11:02:05 UTC
*** Bug 275101 has been marked as a duplicate of this bug. ***
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-22 00:41:03 UTC
Merged in -r2