diff -Nru reiser4progs-1.1.0/debian/changelog reiser4progs-1.1.0/debian/changelog --- reiser4progs-1.1.0/debian/changelog 2016-10-21 14:39:50.000000000 +0000 +++ reiser4progs-1.1.0/debian/changelog 2016-11-18 15:25:49.000000000 +0000 @@ -1,3 +1,10 @@ +reiser4progs (1.1.0-3) unstable; urgency=medium + + * Compile with -fPIC on mips and mipsel. Patch by Radovan Birdic. + (Closes: #844739) + + -- Felix Zielcke Fri, 18 Nov 2016 16:25:49 +0100 + reiser4progs (1.1.0-2) unstable; urgency=medium * Build-depend on libaal >= 1.0.6-2 to fix FTBFS (Closes: #841613) diff -Nru reiser4progs-1.1.0/debian/control reiser4progs-1.1.0/debian/control --- reiser4progs-1.1.0/debian/control 2016-10-21 14:39:50.000000000 +0000 +++ reiser4progs-1.1.0/debian/control 2016-11-18 15:25:49.000000000 +0000 @@ -2,7 +2,7 @@ Section: admin Priority: optional Maintainer: Felix Zielcke -Build-Depends: debhelper (>= 9), cdbs, libaal-dev (>= 1.0.6-2), libaal-dev (<< 1.0.7), uuid-dev, libreadline-gplv2-dev, dh-autoreconf +Build-Depends: debhelper (>= 9), cdbs, libaal-dev (>= 1.0.6-3), libaal-dev (<< 1.0.7), uuid-dev, libreadline-gplv2-dev, dh-autoreconf Standards-Version: 3.9.6 Homepage: https://reiser4.wiki.kernel.org diff -Nru reiser4progs-1.1.0/debian/rules reiser4progs-1.1.0/debian/rules --- reiser4progs-1.1.0/debian/rules 2014-07-19 15:00:54.000000000 +0000 +++ reiser4progs-1.1.0/debian/rules 2016-11-18 15:25:49.000000000 +0000 @@ -25,7 +25,14 @@ endif export DEB_BUILD_MAINT_OPTIONS=hardening=-format -export DEB_CFLAGS_MAINT_APPEND = -I$(CURDIR) + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) + export DEB_CFLAGS_MAINT_APPEND = -I$(CURDIR) -fPIC + else + export DEB_CFLAGS_MAINT_APPEND = -I$(CURDIR) +endif + CFLAGS = `dpkg-buildflags --get CFLAGS` CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` LDFLAGS = `dpkg-buildflags --get LDFLAGS`