Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean_after_build => 0 causes make install failure. #53

Open
van-de-bugger opened this issue Mar 24, 2015 · 1 comment
Open

clean_after_build => 0 causes make install failure. #53

van-de-bugger opened this issue Mar 24, 2015 · 1 comment

Comments

@van-de-bugger
Copy link

clean_after_build => 0 causes make install failure.

To reproduce:

$ tar xaf perl-Math-Simple.tgz
$ cd perl-Math-Simple
$ perl Makefile.PL
$ make install

Everything is ok.

Now turn cleaning off:

$ sed -i -e 's/clean_after_build => 1/clean_after_build => 0/' lib/Math/Simple.pm

And reinstall:

$ perl Makefile.PL
$ make VERBINST=1 install

...
Running Mkbootstrap for Math::Simple ()
chmod 644 Simple.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Skipping /home/vdb/perl-Math-Simple/blib/arch/auto/Math/Simple/Simple.so (unchanged)
Writing /home/vdb/perl-Math-Simple/blib/arch/auto/Math/Simple/.packlist
make[1]: Leaving directory '/home/vdb/perl-Math-Simple/_Inline/build/Math/Simple'
  Finished "make install" Stage

  Starting Cleaning Up Stage
  Finished Cleaning Up Stage

Finished Build Compile Stage

Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /home/vdb/.usr/lib/perl5/x86_64-linux-thread-multi/auto/Math/Simple/.packlist
Skipping /home/vdb/.usr/lib/perl5/x86_64-linux-thread-multi/auto/Math/Simple/Simple.so (unchanged)
Installing /home/vdb/.usr/lib/perl5/x86_64-linux-thread-multi/Math/Simple.pm
Writing /home/vdb/.usr/lib/perl5/x86_64-linux-thread-multi/auto/Math/Simple/.packlist
Can't open file /home/vdb/.usr/lib/perl5/x86_64-linux-thread-multi/auto/Math/Simple/.packlist: Permission denied at /usr/share/perl5/ExtUtils/Install.pm line 830.
Makefile:702: recipe for target 'pure_site_install' failed
make: *** [pure_site_install] Error 13

My local::lib is configured to use /home/vdb/.usr directory; in your system the directories will differ.

The problem appears with modules installed from Fedora 21 repository:

Inline v0.78
ExtUtils::MakeMaker v6.98

The problem also appears with fresh modules installed from CPAN:

Inline v0.80
Inline::C v0.75
ExtUtils::MakeMaker v7.04
@van-de-bugger
Copy link
Author

Oops, I do not see how to attach a reproducer to the post...

Ok, the reproducer just follows instruction published at https://metacpan.org/pod/distribution/Inline/lib/Inline.pod#WRITING-MODULES-WITH-INLINE the only difference is argument clean_after_build => 0 added to use Inline statement.

@van-de-bugger van-de-bugger changed the title clean_after_build => 1 causes make install failure. clean_after_build => 0 causes make install failure. Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant