1 | | Replying to [ticket:44644 mojca@…]: |
2 | | > p5.8-compress-snappy fails to build with perl 5.8 because of missing `parent.pm`: |
3 | | > {{{ |
4 | | > DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-compress-snappy/p5.8-compress-snappy/work/Compress-Snappy-0.23" && /opt/local/bin/perl5.8 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"' |
5 | | > DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-compress-snappy/p5.8-compress-snappy/work/Compress-Snappy-0.23" && /opt/local/bin/perl5.8 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"~ |
6 | | > Can't locate parent.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.9/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl /opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level /opt/local/lib/perl5/5.8.9 .) at /opt/local/lib/perl5/vendor_perl/5.8.9/File/Temp.pm line 32. |
7 | | > BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.8.9/File/Temp.pm line 32. |
8 | | > Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.8.9/Devel/CheckLib.pm line 13. |
9 | | > BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.8.9/Devel/CheckLib.pm line 13. |
10 | | > Compilation failed in require at Makefile.PL line 5. |
11 | | > BEGIN failed--compilation aborted at Makefile.PL line 5. |
12 | | > Command failed: cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-compress-snappy/p5.8-compress-snappy/work/Compress-Snappy-0.23" && /opt/local/bin/perl5.8 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" |
13 | | > Exit code: 2 |
14 | | > Error: org.macports.configure for port p5.8-compress-snappy returned: configure failure: command execution failed |
15 | | > }}} |
16 | | > |
17 | | > The file is either provided by `perl5.x` (`/opt/local/lib/perl5/5.20/parent.pm`) or by `p5.x-parent` (`/opt/local/lib/perl5/vendor_perl/5.20/parent.pm`). I didn't check, but apparently perl 5.8 doesn't install parent.pm. |
18 | | > |
19 | | > The port also contains comments like |
20 | | > {{{ |
21 | | > # requires ExtUtils::MakeMaker version 6.52+ but perl 5.8 core only provides 6.48 |
22 | | > }}} |
| 1 | |
| 3 | |
| 4 | This is true but until there is consensus on reducing the number of perl branches supported, it should probably be fixed. I haven't tested |
| 5 | this port but based on your comments at least two additional dependencies need to be added for the p5.8 branch. |
| 6 | |
| 7 | * p5-parent to provide parent.pm for p5.8, parent.pm is in core for 5.10+ but not p5.8 |
| 8 | * p5-extuils-makemaker to provide a version of ExtUtils::MakeMaker that satisfies the port's requirements. ExtUtils::MakeMaker is in core for all supported branches 5.8+ but, as the comment indicates, the version provided by 5.8 core is too old. |
| 9 | |
| 10 | These dependencies could be added for p5.8 only as done in p5-pdl or probably for all branches without any adverse consequences. I'm on the fence here. Should one rely on the core version where it is sufficient or use the CPAN version for all branches so they are all using the same code? Either way should work. |