For me adding to econf: --enable-pkgconfig also installs: /usr/lib/pkgconfig/devmapper-event.pc /usr/lib/pkgconfig/devmapper.pc
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
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.
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.
nirbheek: I asked you to fix this stuff last night.
*** Bug 271179 has been marked as a duplicate of this bug. ***
nirbheek: ping
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
*** Bug 275101 has been marked as a duplicate of this bug. ***
Merged in -r2