redhotpenguin / perl-Archive-Zip

Archive::Zip as seen at https://metacpan.org/pod/Archive::Zip
Other
15 stars 44 forks source link

Local compilation of Archive-Zip module is not working with prebuild perl-5.32.1 #100

Open SRP-git opened 6 months ago

SRP-git commented 6 months ago

I have precompiled perl-5.32.1 with a user defined location /path/to/prebuilt/perl/ For debugging purpose, I have to apply some patches in Archive::Zip module, So I am building locally Archive-Zip-1.68. with below commands.

cd Archive-Zip-1.68 
/path/to/prebuilt/perl/bin/perl -I/install_path/perl5/lib/5.32.1 Makefile.PL PREFIX=/path/where/I/Want/to/install/
make -d
make install

The issue occurs when make runs. It says make[2]: execvp: /mnt/largesrc/Archive-Zip-1.68: Permission denied

After a long debugging, found the problem is with generated Archive-Zip-1.68/Makefile. Some variables are not pointing to proper values. Like ABSPERL points to Archive-Zip module path as below rather to perl binary.

ABSPERL = /mnt/largesrc/Archive-Zip-1.68
PERL = ""
FULLPERL = ""

It is because of the warning which I get while running perl with Makefile.PL. Which is why all those variables are not updating correctly and causing Permission denied error.

WARNINGS

Unable to find a perl 5 (by these names: /install_path/bin/perl perl5.32.1 perl5 perl miniperl, in these dirs: /install_path/bin  /sbin /usr/sbin /usr/kerberos/bin /usr/local/bin /bin /usr/bin /usr/X11R6/bin /install_path/bin /install_path/perl5/bin)
Use of uninitialized value in substitution (s///) at /install_path/perl5/lib/5.32.1/ExtUtils/MM_Unix.pm line 2109.
Use of uninitialized value in concatenation (.) or string at /install_path/perl5/lib/5.32.1/ExtUtils/MM_Unix.pm line 2110.
Use of uninitialized value in substitution (s///) at /install_path/perl5/lib/5.32.1/ExtUtils/MM_Unix.pm line 2124.
Use of uninitialized value $file in pattern match (m//) at /install_path/perl5/lib/5.32.1/i386-linux/File/Spec/Unix.pm line 245.
Use of uninitialized value $file in pattern match (m//) at /install_path/perl5/lib/5.32.1/i386-linux/File/Spec/Unix.pm line 245.
Use of uninitialized value in subroutine entry at /install_path/perl5/lib/5.32.1/i386-linux/File/Spec/Unix.pm line 518.
Use of uninitialized value in concatenation (.) or string at /install_path/perl5/lib/5.32.1/ExtUtils/MM_Unix.pm line 2137.

Kindly let me know if this is a known issue or am I doing something wrong.