Bug#765354: llvm-defaults: lldb: fix FTBFS on ppc64el/arm64 (patch)

Mauricio Faria de Oliveira mauricfo at linux.vnet.ibm.com
Tue Oct 14 12:08:51 UTC 2014

Package: src:llvm-defaults
Version: 0.24
Tags: patch
User: debian-powerpc at lists.debian.org
Usertags: ppc64el

The recent packaging changes for (not) building lldb do FTBFS
on ppc64el [1] and arm64 [2]. Sorry for not catching it earlier.

The attached patch fixes it by adding lldb to no_packages on
non-LLDB_SUPPORTED archs, so that 'dh_builddeb -Nlldb' may happen.

May you please consider it for an upload?


	dh_builddeb -a -Nllvm-gcc
	dpkg-deb: building package `llvm' in `../llvm_3.5-24_ppc64el.deb'.
	dpkg-deb: error: failed to open package info file 
`debian/lldb/DEBIAN/control' for reading: No such file or directory
	dh_builddeb: dpkg-deb --build debian/lldb .. returned exit code 2
	debian/rules:220: recipe for target 'binary-arch' failed
	make: *** [binary-arch] Error 1
	dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
status 2

	dh_builddeb -a -Nllvm-gcc -Nlldb
	dpkg-deb: building package `llvm' in `../llvm_3.5-24ppc64el1_ppc64el.deb'.
	dpkg-genchanges: warning: package lldb in control file but not in files 
	dpkg-genchanges: including full source code in upload
	 dpkg-source --after-build llvm-defaults-0.24
	dpkg-buildpackage: full upload; Debian-native package (full source is 



Mauricio Faria de Oliveira
IBM Linux Technology Center
-------------- next part --------------
diff -Nru llvm-defaults-0.24/debian/changelog llvm-defaults-0.24ppc64el1/debian/changelog
--- llvm-defaults-0.24/debian/changelog	2014-09-25 05:40:37.000000000 -0300
+++ llvm-defaults-0.24ppc64el1/debian/changelog	2014-10-14 08:54:47.000000000 -0300
@@ -1,3 +1,9 @@
+llvm-defaults (0.24ppc64el1) UNRELEASED; urgency=medium
+  * Don't dh_builddeb lldb on non-LLDB_SUPPORTED archs (fix FTBFS on ppc64el/arm64).
+ -- Mauricio Faria de Oliveira <mauricfo at linux.vnet.ibm.com>  Tue, 14 Oct 2014 08:52:50 -0300
 llvm-defaults (0.24) unstable; urgency=medium
   * Upload in unstable
diff -Nru llvm-defaults-0.24/debian/rules llvm-defaults-0.24ppc64el1/debian/rules
--- llvm-defaults-0.24/debian/rules	2014-09-03 06:07:52.000000000 -0300
+++ llvm-defaults-0.24ppc64el1/debian/rules	2014-10-14 08:52:37.000000000 -0300
@@ -51,12 +51,14 @@
 distribution := $(shell lsb_release -is)
 all_packages   := llvm llvm-runtime llvm-dev libllvm-ocaml-dev clang libclang1 libclang-dev
+no_packages    := llvm-gcc # must be built?
 LLDB_SUPPORTED=amd64 armel armhf i386  kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 powerpc mips mipsel
 ifneq (,$(filter $(DEB_HOST_ARCH),$(LLDB_SUPPORTED)))
     all_packages += lldb
+    no_packages += lldb
-no_packages	   := llvm-gcc # must be built?
 packages := $(filter-out $(no_packages), $(all_packages))

More information about the Pkg-llvm-team mailing list