pkgsrc/sysutils/file/patches/patch-aa

22 lines
630 B
Text
Raw Normal View History

Update to 4.13. I updated this because old version I was using had false-positive with "Macintosh HFS data" -- file(1) saw a postscript file wrong and broke some printing tasks. The distfile was no longer on MASTER_SITES so updated. This fixed my Poscript problem. Changes include: 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: If a CRLF text file happens to have CR at offset HOWMANY - 1 (currently 0xffff), it should not be counted as CR line terminator. If a line has length exactly MAXLINELEN, it should not yet be treated as a ``very long line'', as MAXLINELEN is ``longest sane line length''. With CRLF, the line length was not computed correctly, and even lines of length MAXLINELEN - 1 were treated as ``very long''. 2004-12-07 14:15 Christos Zoulas <christos@zoulas.com> * bzip2 needs a lot of input buffer space on some files before it can begin uncompressing. This makes file -z fail on some bz2 files. Fix it by giving it a copy of the file descriptor to read as much as it wants if we have access to it. <christos@zoulas.com> 2004-11-24 12:39 Christos Zoulas <christos@zoulas.com> * Stack smash fix, and ELF more conservative reading. Jakub Bogusz <qboosh@pld-linux.org> 2004-11-20 18:50 Christos Zoulas <christos@zoulas.com> * New FreeBSD version parsing code: Jon Noack <noackjr@alumni.rice.edu> * Hackish support for ucs16 strings <christos@zoulas.com> 2004-11-13 03:07 Christos Zoulas <christos@zoulas.com> * print the file name and line number in syntax errors. 2004 10-12 10:50 Christos Zoulas <christos@zoulas.com> * Fix stack overwriting on 0 length strings: Tim Waugh <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 2004-09-27 11:30 Christos Zoulas <christos@zoulas.com> * Remove 3rd and 4th copyright clause; approved by Ian Darwin. * Fix small memory leaks; caught by: Tamas Sarlos <stamas@csillag.ilab.sztaki.hu> 2004-07-24 16:33 Christos Zoulas <christos@zoulas.com> * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 2004-04-12 10:55 Christos Zoulas <christos@zoulas.com> * make sure that magic formats match magic types during compilation * fix broken sgi magic file 2004-04-06 20:36 Christos Zoulas <christos@zoulas.com> * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> * magic fixes
2005-02-18 20:39:26 +01:00
$NetBSD: patch-aa,v 1.2 2005/02/18 19:39:27 reed Exp $
Update to 4.13. I updated this because old version I was using had false-positive with "Macintosh HFS data" -- file(1) saw a postscript file wrong and broke some printing tasks. The distfile was no longer on MASTER_SITES so updated. This fixed my Poscript problem. Changes include: 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: If a CRLF text file happens to have CR at offset HOWMANY - 1 (currently 0xffff), it should not be counted as CR line terminator. If a line has length exactly MAXLINELEN, it should not yet be treated as a ``very long line'', as MAXLINELEN is ``longest sane line length''. With CRLF, the line length was not computed correctly, and even lines of length MAXLINELEN - 1 were treated as ``very long''. 2004-12-07 14:15 Christos Zoulas <christos@zoulas.com> * bzip2 needs a lot of input buffer space on some files before it can begin uncompressing. This makes file -z fail on some bz2 files. Fix it by giving it a copy of the file descriptor to read as much as it wants if we have access to it. <christos@zoulas.com> 2004-11-24 12:39 Christos Zoulas <christos@zoulas.com> * Stack smash fix, and ELF more conservative reading. Jakub Bogusz <qboosh@pld-linux.org> 2004-11-20 18:50 Christos Zoulas <christos@zoulas.com> * New FreeBSD version parsing code: Jon Noack <noackjr@alumni.rice.edu> * Hackish support for ucs16 strings <christos@zoulas.com> 2004-11-13 03:07 Christos Zoulas <christos@zoulas.com> * print the file name and line number in syntax errors. 2004 10-12 10:50 Christos Zoulas <christos@zoulas.com> * Fix stack overwriting on 0 length strings: Tim Waugh <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 2004-09-27 11:30 Christos Zoulas <christos@zoulas.com> * Remove 3rd and 4th copyright clause; approved by Ian Darwin. * Fix small memory leaks; caught by: Tamas Sarlos <stamas@csillag.ilab.sztaki.hu> 2004-07-24 16:33 Christos Zoulas <christos@zoulas.com> * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 2004-04-12 10:55 Christos Zoulas <christos@zoulas.com> * make sure that magic formats match magic types during compilation * fix broken sgi magic file 2004-04-06 20:36 Christos Zoulas <christos@zoulas.com> * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> * magic fixes
2005-02-18 20:39:26 +01:00
--- src/Makefile.in.orig 2005-01-07 11:17:26.000000000 -0800
+++ src/Makefile.in
@@ -84,14 +84,14 @@ am__include = @am__include@
am__quote = @am__quote@
fsect = @fsect@
install_sh = @install_sh@
-MAGIC = $(pkgdatadir)/magic
+MAGIC = @sysconfdir@/magic
lib_LTLIBRARIES = libmagic.la
include_HEADERS = magic.h
Update to 4.13. I updated this because old version I was using had false-positive with "Macintosh HFS data" -- file(1) saw a postscript file wrong and broke some printing tasks. The distfile was no longer on MASTER_SITES so updated. This fixed my Poscript problem. Changes include: 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: If a CRLF text file happens to have CR at offset HOWMANY - 1 (currently 0xffff), it should not be counted as CR line terminator. If a line has length exactly MAXLINELEN, it should not yet be treated as a ``very long line'', as MAXLINELEN is ``longest sane line length''. With CRLF, the line length was not computed correctly, and even lines of length MAXLINELEN - 1 were treated as ``very long''. 2004-12-07 14:15 Christos Zoulas <christos@zoulas.com> * bzip2 needs a lot of input buffer space on some files before it can begin uncompressing. This makes file -z fail on some bz2 files. Fix it by giving it a copy of the file descriptor to read as much as it wants if we have access to it. <christos@zoulas.com> 2004-11-24 12:39 Christos Zoulas <christos@zoulas.com> * Stack smash fix, and ELF more conservative reading. Jakub Bogusz <qboosh@pld-linux.org> 2004-11-20 18:50 Christos Zoulas <christos@zoulas.com> * New FreeBSD version parsing code: Jon Noack <noackjr@alumni.rice.edu> * Hackish support for ucs16 strings <christos@zoulas.com> 2004-11-13 03:07 Christos Zoulas <christos@zoulas.com> * print the file name and line number in syntax errors. 2004 10-12 10:50 Christos Zoulas <christos@zoulas.com> * Fix stack overwriting on 0 length strings: Tim Waugh <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 2004-09-27 11:30 Christos Zoulas <christos@zoulas.com> * Remove 3rd and 4th copyright clause; approved by Ian Darwin. * Fix small memory leaks; caught by: Tamas Sarlos <stamas@csillag.ilab.sztaki.hu> 2004-07-24 16:33 Christos Zoulas <christos@zoulas.com> * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 2004-04-12 10:55 Christos Zoulas <christos@zoulas.com> * make sure that magic formats match magic types during compilation * fix broken sgi magic file 2004-04-06 20:36 Christos Zoulas <christos@zoulas.com> * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> * magic fixes
2005-02-18 20:39:26 +01:00
EXTRA_DIST = test.c
bin_PROGRAMS = file
-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
+AM_CPPFLAGS = -DMAGIC='"$(MAGIC):$(pkgdatadir)/magic"'
libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
compress.c is_tar.c readelf.c print.c fsmagic.c \