diff --git a/file-5.13-whitespace.patch b/file-5.13-whitespace.patch new file mode 100644 index 0000000..09acef9 --- /dev/null +++ b/file-5.13-whitespace.patch @@ -0,0 +1,16 @@ +Index: file-5.14/magic/Magdir/elf +=================================================================== +--- file-5.14.orig/magic/Magdir/elf ++++ file-5.14/magic/Magdir/elf +@@ -189,9 +189,9 @@ + >4 byte 1 32-bit + >4 byte 2 64-bit + >5 byte 0 invalid byte order +->5 byte 1 LSB ++>5 byte 1 LSB + >>0 use elf-le +->5 byte 2 MSB ++>5 byte 2 MSB + >>0 use \^elf-le + # Up to now only 0, 1 and 2 are defined; I've seen a file with 0x83, it seemed + # like proper ELF, but extracting the string had bad results. diff --git a/file.changes b/file.changes index 105fd98..fa084b4 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 26 08:01:55 UTC 2013 - schwab@suse.de + +- file-5.13-whitespace.patch: remove extra whitespace in ELF magic, breaks + libtool + ------------------------------------------------------------------- Fri Mar 29 06:56:37 UTC 2013 - crrodriguez@opensuse.org diff --git a/file.spec b/file.spec index 05f3b24..cf5aa35 100644 --- a/file.spec +++ b/file.spec @@ -60,6 +60,7 @@ Patch32: file-5.07-clicfs.dif Patch33: file-5.12-ocloexec.patch Patch34: file-5.12-endian.patch Patch35: file-5.12-nitpick.dif +Patch36: file-5.13-whitespace.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -124,6 +125,7 @@ to develop applications that require the magic "file" interface. %patch33 -p0 -b .clexe %patch34 -p0 -b .endian %patch35 -p0 -b .nitpick +%patch36 -p1 %patch -b .0 test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in