Page 1 of 1

perl_prefix passed to Makefile.PL

Posted: 2011-02-26T07:49:47-07:00
by yecril71pl
Makefile.spec says:

Code: Select all

--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}"
The impact of this option is:

Code: Select all

/usr/bin/perl Makefile.PL INSTALLDIRS=vendor /usr/src/packages/BUILDROOT/ImageMagick-6.6.7-7.x86_64
I can find nothing in ExtUtils::MakeMaker documentation that would support such syntax. It says:
Attributes may be specified as arguments to WriteMakefile() or as NAME=VALUE pairs on the command line.
/usr/src/packages/BUILDROOT/ImageMagick-6.6.7-7.x86_64 is not a NAME=VALUE pair.

The net result:
ImageMagick.x86_64: E: file-contains-buildroot (Badness: 10000) /usr/lib64/ImageMagick-6.6.7/config/configure.xml

Re: perl_prefix passed to Makefile.PL

Posted: 2011-02-26T08:04:09-07:00
by magick
We're using the spec file put together by the Fedora folks, see http://pkgs.fedoraproject.org/gitweb/?p ... ec;hb=HEAD.

Re: perl_prefix passed to Makefile.PL

Posted: 2011-02-26T14:45:22-07:00
by yecril71pl
I am referring to the spec file that you distribute inside the tarball (6.6.7). It is unfair to use one thing and distribute another. :(
This particular line, however, is the same in both files, and it causes several problems I successively tried to point out, and several others I did not bother to report.
My code is simpler and builds cleanly:

Code: Select all

--with-perl-options='INSTALLDIRS=vendor' \
(just like that!)

Re: perl_prefix passed to Makefile.PL

Posted: 2011-02-26T15:02:27-07:00
by magick
Ok, we'll get your patch in the Subversion respository by sometime tomorrow.