Skip Menu |

This queue is for tickets about the XML-DTD CPAN distribution.

Report information
The Basics
Id: 87387
Status: resolved
Priority: 0/
Queue: XML-DTD

People
Owner: wohl [...] cpan.org
Requestors: james2vegas [...] aim.com
Cc:
AdminCc:

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



Subject: Makefile tries to install share/dtdto insto /
When installing under local-lib, share/ should be ${PERL_LOCAL_LIB_ROOT}/share not /share but the Makefile errors out with:

Show quoted text
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/share/dtdto'
mkdir /share: Permission denied at /usr/libdata/perl5/ExtUtils/Install.pm line 494.

Show quoted text
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
make: *** [pure_site_install] Error 13

On Sun Jul 28 19:57:31 2013, JWRIGHT wrote: Show quoted text
> When installing under local-lib, share/ should be > ${PERL_LOCAL_LIB_ROOT}/share > not /share but the Makefile errors out with:
What version of PERL are you using? Can you please send or upload the Makefile generated from Makefile.PL.
I'm getting this too. Using Perl 5.18. I persuaded it to install by deleting the entire contents of your "package MY" section in Makefile.PL, then re-running Makefile.PL, make, make test, make install.
Show quoted text
> I'm getting this too. > > Using Perl 5.18.
What OS? Show quoted text
> I persuaded it to install by deleting the entire contents of your > "package MY" section in Makefile.PL, then re-running Makefile.PL, > make, make test, make install.
Can you send the Makefile that is generated from the original distribution Makefile.PL?
I'm also having this issue using perl 5.18 on Mac OS X with ExtUtils::MakeMaker 6.68. What is the intended behavior of the custom MY subs? I can probably provide a patch to fix it, and make it work on windows, if I was clear on what it was supposed to do.
Show quoted text
> I'm also having this issue using perl 5.18 on Mac OS X with > ExtUtils::MakeMaker 6.68.
I don't see any of the problems reported here using perl 5.14 under Linux. I'm starting to suspect that some perl or module change has broken some of my makefile customisation. Show quoted text
> What is the intended behavior of the custom MY subs? I can probably > provide a patch to fix it, and make it work on windows, if I was clear > on what it was supposed to do.
They add sections to the makefile to modify the $share variable in the dtdto script to point to the installation path for the XSL files in share/dtdto (the effects should be visible in the initial lines of the pure_perl_install, pure_site_install, and pure_vendor_install makefile targets) and also to install these XSL files into the appropriate share directory. The modification to blib/script/dtdto consists of a call to sed is added to remove the "use Findbin; ..." line and correctly set the "$share = ..." line. I should add that I'm currently modifying some of this code to remove the sed call to make it a bit more platform independent. My current MY::install declaration looks like this: sub MY::install { my $inherited = shift->SUPER::install(@_); if ($^O !~ /MSWin/) { my $insert0 = <<EOF; \$(NOECHO) \$(PERLRUN) -pi -e 's+^use FindBin;.*++' \$(INST_SCRIPT)/dtdto; \\ \t\t\$(PERLRUN) -pi -e 's+^my \\\$\$share =[^;]*+my \\\$\$share = "\$(INSTALLSHAREDIR)"+' \$(INST_SCRIPT)/dtdto; \\ \t\t\$(CHMOD) \$(PERM_RWX) \$(INST_SCRIPT)/dtdto EOF chomp $insert0; $inherited =~ s/(pure_[a-z]+_install\s+::.*)/$1\n\t$insert0/g; my $insert1 = "\$(INST_SHAREDIR) \$(DESTINSTALLSHAREDIR)"; $inherited =~ s/(\$\(INST_MAN3DIR\)[^\)]+\))/$1 \\\n\t\t$insert1/g; return $inherited; } return $inherited; }
Show quoted text
> I'm getting this too. > > Using Perl 5.18. > > I persuaded it to install by deleting the entire contents of your > "package MY" section in Makefile.PL, then re-running Makefile.PL, > make, make test, make install.
Since the "package MY" section in Makefile.PL has been completely rewritten for version 0.11 (and I haven't received any example Makefiles that would allow me to look into this more carefully), I'm going to assume this bug is resolved in 0.11. Please re-open if this assumption turns out to be false.