Package: libreoffice Version: 5.2.0~rc1-1 Tags: patch Hi
debian/rules only supports two values for DEB_VENDOR: Debian and Ubuntu. As derivative distributions put other values in this variable, libreoffice cannot be built there. With this patch DEB_VENDOR is always initialized to either Debian or Ubuntu depending on which the host distribution derives from. This problem was found when trying to build libreoffice on ubuntuBSD but is likely to affect other derivative distributions. -- Jon Boden ubuntuBSD -- The power of FreeBSD kernel with familiarity of Ubuntu OS! http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
diff -Nur -x '*~' -x changelog ../debian/rules debian/rules --- ../debian/rules 2016-04-05 14:31:17.000000000 +0200 +++ debian/rules 2016-07-02 13:56:41.000000000 +0200 @@ -32,6 +32,11 @@ include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/vendor.mk + +# This rules file only supports two values for DEB_VENDOR: Debian and Ubuntu. Force it +# to Ubuntu for all Ubuntu derivatives (and use Debian otherwise). +DEB_VENDOR := $(shell dpkg-vendor --derives-from ubuntu && echo Ubuntu || echo Debian) + SHELL:=/bin/bash export gb_SHELL:=$(SHELL)