Package: extipl
Version: 5.04-2
Severity: serious
Tags: patch
Justification: FTBFS

extipl fails to build from source, or would if the $(MAKE) return code
was not ignored.

I have attached a patch that does the following:
- Don't ignore return status of $(MAKE) calls in debian/rules
- Update _llseek syscall usage to allow the package to build with
  linux-kernel-headers >= 2.6.18 (current in unstable).

All the best,
-Ted

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
diff -ru extipl-5.04/debian/rules extipl-5.04-new/debian/rules
--- extipl-5.04/debian/rules    2006-10-28 22:37:12.000000000 +1000
+++ extipl-5.04-new/debian/rules        2006-10-28 22:43:06.000000000 +1000
@@ -15,7 +15,7 @@
 
        # Add here commands to compile the package.
        cp debian/addition/Makefile .
-       -$(MAKE) 
+       $(MAKE) 
 
        touch build-stamp
 
@@ -26,7 +26,7 @@
 
        # Add here commands to clean up after the build process.
        rm -f Makefile
-       -$(MAKE) -f debian/addition/Makefile allclean
+       $(MAKE) -f debian/addition/Makefile allclean
 
        dh_clean
 
@@ -40,7 +40,7 @@
 
        # Add here commands to install the package into debian/tmp.
        cp debian/addition/Makefile .
-       -$(MAKE) install DESTDIR=`pwd`/debian/tmp
+       $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
        for i in pollux castor altair aldebaran; \
         do cp src/$$i.bin debian/extipl-boot/boot/extipl-$$i.b; done
diff -ru extipl-5.04/src/extipl.c extipl-5.04-new/src/extipl.c
--- extipl-5.04/src/extipl.c    2001-07-03 01:35:12.000000000 +1000
+++ extipl-5.04-new/src/extipl.c        2006-10-28 22:49:07.000000000 +1000
@@ -23,7 +23,7 @@
 #include <sys/stat.h>
 #include <regex.h>
 #ifdef __linux__
-#include <linux/unistd.h>
+#include <sys/syscall.h>
 #endif
 #include "extipl.h"
 #include "sysident.h"
@@ -79,7 +79,7 @@
 static char *ask(char *);
 static int  sure(char *);
 #ifdef __linux__
-static _syscall5(int, _llseek,  uint,  fd, ulong, hi, ulong, lo, loff_t *, 
res, uint, wh);
+static int _llseek(uint, ulong, ulong, loff_t *, uint);
 static int long_seek(int, off_t, int);
 #endif
 /*================ for DEBUG ======================== */
@@ -1104,6 +1104,15 @@
 }
 
 #ifdef __linux__
+
+static int _llseek(fd, hi, lo, res, whence)
+uint fd, whence;
+ulong hi, lo;
+loff_t *res;
+{
+    return syscall(SYS__llseek, fd, hi, lo, res, whence);
+}
+
 /* Hacked by Taketoshi Sano <[EMAIL PROTECTED]>  */
 static int long_seek(fd, offset, whence)
 int fd, whence;
@@ -1131,7 +1140,8 @@
     }
     return(OK);
 }
-#endif
+
+#endif /* __linux__ */
 
 
 /*=============================================================================

Reply via email to