diff options
author | 2009-05-07 08:51:11 +0000 | |
---|---|---|
committer | 2009-05-07 08:51:11 +0000 | |
commit | 27a17eb6829fedecfcde7dfc39e1ea2c5068bce1 (patch) | |
tree | 29c350ad26290a4c308769d3eb6d189f3754413a /sys-apps | |
parent | vala-terminal-20081210 unneeded because of 1.1.1 present (diff) | |
download | embedded-cross-27a17eb6829fedecfcde7dfc39e1ea2c5068bce1.tar.gz embedded-cross-27a17eb6829fedecfcde7dfc39e1ea2c5068bce1.tar.bz2 embedded-cross-27a17eb6829fedecfcde7dfc39e1ea2c5068bce1.zip |
portage's version works, making 5.02 arm
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/file/Manifest | 9 | ||||
-rw-r--r-- | sys-apps/file/file-4.23.ebuild | 63 | ||||
-rw-r--r-- | sys-apps/file/file-4.26.ebuild | 63 | ||||
-rw-r--r-- | sys-apps/file/file-5.00-r2.ebuild | 68 | ||||
-rw-r--r-- | sys-apps/file/files/file-4.15-libtool.patch | 19 | ||||
-rw-r--r-- | sys-apps/file/files/file-5.00-localization.patch | 80 | ||||
-rw-r--r-- | sys-apps/file/files/file-5.00-short-read.patch | 163 |
7 files changed, 0 insertions, 465 deletions
diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest deleted file mode 100644 index df75217..0000000 --- a/sys-apps/file/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -AUX file-4.15-libtool.patch 561 RMD160 f2b9f4c93f199ab3145d70816b3c624349af97a0 SHA1 6e2c1cd8dee4d022c35a056e94a4030af1f4b1fa SHA256 badb8261dad5df39bac1d6a6da1668eb8a2ff0b01c2c80baa8abfe07fd99681d -AUX file-5.00-localization.patch 3014 RMD160 c421f942e861f496f32000bf9d22f561a4337faf SHA1 1a2a3f0449418e0b107385a0e79d9a1416d7a873 SHA256 067d76f13d165267977b09908adab3a041a9e8c2af2b7bbc9a1f80a29553586f -AUX file-5.00-short-read.patch 4299 RMD160 8cfb2f4e10427fe28c54288a9ef2d657844b24a6 SHA1 761d4be123c1303df925b8559c8b5365816311ee SHA256 0ac90591b5bc5604119ae771794ba6840e08fa3dbbf8572f332f54c1b72f1dc7 -DIST file-4.23.tar.gz 563704 RMD160 29153a3fb18b2d8f7da9fd66712fbd6ed4ea49f2 SHA1 83a90894a6b89f80207b9fcf0e382a627e4c5f0b SHA256 2fad96e6475b7a67e1e96f05e825b779686fd0cb3f041a10ca6622a4d9f7d147 -DIST file-4.26.tar.gz 584803 RMD160 e8b84e01d1f43faedfe676afc92c2cba4a01ecdf SHA1 412cdac5cd778d867e2d91a01b09858be1998ec3 SHA256 682f7de5c12d35ff2d9e2ec3c6a753bd5a01e0f7f3110501be0bafef1d5e9654 -DIST file-5.00.tar.gz 600905 RMD160 840170735f4b7478093da46fee521df9b1082bdc SHA1 e58033dfefa44782aa34155751ce88c86c4c1244 SHA256 289bc067d7a2a7e52437428bd0e79df9030028fd13c26e9772ebf1dfc8d9d5c9 -EBUILD file-4.23.ebuild 1632 RMD160 bca597f4035cbcdc92d707de8258e97a6f71eeaf SHA1 58a610bd9a2966ba1d226817c47c25578d072e89 SHA256 74e34681d73def1c21d1f5eb45e18ad94d204d77f214ff901b0db545f27aef1e -EBUILD file-4.26.ebuild 1644 RMD160 1e1a7937d7f8202bd22a28b73067bbdfcbe0e7cd SHA1 a9b6dd753516f464fbdd9bf9dd21952305418fd9 SHA256 6fea044db910aa0ad44bf428567a04d6a8dd1a8f5207434e5773ead99ad2dcd8 -EBUILD file-5.00-r2.ebuild 1893 RMD160 e39daf94a0df4f01517dcd40fa40a3826fb0a38c SHA1 c38c8a4c18753cad0242256420385bc603d8b60d SHA256 1f492aac951334e30ca6b741ff20c3fe2b30b259b06cfeff15237b0ffdbbccd1 diff --git a/sys-apps/file/file-4.23.ebuild b/sys-apps/file/file-4.23.ebuild deleted file mode 100644 index a028404..0000000 --- a/sys-apps/file/file-4.23.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.23.ebuild,v 1.7 2008/03/29 15:23:34 ranger Exp $ - -inherit eutils distutils libtool flag-o-matic toolchain-funcs - -DESCRIPTION="identify a file's format by scanning binary data for patterns" -HOMEPAGE="ftp://ftp.astron.com/pub/file/" -SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz - ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="python" - -DEPEND="" - -src_unpack() { - unpack ${P}.tar.gz - cd "${S}" - - epatch "${FILESDIR}"/${PN}-4.15-libtool.patch #99593 - - elibtoolize - epunt_cxx - - # make sure python links against the current libmagic #54401 - sed -i "/library_dirs/s:'\.\./src':'../src/.libs':" python/setup.py - - if tc-is-cross-compiler ; then - # make sure cross-compilation uses correct libs and headers - sed -i -e "s%'/usr/%'${SYSROOT}/usr/%g" python/setup.py - fi - - # dont let python README kill main README #60043 - mv python/README{,.python} -} - -src_compile() { - # file uses things like strndup() and wcwidth() - append-flags -D_GNU_SOURCE - - econf --datadir=/usr/share/misc || die - emake || die "emake failed" - - use python && cd python && distutils_src_compile -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dodoc ChangeLog MAINT README - - use python && cd python && distutils_src_install -} - -pkg_postinst() { - use python && distutils_pkg_postinst -} - -pkg_postrm() { - use python && distutils_pkg_postrm -} diff --git a/sys-apps/file/file-4.26.ebuild b/sys-apps/file/file-4.26.ebuild deleted file mode 100644 index 8fe0b37..0000000 --- a/sys-apps/file/file-4.26.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.26.ebuild,v 1.1 2008/09/17 09:51:34 vapier Exp $ - -inherit eutils distutils libtool flag-o-matic toolchain-funcs - -DESCRIPTION="identify a file's format by scanning binary data for patterns" -HOMEPAGE="ftp://ftp.astron.com/pub/file/" -SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz - ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="python" - -DEPEND="" - -src_unpack() { - unpack ${P}.tar.gz - cd "${S}" - - epatch "${FILESDIR}"/${PN}-4.15-libtool.patch #99593 - - elibtoolize - epunt_cxx - - # make sure python links against the current libmagic #54401 - sed -i "/library_dirs/s:'\.\./src':'../src/.libs':" python/setup.py - - if tc-is-cross-compiler ; then - # make sure cross-compilation uses correct libs and headers - sed -i -e "s%'/usr/%'${SYSROOT}/usr/%g" python/setup.py - fi - - # dont let python README kill main README #60043 - mv python/README{,.python} -} - -src_compile() { - # file uses things like strndup() and wcwidth() - append-flags -D_GNU_SOURCE - - econf --datadir=/usr/share/misc || die - emake || die "emake failed" - - use python && cd python && distutils_src_compile -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dodoc ChangeLog MAINT README - - use python && cd python && distutils_src_install -} - -pkg_postinst() { - use python && distutils_pkg_postinst -} - -pkg_postrm() { - use python && distutils_pkg_postrm -} diff --git a/sys-apps/file/file-5.00-r2.ebuild b/sys-apps/file/file-5.00-r2.ebuild deleted file mode 100644 index 18ed5a0..0000000 --- a/sys-apps/file/file-5.00-r2.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-5.00-r2.ebuild,v 1.1 2009/02/21 23:37:50 vapier Exp $ - -inherit eutils distutils libtool flag-o-matic toolchain-funcs - -DESCRIPTION="identify a file's format by scanning binary data for patterns" -HOMEPAGE="ftp://ftp.astron.com/pub/file/" -SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz - ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="python" - -RDEPEND="python? ( dev-lang/python )" - -src_unpack() { - unpack ${P}.tar.gz - cd "${S}" - - epatch "${FILESDIR}"/${PN}-4.15-libtool.patch #99593 - epatch "${FILESDIR}"/${P}-localization.patch #258452 - epatch "${FILESDIR}"/${P}-short-read.patch - - elibtoolize - epunt_cxx - - - # make sure python links against the current libmagic #54401 - sed -i "/library_dirs/s:'\.\./src':'../src/.libs':" python/setup.py - # dont let python README kill main README #60043 - mv python/README{,.python} - - if tc-is-cross-compiler ; then - # make sure cross-compilation uses correct libs and headers - sed -i -e "s%'/usr/%'${SYSROOT}/usr/%g" python/setup.py - fi - - # only one data file, so put it into /usr/share/misc/ - sed -i '/^pkgdatadir/s:/@PACKAGE@::' $(find -name Makefile.in) -} - -src_compile() { - # file uses things like strndup() and wcwidth() - append-flags -D_GNU_SOURCE - - econf --datadir=/usr/share/misc || die - emake || die "emake failed" - - use python && cd python && distutils_src_compile -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dodoc ChangeLog MAINT README - - use python && cd python && distutils_src_install -} - -pkg_postinst() { - use python && distutils_pkg_postinst -} - -pkg_postrm() { - use python && distutils_pkg_postrm -} diff --git a/sys-apps/file/files/file-4.15-libtool.patch b/sys-apps/file/files/file-4.15-libtool.patch deleted file mode 100644 index c41c8fe..0000000 --- a/sys-apps/file/files/file-4.15-libtool.patch +++ /dev/null @@ -1,19 +0,0 @@ -Fix build time issues with tools who like to export LD_LIBRARY_PATH -to retarded values. - -http://bugs.gentoo.org/99593 - ---- ltmain.sh -+++ ltmain.sh -@@ -5085,6 +5085,11 @@ - $echo >> $output "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -+ -+ # Make sure env LD_LIBRARY_PATH does not mess us up -+ if test -n \"\${LD_LIBRARY_PATH+set}\"; then -+ export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH -+ fi - " - case $host in - # Backslashes separate directories on plain windows diff --git a/sys-apps/file/files/file-5.00-localization.patch b/sys-apps/file/files/file-5.00-localization.patch deleted file mode 100644 index f598c15..0000000 --- a/sys-apps/file/files/file-5.00-localization.patch +++ /dev/null @@ -1,80 +0,0 @@ -http://bugs.gentoo.org/258452 - -From: christos@zoulas.com (Christos Zoulas) -To: file@mx.gw.com -Date: Fri, 13 Feb 2009 13:46:12 -0500 -Subject: Re: file 5.00 error with a French .doc file - -On Feb 12, 5:05am, dnovotny@redhat.com (Daniel Novotny) wrote: --- Subject: file 5.00 error with a French .doc file - -| -| ------=_Part_10359_582458326.1234433130940 -| Content-Type: text/plain; charset=utf-8 -| Content-Transfer-Encoding: 7bit -| -| hello, -| -| the new file 5.00 returns error exit code for a .DOC file: -| -| $ file ~/Download/PMD.doc -| /home/pmatilai/Download/PMD.doc: ERROR: CDF V2 Document, Little Endian, Os: -| Windows, Version 5.1, Code page: 1252vasprintf failed (Invalid or incomplete -| multibyte or wide character) -| -| I am attaching the file for analysis -| -| (btw this corrupts rpmbuild process, which checks every file it packs) -| -| best regards, - -$ file -m ../magic/magic.mgc PMD.doc -PMD.doc: CDF V2 Document, Little Endian, Os: Windows, Version 5.1, Code page: 1252, Title: \225, Subject: , Author: Bekrar, Keywords: , Comments: , Template: Normal.dot, Last Saved By: Bekrar, Revision Number: 2, Name of Creating Application: Microsoft Office Word, Total Editing Time: 01:00, Create Time/Date: Mon Aug 15 10:51:00 2005, Last Saved Time/Date: Mon Aug 15 11:02:00 2005, Number of Pages: 2, Number of Words: 646, Number of Characters: 3555, Security: 0 - -It must be the \225 character. Since we don't handle localization, I will -just eat the bad strings. Here is the output after the change: - -PMD.doc: CDF V2 Document, Little Endian, Os: Windows, Version 5.1, Code page: 1252, Author: Bekrar, Template: Normal.dot, Last Saved By: Bekrar, Revision Number: 2, Name of Creating Application: Microsoft Office Word, Total Editing Time: 01:00, Create Time/Date: Mon Aug 15 10:51:00 2005, Last Saved Time/Date: Mon Aug 15 11:02:00 2005, Number of Pages: 2, Number of Words: 646, Number of Characters: 3555, Security: 0 - - -Index: readcdf.c -=================================================================== -RCS file: /p/file/cvsroot/file/src/readcdf.c,v -retrieving revision 1.11 -diff -u -u -r1.11 readcdf.c ---- src/readcdf.c 3 Feb 2009 20:27:51 -0000 1.11 -+++ src/readcdf.c 13 Feb 2009 18:45:33 -0000 -@@ -75,9 +75,23 @@ - if (len > 1) { - s = info[i].pi_str.s_buf; - if (NOTMIME(ms)) { -- if (file_printf(ms, ", %s: %.*s", buf, -- len, s) == -1) -- return -1; -+ char vbuf[1024]; -+ size_t j; -+ for (j = 0; j < sizeof(vbuf) && len--; -+ j++, s++) { -+ if (*s == '\0') -+ break; -+ if (isprint((unsigned char)*s)) -+ vbuf[j] = *s; -+ } -+ if (j == sizeof(vbuf)) -+ --j; -+ vbuf[j] = '\0'; -+ if (vbuf[0]) { -+ if (file_printf(ms, ", %s: %s", -+ buf, vbuf) == -1) -+ return -1; -+ } - } else if (info[i].pi_id == - CDF_PROPERTY_NAME_OF_APPLICATION) { - if (strstr(s, "Word")) - -christos - -_______________________________________________ -File mailing list -File@mx.gw.com -http://mx.gw.com/mailman/listinfo/file diff --git a/sys-apps/file/files/file-5.00-short-read.patch b/sys-apps/file/files/file-5.00-short-read.patch deleted file mode 100644 index 1c35946..0000000 --- a/sys-apps/file/files/file-5.00-short-read.patch +++ /dev/null @@ -1,163 +0,0 @@ -From: christos@zoulas.com (Christos Zoulas) -Date: Fri, 20 Feb 2009 10:49:11 -0500 -To: File Utility <file@mx.gw.com> -Subject: Re: Error: file-5.00: Thumbs.db : Cannot read short stream (Invalid argument) - -On Feb 18, 9:14am, dnovotny@redhat.com (Daniel Novotny) wrote: --- Subject: Error: file-5.00: Thumbs.db : Cannot read short stream (Invalid - -| hello, -| -| because the Fedora rpm building process runs "file" on every file it packs -| and fails if there is an error, I have another bug report with -| a crash in file -| -| $ file ~/work/file-testfiles/Thumbs.db -| /home/dnovotny/work/file-testfiles/Thumbs.db: ERROR: Cannot read short stream (Invalid argument) -| -| the previous version 4.26 goes like this: -| -| $ file /usr/share/FlightGear/Aircraft/c172p/Models/Immat/Thumbs.db -| /usr/share/FlightGear/Aircraft/c172p/Models/Immat/Thumbs.db: Microsoft Office -| Document -| -| the file is probably not MS Office document at all, it just confuses the file logic -| and this remained not repaired, because it did not return error, which now does -| -| regards, -| -| Daniel Novotny - -Here's a patch. - -christos - -Index: cdf.c -=================================================================== -RCS file: /p/file/cvsroot/file/src/cdf.c,v -retrieving revision 1.17 -diff -u -u -r1.17 cdf.c ---- file/src/cdf.c 3 Feb 2009 20:27:51 -0000 1.17 -+++ file/src/cdf.c 20 Feb 2009 15:45:39 -0000 -@@ -239,7 +239,9 @@ - cdf_unpack_header(h, buf); - cdf_swap_header(h); - if (h->h_magic != CDF_MAGIC) { -- DPRINTF(("Bad magic 0x%x != 0x$x\n", h->h_magic, CDF_MAGIC)); -+ DPRINTF(("Bad magic 0x%llx != 0x%llx\n", -+ (unsigned long long)h->h_magic, -+ (unsigned long long)CDF_MAGIC)); - errno = EFTYPE; - return -1; - } -@@ -539,10 +541,11 @@ - if (dir->dir_tab[i].d_type == CDF_DIR_TYPE_ROOT_STORAGE) - break; - -+ /* If the it is not there, just fake it; some docs don't have it */ - if (i == dir->dir_len) { -- DPRINTF(("Cannot find root storage node\n")); -- errno = EFTYPE; -- return -1; -+ scn->sst_tab = NULL; -+ scn->sst_len = 0; -+ return 0; - } - d = &dir->dir_tab[i]; - -Index: readcdf.c -=================================================================== -RCS file: /p/file/cvsroot/file/src/readcdf.c,v -retrieving revision 1.12 -diff -u -u -r1.12 readcdf.c ---- file/src/readcdf.c 13 Feb 2009 18:46:48 -0000 1.12 -+++ file/src/readcdf.c 20 Feb 2009 15:45:39 -0000 -@@ -129,7 +129,10 @@ - case CDF_CLIPBOARD: - break; - default: -- file_error(ms, 0, "Internal parsing error"); -+#ifndef EFTYPE /* XXX: vapier: copied from cdf.c for now ... */ -+#define EFTYPE EINVAL -+#endif -+ errno = EFTYPE; - return -1; - } - } -@@ -202,6 +202,7 @@ - cdf_stream_t sst, scn; - cdf_dir_t dir; - int i; -+ const char *expn = ""; - (void)&nbytes; - (void)&buf; - -@@ -214,7 +215,7 @@ - #endif - - if (cdf_read_sat(fd, &h, &sat) == -1) { -- file_error(ms, errno, "Can't read SAT"); -+ expn = "Can't read SAT"; - return -1; - } - #ifdef CDF_DEBUG -@@ -222,7 +223,7 @@ - #endif - - if ((i = cdf_read_ssat(fd, &h, &sat, &ssat)) == -1) { -- file_error(ms, errno, "Can't read SAT"); -+ expn = "Can't read SSAT"; - goto out1; - } - #ifdef CDF_DEBUG -@@ -230,12 +231,12 @@ - #endif - - if ((i = cdf_read_dir(fd, &h, &sat, &dir)) == -1) { -- file_error(ms, errno, "Can't read directory"); -+ expn = "Can't read directory"; - goto out2; - } - - if ((i = cdf_read_short_stream(fd, &h, &sat, &dir, &sst)) == -1) { -- file_error(ms, errno, "Cannot read short stream"); -+ expn = "Cannot read short stream"; - goto out3; - } - -@@ -244,19 +245,14 @@ - #endif - if ((i = cdf_read_summary_info(fd, &h, &sat, &ssat, &sst, &dir, &scn)) - == -1) { -- /* Some files don't have summary info! */ --#ifdef notyet -- file_error(ms, errno, "Can't read summary_info"); --#else -- i = 0; --#endif -+ expn = ""; - goto out4; - } - #ifdef CDF_DEBUG - cdf_dump_summary_info(&h, &scn); - #endif - if ((i = cdf_file_summary_info(ms, &scn)) == -1) -- file_error(ms, errno, "Can't expand summary_info"); -+ expn = "Can't expand summary_info"; - free(scn.sst_tab); - out4: - free(sst.sst_tab); -@@ -266,5 +262,13 @@ - free(ssat.sat_tab); - out1: - free(sat.sat_tab); -+ if (i != 1) { -+ if (file_printf(ms, "CDF V2 Document") == -1) -+ return -1; -+ if (*expn) -+ if (file_printf(ms, ", corrupt: %s", expn) == -1) -+ return -1; -+ i = 1; -+ } - return i; - } |