debian: don't build the fuse2fs package for the Hurd OS

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian
Theodore Ts'o 2016-05-31 01:48:18 -04:00
parent 04f34e7182
commit d3c0595704
2 changed files with 17 additions and 3 deletions

6
debian/control.in vendored
View File

@ -7,18 +7,20 @@ Source: e2fsprogs
Section: admin Section: admin
Priority: required Priority: required
Maintainer: Theodore Y. Ts'o <tytso@mit.edu> Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
Build-Depends: gettext, texinfo, pkg-config, gcc-multilib [mips mipsel], libfuse-dev, libattr1-dev, debhelper (>= 9.0), UTIL_LINUX_NG_DEFINES m4 Build-Depends: gettext, texinfo, pkg-config, gcc-multilib [mips mipsel], libfuse-dev [linux-any kfreebsd-any], libattr1-dev, debhelper (>= 9.0), UTIL_LINUX_NG_DEFINES m4
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: http://e2fsprogs.sourceforge.net Homepage: http://e2fsprogs.sourceforge.net
ifdef(`FUSE2FS',``
Package: fuse2fs Package: fuse2fs
Priority: optional Priority: optional
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Architecture: any Architecture: linux-any kfreebsd-any
Description: ext2 / ext3 / ext4 file system driver for FUSE Description: ext2 / ext3 / ext4 file system driver for FUSE
fuse2fs is a FUSE file system client that supports reading and fuse2fs is a FUSE file system client that supports reading and
writing from devices or image files containing ext2, ext3, and ext4 writing from devices or image files containing ext2, ext3, and ext4
file systems. file systems.
'')dnl
ifdef(`E2FSCK_STATIC',`` ifdef(`E2FSCK_STATIC',``
Package: e2fsck-static Package: e2fsck-static

14
debian/rules vendored
View File

@ -27,6 +27,10 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null
DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian) DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian)
UTIL_LINUX_NG ?= yes UTIL_LINUX_NG ?= yes
ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu)
SKIP_FUSE2FS=yes
endif
DH_VERSION := $(shell dpkg-query -W -f '$${Version}' debhelper) DH_VERSION := $(shell dpkg-query -W -f '$${Version}' debhelper)
# USE_DBGSYM := # USE_DBGSYM :=
@ -177,7 +181,7 @@ UTIL_CONF_FLAGS ?= --enable-fsck --enable-libblkid \
--enable-libuuid --enable-uuidd --enable-libuuid --enable-uuidd
endif endif
ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu) ifneq ($(SKIP_FUSE2FS),)
UTIL_CONF_FLAGS += --disable-fuse2fs UTIL_CONF_FLAGS += --disable-fuse2fs
endif endif
@ -252,6 +256,12 @@ else
M4_ARGS+=-UUDEB_PKGS M4_ARGS+=-UUDEB_PKGS
endif endif
ifeq ($(SKIP_FUSE2FS),)
M4_ARGS+=-DFUSE2FS
else
M4_ARGS+=-UFUSE2FS
endif
FILES_FIXUP= libcomerr2.files comerr-dev.files libss2.files ss-dev.files \ FILES_FIXUP= libcomerr2.files comerr-dev.files libss2.files ss-dev.files \
libuuid1.files uuid-dev.files libblkid1.files libblkid-dev.files \ libuuid1.files uuid-dev.files libblkid1.files libblkid-dev.files \
e2fslibs.files e2fslibs-dev.files e2fslibs.files e2fslibs-dev.files
@ -607,8 +617,10 @@ ifeq ($(SKIP_UDEB),)
dh_shlibdeps -pe2fsprogs-udeb -l${stdbuilddir}/lib \ dh_shlibdeps -pe2fsprogs-udeb -l${stdbuilddir}/lib \
-u"-Ldebian/e2fsprogs-udeb.shlibs.local" -u"-Ldebian/e2fsprogs-udeb.shlibs.local"
endif endif
ifeq ($(SKIP_FUSE2FS),)
dh_shlibdeps -pfuse2fs -l${stdbuilddir}/lib \ dh_shlibdeps -pfuse2fs -l${stdbuilddir}/lib \
-u"-Ldebian/e2fsprogs.shlibs.local" -u"-Ldebian/e2fsprogs.shlibs.local"
endif
dh_gencontrol -Ncomerr-dev -Nss-dev -Nuuid-dev \ dh_gencontrol -Ncomerr-dev -Nss-dev -Nuuid-dev \
-Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb