Bug#258051: dpkg: Minor fixes for FTBFS on GNU/k*BSD
Package: dpkg
Version: 1.10.22+kbsd
Severity: wishlist
Tags: patch
This patch gets s-s-d to build on GNU/k*BSD. Please apply and also update
config.guess and config.sub to a recent version.
With these two minor fixes dpkg no longer FTBFSes on GNU/k*BSD.
--- dpkg-1.10.22/utils/start-stop-daemon.c 2004-06-01 23:18:16.000000000 +0200
+++ dpkg-1.10.22+kbsd/utils/start-stop-daemon.c 2004-06-04 00:44:35.000000000 +0200
@@ -36,6 +36,10 @@
# define OSFreeBSD
#elif defined(__NetBSD__)
# define OSNetBSD
+#elif defined(__GLIBC__) && defined(__FreeBSD_kernel__)
+# define OSGNU_kFreeBSD
+#elif defined(__GLIBC__) && defined(__NetBSD_kernel__)
+# define OSGNU_kNetBSD
#else
# error Unknown architecture - cannot build start-stop-daemon
#endif
@@ -725,7 +729,7 @@
/* WTA: this needs to be an autoconf check for /proc/pid existance.
*/
-#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd)
+#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSGNU_kFreeBSD) || defined(OSGNU_kNetBSD)
static void
do_procinit(void)
{
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.2.1-RELEASE
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)
Versions of packages dpkg depends on:
ii dselect 1.10.18+kbsd.1 a user tool to manage Debian packa
ii libc0.1 2.3-1+kbsd GNU C Library: Shared libraries an
-- no debconf information
Reply to: