From 716ff03b6c41de633f3bbe21b3ee607aa63f02cf Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 3 Sep 2017 23:53:57 -0400 Subject: [PATCH] debian: clean up conditional fuse2fs pacakge build rules There's no point conditionalizing fuse2fs in the control file, since we control whether or not fuse2fs is built in the rules file, and the control file is going to be the same when built on all of the debian build servers. Also key off of DEB_HOST_ARCH_OS to determine whether or not we are building for the Hurd, and define it so the right thing happens if ./debian/rules is run by hand on a Hurd system. Signed-off-by: Theodore Ts'o --- debian/control.in | 2 -- debian/rules | 11 +++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/debian/control.in b/debian/control.in index a8ba5f5..d851b3d 100644 --- a/debian/control.in +++ b/debian/control.in @@ -6,7 +6,6 @@ Build-Depends: gettext, texinfo, pkg-config, libfuse-dev [linux-any kfreebsd-any Standards-Version: 4.0.0 Homepage: http://e2fsprogs.sourceforge.net -ifdef(`FUSE2FS',`` Package: fuse2fs Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} @@ -15,7 +14,6 @@ Description: ext2 / ext3 / ext4 file system driver for FUSE fuse2fs is a FUSE file system client that supports reading and writing from devices or image files containing ext2, ext3, and ext4 file systems. -'')dnl ifdef(`E2FSCK_STATIC',`` Package: e2fsck-static diff --git a/debian/rules b/debian/rules index a2eac6d..81eafc3 100755 --- a/debian/rules +++ b/debian/rules @@ -22,11 +22,12 @@ DEB_HOST_OS ?= $(shell dpkg-architecture -qDEB_HOST_OS) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) # Allow distro-specific behaviour DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian) -ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu) +ifeq ($(DEB_HOST_ARCH_OS), hurd) SKIP_FUSE2FS=yes endif @@ -180,12 +181,6 @@ else M4_ARGS+=-UUDEB_PKGS endif -ifeq ($(SKIP_FUSE2FS),) -M4_ARGS+=-DFUSE2FS -else -M4_ARGS+=-UFUSE2FS -endif - debian-files: debian/control mrproper: clean @@ -333,7 +328,7 @@ ifneq ($(BUILD_E2FSCK_STATIC),no) cp ${mandir}/man8/e2fsck.8 ${mandir}/man8/e2fsck.static.8 endif -ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu) +ifeq ($(DEB_HOST_ARCH_OS), hurd) ${INSTALL} -m 0644 misc/mke2fs-hurd.conf ${tmpdir}/etc/mke2fs.conf endif -- 1.8.3.1