Package: lvm2 Version: 2.02.168-2 I downloaded the package source files by running "apt-get source lvm2" Then I ran "./configure && make && make install DESTDIR=$HOME/tempfolder" The resulting libdevmapper.so is symbolically linked to /lib/libdevmapper.so instead of ../../lib/libdevmapper.so
This is unexpected. Since GNU coding standards strongly recommend that packages support DESTDIR, I hope this will be fixed soon. The fix seems to be to reverse the patch made to USRLIB_RELPATH in make.tmpl.in In the upstream source, its USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | $(AWK) -f $(top_srcdir)/scripts/relpath.awk) In the Debian source, its USRLIB_RELPATH = @libdir@/ I can see that this change is present since v2.02.95-8 (Wheezy) and I am not sure why it was made. It might be necessary to also patch older versions and not just v2.02.168-2. I am using Debian Stretch with all packages updated as of today.