Skip Menu |

This queue is for tickets about the File-LibMagic CPAN distribution.

Report information
The Basics
Id: 100975
Status: resolved
Priority: 0/
Queue: File-LibMagic

People
Owner: Nobody in particular
Requestors: nrpeter [...] sandia.gov
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.08



Subject: File::LibMagic doesn't build on Ubuntu 14.04LTS
Date: Wed, 17 Dec 2014 19:40:32 +0000
To: "bug-File-LibMagic [...] rt.cpan.org" <bug-File-LibMagic [...] rt.cpan.org>
From: "Peterson, Nick" <nrpeter [...] sandia.gov>
?I created a new Ubuntu 14.04LTS VM, installed cpanm (issue also happens with cpan). Verifying we've got libmagic-dev installed as the docs say root@ubuntu:/tmp# apt-get install libmagic-dev Reading package lists... Done Building dependency tree Reading state information... Done libmagic-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded. Try to install File::LibMagic root@ubuntu:/tmp# cpanm install File::LibMagic install is up to date. (0.01) --> Working on File::LibMagic Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/File-LibMagic-1.07.tar.gz ... OK Configuring File-LibMagic-1.07 ... OK Building and testing File-LibMagic-1.07 ... FAIL ! Installing File::LibMagic failed. See /root/.cpanm/work/1418845000.8569/build.log for details. Retry with --force to force install it. Contents of build.log cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux-gnu-thread-multi Work directory is /root/.cpanm/work/1418845000.8569 You have make /usr/bin/make You have LWP 6.05 You have /bin/tar: tar (GNU tar) 1.27.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. Searching install on cpanmetadb ... install is up to date. (0.01) Searching File::LibMagic on cpanmetadb ... --> Working on File::LibMagic Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/File-LibMagic-1.07.tar.gz -> OK Unpacking File-LibMagic-1.07.tar.gz Entering File-LibMagic-1.07 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66) Configuring File-LibMagic-1.07 Running Makefile.PL Checking for magic.h... yes Checking for magic_open in -lmagic... yes Checking for magic_version in -lmagic... WARNING: OBJECT takes a string/number not a ARRAY reference. Please inform the author. yes Checking if your kit is complete... Looks good Writing Makefile for File::LibMagic Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have strict 0 ... Yes (1.07) Checking if you have warnings 0 ... Yes (1.18) Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66) Checking if you have IPC::Open3 0 ... Yes (1.13) Checking if you have XSLoader 0 ... Yes (0.16) Checking if you have Exporter 0 ... Yes (5.68) Checking if you have Test::More 0.88 ... Yes (1.001009) Checking if you have lib 0 ... Yes (0.63) Checking if you have File::Spec 0 ... Yes (3.40) Checking if you have base 0 ... Yes (2.18) Checking if you have Carp 0 ... Yes (1.29) Checking if you have IO::Handle 0 ... Yes (1.34) Building and testing File-LibMagic-1.07 cp lib/File/LibMagic.xs blib/lib/File/LibMagic.xs cp lib/File/typemap blib/lib/File/typemap cp lib/File/LibMagic.pm blib/lib/File/LibMagic.pm Running Mkbootstrap for File::LibMagic () chmod 644 LibMagic.bs rm -f blib/arch/auto/File/LibMagic/LibMagic.so cc -shared -L/usr/local/lib -fstack-protector LibMagic.o -o blib/arch/auto/File/LibMagic/LibMagic.so \ -lmagic \ cc: error: LibMagic.o: No such file or directory make: *** [blib/arch/auto/File/LibMagic/LibMagic.so] Error 1 -> FAIL Installing File::LibMagic failed. See /root/.cpanm/work/1418845000.8569/build.log for details. Retry with --force to force install it.
On 2014-12-17 14:41:03, nrpeter@sandia.gov wrote: Show quoted text
> ?I created a new Ubuntu 14.04LTS VM, installed cpanm (issue also > happens with cpan). > > Verifying we've got libmagic-dev installed as the docs say > > root@ubuntu:/tmp# apt-get install libmagic-dev > Reading package lists... Done > Building dependency tree > Reading state information... Done > libmagic-dev is already the newest version. > 0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded. > > > Try to install File::LibMagic
It looks like this is the problem: : Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66) The Makefile.PL is using a new feature (OBJECT with an array value) which was introduced in EUMM 6.83_04. However, configure_requires does not specify a minimum version for EUMM. It seems that the "awesome" dzil plugin should know about this, and don't use an array here, especially because it's not really needed (just one value here). Regards, Slaven
On Wed Dec 17 16:09:14 2014, SREZIC wrote: Show quoted text
> On 2014-12-17 14:41:03, nrpeter@sandia.gov wrote:
> > ?I created a new Ubuntu 14.04LTS VM, installed cpanm (issue also > > happens with cpan). > > > > Verifying we've got libmagic-dev installed as the docs say > > > > root@ubuntu:/tmp# apt-get install libmagic-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > libmagic-dev is already the newest version. > > 0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded. > > > > > > Try to install File::LibMagic
> > It looks like this is the problem: > : Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66) > > The Makefile.PL is using a new feature (OBJECT with an array value) > which was introduced in EUMM 6.83_04. However, configure_requires does > not specify a minimum version for EUMM. > > It seems that the "awesome" dzil plugin should know about this, and > don't use an array here, especially because it's not really needed > (just one value here). > > Regards, > Slaven
Actually, this is my fault for setting the param as an arrayref rather than a straight up string. The Awesome plugin really doesn't have anything to do with this. It'd be _nice_ if it knew all the subtleties behind which version of EUMM supported what, but that seems _way_ outside the scope of what we can reasonably expect from such a plugin. I just released a 1.08 version which fixes this.
On 2014-12-17 13:09:14, SREZIC wrote: Show quoted text
> On 2014-12-17 14:41:03, nrpeter@sandia.gov wrote:
> > ?I created a new Ubuntu 14.04LTS VM, installed cpanm (issue also > > happens with cpan). > > > > Verifying we've got libmagic-dev installed as the docs say > > > > root@ubuntu:/tmp# apt-get install libmagic-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > libmagic-dev is already the newest version. > > 0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded. > > > > > > Try to install File::LibMagic
> > It looks like this is the problem: > : Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66) > > The Makefile.PL is using a new feature (OBJECT with an array value) > which was introduced in EUMM 6.83_04. However, configure_requires does > not specify a minimum version for EUMM. > > It seems that the "awesome" dzil plugin should know about this, and > don't use an array here, especially because it's not really needed > (just one value here). > > Regards, > Slaven
I took a look at the code in question: https://metacpan.org/source/DROLSKY/File-LibMagic-1.08/inc/MyMakeMaker.pm Indeed, the dzil plugin is really dumb and just takes whatever additional EUMM arguments are provided, without trying to parse them in any way. However, I can add a documentation note warning the user to check that the code or options they are adding will work, and to update minimum prereqs accordingly. (As an aside, since you (Dave) are just adding extra content, with newer versions of the plugin you can do all this work right from dist.ini and not have to subclass the plugin at all. This may or may not be appealing to you, depending on your taste.)