Bug#849570: libc++: FTBFS when built with dpkg-buildpackage -A (find: No such file or directory)

Santiago Vila sanvila at debian.org
Wed Dec 28 19:29:46 UTC 2016


Package: src:libc++
Version: 3.9.0-3
Severity: serious
Tags: patch

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]

make[1]: Leaving directory '/build/libc++-cQdYIv/libc++-3.9.0'
   debian/rules override_dh_install
make[1]: Entering directory '/build/libc++-cQdYIv/libc++-3.9.0'
dh_install
find debian/libc++-test -name *.pyc -delete
find: 'debian/libc++-test': No such file or directory
debian/rules:81: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/build/libc++-cQdYIv/libc++-3.9.0'
debian/rules:58: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------

This happens because we are creating arch-independent packages only,
so debian/libc++-test/[...] does not exist.

Trivial (but untested) patch follows.

Please consider uploading in source-only form so that we can detect this
just by looking at official build logs here:

https://buildd.debian.org/status/package.php?p=libc%2b%2b

Thanks.

--- a/debian/rules
+++ b/debian/rules
@@ -77,7 +77,7 @@ override_dh_auto_install:
 	mkdir -p $(CXXABI_DEB_INST)/usr/include/c++/v1/
 	mv $(CXX_DEB_INST)/usr/include/c++/v1/*cxxabi*.h $(CXXABI_DEB_INST)/usr/include/c++/v1/
 
-override_dh_install:
+override_dh_install-arch:
 	dh_install
 	find debian/libc++-test -name *.pyc -delete
 	find debian/libc++abi-test -name *.pyc -delete



More information about the Pkg-llvm-team mailing list