Package: file
Version: 4.12-1
Severity: wishlist
Tags: patch

Attached is a patch to detect GNU/kFreeBSD binaries.  It's already been sent to
upstream.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Kernel: GNU/kFreeBSD 5.3-9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages file depends on:
ii  libc0.1                    2.3-1+kbsd.10 GNU C Library: Shared libraries an
ii  libmagic1                  4.12-1        File type determination library us
ii  zlib1g                     1:1.2.2-4     compression library - runtime

-- no debconf information
diff -ur file-4.12.old/src/readelf.c file-4.12/src/readelf.c
--- file-4.12.old/src/readelf.c 2004-11-24 18:38:24.000000000 +0100
+++ file-4.12/src/readelf.c     2005-05-03 13:48:18.000000000 +0200
@@ -350,6 +350,10 @@
                        if (file_printf(ms, "Solaris") == -1)
                                return size;
                        break;
+               case GNU_OS_KFREEBSD:
+                       if (file_printf(ms, "kFreeBSD") == -1)
+                               return size;
+                       break;
                default:
                        if (file_printf(ms, "<unknown>") == -1)
                                return size; 
diff -ur file-4.12.old/src/readelf.h file-4.12/src/readelf.h
--- file-4.12.old/src/readelf.h 2004-09-27 17:23:07.000000000 +0200
+++ file-4.12/src/readelf.h     2005-05-03 13:46:58.000000000 +0200
@@ -230,5 +230,6 @@
 #define GNU_OS_LINUX   0
 #define GNU_OS_HURD    1
 #define GNU_OS_SOLARIS 2
+#define GNU_OS_KFREEBSD        3
 
 #endif

Reply via email to