Package: scm
Version: 5e5-3
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
your package FTBFS on GNU/kFreeBSD because… oh wait, it's not even
tried. If you want to exclude s390, the obvious way to go is to use
P-a-s/N-f-u mechanisms, and let “Architecture: any” as it should be, so
that packages can be tried on any archirecture.
WRT GNU/kFreeBSD-related porting, the rest of the patch fixes the FTBFS.
Thanks for considering.
Mraw,
KiBi.
--- a/scmfig.h
+++ b/scmfig.h
@@ -310,7 +310,7 @@ rgx.c init_rgx(); regcomp and regexec. *
# define STDC_HEADERS
#endif
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
# define HAVE_SELECT
# define HAVE_SYS_TIME_H
# define STDC_HEADERS
@@ -755,7 +755,7 @@ typedef SCM *SCMPTR;
# include <unistd.h>
#endif
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
# include <unistd.h>
#endif
--- a/time.c
+++ b/time.c
@@ -73,7 +73,7 @@
/* Define this if your system lacks times(). */
/* #define LACK_TIMES */
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
# include <sys/types.h>
# include <sys/time.h>
# include <sys/timeb.h>
--- a/findexec.c
+++ b/findexec.c
@@ -51,7 +51,7 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer
# include <sys/file.h>
# include <sys/param.h>
# endif
-# ifdef linux
+# if defined(linux) || defined(__GLIBC__)
# include <string.h>
# include <stdlib.h>
# include <sys/stat.h>
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Standards-Version: 3.7.3
Build-Depends: slib (>> 3b1), libncurses5-dev, libreadline5-dev, texi2html, texinfo, libx11-dev, debhelper (>= 5)
Package: scm
-Architecture: alpha amd64 arm hppa i386 hurd-i386 m68k mips mipsel powerpc ppc64 sparc ia64 armel armeb
+Architecture: any
Section: interpreters
Priority: optional
Depends: slib (>> 3b1), ${shlibs:Depends}
@@ -15,7 +15,7 @@ Description: A Scheme language interpret
the IEEE P1178 specification.
Package: libscm-dev
-Architecture: alpha amd64 arm hppa i386 hurd-i386 m68k mips mipsel powerpc ppc64 sparc ia64 armel armeb
+Architecture: any
Section: libdevel
Priority: optional
Depends: scm (= ${binary:Version}), slib (>> 3b1), ${shlibs:Depends}