]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debian: Don't use dietlibc on platforms that don't support it
authorTheodore Ts'o <tytso@mit.edu>
Sun, 27 Jan 2008 22:20:44 +0000 (17:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 27 Jan 2008 22:20:44 +0000 (17:20 -0500)
Addresses-Debian-Bug: #459475

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/control
debian/rules

index 9e6e9edf5943f3b6d2ae6f7a954f53ab5354e530..1b1c0f3d0159b09b317b73cb614dcc1865366f87 100644 (file)
@@ -2,7 +2,7 @@ Source: e2fsprogs
 Section: admin
 Priority: required
 Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
-Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, dietlibc-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], libsepol1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], libdevmapper-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], libselinux1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], debhelper (>= 4)
+Build-Depends: texi2html (>= 1.76), gettext, texinfo, dc, pkg-config, dietlibc-dev [alpha amd64 arm hppa i386 ia64 mips mipsel powerpc ppc64 s390 sparc], libsepol1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], libdevmapper-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], libselinux1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], debhelper (>= 4)
 Standards-Version: 3.7.3.0
 
 Package: e2fsck-static
index fe42a52d98796fa6c7f20fd60200613a00d965f0..b5c00e7b0cefa3d7b40bf5dec991ebcb29e2843d 100755 (executable)
@@ -112,7 +112,7 @@ STATIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \
        --disable-nls --disable-imager \
        --disable-uuidd --disable-tls \
        --disable-e2initrd-helper \
-       --with-diet-libc --with-ccopts=-fno-stack-protector
+       --with-ccopts=-fno-stack-protector
 
 MIPS_NOPIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \
        --disable-nls \
@@ -180,6 +180,9 @@ ${CFGSTATICSTAMP}:
 
        mkdir -p ${staticbuilddir}
 ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+       if type diet > /dev/null  2>&1 ; then \
+               STATIC_CONF_FLAGS="$STATIC_CONF_FLAGS --with-diet-libc"; \
+       fi
        cd ${staticbuilddir} && AWK=/usr/bin/awk \
                ${topdir}/configure ${STATIC_CONF_FLAGS}
 else