Bug#806082: multipath-tools: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Ritesh Raj Sarraf rrs at researchut.com
Mon Nov 30 15:03:16 UTC 2015


Control: tag -1 +confirmed pending

On Tue, 2015-11-24 at 15:27 +0000, Santiago Vila wrote:
> 
> dh_testroot
> dh_prep
> dh_installdirs
> mkdir -p /<<BUILDDIR>>/multipath-tools-
> 0.5.0+git1.656f8865/debian/tmp/sbin
> /usr/bin/make install INSTALL_PROGRAM=install -s
> DESTDIR=/<<BUILDDIR>>/multipath-tools-0.5.0+git1.656f8865/debian/tmp
> LIB=/lib SYSTEMDPATH=/lib USE_SYSTEMD=1
> install: cannot stat 'libmultipath.so.0': No such file or directory
> Makefile:62: recipe for target 'install' failed
> make[2]: *** [install] Error 1
> Makefile:52: recipe for target 'recurse_install' failed
> make[1]: *** [recurse_install] Error 2
> debian/rules:67: recipe for target 'install' failed
> make: *** [install] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave
> error exit status 2
> -------------------------------------------------------------------
> -------------


Hmmmm.... Most of multipath-tools package is architecture dependent
code. I wonder who added that in the indep section.

There is one exception though, multipath-tools-boot package, which is a
small package with just config files...

Does the following change look good to you? With this change, the build
succeeds.

commit ac05992e22b9eb828de5c68e01cade95ff95a76d
Author: Ritesh Raj Sarraf <rrs at debian.org>
Date:   Mon Nov 30 20:23:51 2015 +0530

    Fix build for arch independent targets
    
    Closes: #806082

diff --git a/debian/rules b/debian/rules
index b798c11..395a0e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,7 +27,7 @@ include /usr/share/dpkg/buildflags.mk
 build: build-arch build-indep
 
 build-arch: build-multipath-udeb-stamp build-stamp
-build-indep: build-stamp
+build-indep: build-multipath-udeb-stamp
 
 build-stamp:
        dh_testdir




If this fixes your issues, please just drop a note. I won't upload immediately, but knowing that the fix is fine, helps.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20151130/e0cb639c/attachment.sig>


More information about the pkg-lvm-maintainers mailing list