Bug#572274: newt: please fix bogus gpm support logic
Package: newt
Version: 0.52.10-6
Severity: important
Tags: patch
Hello,
Currently,
- on Linux machines, gpm support is disabled
- on Hurd machines, gpm support is enabled, which makes it FTBFS
- on kFreeBSD machines, gpm support is enabled, and seems to build, I
don't know if it works, debian-bsd people, does it? (apparently it is
only used in forms)
Please at least apply attached patch1, to enable gpm support on Linux,
and only on it, or patch2, to enable gpm support on kFreeBSD too.
Samuel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
Samuel Thibault <samuel.thibault@fnac.net>
void *memmem (const void *meule_de_foin, size_t lg_meule,
const void *aiguille, size_t lg_aiguille);
(extrait de la page de man de memmem -- Manuel du programmeur Linux)
--- debian/rules.orig 2010-03-02 21:44:08.000000000 +0100
+++ debian/rules 2010-03-02 21:44:13.000000000 +0100
@@ -51,7 +51,7 @@
LIBCDEV=libc-dev
GPMSUPPORT=
-ifneq ($(DEB_HOST_ARCH_OS),linux)
+ifeq ($(DEB_HOST_ARCH_OS),linux)
GPMSUPPORT= --with-gpm-support
LIBCDEV=libc6-dev
ifeq ($(DEB_HOST_ARCH_CPU),alpha)
--- newt-0.52.10/debian/rules.orig 2010-03-02 21:44:08.000000000 +0100
+++ newt-0.52.10/debian/rules 2010-03-02 21:48:37.000000000 +0100
@@ -51,7 +51,7 @@
LIBCDEV=libc-dev
GPMSUPPORT=
-ifneq ($(DEB_HOST_ARCH_OS),linux)
+ifeq ($(DEB_HOST_ARCH_OS),linux)
GPMSUPPORT= --with-gpm-support
LIBCDEV=libc6-dev
ifeq ($(DEB_HOST_ARCH_CPU),alpha)
@@ -67,6 +67,7 @@
endif
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+GPMSUPPORT= --with-gpm-support
LIBCDEV=libc0.1-dev
endif
Reply to: