Package: jed
Version: 0.99.19~pre210-1
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package FTBFS on non-Linux architectures because the checks on
DEB_BUILD_GNU_TYPE are buggy. You can query all variables using
“dpkg-architecture -a$foo” on any architecture.

The usual way to check for arch-specific features is DEB_HOST_ARCH_OS
anyway. Please find attached a patch to this effect. (Checked
successfully on kfreebsd-i386, but should be fine for all other
architectures.)

Thanks for considering.

Mraw,
KiBi.
diff -u jed-0.99.19~pre210/debian/rules jed-0.99.19~pre210/debian/rules
--- jed-0.99.19~pre210/debian/rules
+++ jed-0.99.19~pre210/debian/rules
@@ -22,13 +22,13 @@
 configure_flags =  --prefix=/usr/share --exec-prefix=/usr --with-x \
   --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
 
-ifeq (, $(filter %-hurd-% %-kfreebsd-%, $(DEB_BUILD_GNU_TYPE)))
+ifeq ($(DEB_HOST_ARCH_OS),linux)
   configure_flags += --enable-gpm
 else
-# libgpm is not supported by these architectures: #345268 #95843
+# libgpm is not supported by non-linux architectures: #345268 #95843
   configure_flags += --disable-gpm
 endif
-ifeq (, $(findstring -hurd-, $(DEB_BUILD_GNU_TYPE)))
+ifneq ($(DEB_HOST_ARCH_OS),hurd)
   configure_flags += --enable-xft
 else
 # The xrender extension is not supported on the hurd: #95843

Reply via email to