perl_prefix passed to Makefile.PL

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

perl_prefix passed to Makefile.PL

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: perl_prefix passed to Makefile.PL

Post by magick »

We're using the spec file put together by the Fedora folks, see http://pkgs.fedoraproject.org/gitweb/?p ... ec;hb=HEAD.
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

Re: perl_prefix passed to Makefile.PL

Post 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!)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: perl_prefix passed to Makefile.PL

Post by magick »

Ok, we'll get your patch in the Subversion respository by sometime tomorrow.
Post Reply