diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-24 17:46:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-24 17:46:45 +0000 |
commit | a1fdd42ee8f1e10b0c147835ad01bb2a10a52c4a (patch) | |
tree | 38d0289254366f046f798cbc989ef3e56e73e664 /sys-apps/file | |
parent | Version bumped; bug #90227. (diff) | |
download | historical-a1fdd42ee8f1e10b0c147835ad01bb2a10a52c4a.tar.gz historical-a1fdd42ee8f1e10b0c147835ad01bb2a10a52c4a.tar.bz2 historical-a1fdd42ee8f1e10b0c147835ad01bb2a10a52c4a.zip |
touchup mips patch to handle ABI too
Package-Manager: portage-2.0.51.20
Diffstat (limited to 'sys-apps/file')
-rw-r--r-- | sys-apps/file/Manifest | 22 | ||||
-rw-r--r-- | sys-apps/file/file-4.12.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/file/file-4.13.ebuild | 10 | ||||
-rw-r--r-- | sys-apps/file/files/file-4.xx-mips-gentoo.patch (renamed from sys-apps/file/files/file-4.xx-mips-gentoo.diff) | 43 |
4 files changed, 48 insertions, 31 deletions
diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest index 5d80800d8ac6..c61bcd33b721 100644 --- a/sys-apps/file/Manifest +++ b/sys-apps/file/Manifest @@ -1,20 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 fbf0a97e1b6bdc8a0436bd737bee446c file-4.13.ebuild 2094 MD5 5173afd9d8a51dd24b27504105b70f19 ChangeLog 10479 -MD5 b8eda3fa30d242f1adf76f171eee4e2e file-4.12.ebuild 2083 -MD5 f856a50dada76a4ca5cee58fbd04e76b files/file-4.13-cross-compile.patch 964 +MD5 ffbd8f0ba222731195c067f3254570f2 file-4.12.ebuild 2070 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 4c06f28154a089f52dd918cad652ecb5 file-4.13.ebuild 2018 MD5 f0f2d2181cac822f0c4d4675fb1ff38c files/cracklib.magic 360 MD5 407c20e1fb3186144d6c7d2788714163 files/digest-file-4.13 61 -MD5 f856a50dada76a4ca5cee58fbd04e76b files/file-4.12-cross-compile.patch 964 MD5 d336b3490362624aec2e30679c44a198 files/digest-file-4.12 61 -MD5 04e04c973cb0c88d19b0028d8ed05007 files/file-4.xx-mips-gentoo.diff 4694 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux) - -iD8DBQFCTaEJp5vW4rUFj5oRAnkNAKC+dd9wTLDDnxIV1U7L4FC7r5TiJQCdG/nL -dya5tYpViIe0yMKXZz0Npz4= -=KfVE ------END PGP SIGNATURE----- +MD5 f856a50dada76a4ca5cee58fbd04e76b files/file-4.12-cross-compile.patch 964 +MD5 f856a50dada76a4ca5cee58fbd04e76b files/file-4.13-cross-compile.patch 964 +MD5 66df8eecd30769daeb3f643dc6432db3 files/file-4.xx-mips-gentoo.patch 5578 diff --git a/sys-apps/file/file-4.12.ebuild b/sys-apps/file/file-4.12.ebuild index ce2d5054ca94..c96a72964715 100644 --- a/sys-apps/file/file-4.12.ebuild +++ b/sys-apps/file/file-4.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.12.ebuild,v 1.13 2005/04/01 19:25:14 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.12.ebuild,v 1.14 2005/04/24 17:46:45 vapier Exp $ inherit flag-o-matic gnuconfig eutils distutils libtool toolchain-funcs @@ -25,7 +25,7 @@ src_unpack() { # This patch is for MIPS only. It slightly changes the 'file' output # on MIPS machines to a specific format so that other programs can # recognize things. - use mips && epatch ${FILESDIR}/${PN}-4.xx-mips-gentoo.diff + epatch ${FILESDIR}/${PN}-4.xx-mips-gentoo.patch # The build process tries to run the compiled file ... not a good # thing if file was cross compiled ;) diff --git a/sys-apps/file/file-4.13.ebuild b/sys-apps/file/file-4.13.ebuild index aa9114a72178..c4ab8335ada9 100644 --- a/sys-apps/file/file-4.13.ebuild +++ b/sys-apps/file/file-4.13.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.13.ebuild,v 1.1 2005/04/01 19:25:14 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.13.ebuild,v 1.2 2005/04/24 17:46:45 vapier Exp $ inherit flag-o-matic gnuconfig eutils distutils libtool toolchain-funcs @@ -21,11 +21,9 @@ src_unpack() { unpack ${A} cd ${S} - # (12 Oct 2003) <kumba@gentoo.org> - # This patch is for MIPS only. It slightly changes the 'file' output - # on MIPS machines to a specific format so that other programs can - # recognize things. - use mips && epatch ${FILESDIR}/${PN}-4.xx-mips-gentoo.diff + # This tweaks the output format for mips binaries so things like + # libtool don't barf all over the place when trying to parse it. + epatch ${FILESDIR}/${PN}-4.xx-mips-gentoo.patch # The build process tries to run the compiled file ... not a good # thing if file was cross compiled ;) diff --git a/sys-apps/file/files/file-4.xx-mips-gentoo.diff b/sys-apps/file/files/file-4.xx-mips-gentoo.patch index 2ff6ae9a093a..fbc18409c7bc 100644 --- a/sys-apps/file/files/file-4.xx-mips-gentoo.diff +++ b/sys-apps/file/files/file-4.xx-mips-gentoo.patch @@ -1,7 +1,28 @@ -diff -Naurp file-4.05.orig/magic/Magdir/elf file-4.05/magic/Magdir/elf ---- file-4.05.orig/magic/Magdir/elf 2003-05-23 17:37:35.000000000 -0400 -+++ file-4.05/magic/Magdir/elf 2003-10-12 00:52:12.000000000 -0400 -@@ -23,10 +23,32 @@ +This tweaks the output format for mips binaries so things like +libtool don't barf all over the place when trying to parse it. + +BEFORE: cat: ELF 32-bit N32 MSB MIPS-IV executable, MIPS, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped +AFTER: cat: ELF 32-bit MSB executable, MIPS, N32 MIPS-IV version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped + +Reference: +http://lists.debian.org/debian-mips/2001/01/msg00065.html +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=83303 + +--- magic/Magdir/elf ++++ magic/Magdir/elf +@@ -11,22 +11,39 @@ + 0 string \177ELF ELF + >4 byte 0 invalid class + >4 byte 1 32-bit +-# only for MIPS - in the future, the ABI field of e_flags should be used. +->>18 leshort 8 +->>>36 lelong &0x20 N32 +->>18 leshort 10 +->>>36 lelong &0x20 N32 +->>18 beshort 8 +->>>36 belong &0x20 N32 +->>18 beshort 10 +->>>36 belong &0x20 N32 >4 byte 2 64-bit >5 byte 0 invalid byte order >5 byte 1 LSB @@ -32,10 +53,14 @@ diff -Naurp file-4.05.orig/magic/Magdir/elf file-4.05/magic/Magdir/elf # say something if #10 is encountered, but only gory details for #8. ->>18 leshort 8 +>>18 leshort 8 MIPS, ++>>>36 lelong &0x20 N32 ++>>18 leshort 10 MIPS, ++>>>36 lelong &0x20 N32 ++>>18 leshort 8 # only for 32-bit >>>4 byte 1 >>>>36 lelong&0xf0000000 0x00000000 MIPS-I -@@ -49,29 +71,6 @@ +@@ -49,29 +66,6 @@ >>>>48 lelong&0xf0000000 0x70000000 MIPS64 >>>>48 lelong&0xf0000000 0x80000000 MIPS32 rel2 >>>>48 lelong&0xf0000000 0x90000000 MIPS64 rel2 @@ -65,7 +90,7 @@ diff -Naurp file-4.05.orig/magic/Magdir/elf file-4.05/magic/Magdir/elf >>18 leshort 9 Amdahl - invalid byte order, >>18 leshort 10 MIPS (deprecated), >>18 leshort 11 RS6000 - invalid byte order, -@@ -110,8 +109,27 @@ +@@ -111,8 +105,31 @@ >>20 lelong 1 version 1 >>36 lelong 1 MathCoPro/FPU/MAU Required >5 byte 2 MSB @@ -91,10 +116,14 @@ diff -Naurp file-4.05.orig/magic/Magdir/elf file-4.05/magic/Magdir/elf # only for MIPS - see comment in little-endian section above. ->>18 beshort 8 +>>18 beshort 8 MIPS, ++>>>36 belong &0x20 N32 ++>>18 beshort 10 MIPS, ++>>>36 belong &0x20 N32 ++>>18 beshort 8 # only for 32-bit >>>4 byte 1 >>>>36 belong&0xf0000000 0x00000000 MIPS-I -@@ -134,26 +152,6 @@ +@@ -135,26 +152,6 @@ >>>>48 belong&0xf0000000 0x70000000 MIPS64 >>>>48 belong&0xf0000000 0x80000000 MIPS32 rel2 >>>>48 belong&0xf0000000 0x90000000 MIPS64 rel2 |