[nas] [rmh at debian.org: Bug#263525: FTBFS on GNU/Hurd (and GNU/k*BSD)]

Steve McIntyre steve at einval.com
Wed Aug 18 05:52:01 MDT 2004


Jon, could you update the libtool version in NAS please? It's
currently not building correctly on various new Debian arches without
patching. Simply using a newer libtool should fix this.

Thanks

----- Forwarded message from Robert Millan <rmh at debian.org> -----

From: Robert Millan <rmh at debian.org>
Date: Thu, 05 Aug 2004 02:11:05 +0200
To: Debian Bug Tracking System <submit at bugs.debian.org>
Reply-To: Robert Millan <rmh at debian.org>, 263525 at bugs.debian.org
Subject: Bug#263525: FTBFS on GNU/Hurd (and GNU/k*BSD)
Original-Sender: <rmh at khazad.dyndns.org>
X-Debian-PR-Message: report 263525
X-Debian-PR-Package: nas
X-Debian-PR-Keywords: patch sid
X-Spam-Status: No, hits=-5.2 required=5.0
	tests=BAYES_10,PATCH_UNIFIED_DIFF,X_LOOP
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Package: nas
Severity: wishlist
Tags: patch sid

Hi!

This patch fixes FTBFS on GNU/k*BSD.  Could you forward the upstream part to
upstream?

The hack in debian/rules is to work around an outdated libtool in the source
tree. It basicaly cloaks k*bsd-gnu as gnu.  Please, could you also ask
upstream to update their libtool so that this hack is not needed?

Thanks.

diff -ur nas-1.6d.old/debian/rules nas-1.6d/debian/rules
--- nas-1.6d.old/debian/rules	2004-08-04 21:02:44.000000000 +0200
+++ nas-1.6d/debian/rules	2004-08-04 21:08:56.000000000 +0200
@@ -6,6 +6,14 @@
 allpacs=nas-doc
 instdirs=BINDIR=/usr/bin USRLIBDIR=/usr/lib MANPATH=/usr/share/man INCDIR=/usr/include MANSUFFIX=1nas LIBMANSUFFIX=3nas FILEMANSUFFIX=5nas ETCDIR=/etc/nas
 
+DEB_BUILD_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_BUILD_GNU_CPU	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+DEB_BUILD_GNU_SYSTEM	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
+
+ifneq (, $(filter $(DEB_BUILD_GNU_SYSTEM),kfreebsd-gnu knetbsd-gnu))
+DEB_BUILD_GNU_TYPE = $(DEB_BUILD_GNU_CPU)-gnu
+endif
+
 build:
         # Make include symlinks
 	( cd include/audio; for file in ../../lib/audio/*.h; do ln -s $$file .; done )
@@ -19,13 +27,16 @@
 	-make clean
 	find . -name Makefile -exec rm -f {} \;
 	find . -name '*~' -exec rm -f {} \;
-    # Clear up include symlinks
+	# Clear up include symlinks
 	find include -type l -exec rm -f {} \;
 	rm -rf debian/tmp debian/nas debian/nas-doc debian/nas-bin 
 	rm -rf debian/libaudio2 debian/libaudio-dev
 	rm -f build debian/files 
 	rm -f config/config.cache config/config.h config/config.log
 	rm -f config/config.status
+	# So so ugly, but works.
+	echo -e "#!/bin/sh\necho $(DEB_BUILD_GNU_TYPE)" > config/config.guess
+	chmod +x config/config.guess
 
 binary-indep:  checkroot
 	$(checkdir)
diff -ur nas-1.6d.old/clients/audio/auconvert/Imakefile nas-1.6d/clients/audio/auconvert/Imakefile
--- nas-1.6d.old/clients/audio/auconvert/Imakefile	2000-12-13 05:22:31.000000000 +0100
+++ nas-1.6d/clients/audio/auconvert/Imakefile	2004-08-04 20:26:53.000000000 +0200
@@ -24,7 +24,7 @@
 
 #include "../../../config/NetAudio.tmpl"
 
-#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(GNUArchitecture)
  EXTRA_DEFINES = -DHAS_MKSTEMP
 #endif
 
diff -ur nas-1.6d.old/clients/audio/audemo/audemo.c nas-1.6d/clients/audio/audemo/audemo.c
--- nas-1.6d.old/clients/audio/audemo/audemo.c	2004-06-20 21:06:50.000000000 +0200
+++ nas-1.6d/clients/audio/audemo/audemo.c	2004-08-04 21:33:51.000000000 +0200
@@ -264,7 +264,8 @@
 static int      ElementCount,
                 MonitorCount;
 
-#if !defined(sun) && !defined(linux)		/* who else doesn't have
+#if !defined(sun) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__)
+						/* who else doesn't have
 						 * this? */
 #define strdup ncd_strdup			/* To avoid conflicting with
 						 * headers on hosts that *do*
diff -ur nas-1.6d.old/clients/audio/auedit/Imakefile nas-1.6d/clients/audio/auedit/Imakefile
--- nas-1.6d.old/clients/audio/auedit/Imakefile	2000-12-13 05:22:35.000000000 +0100
+++ nas-1.6d/clients/audio/auedit/Imakefile	2004-08-04 20:27:32.000000000 +0200
@@ -24,7 +24,7 @@
 
 #include "../../../config/NetAudio.tmpl"
 
-#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(GNUArchitecture)
  EXTRA_DEFINES = -DHAS_MKSTEMP
 #endif
 
diff -ur nas-1.6d.old/lib/audio/Imakefile nas-1.6d/lib/audio/Imakefile
--- nas-1.6d.old/lib/audio/Imakefile	2004-08-04 21:02:44.000000000 +0200
+++ nas-1.6d/lib/audio/Imakefile	2004-08-04 20:28:14.000000000 +0200
@@ -146,7 +146,7 @@
 
 XAULIB = 
 
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(GNUArchitecture)
 REQUIREDLIBS = -L$(USRLIBDIR) -lXt $(XAULIB) -lm 
 #endif
 
diff -ur nas-1.6d.old/server/Imakefile nas-1.6d/server/Imakefile
--- nas-1.6d.old/server/Imakefile	2002-07-24 03:49:33.000000000 +0200
+++ nas-1.6d/server/Imakefile	2004-08-04 21:01:09.000000000 +0200
@@ -91,7 +91,7 @@
 #define BuildSGIServer
 #endif
 
-#if defined(HPArchitecture) && !defined(LinuxArchitecture)
+#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture)
 #define CanBuildAuServer        YES
 ALL1 = nasd
 RCMANDIR = $(MANDIR)
@@ -99,10 +99,10 @@
 #endif
 
 
-#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture)
+#if defined(i386SVR4Architecture) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture)
 # define CanBuildAuServer	YES
 
-# if defined(LinuxArchitecture)
+# if defined(LinuxArchitecture) || defined(GNUArchitecture)
     RCMANDIR = $(FILEMANDIR)
     RCMANSUFFIX = 5nas
 # else
diff -ur nas-1.6d.old/server/dda/voxware/auvoxware.c nas-1.6d/server/dda/voxware/auvoxware.c
--- nas-1.6d.old/server/dda/voxware/auvoxware.c	2004-06-21 01:27:10.000000000 +0200
+++ nas-1.6d/server/dda/voxware/auvoxware.c	2004-08-04 21:36:45.000000000 +0200
@@ -1074,7 +1074,7 @@
 }
 
 
-#if defined(__GNUC__) && !defined(linux) && !defined(USL) && !defined(__CYGWIN__)
+#if defined(__GNUC__) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__) && !defined(USL) && !defined(__CYGWIN__)
 inline
 #endif
 static void monoToStereoLinearSigned16LSB(numSamples)
@@ -1089,7 +1089,7 @@
   }
 }
 
-#if defined(__GNUC__) && !defined(linux) && !defined(USL) && !defined(__CYGWIN__)
+#if defined(__GNUC__) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__) && !defined(USL) && !defined(__CYGWIN__)
 inline
 #endif
 static void monoToStereoLinearUnsigned8(numSamples)
@@ -1150,7 +1150,7 @@
   AuUnBlockAudio(l);
 }
 
-#if defined(__GNUC__) && !defined(linux) && !defined(USL) && !defined(__CYGWIN__)
+#if defined(__GNUC__) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__) && !defined(USL) && !defined(__CYGWIN__)
 inline
 #endif
 static void stereoToMonoLinearSigned16LSB(numSamples)
@@ -1165,7 +1165,7 @@
   }
 }
 
-#if defined(__GNUC__) && !defined(linux) && !defined(USL) && !defined(__CYWIN__)
+#if defined(__GNUC__) && !defined(linux) && !defined(__GNU__) && !defined(__GLIBC__) && !defined(USL) && !defined(__CYWIN__)
 inline
 #endif
 static void stereoToMonoLinearUnsigned8(numSamples)
diff -ur nas-1.6d.old/server/dda/voxware/auvoxware.h nas-1.6d/server/dda/voxware/auvoxware.h
--- nas-1.6d.old/server/dda/voxware/auvoxware.h	2002-07-25 02:42:28.000000000 +0200
+++ nas-1.6d/server/dda/voxware/auvoxware.h	2004-08-04 21:37:11.000000000 +0200
@@ -75,7 +75,7 @@
 #include <signal.h>
 
 typedef int AuBlock;
-#if defined(linux)  || defined(__CYGWIN__)
+#if defined(linux) || defined(__GNU__) || defined(__GLIBC__) || defined(__CYGWIN__)
 #define        AuBlockAudio()          0
 #define        AuUnBlockAudio(_x)
 #else /* defined(linux)  */
diff -ur nas-1.6d.old/server/dia/auservertype.h nas-1.6d/server/dia/auservertype.h
--- nas-1.6d.old/server/dia/auservertype.h	2002-07-25 02:42:28.000000000 +0200
+++ nas-1.6d/server/dia/auservertype.h	2004-08-04 21:37:55.000000000 +0200
@@ -14,7 +14,7 @@
 # define SGI_SERVER
 #endif						/* sgi */
 
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(linux) || (defined(SVR4) && (defined(SYSV386) || defined(i386))) || defined(__CYGWIN__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(linux) || defined(__GNU__) || defined(__GLIBC__) || (defined(SVR4) && (defined(SYSV386) || defined(i386))) || defined(__CYGWIN__)
 # define VOXWARE_SERVER
 #endif                                          /* voxware */
 
diff -ur nas-1.6d.old/server/os/Imakefile nas-1.6d/server/os/Imakefile
--- nas-1.6d.old/server/os/Imakefile	2002-07-07 23:34:54.000000000 +0200
+++ nas-1.6d/server/os/Imakefile	2004-08-04 20:30:18.000000000 +0200
@@ -42,7 +42,7 @@
 #define OtherObjects iopreader.o
 #endif
 
-#if defined(HPArchitecture) && !defined(LinuxArchitecture)
+#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture)
 #define OtherSources hpsocket.c 
 #define OtherObjects hpsocket.o dbm.o 
 #endif
@@ -107,7 +107,7 @@
  DEPEND_DEFINES = $(DBM_DEFINES)
        LINTLIBS = ../dix/llib-ldix.ln
 
-#if defined(HPArchitecture) && !defined(LinuxArchitecture)
+#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture)
          DBMLIB = /usr/lib/libdbm.a
     XLIBSYSVDIR = $(TOP)/lib/X/sysV
 #endif /* HPArchitecture */
@@ -121,7 +121,7 @@
 LintLibraryTarget(os,$(SRCS))
 NormalLintTarget($(SRCS))
 
-#if defined(HPArchitecture) && !defined(LinuxArchitecture)
+#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture)
 XCOMM
 XCOMM The following kludge is necessary because dbm already has a global 
 XCOMM routine named "bcopy" that is implemented in a silly way.  So, we have to 
diff -ur nas-1.6d.old/server/os/access.c nas-1.6d/server/os/access.c
--- nas-1.6d.old/server/os/access.c	1999-07-08 02:51:49.000000000 +0200
+++ nas-1.6d/server/os/access.c	2004-08-04 21:38:39.000000000 +0200
@@ -75,7 +75,7 @@
 #include <netdnet/dnetdb.h>
 #endif
 
-#if (defined(SYSV386) && defined(SVR4)) || defined(ISC) || defined(linux)
+#if (defined(SYSV386) && defined(SVR4)) || defined(ISC) || defined(linux) || defined(__GNU__) || defined(__GLIBC__)
 #define USE_FALLBACK_DEFINESELF
 #endif
 
@@ -244,7 +244,7 @@
  * the server always originate from remote clients.
  */
 #ifndef AMOEBA
-#if defined(SVR4) || defined (SYSV386) || defined (linux) || (defined (hpux) && ! defined (HAS_IFREQ)) || defined(USE_FALLBACK_DEFINESELF)
+#if defined(SVR4) || defined (SYSV386) || defined (linux) || defined(__GNU__) || defined(__GLIBC__) || (defined (hpux) && ! defined (HAS_IFREQ)) || defined(USE_FALLBACK_DEFINESELF)
 /* Define this host for access control.  Find all the hosts the OS knows about 
  * for this fd and add them to the selfhosts list.
  * hpux, and some SYSV386 do not have SIOCGIFCONF ioctl;

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.2.1-5
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)

<snip>

----- End forwarded message -----

-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
Can't keep my eyes from the circling sky,
Tongue-tied & twisted, Just an earth-bound misfit, I...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://radscan.com/pipermail/nas/attachments/20040818/84aef080/attachment.pgp>


More information about the Nas mailing list