Gentoo Archives: gentoo-commits

From: Torsten Veller <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: eclass/
Date: Tue, 05 Jun 2012 18:22:53
Message-Id: 1338920382.d1606e0e72565de8b26cc098033f52e97ccc311a.tove@gentoo
1 commit: d1606e0e72565de8b26cc098033f52e97ccc311a
2 Author: Torsten Veller <tove <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 5 18:19:42 2012 +0000
4 Commit: Torsten Veller <tove <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 5 18:19:42 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=d1606e0e
7
8 Use EBUILD_DEATH_HOOKS
9
10 This should probably improved:
11 - perl-info should be maintained better
12 - Version-Requirements returns a deprecation warning
13
14 ---
15 eclass/perl-module.eclass | 34 ++++++++++++++++++++++++++++++++++
16 1 files changed, 34 insertions(+), 0 deletions(-)
17
18 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
19 index 76ba26c..23c6809 100644
20 --- a/eclass/perl-module.eclass
21 +++ b/eclass/perl-module.eclass
22 @@ -285,6 +285,40 @@ perlinfo() {
23 perl_set_version
24 }
25
26 +has perl_diagnostics ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" perl_diagnostics"
27 +
28 +perl_diagnostics() {
29 + local d
30 + d=${T}/perl-diagnostics.log
31 + [[ -e ${d} ]] && return
32 + : > $d
33 +
34 + {
35 + echo "perl: $(type -p perl)"
36 + echo
37 + echo "ENV values:"
38 + env | grep -E '^(PERL|HOME=|MANPATH|PATH|TEST|GENTOO_PERL)'
39 + echo
40 + echo "perl -V:"
41 + perl -V 2>&1
42 + echo
43 + if type -p perl-info 2>/dev/null ; then
44 + echo "perl-info output:"
45 + echo
46 + perl-info
47 + echo
48 + fi
49 + echo "Corelist Versions:"
50 + perl -MModule::CoreList -e 'for $mod ( Module::CoreList->find_modules(qr/^/) ) { eval "require $mod; print q[$mod : ] . \$${mod}::VERSION . qq[\n]; 1" or print qq{\e[31mNA: $mod\e[0m\n};}'
51 + } >> $d
52 +
53 + eerror
54 + eerror "-- Gentoo Perl Team specific bug reporting request --"
55 + eerror "Please attach the contents of the following file with your bug report:"
56 + eerror " $d"
57 + eerror
58 +}
59 +
60 perl_check_module_version() {
61 local REAL_PV
62 local gpmv="$(type -p gentoo-perlmod-version.pl)"