Package: cpuid
Version: 20130610-1
Severity: serious
Tags: patch

https://buildd.debian.org/status/fetch.php?pkg=cpuid&arch=kfreebsd-amd64&ver=20130610-1&stamp=1376897399

make[1]: Entering directory `/«PKGBUILDDIR»'
cc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector \
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g  -Wall \
 -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast \
 -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes \
 -Wmissing-prototypes -D_FILE_OFFSET_BITS=64 -DVERSION=20130610 \
 -Wl,-z,relro -o cpuid cpuid.c
cpuid.c:29:25: fatal error: linux/major.h: No such file or directory
 #include <linux/major.h>
                          ^
                          compilation terminated.
make[1]: *** [cpuid] Error 1


The patch below fixes the FTBFS on GNU/kFreeBSD.

debdiff cpuid_20130610-1.dsc cpuid_20130610-1.1.dsc
diff -Nru cpuid-20130610/debian/changelog cpuid-20130610/debian/changelog
--- cpuid-20130610/debian/changelog     2013-08-19 06:20:24.000000000 +1000
+++ cpuid-20130610/debian/changelog     2013-08-19 20:21:54.000000000 +1000
@@ -1,3 +1,11 @@
+cpuid (20130610-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix the FTBFS on GNU/kFreeBSD 
+    Add linux-major.h.patch
+
+ -- Anibal Monsalve Salazar <ani...@debian.org>  Mon, 19 Aug 2013 20:20:39 
+1000
+
 cpuid (20130610-1) unstable; urgency=low
 
   * Adopt the package (Closes: #677764)
diff -Nru cpuid-20130610/debian/patches/linux-major.h.patch 
cpuid-20130610/debian/patches/linux-major.h.patch
--- cpuid-20130610/debian/patches/linux-major.h.patch   1970-01-01 
10:00:00.000000000 +1000
+++ cpuid-20130610/debian/patches/linux-major.h.patch   2013-08-19 
20:20:06.000000000 +1000
@@ -0,0 +1,16 @@
+The patch below fixes the FTBFS on GNU/kFreeBSD.
+
+Anibal Monsalve Salazar <ani...@debian.org>
+
+--- a/cpuid.c  2013-06-11 00:14:49.000000000 +1000
++++ b/cpuid.c  2013-08-19 20:12:09.000000000 +1000
+@@ -26,7 +26,9 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef __linux__
+ #include <linux/major.h>
++#endif
+ #include <regex.h>
+ #include <getopt.h>
+ #include <sys/syscall.h>
diff -Nru cpuid-20130610/debian/patches/series 
cpuid-20130610/debian/patches/series
--- cpuid-20130610/debian/patches/series        2013-08-19 06:20:24.000000000 
+1000
+++ cpuid-20130610/debian/patches/series        2013-08-19 20:14:53.000000000 
+1000
@@ -1 +1,2 @@
 makefile-fix.patch
+linux-major.h.patch


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to