head 1.9; access; symbols pkgsrc-2026Q1:1.9.0.46 pkgsrc-2026Q1-base:1.9 pkgsrc-2025Q4:1.9.0.44 pkgsrc-2025Q4-base:1.9 pkgsrc-2025Q3:1.9.0.42 pkgsrc-2025Q3-base:1.9 pkgsrc-2025Q2:1.9.0.40 pkgsrc-2025Q2-base:1.9 pkgsrc-2025Q1:1.9.0.38 pkgsrc-2025Q1-base:1.9 pkgsrc-2024Q4:1.9.0.36 pkgsrc-2024Q4-base:1.9 pkgsrc-2024Q3:1.9.0.34 pkgsrc-2024Q3-base:1.9 pkgsrc-2024Q2:1.9.0.32 pkgsrc-2024Q2-base:1.9 pkgsrc-2024Q1:1.9.0.30 pkgsrc-2024Q1-base:1.9 pkgsrc-2023Q4:1.9.0.28 pkgsrc-2023Q4-base:1.9 pkgsrc-2023Q3:1.9.0.26 pkgsrc-2023Q3-base:1.9 pkgsrc-2023Q2:1.9.0.24 pkgsrc-2023Q2-base:1.9 pkgsrc-2023Q1:1.9.0.22 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.20 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.9.0.18 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.9.0.16 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.9.0.14 pkgsrc-2022Q1-base:1.9 pkgsrc-2021Q4:1.9.0.12 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.10 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.8 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.6 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.4 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.2 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.8.0.34 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.14 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.36 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.32 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.30 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.28 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.26 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.24 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.22 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.20 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.18 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.16 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.12 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.10 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.8 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.6 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.4 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.2 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.7.0.4 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.2 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.5.0.4 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.2 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.4.0.46 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.44 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.42 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.40 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.38 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.36 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.34 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.32 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.30 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.28 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.26 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.24 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.22 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.20 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.18 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.16 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.14 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.12 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.10 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.8 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.6 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.4 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.2 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.2.0.2 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.1.1.1.0.2 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.9 date 2020.09.06.23.09.45; author wiz; state Exp; branches; next 1.8; commitid XDV9KWLh2kF5G2nC; 1.8 date 2016.02.03.05.07.11; author mef; state Exp; branches; next 1.7; commitid DilhNxfRzs3QzqTy; 1.7 date 2015.09.23.06.43.48; author mef; state Exp; branches; next 1.6; commitid sp1uqY7HeQ0TolCy; 1.6 date 2015.08.22.23.41.00; author mef; state Exp; branches; next 1.5; commitid Tw05AQL7CFnj3kyy; 1.5 date 2015.02.07.16.01.07; author mef; state Exp; branches; next 1.4; commitid PHEZ6cXcWSQwN59y; 1.4 date 2009.05.30.20.02.07; author sno; state Exp; branches; next 1.3; 1.3 date 2009.05.17.13.54.38; author sno; state Exp; branches; next 1.2; 1.2 date 2009.03.10.23.35.02; author he; state Exp; branches; next 1.1; 1.1 date 2008.12.19.18.52.36; author he; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.12.19.18.52.36; author he; state Exp; branches; next ; desc @@ 1.9 log @p5-File-LibMagic: update to 1.23. 1.23 2020-08-28 - Fixed a bug with the Makefile.PL that caused every call to "make" to recompile the object file for the package's XS code. Reported by Kent Fredric. GH #28. @ text @$NetBSD: patch-aa,v 1.8 2016/02/03 05:07:11 mef Exp $ Ensure we use the required ldflags for the platform. --- Makefile.PL.orig 2020-08-29 03:54:44.000000000 +0000 +++ Makefile.PL @@@@ -18,7 +18,7 @@@@ my %WriteMakefileArgs = ( "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "File-LibMagic", - "LIBS" => "-lmagic", + "LIBS" => "$ENV{LDFLAGS} -lmagic -lz", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.008", "NAME" => "File::LibMagic", @ 1.8 log @(pkgsrc) - The same problem with ExtUtils-MakeMaker change gcc: error: LibMagic.o: No such file or directory https://mail-index.netbsd.org/pkgsrc-users/2015/09/19/msg022238.html patch-aa is manually editted to follow the old behavior of ExtUtils-MakeMaker Thanks joerg and Matthias Ferdinand (in old mail) (upstream) - Update 1.13 to 1.15 ------------------- 1.15 2015-09-19 - Fix the Makefile.PL so that we don't install the LibMagic.xs and typemap 1.14 2015-09-16 - Fixed handling of extra include dirs passed to Makefile.PL via the -I flag. This wasn't working properly in previous releases. Reported by Andy Jack. GH #6. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2015/09/23 06:43:48 mef Exp $ d3 1 a3 5 (1) Incompatible change in the newer ExtUtils-MakeMaker: It places .o files where the source file lives (lib/File/ in this case), whereas the older MakeMaker placed it in the current working dir (toplevel in this case). d5 4 a8 9 Thanks Matthias Ferdinand http://mail-index.netbsd.org/pkgsrc-users/2015/09/19/msg022238.html (2) -- Ensure we use the required ldflags for the platform. --- Makefile.PL.orig 2015-09-23 15:35:22.000000000 +0900 +++ Makefile.PL 2015-09-23 15:36:22.000000000 +0900 @@@@ -21,8 +21,8 @@@@ my %WriteMakefileArgs = ( a10 2 "INC" => "-I. -Ic", - "LDFROM" => "LibMagic\$(OBJ_EXT)", d12 1 a12 2 + "LDFROM" => "LibMagic\$(OBJ_EXT)", + 'LIBS' => "$ENV{LDFLAGS} -lmagic -lz", # e.g., '-lm' @ 1.7 log @- Fix the build with newer ExtUtils-MakeMaker Incompatible change in the newer ExtUtils-MakeMaker: It places .o files where the source file lives (lib/File/ in this case), whereas the older MakeMaker placed it in the current working dir (toplevel in this case). Thanks Matthias Ferdinand http://mail-index.netbsd.org/pkgsrc-users/2015/09/19/msg022238.html @ text @d1 1 a1 1 $NetBSD$ d23 1 a23 1 + "LDFROM" => "lib/File/LibMagic\$(OBJ_EXT)", @ 1.6 log @(pkgsrc) - Add following line for make test BUILD_DEPENDS+= p5-Test-Fatal-[0-9]*:../../devel/p5-Test-Fatal (upstream) - Update to 1.13 ---------------- 1.13 2015-07-12 - Fix failing tests with some versions of libmagic. PR #5 by E. Choroba. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2015/02/07 16:01:07 mef Exp $ d3 5 a7 1 - Ensure we use the required ldflags for the platform. d9 10 a18 3 --- Makefile.PL.orig 2015-07-13 02:54:52.000000000 +0900 +++ Makefile.PL 2015-08-23 08:33:54.000000000 +0900 @@@@ -22,7 +22,7 @@@@ my %WriteMakefileArgs = ( d21 1 a21 1 "LDFROM" => "LibMagic\$(OBJ_EXT)", d23 1 @ 1.5 log @(pkgsrc) - Remove the first chunk from patch-aa (See below at 1.02) - Add MAKE_JOBS_SAFE= no, without that, getting following error cannot open LibMagic.xs: No such file or directory (upstream) - Updated 0.96 to 1.10 -------------------- 1.10 2015-02-01 - Fixed Makefile.PL to actually use --lib and --inkclude properly. Previously it did the wrong thing with both of these arguments, and they were essentially ignored. Reported by WATANABE Hiroaki. Patch by Mithun Ayachit. RT #101715. 1.09 2014-12-20 - No code changes. This release just removes some junk that accidentally ended up in the last release's tarball. Reported by Alexander Bluhm. RT #101015. 1.08 2014-12-17 - Fix generated Makefile.PL so it's compatible with older versions of ExtUtils::MakeMaker. The previous release accidentally required EUMM 6.83_04 or newer without declaring this in configure_requires. Reported by Nick Peterson and solved by Slaven Rezic. RT #100975. 1.07 2014-12-14 - No changes from 1.06. [SUMMARY OF USER-FACING CHANGES SINCE 1.03] - Added yet another OO API to File::LibMagic. This provides a simpler and more future-proof API which can be expanded on later. The new methods are info_from_string(), info_from_filename(), and info_from_handle(). The latter method allows you to get info about an open filehandle. These new methods return the description, MIME type, and character encoding in one call. This addresses RT #54843 and partially addresses RT #99470. - Fix compilation with a threaded Perl. 1.06 2014-12-13 (TRIAL RELEASE) - Guard against older versions of libmagic that don't provide magic_version(). - Fix compilation with a threaded Perl. 1.05 2014-12-13 (TRIAL RELEASE) - Added a test that outputs the return value of magic_version() to help me debug test failures. 1.04 2014-12-13 (TRIAL RELEASE) - Added yet another OO API to File::LibMagic. This provides a simpler and more future-proof API which can be expanded on later. The new methods are info_from_string(), info_from_filename(), and info_from_handle(). The latter method allows you to get info about an open filehandle. These new methods return the description, MIME type, and character encoding in one call. This addresses RT #54843 and partially addresses RT #99470. 1.03 2014-08-30 - The shipped Makefile.PL now accepts --lib and --include command line arguments so you can specify additional lib and include directories. This should make this package easier to build on BSD systems, among others. Reported by Alexander Bluhm. RT #97945. 1.02 2014-07-26 - Added instructions for installing libmagic.so and magic.h to the POD and INSTALL.md file. Requested by Gabor Szabo. RT #97391. - Switched from using Devel::CheckLib to Config::AutoConf with the hope that the latter will work with more compilers. Requested by Jens Rehsack. RT #46543. - Switched the primary git repo to github (https://github.com/autarch/File-LibMagic). 1.01 2014-05-04 - Fixed repository metadata. Reported by Jens Rehsack. RT #89200. - A File::LibMagic object would not close one of the handles it might have opened, leading to leaks. Reported by Alexander Zaitsev. RT #93512. 1.00 2013-09-02 - Don't get all excited about this being 1.00. It's just what comes after 0.99. - The checktype_contents() and describe_contents() methods now accept a scalar ref in addition to a plain scalar. RT #28747. 0.99 2013-08-26 - More test changes to try to get tests passing on midnightbsd. 0.98 2013-08-25 - Fix test failures on midnightbsd (I hope) by relaxing a MIME type check in one of the tests. 0.97 2013-06-23 - Updated to the latest Devel::CheckLib, which should fix error reported by Perl 5.18 against the old CheckLib we were shipping. Reported by Dominic. RT #85210. - We no longer link against libz, since this module doesn't need it. Reported by Ansgar Burchardt. RT #56479. - Fixed tests to work with the latest libmagic. Patch by Gregor Herrmann. RT #75457. - Attempted to make the tests work with various versions of libmagic. Please report failures and your file/libmagic package versions. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2009/05/30 20:02:07 sno Exp $ d5 4 a8 4 --- Makefile.PL.orig 2015-02-02 02:42:08.000000000 +0900 +++ Makefile.PL 2015-02-03 10:19:06.000000000 +0900 @@@@ -22,7 +22,7 @@@@ "EXE_FILES" => [], @ 1.4 log @Updating patches/patch-aa to remove the Devel::CheckLib usage. First, pkgsrc checks the dependencies and second, Devel::CheckLib breaks on AIX. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2009/05/17 13:54:38 sno Exp $ a2 2 - Remove Devel::CheckLib invocation - it#s useless and won't work (RT #46543, #43826) d5 11 a15 22 --- Makefile.PL.orig 2009-05-12 13:31:06.000000000 +0000 +++ Makefile.PL 2009-05-30 19:47:40.000000000 +0000 @@@@ -4,18 +4,13 @@@@ use ExtUtils::MakeMaker; use Config qw/%Config/; -use lib qw(inc); -use Devel::CheckLib; - -check_lib_or_exit( lib => 'magic', header => 'magic.h' ); - WriteMakefile( 'NAME' => 'File::LibMagic', 'VERSION_FROM' => 'LibMagic.pm', # finds $VERSION 'PREREQ_PM' => { }, 'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module 'AUTHOR' => 'Andreas Fitzner ', - 'LIBS' => ['-lmagic -lz'], # e.g., '-lm' + 'LIBS' => [$ENV{LDFLAGS} . ' -lmagic -lz'], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' # Un-comment this if you add C files to link with later: @ 1.3 log @PkgSrc changes: - Updating package for p5 module File::LibMagic from 0.91 to 0.94 - Setting license to gnu-gpl-v2 Upstream changes: 0.94 May 2009 small error in t/6-oo.t 0.93 May 2009 using Devel::CheckLib as suggested in http://wiki.cpantesters.org/wiki/CPANAuthorNotes 0.92 May 2009 "normalisation"-problem -> changed t/6-oo.t @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2009/03/10 23:35:02 he Exp $ d3 3 a5 1 Ensure we use the required ldflags for the platform. d8 13 a20 2 +++ Makefile.PL 2009-05-17 13:36:43.000000000 +0000 @@@@ -15,7 +15,7 @@@@ @ 1.2 log @Update from version 0.90 to 0.91. Pkgsrc changes: o Ask for file >= 5.00, now that we have it Upstream changes: 0.91 Feb 2009 Changed t/6-oo.t in order to pass 'make test' for file-5.x @ text @d1 1 a1 1 $NetBSD$ d5 4 a8 4 --- Makefile.PL.orig 2008-08-06 10:56:22.000000000 +0200 +++ Makefile.PL 2008-09-18 11:48:17.459072000 +0200 @@@@ -12,7 +12,7 @@@@ 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 d10 1 a10 1 'AUTHOR' => 'Andreas Fitzner ', @ 1.1 log @Initial revision @ text @d1 4 @ 1.1.1.1 log @Import p5-File-LibMagic version 0.90. Fixes PR#39597. The File::LibMagic is a simple perlinterface to libmagic from the file-4.x package from Christos Zoulas @ text @@