aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim 'max_posedon' Melnikau <maxposedon@gmail.com>2010-02-08 08:47:48 +0000
committerMaksim 'max_posedon' Melnikau <maxposedon@gmail.com>2010-02-08 08:47:48 +0000
commit55d9b655483e5b8d675901e61cd12357ce36670b (patch)
tree253fb468a8cbd6c953bfc109a44549b2fe0ba987
parentFix the pkg-config file for alsa-lib-1.0.22. (diff)
downloadembedded-cross-55d9b655483e5b8d675901e61cd12357ce36670b.tar.gz
embedded-cross-55d9b655483e5b8d675901e61cd12357ce36670b.tar.bz2
embedded-cross-55d9b655483e5b8d675901e61cd12357ce36670b.zip
awesome(!) cross compile-aware perl-5.8.8-r3, from Nsane457(plevine457)
-rw-r--r--dev-lang/perl/ChangeLog1656
-rw-r--r--dev-lang/perl/Manifest42
-rw-r--r--dev-lang/perl/files/Makefile.SH.patch238
-rw-r--r--dev-lang/perl/files/config-bits1147
-rw-r--r--dev-lang/perl/files/letgcc-find-errno.patch42
-rw-r--r--dev-lang/perl/files/native-perlinc.patch24
-rw-r--r--dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch21
-rw-r--r--dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch280
-rw-r--r--dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch256
-rw-r--r--dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch111
-rw-r--r--dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch12
-rw-r--r--dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch33
-rw-r--r--dev-lang/perl/files/perl-5.8.8-cplusplus.patch22
-rw-r--r--dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch170
-rw-r--r--dev-lang/perl/files/perl-5.8.8-fbsdhints.patch57
-rw-r--r--dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch72
-rw-r--r--dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch11
-rw-r--r--dev-lang/perl/files/perl-5.8.8-lib32.patch76
-rw-r--r--dev-lang/perl/files/perl-5.8.8-lib64.patch76
-rw-r--r--dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch25
-rw-r--r--dev-lang/perl/files/perl-5.8.8-links.patch86
-rw-r--r--dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch11
-rw-r--r--dev-lang/perl/files/perl-5.8.8-perlcc.patch11
-rw-r--r--dev-lang/perl/files/perl-5.8.8-reorder-INC.patch93
-rw-r--r--dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch57
-rw-r--r--dev-lang/perl/files/perl-configpm-switch.patch33
-rw-r--r--dev-lang/perl/files/perl-dynloader.patch23
-rw-r--r--dev-lang/perl/files/perl-fix_h2ph_include_quote.patch61
-rw-r--r--dev-lang/perl/files/perl-h2ph-ansi-header.patch11
-rw-r--r--dev-lang/perl/files/perl-hppa-pa7200-configure.patch11
-rw-r--r--dev-lang/perl/files/perl-moreconfig.patch16
-rw-r--r--dev-lang/perl/files/perl-noksh.patch16
-rw-r--r--dev-lang/perl/files/perl-perldoc-emptydirs.patch10
-rw-r--r--dev-lang/perl/files/perl-picdl.patch13
-rw-r--r--dev-lang/perl/files/perl-prelink-lpthread.patch11
-rw-r--r--dev-lang/perl/files/perl-regexp-nossp.patch11
-rw-r--r--dev-lang/perl/metadata.xml13
-rw-r--r--dev-lang/perl/perl-5.10.1.ebuild603
-rw-r--r--dev-lang/perl/perl-5.8.8-r8.ebuild701
-rw-r--r--dev-lang/perl/perl-5.8.8-r9.ebuild786
-rw-r--r--eclass/perl-module.eclass292
-rw-r--r--sys-devel/libperl/ChangeLog600
-rw-r--r--sys-devel/libperl/Manifest26
-rw-r--r--sys-devel/libperl/files/Makefile.SH.patch238
-rw-r--r--sys-devel/libperl/files/config-bits1147
-rw-r--r--sys-devel/libperl/files/letgcc-find-errno.patch42
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-CVE-2008-1927.patch256
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-ccld-cflags.patch11
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-cplusplus.patch22
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-dragonfly-clean.patch170
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-fbsdhints.patch57
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-gcc42-command-line.patch11
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-lib64.patch96
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-makedepend-syntax.patch11
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-reorder-INC.patch93
-rw-r--r--sys-devel/libperl/files/libperl-5.8.8-utf8-boundary.patch57
-rw-r--r--sys-devel/libperl/files/libperl-create-libperl-soname.patch11
-rw-r--r--sys-devel/libperl/files/libperl-noksh.patch16
-rw-r--r--sys-devel/libperl/files/native-perlinc.patch24
-rw-r--r--sys-devel/libperl/files/perl-configpm-switch.patch33
-rw-r--r--sys-devel/libperl/files/perl-dynloader.patch23
-rw-r--r--sys-devel/libperl/files/perl-hppa-pa7200-configure.patch11
-rw-r--r--sys-devel/libperl/files/perl-moreconfig.patch16
-rw-r--r--sys-devel/libperl/libperl-5.10.1.ebuild23
-rw-r--r--sys-devel/libperl/libperl-5.8.8-r2.ebuild413
-rw-r--r--sys-devel/libperl/libperl-5.8.8-r3.ebuild453
-rw-r--r--sys-devel/libperl/metadata.xml13
67 files changed, 11113 insertions, 0 deletions
diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog
new file mode 100644
index 0000000..929f08a
--- /dev/null
+++ b/dev-lang/perl/ChangeLog
@@ -0,0 +1,1656 @@
+# ChangeLog for dev-lang/perl
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.312 2010/02/03 00:18:06 hanno Exp $
+
+ 03 Feb 2010; Hanno Boeck <hanno@gentoo.org> perl-5.8.8-r8.ebuild,
+ perl-5.10.1.ebuild:
+ Change license, Perl is Artistic or GPL-1 or later. We can't express or
+ later for now, so adding all GPL-1/2/3.
+
+ 24 Jan 2010; Brent Baude <ranger@gentoo.org> perl-5.10.1.ebuild:
+ Marking perl-5.10.1 ~ppc64 for bug 288028
+
+ 17 Jan 2010; Torsten Veller <tove@gentoo.org> -perl-5.8.8-r5.ebuild,
+ -perl-5.8.8-r6.ebuild, -files/perl-5.8.8-CAN-2005-0448-rmtree.patch:
+ Cleanup
+
+ 10 Dec 2009; Brent Baude <ranger@gentoo.org> perl-5.8.8-r8.ebuild:
+ Marking perl-5.8.8-r8 ppc64 for bug 295028
+
+ 10 Dec 2009; Raúl Porcel <armin76@gentoo.org> perl-5.8.8-r8.ebuild:
+ alpha/ia64/m68k/s390/sh stable wrt #295028
+
+ 09 Dec 2009; nixnut <nixnut@gentoo.org> perl-5.8.8-r8.ebuild:
+ ppc stable #295028
+
+ 09 Dec 2009; Raúl Porcel <armin76@gentoo.org> perl-5.10.1.ebuild:
+ Add ~sh wrt #288028
+
+ 08 Dec 2009; Jeroen Roovers <jer@gentoo.org> perl-5.8.8-r8.ebuild:
+ Stable for HPPA (bug #295028).
+
+ 08 Dec 2009; Tiago Cunha <tcunha@gentoo.org> perl-5.8.8-r8.ebuild:
+ stable sparc, bug 295028
+
+ 03 Dec 2009; Markus Meier <maekke@gentoo.org> perl-5.8.8-r8.ebuild:
+ amd64/arm/x86 stable, bug #295028
+
+ 16 Nov 2009; Raúl Porcel <armin76@gentoo.org> perl-5.10.1.ebuild:
+ Add ~alpha/~ia64/~s390/~sparc wrt #288028
+
+ 15 Nov 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Add patch for ICE on ia64 (#293312)
+
+ 15 Nov 2009; Raúl Porcel <armin76@gentoo.org> perl-5.10.1.ebuild:
+ Add ~m68k wrt #288028, thanks to kolla for testing
+
+ 15 Nov 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Disable parallel tests (#293241)
+
+ 15 Nov 2009; Torsten Veller <tove@gentoo.org> perl-5.8.8-r8.ebuild,
+ +files/perl-5.8.8-libnet-hostname.patch:
+ Add libnet hostname patch from perl-core/libnet
+
+ 14 Nov 2009; Torsten Veller <tove@gentoo.org> perl-5.8.8-r8.ebuild,
+ perl-5.10.1.ebuild:
+ Check for alternative scripts in ROOT
+
+*perl-5.8.8-r8 (14 Nov 2009)
+
+ 14 Nov 2009; Torsten Veller <tove@gentoo.org> +perl-5.8.8-r8.ebuild:
+ Add alternatives script linking to perl-5.8.8
+
+ 11 Nov 2009; Christian Ruppert <idl0r@gentoo.org>
+ -files/perl-5.8.8-libbits.patch:
+ Remove obsolete patch.
+
+ 04 Nov 2009; Michael Haubenwallner <haubi@gentoo.org>
+ files/perl-5.8.8-ccld-cflags.patch:
+ Respect CFLAGS also when linking executables, not just for libperl
+
+ 04 Nov 2009; Michael Haubenwallner <haubi@gentoo.org>
+ perl-5.8.8-r6.ebuild, +files/perl-5.8.8-ccld-cflags.patch:
+ Respect CFLAGS even for linking when done with compiler
+
+ 27 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> perl-5.10.1.ebuild:
+ Keywording for ppc, bug 288028
+
+ 27 Oct 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Fix RT69973: disable non-unicode case insensitive trie matching (#290194)
+
+ 22 Oct 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Fix warning: Rebuild packages linking libperl.so after toggling use flags
+
+ 21 Oct 2009; Markus Meier <maekke@gentoo.org> perl-5.10.1.ebuild:
+ add ~amd64/~arm/~x86, bug #288028
+
+ 13 Oct 2009; Jeroen Roovers <jer@gentoo.org> perl-5.10.1.ebuild:
+ Marked ~hppa (bug #288028).
+
+ 29 Sep 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Rename and link the scripts from podlators too: pod2man and pod2text (#286962)
+
+ 28 Sep 2009; Torsten Veller <tove@gentoo.org> perl-5.10.1.ebuild:
+ Bump perl patchset. Fixes bugs #286840, #286841
+
+ 28 Sep 2009; Torsten Veller <tove@gentoo.org> perl-5.8.8-r5.ebuild,
+ perl-5.8.8-r6.ebuild, perl-5.10.1.ebuild:
+ Bump perl-5.10.1 patchset.
+ Fix asm/page.h failure. Thanks to Alon Bar-Lev and Diego Pettenò.
+ (#259923, #286656, #249827, #265268)
+
+*perl-5.10.1 (27 Sep 2009)
+
+ 27 Sep 2009; Torsten Veller <tove@gentoo.org> +perl-5.10.1.ebuild:
+ Version bump
+
+ 30 Jul 2009; Torsten Veller <tove@gentoo.org> -perl-5.8.8-r7.ebuild:
+ Remove 5.8.8-r7 again
+
+ 29 May 2009; Torsten Veller <tove@gentoo.org> perl-5.8.8-r6.ebuild,
+ perl-5.8.8-r7.ebuild, +files/perl-5.8.8-fix_file_path_chdir.patch:
+ Add another File-Path fix
+
+ 27 May 2009; Torsten Veller <tove@gentoo.org> -perl-5.8.8-r2.ebuild,
+ -perl-5.8.8-r3.ebuild, -perl-5.8.8-r4.ebuild:
+ Cleanup
+
+*perl-5.8.8-r7 (27 May 2009)
+
+ 27 May 2009; Torsten Veller <tove@gentoo.org> +perl-5.8.8-r7.ebuild:
+ PDEPENDS on CPAN, Encode, ExtUtils-MakeMaker
+
+ 08 May 2009; Torsten Veller <tove@gentoo.org>
+ +files/perl-fix_h2ph_include_quote.patch, perl-5.8.8-r6.ebuild:
+ Fix h2ph to handle system headers with quotes
+
+ 26 Apr 2009; Friedrich Oslage <bluebird@gentoo.org>
+ +files/perl-5.8.8-lib32.patch, files/perl-5.8.8-lib64.patch,
+ perl-5.8.8-r5, perl-5.8.8-r6:
+ Install libraries into the correct directory if libdir is lib32, simplify
+ the patches, bug #266052
+
+ 11 Mar 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ perl-5.8.8-r5.ebuild:
+ Backport to stable, too.
+
+ 11 Mar 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ perl-5.8.8-r6.ebuild:
+ Fix logic for applying the lib64 patch, use get_libdir to decide (should
+ fix 32-bit userland profiles).
+
+*perl-5.8.8-r6 (28 Jan 2009)
+
+ 28 Jan 2009; Torsten Veller <tove@gentoo.org>
+ +files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch, +perl-5.8.8-r6.ebuild:
+ Fix #249629 - File::Path multiple symlink attack vulnerabilities
+
+ 23 Aug 2008; Jeroen Roovers <jer@gentoo.org> metadata.xml:
+ Add GLEP 56 USE flag descriptions. Remove empty tag.
+
+ 18 Jul 2008; Javier Villavicencio <the_paya@gentoo.org>
+ files/perl-5.8.8-fbsdhints.patch:
+ Updated fbsdhints patch, bug 225323.
+
+ 05 Jul 2008; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ perl-5.8.8-r2.ebuild, perl-5.8.8-r3.ebuild, perl-5.8.8-r4.ebuild,
+ perl-5.8.8-r5.ebuild:
+ Replaced reference to dead site http://perldoc.com with an equivalent
+ http://search.cpan.org url (bug #230881)
+
+ 16 May 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ perl-5.8.8-r5.ebuild:
+ ppc stable, bug #219203
+
+ 15 May 2008; Raúl Porcel <armin76@gentoo.org> perl-5.8.8-r5.ebuild:
+ alpha/ia64 stable wrt security #219203
+
+ 14 May 2008; Markus Meier <maekke@gentoo.org> perl-5.8.8-r5.ebuild:
+ amd64 stable, bug #219203
+
+ 14 May 2008; Christian Faulhammer <opfer@gentoo.org> perl-5.8.8-r5.ebuild:
+ stable x86, security bug 219203
+
+ 14 May 2008; Markus Rothe <corsair@gentoo.org> perl-5.8.8-r5.ebuild:
+ Stable on ppc64; bug #219203
+
+ 14 May 2008; Ferris McCormick <fmccor@gentoo.org> perl-5.8.8-r5.ebuild:
+ Sparc stable, Security Bug #219203 (UTF regex problem) --- all tests good.
+
+ 14 May 2008; Jeroen Roovers <jer@gentoo.org> perl-5.8.8-r5.ebuild:
+ Stable for HPPA (bug #219203).
+
+*perl-5.8.8-r5 (09 May 2008)
+
+ 09 May 2008; Torsten Veller <tove@gentoo.org>
+ +files/perl-5.8.8-CVE-2008-1927.patch, +perl-5.8.8-r5.ebuild:
+ #219203 - Fix for CVE-2008-1927
+
+*perl-5.8.8-r4 (19 Nov 2007)
+
+ 19 Nov 2007; Christian Hartmann <ian@gentoo.org> +perl-5.8.8-r4.ebuild:
+ Revbump to make sure everybody got a working perl as suggested in bug
+ #199518 in comment 22; keeping keywords to speed up the progress for bug
+ #198196
+
+ 18 Nov 2007; Christian Hartmann <ian@gentoo.org>
+ +files/perl-5.8.8-lib64.patch:
+ Readding perl-5.8.8-lib64.patch; thanks angelos
+
+ 18 Nov 2007; Christian Hartmann <ian@gentoo.org> perl-5.8.8-r2.ebuild,
+ perl-5.8.8-r3.ebuild:
+ Reverting solars changes; bug #199518
+
+ 18 Nov 2007; <solar@gentoo.org> -files/perl-5.8.8-lib64.patch,
+ +files/perl-5.8.8-libbits.patch, perl-5.8.8-r2.ebuild,
+ perl-5.8.8-r3.ebuild:
+ - fixed the lib64 patch that was breaking on amd64 32ul.
+
+ 14 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.8-r3.ebuild:
+ Stable on amd64 wrt bug #198196.
+
+ 13 Nov 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ perl-5.8.8-r3.ebuild:
+ ppc stable, bug #198196
+
+ 13 Nov 2007; Markus Rothe <corsair@gentoo.org> perl-5.8.8-r3.ebuild:
+ Stable on ppc64; bug #198196
+
+ 13 Nov 2007; Raúl Porcel <armin76@gentoo.org> perl-5.8.8-r3.ebuild:
+ alpha/ia64 stable wrt security #198196
+
+ 13 Nov 2007; Markus Meier <maekke@gentoo.org> perl-5.8.8-r3.ebuild:
+ x86 stable, security bug #198196
+
+ 13 Nov 2007; Jeroen Roovers <jer@gentoo.org> perl-5.8.8-r3.ebuild:
+ Stable for HPPA (bug #198196). Fixed many quoting issues.
+
+ 12 Nov 2007; Ferris McCormick <fmccor@gentoo.org> perl-5.8.8-r3.ebuild:
+ Sparc stable --- Security Bug #198196 --- All tests and autotools good.
+
+*perl-5.8.8-r3 (12 Nov 2007)
+
+ 12 Nov 2007; <cab@gentoo.org> +files/perl-5.8.8-utf8-boundary.patch,
+ +perl-5.8.8-r3.ebuild:
+ patch for bug #198196
+
+ 17 Oct 2007; Christian Hartmann <ian@gentoo.org> perl-5.8.8-r2.ebuild:
+ Fixed bug #194384
+
+ 19 Aug 2007; Christian Hartmann <ian@gentoo.org>
+ +files/perl-5.8.8-perlcc.patch, perl-5.8.8-r2.ebuild:
+ Fixed bug #181229
+
+ 16 Aug 2007; Zac Medico <zmedico@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug #187866 - Block Test-Harness, PodParser, and Locale-gettext when
+ the "build" flag is enabled since perl needs to be rebuilt first.
+
+ 08 Aug 2007; Mike Frysinger <vapier@gentoo.org> perl-5.8.8-r2.ebuild:
+ Apply gcc-4.2 patch to everyone.
+
+ 06 Aug 2007; Harald van Dijk <truedfx@gentoo.org>
+ +files/perl-5.8.8-makedepend-syntax.patch, perl-5.8.8-r2.ebuild:
+ Fix syntax error in makedepend.SH
+
+ 06 Aug 2007; Christian Hartmann <ian@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug #187866 - added suggested fix
+
+ 30 Apr 2007; <solar@gentoo.org> perl-5.8.8-r2.ebuild:
+ - filter ssp on ia64 due to ICE in compiler. revisit when we have a working
+ hardened gcc-4.x
+
+ 30 Mar 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 147184, thanks to jweckhart for the patch :)
+
+ 08 Mar 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Change to the call for the lib64 patch to enable it for ppc64 - helps with
+ stage 1 building problems. Thanks ranger :)
+
+ 07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.8-r2.ebuild:
+ Change all instances of [ to [[.
+
+ 04 Mar 2007; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8-asm-page-h-compile-failure.patch, perl-5.8.8-r2.ebuild:
+ Bug 168312, patch from Peter for >=2.6.20 kernel headers.
+
+ 11 Feb 2007; Fabian Groffen <grobian@gentoo.org> perl-5.8.8-r2.ebuild:
+ Dropped ppc-macos keyword, see you in prefix
+
+ 11 Jan 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Reverting changes made for bug 59328 until we can figure out why this breaks
+ under catalyst
+
+ 09 Jan 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 144965, adjusted gcc patch line
+
+ 07 Jan 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 160623, mistakenly removed the else block for noman
+
+ 05 Jan 2007; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 59328, features=noman support
+
+ 19 Nov 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8-gcc42-command-line.patch, perl-5.8.8-r2.ebuild:
+ Bug 144965, gcc-4.2 bug/patch, patch provided by dirtyepic
+
+ 18 Nov 2006; Michael Cummings <mcummings@gentoo.org>
+ -files/perl-5.8.7-CAN-2005-0448-rmtree.patch,
+ -files/perl-5.8.7-regexp-nossp.patch, -files/perl-5.8.7-tempfiles.patch,
+ -files/perl-exp_intwrap.patch, -files/perl-nonblock.patch,
+ -files/perl-reorder-INC.patch, perl-5.8.8-r2.ebuild:
+ Bug 150702; also cleaned up unused patches
+
+ 23 Oct 2006; Michael Cummings <mcummings@gentoo.org>
+ -perl-5.8.7-r3.ebuild:
+ Removing old perl
+
+ 17 Oct 2006; Roy Marples <uberlord@gentoo.org> perl-5.8.8-r2.ebuild:
+ Added ~sparc-fbsd keyword.
+
+ 07 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> perl-5.8.8-r2.ebuild:
+ Add a dependency on freebsd-mk-defs on FreeBSD.
+
+ 18 Aug 2006; Michael Cummings <mcummings@gentoo.org>
+ -perl-5.8.7-r2.ebuild, perl-5.8.7-r3.ebuild, perl-5.8.8-r2.ebuild:
+ Cleaning up; bug 142940, updating h2ph options for multilib boxes
+
+ 15 Aug 2006; Christian Hartmann <ian@gentoo.org> perl-5.8.8-r2.ebuild:
+ Fix bug #143895
+
+ 13 Aug 2006; <yuval@gentoo.org> perl-5.8.7-r2.ebuild,
+ perl-5.8.7-r3.ebuild, perl-5.8.8-r2.ebuild:
+ Bug #139478 - changed description. Thanks Marko Horvat for 'reporting'! ;)
+
+ 11 Jul 2006; Michael Cummings <mcummings@gentoo.org> -perl-5.8.8.ebuild,
+ -perl-5.8.8-r1.ebuild:
+ Cleaning up
+
+ 25 Jun 2006; Christian Hartmann <ian@gentoo.org> Manifest:
+ Removed obsolete patchfiles
+
+ 24 Jun 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.7-r2.ebuild,
+ perl-5.8.7-r3.ebuild, perl-5.8.8.ebuild, perl-5.8.8-r1.ebuild,
+ perl-5.8.8-r2.ebuild:
+ Removing perl-core/ExtUtils-MakeMaker
+
+ 18 Jun 2006; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.8-r2.ebuild:
+ Stable on ia64.
+
+ 14 Jun 2006; Michael Cummings <mcummings@gentoo.org> -files/perl-cleaner,
+ -perl-5.8.6-r5.ebuild, -perl-5.8.6-r6.ebuild, -perl-5.8.6-r7.ebuild,
+ -perl-5.8.6-r8.ebuild, -perl-5.8.7.ebuild, -perl-5.8.7-r1.ebuild:
+ Cleaning up
+
+ 08 Jun 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Fixed pdepend to exclude build folks
+
+ 07 Jun 2006; Joshua Kinard <kumba@gentoo.org> perl-5.8.8-r2.ebuild:
+ Marked stable on mips.
+
+ 07 Jun 2006; <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Following a conversation with agaffney, removed code that is dup'd from
+ libperl that was causing a loop in catalyst building - fixes help2man bugs -
+ bug 130248 in particular
+
+ 03 Jun 2006; Guy Martin <gmsoft@gentoo.org>
+ +files/perl-hppa-pa7200-configure.patch, perl-5.8.8-r2.ebuild:
+ On PA7200, uname -a contains a single quote and we need to filter it
+ otherwise configure fails. See #125535.
+
+ 30 May 2006; <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 134859, fixed USE=build removals on lib64
+
+ 27 May 2006; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.8-r2.ebuild:
+ Stable on alpha.
+
+ 27 May 2006; <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Marking sparc stable
+
+ 26 May 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ perl-5.8.8-r2.ebuild:
+ hppa stable
+
+ 26 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.8-r2.ebuild:
+ Stable on amd64 and x86 wrt bug #133989.
+
+ 26 May 2006; Diego Pettenò <flameeyes@gentoo.org> perl-5.8.8-r2.ebuild:
+ Re-add ~x86-fbsd keyword.
+
+ 26 May 2006; Markus Rothe <corsair@gentoo.org> perl-5.8.8-r2.ebuild:
+ Stable on ppc64; bug #133989
+
+ 26 May 2006; <nixnut@gentoo.org> perl-5.8.8-r2.ebuild:
+ Stable on ppc. Bug #133989
+
+ 26 May 2006; <mcummings@gentoo.org> perl-5.8.8-r2.ebuild:
+ Bug 134359, -Dusenm
+
+*perl-5.8.8-r2 (26 May 2006)
+
+ 26 May 2006; <mcummings@gentoo.org> +perl-5.8.8-r2.ebuild:
+ Bug 134363 - pdepends got lost.
+
+ 25 May 2006; Guy Martin <gmsoft@gentoo.org> perl-5.8.8-r1.ebuild:
+ Stable on hppa.
+
+ 24 May 2006; <nixnut@gentoo.org> perl-5.8.8-r1.ebuild:
+ Stable on ppc. bug #133989
+
+ 23 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.8-r1.ebuild:
+ Stable on x86 wrt bug #133989.
+
+ 23 May 2006; <mcummings@gentoo.org> perl-5.8.8-r1.ebuild:
+ Marking stable sparc, bug 133989
+
+ 23 May 2006; Markus Rothe <corsair@gentoo.org> perl-5.8.8-r1.ebuild:
+ Stable on ppc64; bug #133989
+
+ 20 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> perl-5.8.8-r1.ebuild:
+ Use realpath when available, rather than readlink -f, to support
+ Gentoo/FreeBSD.
+
+ 31 Mar 2006; Diego Pettenò <flameeyes@gentoo.org> perl-5.8.8-r1.ebuild:
+ Add ~x86-fbsd keyword.
+
+*perl-5.8.8-r1 (29 Mar 2006)
+
+ 29 Mar 2006; <mcumming@gentoo.org> +files/perl-5.8.8-cplusplus.patch,
+ +perl-5.8.8-r1.ebuild:
+ Patch 27203 in blead - fixes c++ problems in XS code :)
+
+ 20 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8-fbsdhints.patch, perl-5.8.8.ebuild:
+ Bug 122780, freebsd hints via flameeyes
+
+ 20 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8-dragonfly-clean.patch, perl-5.8.8.ebuild:
+ Bug 122706, dragonfly patches. Patch submitted upstream and here by
+ Robert Sebastian Gerus, should be available in blead now.
+
+ 20 Feb 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.8.ebuild:
+ Updated perl-cleaner dep
+
+ 15 Feb 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.8.ebuild:
+ Dropping PROVIDE, repoman rejoices, people return to normalcy
+
+ 13 Feb 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.8.ebuild:
+ Updated virtuals per ciarnm's input
+
+ 07 Feb 2006; Aron Griffis <agriffis@gentoo.org> perl-5.8.8.ebuild:
+ Prefer to avoid eval and use a bash array for myconf instead, it's less
+ error-prone
+
+ 07 Feb 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.8.ebuild:
+ src update
+
+ 07 Feb 2006; <mcumming@gentoo.org> perl-5.8.8.ebuild:
+ Style fixes to 5.8.8, thanks az
+
+*perl-5.8.8 (07 Feb 2006)
+
+ 07 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8-CAN-2005-0448-rmtree.patch,
+ +files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch, +files/perl-5.8.8-lib64.patch,
+ +files/perl-5.8.8-links.patch, +files/perl-5.8.8-reorder-INC.patch,
+ -files/perl-5.8.8_rc1-CAN-2005-0448-rmtree.patch,
+ -files/perl-5.8.8_rc1-reorder-INC.patch, -perl-5.8.8_rc1.ebuild,
+ +perl-5.8.8.ebuild:
+ Perl 5.8.8, with amd64 fixes, RUNPATH fixes, a completely reversed INC, and
+ a shiny set of changes.
+
+ 24 Jan 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8_rc1-reorder-INC.patch, perl-5.8.8_rc1.ebuild:
+ Some tweaks to perl-5.8.8 installation
+
+*perl-5.8.8_rc1 (22 Jan 2006)
+
+ 22 Jan 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/perl-5.8.8_rc1-CAN-2005-0448-rmtree.patch,
+ +files/perl-regexp-nossp.patch, +perl-5.8.8_rc1.ebuild:
+ RC1 of perl 5.8.8
+
+ 21 Jan 2006; Markus Rothe <corsair@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on ppc64
+
+ 16 Jan 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r8.ebuild,
+ perl-5.8.7-r3.ebuild:
+ Minor addition of enc2xs, doesn't impact anything, just placing into ebuild
+ for later reference
+
+ 15 Jan 2006; Michael Cummings <mcummings@gentoo.org> perl-5.8.7-r3.ebuild:
+ Bug 110363, thanks to Nathan and Rene for noting the typo in the minimal
+ section
+
+ 14 Jan 2006; Torsten Veller <tove@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on x86 (#118938)
+
+ 25 Dec 2005; Joshua Kinard <kumba@gentoo.org> perl-5.8.6-r8.ebuild,
+ perl-5.8.7-r3.ebuild:
+ Mark 5.8.6-r8 && 5.8.7-r3 stable on mips.
+
+ 14 Dec 2005; <mcumming@gentoo.org> perl-5.8.7-r3.ebuild:
+ Bug 115503, better if-clause for nossp patch
+
+ 07 Dec 2005; Jason Wever <weeve@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on SPARC wrt bug #114113.
+
+ 07 Dec 2005; Mark Loeser <halcy0n@gentoo.org> perl-5.8.6-r8.ebuild:
+ Stable on x86; bug #114113
+
+ 07 Dec 2005; Jose Luis Rivero <yoswink@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on alpha wrt security bug #114113
+
+ 06 Dec 2005; Michael Hanselmann <hansmi@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on hppa, ppc.
+
+ 06 Dec 2005; Marcus D. Hanwell <cryos@gentoo.org> perl-5.8.7-r3.ebuild:
+ Stable on amd64, bug 114113.
+
+ 06 Dec 2005; Markus Rothe <corsair@gentoo.org> perl-5.8.6-r8.ebuild:
+ Stable on ppc64; bug #114113
+
+*perl-5.8.7-r3 (06 Dec 2005)
+
+ 06 Dec 2005; <mcumming@gentoo.org> files/perl-exp_intwrap.patch,
+ +perl-5.8.7-r3.ebuild:
+ More bug 114113 work. Patch updated, segfaults are all handled now with
+ cleaner exit/messages. test with perl -e 'printf("%2147483647$n");' or perl
+ -e 'printf "%4294967295d"' before and after upgrading to demonstrate
+
+ 05 Dec 2005; <mcumming@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.6-r6.ebuild, perl-5.8.6-r7.ebuild, perl-5.8.7-r1.ebuild,
+ perl-5.8.7-r2.ebuild, perl-5.8.7.ebuild:
+ Bug 113930, case statement for non-linux. Also (finally) a fix for the
+ installmanpaths (personal bug)
+
+ 05 Dec 2005; <mcummings@gentoo.org> perl-5.8.6-r7.ebuild,
+ perl-5.8.7-r2.ebuild:
+ Mistaken commit missed the picdl patch (was working on bug 65624, which this
+ patch appears to cause a seg fault with)
+
+ 02 Dec 2005; Joseph Jezak <josejx@gentoo.org> perl-5.8.6-r7.ebuild:
+ Marked ppc stable for bug #114113.
+
+ 01 Dec 2005; Andrej Kacian <ticho@gentoo.org> perl-5.8.6-r7.ebuild:
+ Stable on x86, bug #114113.
+
+ 01 Dec 2005; <dang@gentoo.org> perl-5.8.7-r2.ebuild:
+ Marked stable on amd64
+
+ 01 Dec 2005; Markus Rothe <corsair@gentoo.org> perl-5.8.7-r2.ebuild:
+ Stable on ppc64; bug #114113
+
+ 01 Dec 2005; Gustavo Zacarias <gustavoz@gentoo.org> perl-5.8.7-r2.ebuild:
+ Stable on sparc wrt security #114113
+
+*perl-5.8.7-r2 (01 Dec 2005)
+
+ 01 Dec 2005; <mcumming@gentoo.org> +files/perl-exp_intwrap.patch,
+ +perl-5.8.6-r7.ebuild, +perl-5.8.7-r2.ebuild:
+ Bug 114113, perl-exp_intwrap patch
+
+ 14 Nov 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.6-r6.ebuild, perl-5.8.7.ebuild, perl-5.8.7-r1.ebuild:
+ NetBSD for osname per thunder
+
+ 12 Nov 2005; Chris White <chriswhite@gentoo.org> perl-5.8.6-r6.ebuild:
+ Backported some get_libdir functionality from 5.8.7 to 5.8.6-r6 to resolve
+ bug #112243. This is mainly a multi-lib support fix it seems.
+
+ 02 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.7-r1.ebuild:
+ Stable on ia64, bug 106678.
+
+ 29 Sep 2005; Aaron Walker <ka0ttic@gentoo.org> perl-5.8.6-r6.ebuild:
+ Stable on mips for bug #106678.
+
+ 23 Sep 2005; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.7-r1.ebuild:
+ Stable on alpha, bug 106678.
+
+ 21 Sep 2005; Seemant Kulleen <seemant@gentoo.org> perl-5.8.6-r6.ebuild:
+ stable on amd64 wrt bug #106678
+
+ 21 Sep 2005; Gustavo Zacarias <gustavoz@gentoo.org> perl-5.8.7-r1.ebuild:
+ Stable on sparc wrt #106678
+
+ 20 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.6-r6.ebuild:
+ Marking stable on x86 for bug #106678.
+
+ 20 Sep 2005; Rene Nussbaumer <killerfox@gentoo.org> perl-5.8.6-r6.ebuild:
+ Stable on hppa. bug #106678
+
+ 20 Sep 2005; Markus Rothe <corsair@gentoo.org> perl-5.8.7-r1.ebuild:
+ Stable on ppc64 (bug #106678)
+
+ 20 Sep 2005; Michael Hanselmann <hansmi@gentoo.org> perl-5.8.6-r6.ebuild:
+ Stable on ppc.
+
+*perl-5.8.7-r1 (20 Sep 2005)
+*perl-5.8.6-r6 (20 Sep 2005)
+
+ 20 Sep 2005; Martin Schlemmer <azarah@gentoo.org>
+ +files/perl-5.8.7-MakeMaker-RUNPATH.patch, +perl-5.8.6-r6.ebuild,
+ +perl-5.8.7-r1.ebuild:
+ We do not want the build root in the linked perl module's RUNPATH, so
+ strip paths containing PORTAGE_TMPDIR if its set. This is for the
+ MakeMaker module, bug #105054.
+
+ 05 Sep 2005; Herbie Hopkins <herbs@gentoo.org> perl-5.8.7.ebuild:
+ More multilib fixes thanks to Christophe Saout, bug 104509.
+
+ 04 Sep 2005; Elfyn McBratney <beu@gentoo.org>
+ files/perl-5.8.7-regexp-nossp.patch:
+ Fix patch to cflags.SH (don't assume /bin/sh is bash).
+
+ 04 Sep 2005; Elfyn McBratney <beu@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.7.ebuild:
+ Drop DEPEND on sys-apps/groff.
+
+ 01 Sep 2005; Joseph Jezak <josejx@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.7.ebuild:
+ Filtered -mpowerpc-gpopt on ppc to fix bug #97645.
+
+ 14 Aug 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.7.ebuild:
+ The rest of the patch for bug 58931
+
+ 14 Aug 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.7.ebuild:
+ Bug #97894 - added note regarding minimal means minimal
+
+ 12 Aug 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.7.ebuild:
+ Further bug #58931 - mistake on my part for the LIBPERL= syntax
+
+ 12 Aug 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.7.ebuild:
+ getlibdir changes for 5.8.7, bug #58931
+
+ 08 Aug 2005; Thierry Carrez <koon@gentoo.org> perl-5.8.6-r5.ebuild,
+ perl-5.8.7.ebuild:
+ Reverting vapier's features_noman change on the groff dependency, which
+ results in bug 101088.
+
+ 28 Jul 2005; Michael Cummings <mcummings@gentoo.org>
+ files/perl-reorder-INC.patch, -perl-5.8.5-r5.ebuild, -perl-5.8.6-r4.ebuild:
+ Update to reorder patch, tested with 5.8.6 and 5.8.7, resolves bug 95770
+
+ 28 Jul 2005; Michael Cummings <mcummings@gentoo.org> -perl-5.8.5-r5.ebuild,
+ -perl-5.8.6-r4.ebuild:
+ Cleaning up now that we have keywords up to date
+
+ 28 Jul 2005; Herbie Hopkins <herbs@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on amd64.
+
+ 07 Jul 2005; Markus Rothe <corsair@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on ppc64
+
+ 06 Jul 2005; <plasmaroo@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on IA64.
+
+ 06 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on arm, m68k, s390, and sh.
+
+ 05 Jul 2005; Hardave Riar <hardave@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on mips.
+
+ 03 Jul 2005; Michael Hanselmann <hansmi@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on ppc.
+
+ 02 Jul 2005; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on alpha.
+
+ 02 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org> perl-5.8.6-r5.ebuild:
+ Stable on hppa.
+
+*perl-5.8.6-r5 (30 Jun 2005)
+
+ 30 Jun 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r4.ebuild,
+ +perl-5.8.6-r5.ebuild:
+ Sorry folks, there was a typo in libperl-5.8.6s ebuild that made this
+ necessary.
+
+*perl-5.8.7 (29 Jun 2005)
+
+ 29 Jun 2005; Michael Cummings <mcummings@gentoo.org>
+ -files/perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patc
+ h, -files/perl-5.8.2-perldoc-emptydirs.patch,
+ -files/perl-5.8.2-picdl.patch, -files/perl-5.8.2-prelink-lpthread.patch,
+ -files/perl-5.8.2-reorder-INC.patch, -files/perl-5.8.2-uclibc.patch,
+ -files/perl-5.8.4-noksh.patch, -files/perl-5.8.4-nonblock.patch,
+ -files/perl-5.8.4-perldoc-emptydirs.patch, -files/perl-5.8.4-picdl.patch,
+ -files/perl-5.8.4-prelink-lpthread.patch,
+ -files/perl-5.8.4-reorder-INC.patch, -files/perl-5.8.5-noksh.patch,
+ -files/perl-5.8.5-nonblock.patch,
+ -files/perl-5.8.5-perldoc-emptydirs.patch, -files/perl-5.8.5-picdl.patch,
+ -files/perl-5.8.5-prelink-lpthread.patch,
+ -files/perl-5.8.5-reorder-INC.patch, -files/perl-5.8.6-noksh.patch,
+ -files/perl-5.8.6-perldoc-emptydirs.patch, -files/perl-5.8.6-picdl.patch,
+ -files/perl-5.8.6-prelink-lpthread.patch,
+ -files/perl-5.8.6-reorder-INC.patch,
+ +files/perl-5.8.7-CAN-2005-0448-rmtree.patch,
+ +files/perl-5.8.7-tempfiles.patch, -files/libperl_rebuilder,
+ +files/perl-h2ph-ansi-header.patch, +files/perl-noksh.patch,
+ +files/perl-nonblock.patch, +files/perl-perldoc-emptydirs.patch,
+ +files/perl-picdl.patch, +files/perl-prelink-lpthread.patch,
+ +files/perl-reorder-INC.patch, +files/perl-tempfiles.patch,
+ +files/perl-uclibc.patch, -files/stat.t, -perl-5.8.2-r4.ebuild,
+ -perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild,
+ +perl-5.8.7.ebuild:
+ Perl 5.8.6 unmasking, perl 5.8.7 addition
+
+ 05 Jun 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner:
+ Bug 90502 - don't leave behind empty log files if nothing has been done
+
+ 30 May 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner,
+ perl-5.8.2-r4.ebuild, perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild,
+ perl-5.8.6-r4.ebuild:
+ Updated perl-cleaner to remove the emptied dirs after a .ph purge
+
+ 29 May 2005; <solar@gentoo.org> perl-5.8.2-r4.ebuild, perl-5.8.4-r4.ebuild,
+ perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ - update perl to use libc expanded variable elibc_uclibc vs uclibc so USE=-*
+ works
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r4.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.5-r5.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.4-r4.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r4.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.5-r5.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.4-r4.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.6-r4.ebuild:
+ dev-perl/File-Spec => perl-core/File-Spec migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.5-r5.ebuild:
+ dev-perl/File-Spec => perl-core/File-Spec migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.4-r4.ebuild:
+ dev-perl/File-Spec => perl-core/File-Spec migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild:
+ dev-perl/File-Spec => perl-core/File-Spec migration
+
+ 23 May 2005; Herbie Hopkins <herbs@gentoo.org> perl-5.8.6-r4.ebuild:
+ More get_libdir-ization, fixes compilation on amd64's no-lib32 profile.
+
+ 16 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild,
+ perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ Last toolchain-funcs fix
+
+ 15 May 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild,
+ perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ Changed to toolchain-funcs
+
+ 20 Mar 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild,
+ perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ bug 81947 - replaced filesdir with generic cat/pkg
+
+ 11 Mar 2005; Michael Cummings <mcummings@gentoo.org>
+ files/CAN-2005-0448-rmtree.patch, perl-5.8.2-r4.ebuild,
+ perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ Patch is in the right place and works on any arch. Yay.
+
+ 11 Mar 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r4.ebuild,
+ perl-5.8.4-r4.ebuild, perl-5.8.5-r5.ebuild, perl-5.8.6-r4.ebuild:
+ The last rmtree patch contains a line that checks <archname>/Errno.pm in
+ your existing perl install. If your kernel changes between perl installs, it
+ dies horribly. Need to find a cleaner solution first. For everyone that just
+ bumped their perls, I am terribly sorry that this wasn't realized earlier.
+
+ 11 Mar 2005; Michael Cummings <mcummings@gentoo.org> -perl-5.8.2-r2.ebuild,
+ -perl-5.8.2-r3.ebuild, -perl-5.8.4-r2.ebuild, -perl-5.8.4-r3.ebuild,
+ -perl-5.8.5-r3.ebuild, -perl-5.8.5-r4.ebuild, -perl-5.8.6-r2.ebuild,
+ -perl-5.8.6-r3.ebuild:
+ Cleaning out old ebuilds - no keyword changes :)
+
+*perl-5.8.6-r4 (11 Mar 2005)
+
+ 11 Mar 2005; Michael Cummings <mcummings@gentoo.org>
+ +files/CAN-2005-0448-rmtree.patch, perl-5.8.2-r2.ebuild,
+ perl-5.8.2-r3.ebuild, +perl-5.8.2-r4.ebuild, perl-5.8.4-r2.ebuild,
+ perl-5.8.4-r3.ebuild, +perl-5.8.4-r4.ebuild, perl-5.8.5-r3.ebuild,
+ perl-5.8.5-r4.ebuild, +perl-5.8.5-r5.ebuild, perl-5.8.6-r2.ebuild,
+ perl-5.8.6-r3.ebuild, +perl-5.8.6-r4.ebuild:
+ Version bump to finalize patch
+
+ 11 Mar 2005; Michael Cummings <mcummings@gentoo.org>
+ +files/CAN-2005-0448-rmtree.patch, perl-5.8.2-r2.ebuild,
+ perl-5.8.2-r3.ebuild, perl-5.8.4-r2.ebuild, perl-5.8.4-r3.ebuild,
+ perl-5.8.5-r3.ebuild, perl-5.8.5-r4.ebuild, perl-5.8.6-r2.ebuild,
+ perl-5.8.6-r3.ebuild:
+ Changed file_path_rmtree to CAN-2005-0448-rmtree.patch per bug 79685
+
+ 08 Mar 2005; Jeremy Huddleston <eradicator@gentoo.org>
+ perl-5.8.6-r3.ebuild:
+ More multilib fixes.
+
+*perl-5.8.5-r4 (11 Feb 2005)
+
+ 11 Feb 2005; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r2.ebuild,
+ +perl-5.8.2-r3.ebuild, perl-5.8.4-r2.ebuild, +perl-5.8.4-r3.ebuild,
+ perl-5.8.5-r3.ebuild, +perl-5.8.5-r4.ebuild, perl-5.8.6-r2.ebuild,
+ +perl-5.8.6-r3.ebuild:
+ Bug 80460 - CAN-2005-015{5,6} - perlsuid patch. Bug 62321, 65317 - Removal of
+ old .ph files after an upgrade. Bug 72977 - modifications to allow for perl
+ 5.8.0 and multithreaded perls to use the perl-inc patch. In addition, modified
+ the perl-cleaner message to display only if @INC included more than the
+ current install's perl (ie, only if this was an upgrade that left files
+ behind).
+
+ 05 Feb 2005; Michael Cummings <mcummings@gentoo.org>
+ +files/CAN-2005-0156-suid.patch, perl-5.8.2-r2.ebuild,
+ perl-5.8.4-r2.ebuild, perl-5.8.5-r3.ebuild, perl-5.8.6-r2.ebuild:
+ Bug 80460, perlsuid vulnerability
+
+ 05 Feb 2005; Michael Cummings <mcummings@gentoo.org>
+ -perl-5.8.2-r1.ebuild, -perl-5.8.4-r1.ebuild, -perl-5.8.5-r1.ebuild,
+ -perl-5.8.5-r2.ebuild, -perl-5.8.5.ebuild, -perl-5.8.6-r1.ebuild,
+ -perl-5.8.6.ebuild:
+ Cleaning up old, unused ebuilds
+
+ 31 Jan 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner:
+ swtaylor came up with a quicker way to generate the module list, plus a more
+ secure call for making the tmp files
+
+ 27 Jan 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner:
+ Code cleanup thanks to Mr.B. *MAJOR* typo in the filename for the prelist of
+ ebuilds to re-emerge resulted in no ebuilds getting re-emerged...
+
+ 26 Jan 2005; Michael Cummings <mcummings@gentoo.org> files/perl-cleaner:
+ tmpdir fix - thanks Mr. B.
+
+*perl-5.8.4-r2 (26 Jan 2005)
+
+ 26 Jan 2005; Michael Cummings <mcummings@gentoo.org>
+ +files/file_path_rmtree.patch, files/libperl_rebuilder, files/perl-cleaner,
+ +perl-5.8.2-r2.ebuild, +perl-5.8.4-r2.ebuild, +perl-5.8.5-r3.ebuild,
+ +perl-5.8.6-r2.ebuild:
+ Bump for bug 75696 involving temporary file perms in File::Path. Includes
+ fixes for h2ph conversion, bug 75955 Includes change over to perl-cleaner from
+ libperl_rebuilder, bugs 60447, 62301, 62669, 66688, 73932, 71287
+
+ 16 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org>
+ perl-5.8.5-r2.ebuild, perl-5.8.6-r1.ebuild, perl-5.8.6.ebuild:
+ multilib fixes for amd64's 2005.0.
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 07 Dec 2004; Hardave Riar <hardave@gentoo.org> perl-5.8.5-r2.ebuild:
+ Stable on mips, bug #66360
+
+ 06 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> perl-5.8.5-r2.ebuild:
+ Stable on sparc wrt #66360
+
+ 05 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.5-r2.ebuild:
+ Stable on alpha, bug 66360.
+
+ 05 Dec 2004; Markus Rothe <corsair@gentoo.org> perl-5.8.5-r2.ebuild:
+ Stable on ppc64; bug #66360
+
+*perl-5.8.5-r2 (04 Dec 2004)
+
+ 04 Dec 2004; Robert Coie <rac@gentoo.org>
+ +files/perl-5.8.5-tempfiles.patch, +files/perl-5.8.6-tempfiles.patch,
+ -perl-5.8.4.ebuild, +perl-5.8.5-r2.ebuild, +perl-5.8.6-r1.ebuild:
+ Add the few relevant bits from bug 66360, keyword 5.8.5-r2 x86, amd64 and ppc
+
+ 01 Dec 2004; Robert Coie <rac@gentoo.org> perl-5.8.6.ebuild:
+ back makemaker block to 6.17
+
+*perl-5.8.6 (30 Nov 2004)
+
+ 30 Nov 2004; Robert Coie <rac@gentoo.org> +files/perl-5.8.6-noksh.patch,
+ +files/perl-5.8.6-perldoc-emptydirs.patch, +files/perl-5.8.6-picdl.patch,
+ +files/perl-5.8.6-prelink-lpthread.patch,
+ +files/perl-5.8.6-reorder-INC.patch, +perl-5.8.6.ebuild:
+ New upstream
+
+ 13 Nov 2004; Robert Coie <rac@gentoo.org> perl-5.8.5-r1.ebuild:
+ Go ahead and use the myarch that exists
+
+*perl-5.8.5-r1 (12 Nov 2004)
+
+ 12 Nov 2004; Robert Coie <rac@gentoo.org> -perl-5.8.3.ebuild,
+ +perl-5.8.5-r1.ebuild:
+ Allow the maketest FEATURE to determine whether tests are run. Guide
+ Configure to attempt to pick up old 5.8.2 and 5.8.4 directories in @INC
+
+ 25 Oct 2004; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Cleaner h2ph, should reduce build time but leave us with something still
+ usable.
+
+ 06 Oct 2004; Guy Martin <gmsoft@gentoo.org> perl-5.8.4-r1.ebuild:
+ Stable on hppa.
+
+ 28 Sep 2004; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Added back perlsuid/sperl based on local use flag. Bug 64823. Users should
+ read http://perldoc.com/perl5.8.4/INSTALL.html#suidperl before enabling.
+
+ 27 Sep 2004; Mike Frysinger <vapier@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Add libperl to RDEPEND (since pkg_setup will die otherwise) and make sure
+ pkg_setup() respects $ROOT.
+
+ 27 Sep 2004; Michael Cummings <mcummings@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Added perl debugging support, bug 60775
+
+ 24 Sep 2004; Robert Coie <rac@gentoo.org> perl-5.8.4-r1.ebuild,
+ perl-5.8.5.ebuild:
+ Make gdbm patch conditional on having 1.8.3, because libgdbm_compat isn't
+ there otherwise, should not affect people who have already built. Made 5.8.5
+ depend on 1.8.3 instead. Again, should not affect installed people.
+
+ 22 Sep 2004; Robert Coie <rac@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ USE threads -> ithreads
+
+ 21 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> perl-5.8.4-r1.ebuild:
+ Marked stable on amd64.
+
+ 09 Sep 2004; Gustavo Zacarias <gustavoz@gentoo.org> perl-5.8.4-r1.ebuild:
+ Stable on sparc to finally solve #36478
+
+ 08 Sep 2004; Robert Coie <rac@gentoo.org> perl-5.8.4-r1.ebuild:
+ keyword x86 and arm for uclibc folks
+
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Switch to use epause and ebeep, bug #62950
+
+ 31 Aug 2004; Guy Martin <gmsoft@gentoo.org> perl-5.8.4.ebuild,
+ perl-5.8.5.ebuild:
+ Removed useless -fPIC for hppa.
+
+ 21 Aug 2004; Joshua Kinard <kumba@gentoo.org> perl-5.8.4-r1.ebuild:
+ Marked stable on mips.
+
+ 18 Aug 2004; Aron Griffis <agriffis@gentoo.org> perl-5.8.4-r1.ebuild:
+ stable on alpha
+
+ 13 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> perl-5.8.4.ebuild:
+ Stable on alpha.
+
+ 07 Aug 2004; Robert Coie <rac@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4-r1.ebuild, perl-5.8.4.ebuild:
+ convert SHORT_PV and MY_P to bash
+
+*perl-5.8.5 (06 Aug 2004)
+
+ 06 Aug 2004; Robert Coie <rac@gentoo.org> +files/perl-5.8.5-noksh.patch,
+ +files/perl-5.8.5-nonblock.patch, +files/perl-5.8.5-perldoc-emptydirs.patch,
+ +files/perl-5.8.5-picdl.patch, +files/perl-5.8.5-prelink-lpthread.patch,
+ +files/perl-5.8.5-reorder-INC.patch, +perl-5.8.5.ebuild:
+ 5.8.5
+
+ 02 Aug 2004; Robert Coie <rac@gentoo.org> +files/perl-5.8.4-nonblock.patch,
+ perl-5.8.4-r1.ebuild:
+ add nonblock.patch, primarily for sparc64
+
+ 29 Jul 2004; Guy Martin <gmsoft@gentoo.org> perl-5.8.4.ebuild:
+ Stable on hppa.
+
+*perl-5.8.4-r1 (29 Jul 2004)
+
+ 29 Jul 2004; Robert Coie <rac@gentoo.org> +perl-5.8.4-r1.ebuild:
+ Move make test to src_test, but still call it if the maketest
+ FEATURE is not enabled. If maketest ever becomes a default, this
+ can be reconsidered. The NDBM-GDBM patch in bug 52660 is in here,
+ and gdbm is allowed to provide ndbm, as it works for me with either
+ 1.8.0-r5 (so2) or 1.8.3 (so3). So to get ndbm, one must either
+ USE=berkdb and have db1 installed, or USE=gdbm in which case gdbm
+ will come in. The man page fixes from bug 58620 are in.
+ src_configure has been split out of src_compile in preparation for
+ making compiles more easily resumable. An issue genone brought up
+ where hardlinks aren't making it through portage's staging image has
+ been addressed by making /usr/bin/perl a symlink to perl5.8.4
+ instead of a hardlink. The same issue was faced with suidperl,
+ which has been removed completely to preemptively avoid security
+ issues. sperl${PV} is gone too, in favor of the perl recommendation
+ to use sudo instead of having setuid perl executables. I hope this
+ will help security, but it can be restored if there is enough
+ demand.
+
+ 23 Jul 2004; Robert Coie <rac@gentoo.org> perl-5.8.4.ebuild:
+ keywording x86 and sparc
+
+ 02 Jul 2004; <solar@gentoo.org> perl-5.8.4.ebuild:
+ don't call perl to install manfiles when FEATURES=noman is set. testing of the
+ perl can be disable now with restrictions
+
+ 29 Jun 2004; Aron Griffis <agriffis@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4.ebuild:
+ kill sparc64 use flag
+
+ 25 Jun 2004; <solar@gentoo.org> perl-5.8.4.ebuild:
+ uclibc update
+
+ 24 Jun 2004; <solar@gentoo.org> perl-5.8.4.ebuild:
+ added uclibc update for 5.8.4
+
+ 15 Jun 2004; <solar@gentoo.org> perl-5.8.2-r1.ebuild,
+ files/perl-5.8.2-uclibc.patch:
+ basic initial uclibc support needed for bootstrapping
+
+ 09 Jun 2004; Robert Coie <rac@gentoo.org> +files/perl-5.8.4-noksh.patch,
+ perl-5.8.4.ebuild:
+ Add noksh.patch, bug 42665
+
+ 03 Jun 2004; Aron Griffis <agriffis@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4.ebuild:
+ Fix use invocation
+
+ 02 Jun 2004; Travis Tilley <lv@gentoo.org> perl-5.8.4.ebuild:
+ stable on amd64
+
+ 31 May 2004; Robert Coie <rac@gentoo.org> perl-5.8.2-r1.ebuild,
+ perl-5.8.3.ebuild, perl-5.8.4.ebuild:
+ Update makemaker blocks to <6.17, not worth making everybody recompile
+
+ 10 May 2004; Michael McCabe <randy@gentoo.org> perl-5.8.4.ebuild:
+ Stable on s390
+
+ 08 May 2004; Robert Coie <rac@gentoo.org> perl-5.8.4.ebuild,
+ files/perl-5.8.4-prelink-lpthread.patch:
+ Add back the -lpthread patch, frozen-bubble segfaults otherwise
+
+*perl-5.8.4 (03 May 2004)
+
+ 03 May 2004; Robert Coie <rac@gentoo.org> perl-5.8.4.ebuild,
+ files/5.6.1-builtin-fixup.diff, files/5.6.1-op-test-fix.diff,
+ files/perl-5.8.4-perldoc-emptydirs.patch, files/perl-5.8.4-picdl.patch,
+ files/perl-5.8.4-reorder-INC.patch:
+ Add 5.8.4
+
+ 28 Apr 2004; Mike Frysinger <vapier@gentoo.org> :
+ Clean up `use` syntax and remove ${CC} usage.
+
+ 27 Feb 2004; Michael Cummings <mcummings@gentoo.org> perl-5.6.1-r10.ebuild,
+ perl-5.6.1-r11.ebuild, perl-5.6.1-r12.ebuild:
+ 5.6.1 is no longer a requirement/needed in the tree
+
+ 21 Feb 2004; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r11.ebuild,
+ perl-5.8.0-r12.ebuild, perl-5.8.0-r9.ebuild, perl-5.8.2.ebuild,
+ files/libperl-5.8.0-create-libperl-soname.patch,
+ files/perl-5.8.0-perldoc-emptydirs.patch,
+ files/perl-5.8.0-prelink-lpthread.patch, files/perl-5.8.0-reorder-INC.patch,
+ files/perl-5.8.0-sockatmark-should-__THROW.patch:
+ Massive clean up. With 5.8.2 now marked stable on all platforms, we are
+ removing the older 5.8.0 ebuilds, which are no longer available upstream
+ anymore. I also cleaned out the files dir of any patches that were being
+ specifically used by 5.8.0 and not the other versions.
+
+ 19 Feb 2004; Aron Griffis <agriffis@gentoo.org> perl-5.8.2-r1.ebuild:
+ stable on alpha and ia64
+
+ 18 Feb 2004; Joshua Kinard <kumba@gentoo.org> perl-5.8.2-r1.ebuild:
+ Marking stable on mips
+
+ 09 Feb 2004; Bartosch Pixa <darkspecter@gentoo.org> perl-5.8.2-r1.ebuild:
+ set ppc in keywords
+
+ 06 Feb 2004; <gustavoz@gentoo.org> perl-5.8.2-r1.ebuild:
+ stable on sparc
+
+ 03 Feb 2004; <gustavoz@gentoo.org> perl-5.8.2-r1.ebuild:
+ stable on hppa
+
+ 01 Feb 2004; <rac@gentoo.org> perl-5.8.2-r1.ebuild:
+ mark x86
+
+*perl-5.8.3 (17 Jan 2004)
+
+ 17 Jan 2004; <rac@gentoo.org> perl-5.8.1-r1.ebuild, perl-5.8.1-r2.ebuild,
+ perl-5.8.3.ebuild, files/perl-5.8.1-perldoc-emptydirs.patch,
+ files/perl-5.8.1-prelink-lpthread.patch, files/perl-5.8.1-reorder-INC.patch,
+ files/perl-5.8.1_rc1-reorder-INC.patch,
+ files/perl-5.8.1_rc1-sockatmark-should-__THROW.patch,
+ files/perl-5.8.1_rc2-reorder-INC.patch,
+ files/perl-5.8.1_rc2-sockatmark-should-__THROW.patch,
+ files/perl-5.8.3-perldoc-emptydirs.patch, files/perl-5.8.3-picdl.patch,
+ files/perl-5.8.3-prelink-lpthread.patch, files/perl-5.8.3-reorder-INC.patch:
+ Upstream bump, housecleaning
+
+ 06 Jan 2004; Luca Barbato <lu_zero@gentoo.org> perl-5.8.0-r12.ebuild:
+ Marked ~arm to let me commit ppc related changes (it is as wierd as it sound)
+
+*perl-5.8.2-r1 (29 Nov 2003)
+
+ 29 Nov 2003; <rac@gentoo.org> perl-5.8.2-r1.ebuild,
+ files/perl-5.8.2-picdl.patch:
+ Make CCCDLFLAGS apply to static archives like DynaLoader.a as well, even
+ though we are not building a shared libperl here, because we do have a shared
+ library elsewhere. Should make it so that arches like amd64 and hppa no longer
+ have to add -fPIC to all cflags blindly.
+
+ 26 Nov 2003; <rac@gentoo.org> perl-5.8.2.ebuild:
+ Make perl depend on exact same libperl version, so that upgrading perl will
+ bring libperl along. Solves problems where new modules go into directories in
+ @INC too new for libperl to know about
+
+ 16 Nov 2003; Brad House <brad_mssw@gentoo.org> perl-5.8.2.ebuild:
+ mark stable on amd64
+
+*perl-5.8.2 (08 Nov 2003)
+
+ 08 Nov 2003; <rac@gentoo.org> perl-5.8.2.ebuild,
+ files/perl-5.8.2-perldoc-emptydirs.patch,
+ files/perl-5.8.2-prelink-lpthread.patch, files/perl-5.8.2-reorder-INC.patch:
+ new upstream version
+
+ 22 Oct 2003; <rac@gentoo.org> perl-5.8.1-r2.ebuild,
+ files/perl-5.8.1-perldoc-emptydirs.patch:
+ Forward-port the perldoc emptydirs patch
+
+ 20 Oct 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.1-r1.ebuild,
+ perl-5.8.1-r2.ebuild:
+ Changed how h2ph grabs its list of files; relying on h2ph to efficiently
+ recurse was resulting a looping condition when there is a symlink in
+ /usr/include/* (libxml was the sample case - thanks DarkSpecter!). Using find
+ isolates the list to only .h files.
+
+ 14 Oct 2003; <rac@gentoo.org> perl-5.8.1-r2.ebuild:
+ Allow building even when db-1 is not present, but let ndbm_file use it if it's
+ there
+
+*perl-5.8.1-r2 (02 Oct 2003)
+
+ 02 Oct 2003; <rac@gentoo.org> perl-5.8.1-r2.ebuild, perl-5.8.1.ebuild,
+ perl-5.8.1_rc1.ebuild, perl-5.8.1_rc2.ebuild, perl-5.8.1_rc3.ebuild,
+ perl-5.8.1_rc4.ebuild, files/perl-5.8.1-prelink-lpthread.patch:
+ Clean house, readd pthread prelink patch to avoid reported sdl segfaulting.
+ Thanks to lisa for the report.
+
+*perl-5.8.1-r1 (29 Sep 2003)
+
+ 29 Sep 2003; <rac@gentoo.org> perl-5.8.1-r1.ebuild:
+ Change destdir handling in a couple of places
+
+*perl-5.8.1 (27 Sep 2003)
+
+ 27 Sep 2003; <rac@gentoo.org> perl-5.8.1.ebuild,
+ files/perl-5.8.1-reorder-INC.patch:
+ New upstream revision
+
+ 17 Sep 2003; Jon Portnoy <avenj@gentoo.org> perl-5.8.0-r12.ebuild :
+ ia64 keywords.
+
+ 22 Aug 2003; Michael Cummings <mcummings@gentoo.org> perl-5.6.1-r10.ebuild,
+ perl-5.6.1-r11.ebuild, perl-5.6.1-r12.ebuild, perl-5.8.0-r10.ebuild,
+ perl-5.8.0-r11.ebuild, perl-5.8.0-r12.ebuild, perl-5.8.0-r9.ebuild,
+ perl-5.8.1_rc1.ebuild, perl-5.8.1_rc2.ebuild, perl-5.8.1_rc3.ebuild:
+ Corrected h2ph behaviour to now run -r -l -- recursively :)
+ Also fixes bug 14461
+
+*perl-5.8.1_rc3 (30 Jul 2003)
+
+ 30 Jul 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.1_rc3.ebuild:
+ Latest release candidate for 5.8.1
+
+ 25 Jul 2003; <rac@gentoo.org> perl-5.8.1_rc1.ebuild, perl-5.8.1_rc2.ebuild:
+ Forward-port alpha and hppa fixes from 5.8.0-r9
+
+ 25 Jul 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild:
+ Remove ~arch protection on all but hppa
+
+*perl-5.8.1_rc2 (23 Jul 2003)
+
+ 23 Jul 2003; <rac@gentoo.org> perl-5.8.1_rc2.ebuild,
+ files/perl-5.8.1_rc2-reorder-INC.patch,
+ files/perl-5.8.1_rc2-sockatmark-should-__THROW.patch:
+ Add 5.8.1-rc2
+
+ 18 Jul 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild, perl-5.8.1_rc1.ebuild:
+ Add blocker on Test-Simple versions that overwrite the core
+
+ 18 Jul 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild, perl-5.8.1_rc1.ebuild:
+ Portage depends to >=2.0.48-r4. This is important for blocking depends
+
+ 16 Jul 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild, perl-5.8.1_rc1.ebuild:
+ Add portage depend on version that fixes bug 23546, so the blocking depends
+ will be guaranteed to work even if people are upgrading
+
+ 15 Jul 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild, perl-5.8.1_rc1.ebuild:
+ Fiddle with the module block depends a bit, largely to ensure that File-Spec
+ 0.84 doesn't fall through the cracks
+
+*perl-5.8.1_rc1 (10 Jul 2003)
+
+ 10 Jul 2003; <rac@gentoo.org> perl-5.8.1_rc1.ebuild,
+ files/perl-5.8.1_rc1-reorder-INC.patch,
+ files/perl-5.8.1_rc1-sockatmark-should-__THROW.patch:
+ Add 5.8.1_rc1. Experimental.
+
+ 01 Jul 2003; Todd Sunderlin <todd@gentoo.org> perl-5.8.0-r11.ebuild:
+ set stable on sparc
+
+ 26 Jun 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild, perl-5.8.0-r11.ebuild,
+ perl-5.8.0-r12.ebuild:
+ Add -Dd_u32align on mips to work around a gcc 3.3 kernel compiling bug
+
+ 26 Jun 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild:
+ Add block depends on ExtUtils-MakeMaker and File-Spec, because we need to get
+ those uninstalled before they steal our files again
+
+*perl-5.8.0-r12 (25 Jun 2003)
+
+ 25 Jul 2003; Guy Martin <gmsoft@gentoo.org> perl-5.8.0-r12.ebuild :
+ Marked stable on hppa.
+
+ 25 Jun 2003; <rac@gentoo.org> perl-5.8.0-r12.ebuild,
+ files/perl-5.8.0-reorder-INC.patch:
+ Reorder @INC so that site modules can override vendor modules, which can in
+ turn override core modules.
+
+ 24 Jun 2003; Aron Griffis <agriffis@gentoo.org> perl-5.8.0-r10.ebuild:
+ Mark stable on alpha
+
+ 10 Jun 2003; <rac@gentoo.org> perl-5.6.1-r12.ebuild:
+ Mark stable on x86
+
+ 06 Jun 2003; <rac@gentoo.org> perl-5.6.1-r12.ebuild:
+ Add sed-4 dependency to use sed -i
+
+ 04 Jun 2003; <rac@gentoo.org> perl-5.8.0-r11.ebuild:
+ Relax db DEPEND as well as RDEPEND. Thanks to mcummings for the catch.
+
+*perl-5.8.0-r11 (03 Jun 2003)
+
+ 03 Jun 2003; <rac@gentoo.org> perl-5.8.0-r11.ebuild:
+ Clean out libperl bits from ebuild. Grab newer version of Safe.pm from CPAN
+ for security reasons, DB_File for db 4.1 compatibility.
+
+*perl-5.6.1-r12 (02 Jun 2003)
+
+ 02 Jun 2003; <rac@gentoo.org> perl-5.6.1-r12.ebuild:
+ Replace PDEPEND strategy for ExtUtils::MakeMaker and Safe.pm with the approach
+ of injecting newer versions directly into the core
+
+*perl-5.6.1-r11 (31 May 2003)
+
+ 31 May 2003; Alastair Tse <liquidx@gentoo.org> perl-5.6.1-r10.ebuild,
+ perl-5.6.1-r11.ebuild, files/5.6.1-builtin-fixup.diff,
+ files/5.6.1-op-test-fix.diff, files/stat.t:
+ Putting perl-5.6.1 back in because it breaks the default-1.0 profile.
+
+ 30 May 2003; <rac@gentoo.org> perl-5.6.1-r10.ebuild, perl-5.6.1-r11.ebuild,
+ perl-5.8.0-r10.ebuild, files/5.6.1-builtin-fixup.diff,
+ files/5.6.1-op-test-fix.diff:
+ Marking stable on mips, thanks to dragon and kumba for verification and
+ mcummings for coordination. Also cleaning 5.6.1 ebuilds, as all marked
+ arches now have a stable 5.8 version
+
+ 27 May 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild, perl-5.8.0-r9.ebuild:
+ Add threads to IUSE, thanks to liquidx for the catch
+
+ 20 May 2003; Tavis Ormandy <taviso@gentoo.org> perl-5.8.0-r10.ebuild:
+ removing gcc hardcodes.
+
+ 18 May 2003; Tavis Ormandy <taviso@gentoo.org> perl-5.8.0-r9.ebuild:
+ removing hardcoded compiler.
+
+*perl-5.8.0-r10 (30 Mar 2003)
+
+ 23 Apr 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild:
+ Only build extra HTML documentation if USE="doc" is set - thanks to
+ msterret@gentoo.org - bug #16401
+
+ 07 Apr 2003; Martin Holzer <mholzer@gentoo.org> perl-5.6.1-r10.ebuild,
+ perl-5.6.1-r11.ebuild, perl-5.8.0-r10.ebuild, perl-5.8.0-r9.ebuild:
+ Changes portage version depend. Closes #13339.
+
+ 30 Mar 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild:
+ marking stable again on x86 and ppc - previous sparc keyword commit undid this
+ and broke things
+
+ 30 Mar 2003; Rodney Rees <manson@gentoo.org> perl-5.8.0-r10.ebuild,
+ marked stable for sparc
+
+*perl-5.8.0-r10 (11 Mar 2003)
+
+ 27 Mar 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild:
+ Marking stable for x86 and ppc, no problems reported from ~arch testers
+
+ 11 Mar 2003; Seemant Kulleen <seemant@gentoo.org> perl-5.6.1-r10.ebuild,
+ perl-5.6.1-r11.ebuild, perl-5.8.0-r10.ebuild, perl-5.8.0-r9.ebuild,
+ files/5.6.1-builtin-fixup.diff, files/5.6.1-op-test-fix.diff,
+ files/libperl-5.8.0-create-libperl-soname.patch, files/libperl_rebuilder,
+ files/perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patch,
+ files/perl-5.8.0-perldoc-emptydirs.patch,
+ files/perl-5.8.0-prelink-lpthread.patch,
+ files/perl-5.8.0-sockatmark-should-__THROW.patch, files/stat.t:
+ moved to dev-lang from sys-devel
+
+*perl-5.8.0-r10 (28 Feb 2003)
+
+ 01 Mar 2003; Brandon Low <lostlogic@gentoo.org> perl-5.8.0-r10.ebuild,
+ perl-5.8.0-r9.ebuild:
+ Make use emake instead of make, but still use 1 process build where needed
+
+ 28 Feb 2003; <rac@gentoo.org> perl-5.8.0-r10.ebuild:
+ Ensure that libpthread is linked against by perl, so that runtime
+ signal handling works correctly (bug #14380).
+
+ Patch perldoc to not abort when it attempts to search nonexistent
+ directories (bug #16589).
+
+*perl-5.6.1-r11 (14 Feb 2003)
+
+ 24 Mar 2003; <rac@gentoo.org> perl-5.6.1-r10.ebuild, perl-5.6.1-r11.ebuild:
+ Remove spurious '$' from head of SRC_URI
+
+ 16 Mar 2003; Jan Seidel <tuxus@gentoo.org> :
+ Added mips to KEYWORDS
+
+ 14 Feb 2003; Mark Guertin <gerk@gentoo.org> perl-5.6.1-r11.ebuild :
+ Set to ppc stable
+
+ 14 Feb 2003; Mark Guertin <gerk@gentoo.org> perl-5.6.1-r11.ebuild files/5.6.1-builtin-fixup.diff files/5.6.1-op-test-fix.diff files/digest-perl-5.6.1-r11 :
+ built-in sed fixups, placed in makefile.SH instead of randomly thru the build. Thanks to rac for all his help and an lfs patch
+
+ 11 Feb 2003; Guy Martin <gmsoft@gentoo.org> perl-5.8.0-r9.ebuild :
+ Added hppa to keywords.
+
+*perl-5.8.0-r9 (15 Jan 2003)
+
+ 23 Feb 2003; Guy Martin <gmsoft@gentoo.org> perl-5.8.0-r9.ebuild :
+ Added -fPIC to CFLAGS on hppa. It's needed by apps linking to some perl libs.
+
+ 18 Feb 2003; Zach Welch <zwelch@gentoo.org> perl-5.8.0-r9.ebuild :
+ Added arm to keywords.
+
+ 10 Feb 2003; Seemant Kulleen <seemant@gentoo.org> *.ebuild :
+
+ removed old and crusty ebuilds, there were just way too many in here.
+ Also, changed sed statements to use : instead of /
+
+ 05 Feb 2003; J Robert Ray <jrray@gentoo.org> perl-5.8.0-r9.ebuild; Changed to strip
+ "-malign-double" from CFLAGS, fixing bug 14608.
+
+ 17 Jan 2003;Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r9;
+
+ Another blundered typo. The flag-o-matic include had a "0" instead of a "O"
+
+ 16 Jan 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r9;
+
+ Typo fix, this one in an einfo.
+ Incorporate flag-o-matic per bug 13952 - the -Os flag doesn't work with perl
+
+ 15 Jan 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r9;
+
+ Major typo corrections that affected the placement of scripts and the man
+ pages. There was a typo introduced into the 5.8 ebuilds early on that was
+ not caught until now that left the location of the man pages blank and that
+ misset the /usr call for scripts placement from perl modules. This was caught
+ in bugs 13886 and 13920
+
+ 15 Jan 2003; J Robert Ray <jrray@gentoo.org> libperl_rebuilder : Fixed
+ unfortunate typo.
+
+*perl-5.8.0-r8 (06 Jan 2003)
+
+ 12 Jan 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r8,
+ libperl_rebuilder:
+
+ ebuild - Put a sleep where we had one in the else block so that there is a
+ pause before emerging (notice regarding threads). Added a sleep at the tail
+ end of the ebuild so that there is a pause for folks doing an emerge -u world
+ so that they at leat have an opportunity to see the notice.
+ libperl_rebuilder - Removed the unmerge section, that's really overkill for
+ our needs and only complicates things. Added new syntax to check for files
+ installed into /usr/lib/perl* that weren't picked up previously. Changed the
+ name of the log file to perl-update.log (makes more sense ;) ) Added mask
+ check earlier in the sanity phase.
+
+ 08 Jan 2003; Seemant Kulleen <seemant@gentoo.org> perl-5.8.0-r8.ebuild :
+
+ Unmasked for sparc.
+
+ 08 Jan 2003; Brandon Low <lostlogic@gentoo.org> perl-5.8.0-r8:
+ Later that day: dosed smells funny, switch some of it
+ to use just sed and a for loop, this smells better
+ to me, and fixed the problems I was having with
+ ${D} staying in the files.
+
+ 08 Jan 2003; Martin Schlemmer <azarah@gentoo.org> perl-5.8.0-r8:
+ Remove a wild 'test' from comments =)
+
+ 08 Jan 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r8:
+ Unmasking for x86.
+
+ 08 Jan 2003; Brandon Low <lostlogic@gentoo.org> perl-5.8.0-r8:
+ Updated ewarn at the top so that it makes sense (was telling a user
+ they could use threads when they already were)
+
+ 06 Jan 2003; Michael Cummings <mcummings@gentoo.org> perl-5.8.0-r8:
+ Updated einfo, added libperl ebuild. I've placed the libperl rebuilder
+ in the filesdir and added a note about it to the pkg_postinstall. Thanks
+ go to Azarah for the new set of ebuilds.
+
+ 03 Jan 2002; Michael Cummings <mcummings@gentoo.org> perl-5.6.1-r10:
+ small fix to regex of x2p/makefile - cp'ied the process further down the
+ ebuild since this is rebuilt at each stage. This is for gcc-3.2 users
+ in particular and should take care of bug 12853
+
+ 27 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r7.ebuild:
+
+ Added depend for automake
+
+ 27 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r10:
+
+ Added depend for automake
+
+ 27 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r7.ebuild:
+
+ Note for remerging perl modules added. Unmasked for x86.
+
+*perl-5.8.0-r7 (22 Dec 2002)
+
+ 22 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r7.ebuild:
+
+ PLEASE READ. There was a problem introduced for non threaded perl
+ 5.8's - a correction introduced earlier for threaded perls was adding
+ -thread to the name of your arch. THIS CAUSES PROBLEMS FOR SOME
+ MODULES. For instance, the DBI module checks to see what the name of
+ your Config.pm has listed for $Config{archname} - if it had thread in
+ it *anywhere*, it assumed you had threading enabled, but since your
+ perl was failing to use threads, would fail. This will version of the
+ ebuild will correct that. You will need to re-emerge modules installed
+ with perl 5.8. A tool for this is forthcoming.
+
+
+ 20 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r6.ebuild:
+
+ Finished what Lostlogic started - finished path corrections for
+ threading vs unthreaded perl 5.8
+
+ 20 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r10.ebuild:
+
+ new ebuild confirmed by arch devs - Gerk did ppc, Alron did sparc
+
+*perl-5.6.1-r10 (19 Dec 2002)
+
+ 07 Feb 2003; Guy Martin <gmsoft@gentoo.org> perl-5.6.1-r9.ebuild perl-5.6.1-r10.ebuild :
+ Added hppa to keywords.
+
+ 19 Jan 2003; Jan Seidel <tuxus@gentoo.org> :
+ Unmasking for mips
+
+ 19 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r10.ebuild:
+
+ Contains patch for safe.pm - security bug, see bug 12190.
+
+ 19 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r6.ebuild:
+
+ Same name, different ebuild. This is for the safe.pm fix.
+
+*perl-5.8.0-r6 (17 Dec 2002)
+
+ 17 Dec 2002; Brandon Low <lostlogic@gentoo.org> perl-5.8.0-r6.ebuild :
+ -arch this bad boy, it reb0rk what I unb0rk last night, stick with -r5
+ will probably skip -r6 for the moment and go to -r7 with some more
+ fixage when we know what to refix more :)
+
+ 17 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r6.ebuild:
+
+ Further fixes to path writing. If the user asks for threading, the
+ dirs are $[arch]-linux-thread-multi. If not, the paths are
+ $[arch]-linux - this is correct behaviour!! Installation with
+ threading is *not* supported by all apps that dep perl.
+
+*perl-5.8.0-r5 (17 Dec 2002)
+
+ 17 Dec 2002; Brandon Low <lostlogic@gentoo.org> perl-5.8.0-r5.ebuild:
+
+ Fix threading use flag thingus, it doesn't put things in ${D}/${D} later
+ now. Fix messages to only display if needed. You will need to remerge
+ all your perl modules after you install this with threads.
+
+*perl-5.8.0-r4 (15 Dec 2002)
+
+ 15 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r4.ebuild:
+
+ Made threading an internal use flag. This is to be used with caution.
+ Added eerror messages to warn users of potential probs.
+
+ 13 Dec 2002; Martin Schlemmer <azarah@gentoo.org> perl-5.6.1-r9.ebuild :
+
+ Fix screwup in DEPEND, RDEPEND and PDEPEND.
+
+ 12 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r9.ebuild:
+
+ PDEPEND is in portage now, can unmask this. This -r installs the
+ makemaker fix after installing perl - finally fixed. Thanks carpaski!
+
+ 11 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r3.ebuild:
+
+ Busy day =:) Added LC_ALL=C into 5.8 (a fix made for 5.6.1, but lost)
+
+ 11 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.8.0-r3.ebuild:
+
+ Changed emake back to make. bcowan pointed out that the parallel
+ make fails for him, which is legit
+
+ 11 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r9.ebuild:
+
+ Pulled until PDEPEND is in. This worked only for those not behind
+ firewalls, and unfortunately perl needs to work across the board.
+
+*perl-5.6.1-r9 (10 Dec 2002)
+
+ 10 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ perl-5.6.1-r9.ebuild:
+
+ Major fixes, including the inclusion of the ExtUtils-MakeMaker fix
+ directly into perl's ebuild (thanks seemant!).
+
+* Autoupdate keywords (12-6-02)
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+ 26 Nov 2002; Michael Cummings <mcummings@gentoo.org>:
+
+ Corrected deps in perl-5.6.1-r8 per bugs 4116 and 9314
+
+*perl-5.6.1-r8 (13 Oct 2002)
+
+ 22 Nov 2002; <mcummings@gentoo.org>
+
+ Added einfo note (finally) to instruct users to install MakeMaker
+ patch. Also added catch for cases where -gdbm and -berkdb are in
+ the use flags - perl requires at least one of them to be available
+
+ Second incantation of -r8. This time, it is for LC_ALL=C being added to
+ the ebuild itself. Perl won't compile correctly otherwise and handles
+ internationaliztion post install.
+
+ 13 Oct 2002; Seemant Kulleen <seemant@gentoo.org> perl-5.6.1-r8.ebuild
+ files/digest-perl-5.6.1-r8 :
+
+ The fixes from -r7 didn't seem to make it into portage. So this version
+ has those, plus the updated MakeMaker. should close bug #8998 by
+ rac@intrigue.com (Robert Coie)
+
+*perl-5.6.1-r7 (02 Oct 2002)
+
+ 02 Oct 2002; mcummings <mcummings@gentoo.org> : Thanks entirely to seemant,
+ this release incorporates the MakeMaker fix directly into perl ebuild process.
+
+*perl-5.8.0-r3 (13 Sep 2002)
+
+ 13 Sep 2002; <mcummings@gentoo.org> : r3 is a cleaner ebuild that should have added support for other platforms.
+
+*perl-5.8.0-r2 (16 Aug 2002)
+
+ 16 Aug 2002; Michael Cummings <mcummings@gentoo.org> : added
+ fix for gcc compile flags that corrects problems with apps
+ compiling against perl.
+
+*perl-5.8.0-r1 (10 Aug 2002)
+
+ 05 Aug 2002; Michael Cummings <mcummings@gentoo.org> : added
+ threading, fixed hard coded architecture prefix, cleaned up
+ ebuild
+
+*perl-5.8.0 (28 Jul 2002)
+
+ 05 Aug 2002; pvdabeel <pvdabeel@gentoo.org> : fix header
+
+ 28 Jul 2002; Maik Schreiber <blizzy@gentoo.org> : version bump
+
+*perl-5.6.1-r6 (04 Aug 2002)
+
+ 27 Aug 2002; mcummings <mcummings@gentoo.org> : Added stat.t fix,
+ fixes compile problems on boxes with no suid's in the */bin's
+ bug 7120, affects fresh installs only
+
+ 05 Aug 2002; pvdabeel <pvdabee@gentoo.org> : Added ppc keyword
+
+ 05 Aug 2002; pvdabeel <pvdabee@gentoo.org> : changelog entry
+
+*perl-5.6.1-r5 (25 Jul 2002)
+
+ 05 Aug 2002; pvdabeel <pvdabeel@gentoo.org> :
+ fix header
+
+ 26 Jul 2002; Spider <spider@gentoo.org> :
+ fix SRC_URI to become pub/CPAN instead of pub/perl/CPAN
+
+ 25 Jul 2002; Spider <spider@gentoo.org> perl-5.6.1-r5.ebuild
+ minor patch to make it build on my gcc 3.1-r8 system
+
+*perl-5.6.1-r4 (20 May 2002)
+
+ 05 Aug 2002; pvdabeel <pvdabeel@gentoo.org> :
+ fix header
+
+ 26 Jul 2002; Spider <spider@gentoo.org> :
+ fix SRC_URI to become pub/CPAN instead of pub/perl/CPAN
+
+ 20 May 2002; Preston A. Elder <prez@gentoo.org> perl-5.6.1-r4.ebuild
+ files/digest-perl-5.6.1-r4 :
+
+ Added ebuild that works with gcc 3.1.
+
+*perl-5.6.1-r3 (5 May 2002)
+
+ 5 May 2002; Seemant Kulleen <seemant@gentoo.org> perl-5.6.1-r4.ebuild
+ files/digest-perl-5.6.1-r4 :
+
+ Added an eclass called perl-post.eclass, which this ebuild now inherits,
+ so that the .pod file in ${libarchdir} gets updated cleanly with
+ emerging and unmerging.
+
+*perl-5.6.1-r3 (21 Mar 2002)
+
+ 21 Mar 2002; Seemant Kulleen <seemant@gentoo.org> perl-5.6.1-r3.ebuild :
+
+ HTML documentation no longer gets gzipped, but a revision upgrade wasn't
+ absolutely necessary, I don't think. Thanks to stefan@mdy.univie.ac.at
+ for pointing it out.
+
+*perl-5.6.1-r3 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/dev-lang/perl/Manifest b/dev-lang/perl/Manifest
new file mode 100644
index 0000000..255c6b1
--- /dev/null
+++ b/dev-lang/perl/Manifest
@@ -0,0 +1,42 @@
+AUX Makefile.SH.patch 8484 RMD160 5e4e2c6628f9528edc4f53bbf6730accd2c52bb2 SHA1 89bf18040a20b803e38c3f7d2c15efd6d4429ab8 SHA256 01cc2c3cfd1175c5f031d6bb1e5167427813a7bd6f1f3d97b923c0086ac77955
+AUX config-bits 29915 RMD160 6d2e4f4b32c72dff0f0d55d0490459efa9d705de SHA1 abaa8948a466f6faa22f70192f1f8b7f284983e8 SHA256 42ff75e16eccff094cacb74d9d3cdfa0365d5ceb55aee7ee58d33b9108550b2a
+AUX letgcc-find-errno.patch 1434 RMD160 939d8375f667ef341c0bcdb86a6386dcac776c96 SHA1 1c11211c20710b49dc78554db9c3b31638671bd1 SHA256 c9177630da71bb8e864ac76181d69b8216c95564fd1a074bf922fac0b2982547
+AUX native-perlinc.patch 982 RMD160 8567629f6f254cba86de92d502636cb890a149eb SHA1 b7bcc3728682b867700a14b87e55507771953ae2 SHA256 692c7a0341f5f2c6f1e6fdcb0a96c351d53db7db0b9ad98f9d90758a62d3f498
+AUX perl-5.8.7-MakeMaker-RUNPATH.patch 859 RMD160 b0e95fcd9b1bbc085e9986f8910e3fbcf3f78eb2 SHA1 1e7c2f05ffaf8f6aee753ab106a9798e6920ff06 SHA256 3d327c525e0cf57899eca48d417fa4363f40da9b0d6b70b61e951521749047ab
+AUX perl-5.8.8-CAN-2005-0448-rmtree-2.patch 8187 RMD160 db38f78ef5de917719c810595072929ecb11c93a SHA1 da502e4a524b4c86e24ad5e5a027657ebecb9bd5 SHA256 def78de69a0ef27204dfc1f5f39fcd4da1b38327f446e4dca1d37b9890b338e4
+AUX perl-5.8.8-CVE-2008-1927.patch 8129 RMD160 523467accd75f42ea254b1aed219efbfc2c32637 SHA1 0a36c92bb3c59064f3370376a76ef66c63fb1ba4 SHA256 614ebf7a0885fb5f7203627a3051f4df8fee2988d6bfec5a3d8fe70d97f9e45b
+AUX perl-5.8.8-USE_MM_LD_RUN_PATH.patch 4963 RMD160 96dfe54660afdcbd24007ffce886f667270694e7 SHA1 e6a28992b63762985846d10661352d40dbd61370 SHA256 49527cd4272ba177b39562363bf34ec6c7b6e709ee6ac770b7fccc302d18b459
+AUX perl-5.8.8-asm-page-h-compile-failure.patch 384 RMD160 cb55d65bd1245019689f7a6241d313f45cc0ecda SHA1 69f7ee3d09abfba81d4b3976263b23491cb39f10 SHA256 b6be7b879d07a0f5a80ec775ce122d84a126a860471ccd86e4f32cbc2c90f704
+AUX perl-5.8.8-ccld-cflags.patch 1103 RMD160 6f960df8487add050a6af99c1c2235c1192b835d SHA1 87980dbac130cfcbab2b1ab2e03b90bdeb4845cd SHA256 c154c64b6566914ff6c77afdb298c6f18d24f030fe9b121d55cb2b687cd385ed
+AUX perl-5.8.8-cplusplus.patch 854 RMD160 1fbfc7ec9940622beb644ce0fa98a6f52131c9db SHA1 e4718e0b1c869ec56d59466caed3fab555848085 SHA256 ea1368e609b0d992b6cd5f92c327768d8c61ca2096826f26af2576263efb8a89
+AUX perl-5.8.8-dragonfly-clean.patch 5211 RMD160 d2411913185276cd9c9aa55a614ae2ed13d22fe9 SHA1 2d2bb9a8b7fa312229d5e13eea845384069d7e2f SHA256 08b22fe26695f6f7f7d21ca2628954eded91205b64450e24d0b295eb75952b6c
+AUX perl-5.8.8-fbsdhints.patch 1984 RMD160 0b298920ce1dce296fc574a4e27f00e59332343c SHA1 50d58cf1bb837261a148eb9d0b7e2a4856c1a9b0 SHA256 98ff829c9544e7edb329974b883f98b1391a5bb0e071edbb5e96feeba2c066c8
+AUX perl-5.8.8-fix_file_path_chdir.patch 2195 RMD160 affc85a3406b54c1a22e1b3e49b35e5f643181c5 SHA1 d617e9aa86a5c6f8f22f6d77cc4b1e366f051cc3 SHA256 192883bb78ce487cc27e0158d7fb17837c45ae7a88091eb7bbf228888dff95c1
+AUX perl-5.8.8-gcc42-command-line.patch 497 RMD160 5fe723ae71be6c6316f11ca2219f489fce60101c SHA1 ae75dfd80b59afb23377fdf491b46b7a561714d7 SHA256 946d02284221bc3615e1f03afda1735e6da0296b03315e2a644bd784ad6f76d1
+AUX perl-5.8.8-lib32.patch 2880 RMD160 805294f4c1754d607dca1b6a42d7a5b7cf9a11aa SHA1 71315045f440d4f00a877b32f5a31a150ad33276 SHA256 90f9dd366ac931ac8baef61b1c8cdab4c80009554919c212b169fd37268ddf23
+AUX perl-5.8.8-lib64.patch 2880 RMD160 7538c40726f34f08f8e181153b7fa0047d7f73f4 SHA1 bb4e21dd5db6915918a9e7777d658a27a7c615ef SHA256 d2005cd1d57852a87f6060627c88eaab56534bcc8f922567e250ea79d2f6552d
+AUX perl-5.8.8-libnet-hostname.patch 664 RMD160 ad37b560cc432181368752e66d9e86e9479925d7 SHA1 f1103f95ea21bfbbe571795eea09872ac914168f SHA256 486d779faa86ae275e8800d83bd67329634b2782de6908512b6bf8380d389a96
+AUX perl-5.8.8-links.patch 2925 RMD160 68116f3922d1e4d818cf65965b1886fc55b14faf SHA1 849ef26d29369470985eb54ede94a6be6764878b SHA256 aeecee505f05ab0d7336142119f7a3e6d061b8fd2c7bbf9bd88cfb0421323bea
+AUX perl-5.8.8-makedepend-syntax.patch 341 RMD160 8d0ee189b86c7c3b6467512a7be25cf8d1a38e68 SHA1 1b604713de487ada27d177d85755784cd3058397 SHA256 f4ff3678b992774552d9ebc9ca7f3da1ae0144077eb52365e96ddbd0ba9c2606
+AUX perl-5.8.8-perlcc.patch 559 RMD160 cedf2f1666b4add3ef6baed214e31d76b4b6731d SHA1 1104b880d9570599308609fd793ded5bd2f450db SHA256 7c212d320ec34cf8d0d5443ce5fad5c94a9fa9075462d54ddd8cc5716a2f2aa9
+AUX perl-5.8.8-reorder-INC.patch 3046 RMD160 73bc824bebee8889073656a7b547dc63b35696dc SHA1 ec56010c38cbadce6fccf7ba314cfc7f42f470c6 SHA256 136ca6c6cfaa3467f6a164f26b34ff06cc55823ca5723118764589cc15d37aed
+AUX perl-5.8.8-utf8-boundary.patch 1866 RMD160 c65ee9df8b9f71504420b905be2067220ef9daaa SHA1 38eb633f427bf7cd843843bff525dbc50116df8b SHA256 62848b35ed88c7d3a1a836903707b467e421321810e18792da41b28f9e7124a1
+AUX perl-configpm-switch.patch 1217 RMD160 ecd551ec5ce2c1be268de140e043bdb7a47bcacd SHA1 85647ec2aafd400380176cc8aea09cb5fe8683e1 SHA256 3a9e3db56b1b1aa96d948f149b782993b2c89069877ed67bd1ab453cb414a045
+AUX perl-dynloader.patch 1019 RMD160 be7d547c852c4ac549cdd5697ffa820802f6c8c6 SHA1 02d441e991c55ac6ed4feef4fc8130704d51a1a6 SHA256 db787390cc822512386228c5643348403d5aac774b828415352ba2b5855050c5
+AUX perl-fix_h2ph_include_quote.patch 2462 RMD160 d38aef789a45483a99ae6302cbce9c5fd9cc3635 SHA1 42489f2c7849195e14ac3bb2cb22b666260fe9fb SHA256 bfe3ebd7e119ebf5e11dc00e55773732f483e740e153dff267dd5ca12affc432
+AUX perl-h2ph-ansi-header.patch 446 RMD160 8baf89df0d3f916a8c4f437444fa1af01f5fa8b0 SHA1 31f0a7e7444e914bec2a0a3e41838eb82e038e6f SHA256 dc28a8ccba56e0aa5e01b0ecf68a163ebfb9460917d201f1f6d9a1efef06c788
+AUX perl-hppa-pa7200-configure.patch 446 RMD160 ab902e2b5cf7f96023e0e267f170401b036dd4f5 SHA1 fcb7e61cdf1ce1c9993f257507b3289ce45382d7 SHA256 4fe6a010dbdc39325f4003e7ccd02cb7996b4a99b64ab0fa8b12d6fe67f87a31
+AUX perl-moreconfig.patch 568 RMD160 5d5d83c4f63bb49953e7893b219438c560e0c6b7 SHA1 7ba1f696e77db6b2e038e3357e19071445d562ad SHA256 6b3965a5e592f79b5afe7b270280f108b74c64a01eac0f687c361ed5358060a9
+AUX perl-noksh.patch 611 RMD160 6ddb9e7140c60e05042c3c488c97399a86f965fc SHA1 61bf5bb0955bd04a758d1381fa4260ed9fdbb1d1 SHA256 0861f7f54c184e99a0ffeebeab9420d969d2002f921bc3fb14841a1e24be1f5e
+AUX perl-perldoc-emptydirs.patch 489 RMD160 66d619f5811c1c35d16776e23a0a580bd83fe19b SHA1 d8f852db37fb1e5d1085bc94cab79c3422c12a84 SHA256 e8c52d67793f0a5ae0aee52a3b9db2b348a1303b57069d6f82c4bb499f45ee2f
+AUX perl-picdl.patch 250 RMD160 2a9cb2fe5debb0db2d3fd063f52f459ee4f4946f SHA1 3000bd0130ed20e0ff5d9fb0147240e3909473a7 SHA256 fdbe94e869457b7e62bdc76b82a13ecd6e500c223d609b1767285190efd63cfa
+AUX perl-prelink-lpthread.patch 476 RMD160 f3252258e5f7a0f82b5f9ea49598ea9f4b0b44b6 SHA1 4202c290c578dfec58d5dbebf7f8f780a483f908 SHA256 289d0bdd08105e7fdf1c2d683d76a0cdcd009998f3ecd84f3a75cf79ab84e7a0
+AUX perl-regexp-nossp.patch 460 RMD160 dde3a25904275896e98d7b7f3a02926c8dbc5ca5 SHA1 e7de561f7885fb3d49635fa2dc733c0eed63b987 SHA256 e2d923711bb856b3c7f790dbc1cd1f468d647c1e50a3ff8a18745023c73b3e36
+DIST perl-5.10.1-9.tar.bz2 7388 RMD160 3758c2c78e22ed55fb90db283cfd9e5998535903 SHA1 edd1150deee51079be514f8ae8a3b14b1912c0ef SHA256 bd84671e6686288c098c26c0a61d1b8471ab38d8c16fb87571011398770cef44
+DIST perl-5.10.1.tar.bz2 11608061 RMD160 840b3a5ac3d7f517770ce789676ebd9154d9ee5a SHA1 98b762b5cd4fb76dd354dfa5ba0d21bc2acacaf2 SHA256 9385f2c8c2ca8b1dc4a7c31903f1f8dc8f2ba867dc2a9e5c93012ed6b564e826
+DIST perl-5.8.8.tar.bz2 10123359 RMD160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b SHA1 4aab490040727ca4419098720eca2ba4367df539 SHA256 818a140d9c04ea8dab3a05104b34ced7f7d9d0a91bfed91baf89a84d0dfb1bc9
+EBUILD perl-5.10.1.ebuild 17857 RMD160 3d0ee78b539a6a4780ba510bfdab3707e566bc3e SHA1 786109962e605ca838cc1647240effc43dce03c6 SHA256 2cf0d8a9f7558850dd5deb845af96c432fa3e55a1c115703599d72091d018030
+EBUILD perl-5.8.8-r8.ebuild 20808 RMD160 7804830579a9a3318c0d7473e134d52bd0fcd8b1 SHA1 72acea9f3223f422d8303665ac567480091571be SHA256 7c7256bd7d5e30bab02f522d77ae6abfd20e048056e3e155decd38ea35156037
+EBUILD perl-5.8.8-r9.ebuild 23699 RMD160 f90b5fd2781ae8be97f9e2c4f73d03f55bc8677f SHA1 d602014d03002323e1bfec0b441a8f70814d90d3 SHA256 b8925839a776041412ecd32a6c5e3e0751db8ead9b956d9e718b2678d61c76b9
+MISC ChangeLog 64477 RMD160 a2c1aa2c453247953a241bd8b4f8f298bd122de0 SHA1 865017eca08ee3bb5d19eaab4c725d4c4df81f1a SHA256 3f5b630f07b7786bdf367845d2a058d5a144e6f7c9e8ab9c9a5f6d11c4987d08
+MISC metadata.xml 451 RMD160 8424230d79d13df7462c454050058b3526a78e92 SHA1 1ae85db5c1c1fc6413ca324ebc93b6894831b437 SHA256 49e06011c113616fa1f618cf58d42c2d6abbce5f71936f109b6ae3a5dfff587c
diff --git a/dev-lang/perl/files/Makefile.SH.patch b/dev-lang/perl/files/Makefile.SH.patch
new file mode 100644
index 0000000..1efc3c8
--- /dev/null
+++ b/dev-lang/perl/files/Makefile.SH.patch
@@ -0,0 +1,238 @@
+Index: perl-5.8.8/Makefile.SH
+===================================================================
+--- perl-5.8.8.orig/Makefile.SH 2006-01-24 23:49:44.000000000 +1100
++++ perl-5.8.8/Makefile.SH 2007-06-14 13:29:37.000000000 +1000
+@@ -43,12 +43,12 @@
+ true)
+ # Prefix all runs of 'miniperl' and 'perl' with
+ # $ldlibpth so that ./perl finds *this* shared libperl.
+- case "$LD_LIBRARY_PATH" in
+- '')
+- ldlibpth="LD_LIBRARY_PATH=`pwd`";;
+- *)
+- ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
+- esac
++# case "$LD_LIBRARY_PATH" in
++# '')
++# ldlibpth="LD_LIBRARY_PATH=`pwd`";;
++# *)
++# ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
++# esac
+
+ pldlflags="$cccdlflags"
+ static_target='static_pic'
+@@ -108,7 +108,8 @@
+ ldlibpth=''
+ ;;
+ *)
+- eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
++# We compile in the library path in OE from cross-compile, so lets not do this
++# eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
+ ;;
+ esac
+ # Strip off any trailing :'s
+@@ -129,18 +130,7 @@
+ # INSTALL file, under "Building a shared perl library".
+ # If there is no pre-existing $libperl, we don't need
+ # to do anything further.
+- if test -f $archlib/CORE/$libperl; then
+- rm -f preload
+- cat <<'EOT' > preload
+-#! /bin/sh
+-lib=$1
+-shift
+-test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
+-exec "$@"
+-EOT
+- chmod 755 preload
+- ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
+- fi
++ echo linux libraries overwritten by cross-compile patches
+ ;;
+ os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
+ ;;
+@@ -401,9 +391,19 @@
+ .c.s:
+ $(CCCMDSRC) -S $*.c
+
+-all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
+- @echo " ";
+- @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
++#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
++# @echo " ";
++# @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
++
++all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) $(unidatafiles)
++
++more: extra.pods $(private) $(public)
++
++more2: $(dynamic_ext)
++
++more3: $(nonxs_ext)
++
++more4: extras.make
+
+ .PHONY: all compile translators utilities
+
+@@ -413,10 +413,10 @@
+ cd x2p; $(MAKE) compile;
+ cd pod; $(MAKE) compile;
+
+-translators: miniperl$(EXE_EXT) $(CONFIGPM) FORCE
++translators: $(CONFIGPM) FORCE
+ @echo " "; echo " Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
+
+-utilities: miniperl$(EXE_EXT) $(CONFIGPM) $(plextract) lib/lib.pm FORCE
++utilities: $(CONFIGPM) $(plextract) lib/lib.pm FORCE
+ @echo " "; echo " Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all
+
+
+@@ -591,7 +591,9 @@
+ $(CC) -o miniperl $(CLDFLAGS) \
+ `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ next4*)
+@@ -599,7 +601,9 @@
+ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
+ $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ darwin*)
+@@ -620,7 +624,9 @@
+ -@rm -f miniperl.xok
+ $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o miniperl \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ *)
+@@ -629,7 +635,9 @@
+ -@rm -f miniperl.xok
+ $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ esac
+@@ -766,7 +774,7 @@
+ # We need to autosplit in two steps because VOS can't handle so many args
+ #
+ .PHONY: preplibrary
+-preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
++preplibrary: $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
+ @sh ./makedir lib/auto
+ @echo " AutoSplitting perl library"
+ $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
+@@ -775,35 +783,35 @@
+ autosplit_lib_modules(@ARGV)' lib/*/*.pm
+ $(MAKE) lib/re.pm
+
+-lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
++lib/Config.pod: config.sh configpm Porting/Glossary
+ $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
+
+ $(CONFIGPM): lib/Config.pod
+
+-lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
++lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl $(CONFIGPM)
+ $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
+
+ lib/re.pm: ext/re/re.pm
+ cp ext/re/re.pm lib/re.pm
+
+-$(plextract): miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
++$(plextract): $(CONFIGPM) x2p/s2p
+ @-rm -f $@
+ $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
+
+-x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
++x2p/s2p: $(CONFIGPM) x2p/s2p.PL
+ cd x2p; $(LDLIBPTH) $(MAKE) s2p
+
+-lib/lib.pm: miniperl$(EXE_EXT) $(CONFIGPM)
++lib/lib.pm: $(CONFIGPM)
+ @-rm -f $@
+ $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
+
+ unidatafiles $(unidatafiles): uni.data
+
+-uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
++uni.data: $(CONFIGPM) lib/unicore/mktables
+ cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
+ touch uni.data
+
+-extra.pods: miniperl$(EXE_EXT)
++extra.pods:
+ -@test -f extra.pods && rm -f `cat extra.pods`
+ -@rm -f extra.pods
+ -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
+@@ -857,11 +865,11 @@
+ cd ../pod; $(MAKE) compile; \
+ else :; \
+ fi
+- $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
++ ${HOSTPERL} -Ifake_config_library -Ilib -MConfig installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
+ $(MAKE) extras.install
+
+ install.man: all installman
+- $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
++ ${HOSTPERL} -Ifake_config_library -Ilib -MConfig installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
+
+ # XXX Experimental. Hardwired values, but useful for testing.
+ # Eventually Configure could ask for some of these values.
+@@ -978,16 +986,16 @@
+ #
+ # DynaLoader may be needed for extensions that use Makefile.PL.
+
+-$(DYNALOADER): miniperl$(EXE_EXT) preplibrary FORCE
++$(DYNALOADER): preplibrary FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-d_dummy $(dynamic_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++d_dummy $(dynamic_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-s_dummy $(static_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++s_dummy $(static_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++n_dummy $(nonxs_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+ .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
+@@ -1125,7 +1133,7 @@
+
+ test_prep_pre: preplibrary utilities $(nonxs_ext)
+
+-test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
++test_prep: test_prep_pre $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
+ PERL=./perl $(MAKE) _test_prep
+
+ _test_tty:
+@@ -1238,7 +1246,7 @@
+
+ # Can't depend on lib/Config.pm because that might be where miniperl
+ # is crashing.
+-minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
++minitest: lib/re.pm minitest.prep
+ - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
+ && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
+
diff --git a/dev-lang/perl/files/config-bits b/dev-lang/perl/files/config-bits
new file mode 100644
index 0000000..cce5d75
--- /dev/null
+++ b/dev-lang/perl/files/config-bits
@@ -0,0 +1,1147 @@
+#/bin/sh
+# Since perl's Configure script is so unfriendly to cross-compilation
+# and is filled with "c compile and run tests" that fail when cross-compiling,
+# configuration variables must be supplied to config.sh ahead of time.
+# The options that are hardcoded are those that were common to Openembedded's
+# supported platforms (arm, mips, sparc, powerpc, etc...) and config.sh
+# files generated in booted arm and amd64 gentoo platforms. All others use shell
+# expansions, and portage variables and functions, for their values.
+# Special characters are backslash escaped when necessary, and
+# command subtitutions use the $() convention, instead of ``, for clarity.
+# All values should be surrounded with single quotes.
+
+make_configsh() {
+ # Sets up path vars used in the options below
+ local FULLARCH="$myarch$mythreading"
+ local LIBPTH="/usr/$(get_libdir)/perl5"
+
+ # Arch
+ local ALIBPTH="${LIBPTH}/${PV}"
+
+ # Site
+ local SLIBPTH="${LIBPTH}/site_perl/${PV}"
+
+ # Vendor
+ local VLIBPTH="${LIBPTH}/vendor_perl/${PV}"
+
+ touch "${S}"/config.sh
+
+ # To make sure it's one config option per line
+ # with no extra quoting, we set $IFS to a newline
+ # and pipe it to ${S}/config.sh
+ IFSOLD=$IFS
+
+ IFS="
+"
+
+# Options that are platform independent (hopefully, for most platforms)
+echo "
+Author=''
+Date='\$Date'
+Header=''
+Id='\$Id'
+Locker=''
+Log='\$Log'
+Mcc='Mcc'
+RCSfile='\$RCSfile'
+Revision='\$Revision'
+Source=''
+State=''
+_a='.a'
+_exe=''
+_o='.o'
+afs='false'
+afsroot='/afs'
+ansi2knr=''
+aphostname=''
+api_revision='5'
+api_subversion='0'
+api_version='8'
+api_versionstring='5.8.0'
+ar='$(tc-getAR)'
+archlib='${ALIBPTH}/${FULLARCH}'
+archlibexp='${ALIBPTH}/${FULLARCH}'
+archname='${FULLARCH}'
+archname64=''
+archobjs=''
+asctime_r_proto='REENTRANT_PROTO_B_SB'
+awk='awk'
+baserev='5.0'
+bash=''
+bin='/usr/bin'
+binexp='/usr/bin'
+bison='bison'
+byacc='byacc'
+c=''
+castflags='0'
+cat='cat'
+cc='$(tc-getCC)'
+cccdlflags='-fPIC'
+ccdlflags='-rdynamic -Wl,-E'
+ccflags='${CFLAGS} -fno-strict-aliasing -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
+ccname='$(tc-getCC)'
+ccsymbols=''
+ccversion=''
+cf_by='Gentoo'
+charsize='1'
+chgrp=''
+chmod='chmod'
+chown=''
+clocktype='clock_t'
+comm='comm'
+compress=''
+contains='grep'
+cp='cp'
+cpio=''
+cpp='$(tc-getCPP)'
+cpp_stuff='42'
+cppccsymbols=''
+cpplast='-'
+cppminus='-'
+cpprun='$(tc-getCC) -E'
+cppstdin='$(tc-getCC) -E'
+crypt_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_B_CCS')'
+cryptlib=''
+csh='csh'
+ctermid_r_proto='0'
+ctime_r_proto='REENTRANT_PROTO_B_SB'
+d_Gconvert='gcvt((x),(n),(b))'
+d_PRIEUldbl='define'
+d_PRIFUldbl='define'
+d_PRIGUldbl='define'
+d_PRIXU64='define'
+d_PRId64='define'
+d_PRIeldbl='define'
+d_PRIfldbl='define'
+d_PRIgldbl='define'
+d_PRIi64='define'
+d_PRIo64='define'
+d_PRIu64='define'
+d_PRIx64='define'
+d_SCNfldbl='define'
+d__fwalk='undef'
+d_access='define'
+d_accessx='undef'
+d_aintl='undef'
+d_alarm='define'
+d_archlib='define'
+d_asctime_r='define'
+d_atolf='undef'
+d_atoll='define'
+d_attribute_format='define'
+d_attribute_malloc='define'
+d_attribute_nonnull='define'
+d_attribute_noreturn='define'
+d_attribute_pure='define'
+d_attribute_unused='define'
+d_attribute_warn_unused_result='undef'
+d_bcmp='define'
+d_bcopy='define'
+d_bsd='undef'
+d_bsdgetpgrp='undef'
+d_bsdsetpgrp='undef'
+d_bzero='define'
+d_casti32='undef'
+d_castneg='define'
+d_charvspr='define'
+d_chown='define'
+d_chroot='define'
+d_chsize='undef'
+d_class='undef'
+d_clearenv='define'
+d_closedir='define'
+d_cmsghdr_s='define'
+d_const='define'
+d_copysignl='define'
+d_crypt='define'
+d_crypt_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_csh='undef'
+d_ctermid_r='undef'
+d_ctime_r='define'
+d_cuserid='define'
+d_dbl_dig='define'
+d_dbminitproto='undef'
+d_difftime='define'
+d_dirfd='define'
+d_dirnamlen='undef'
+d_dlerror='define'
+d_dlopen='define'
+d_dlsymun='undef'
+d_dosuid='$(use perlsuid && echo 'define' || echo 'undef')'
+d_drand48_r='define'
+d_drand48proto='define'
+d_dup2='define'
+d_eaccess='undef'
+d_endgrent='define'
+d_endgrent_r='undef'
+d_endhent='define'
+d_endhostent_r='undef'
+d_endnent='define'
+d_endnetent_r='undef'
+d_endpent='define'
+d_endprotoent_r='undef'
+d_endpwent='define'
+d_endpwent_r='undef'
+d_endsent='define'
+d_endservent_r='undef'
+d_eofnblk='define'
+d_eunice='undef'
+d_faststdio='undef'
+d_fchdir='define'
+d_fchmod='define'
+d_fchown='define'
+d_fcntl='define'
+d_fcntl_can_lock='define'
+d_fd_macros='define'
+d_fd_set='define'
+d_fds_bits='define'
+d_fgetpos='define'
+d_finite='define'
+d_finitel='define'
+d_flexfnam='define'
+d_flock='define'
+d_flockproto='define'
+d_fork='define'
+d_fp_class='undef'
+d_fpathconf='define'
+d_fpclass='undef'
+d_fpclassify='undef'
+d_fpclassl='undef'
+d_fpos64_t='undef'
+d_frexpl='define'
+d_fs_data_s='undef'
+d_fseeko='define'
+d_fsetpos='define'
+d_fstatfs='define'
+d_fstatvfs='define'
+d_fsync='define'
+d_ftello='define'
+d_ftime='undef'
+d_futimes='define'
+d_getcwd='define'
+d_getespwnam='undef'
+d_getfsstat='undef'
+d_getgrent='define'
+d_getgrent_r='define'
+d_getgrgid_r='define'
+d_getgrnam_r='define'
+d_getgrps='define'
+d_gethbyaddr='define'
+d_gethbyname='define'
+d_gethent='define'
+d_gethname='define'
+d_gethostbyaddr_r='define'
+d_gethostbyname_r='define'
+d_gethostent_r='define'
+d_gethostprotos='define'
+d_getitimer='define'
+d_getlogin='define'
+d_getlogin_r='define'
+d_getmnt='undef'
+d_getmntent='define'
+d_getnbyaddr='define'
+d_getnbyname='define'
+d_getnent='define'
+d_getnetbyaddr_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetbyname_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetent_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetprotos='define'
+d_getpagsz='define'
+d_getpbyname='define'
+d_getpbynumber='define'
+d_getpent='define'
+d_getpgid='define'
+d_getpgrp2='undef'
+d_getpgrp='define'
+d_getppid='define'
+d_getprior='define'
+d_getprotobyname_r='define'
+d_getprotobynumber_r='define'
+d_getprotoent_r='define'
+d_getprotoprotos='define'
+d_getprpwnam='undef'
+d_getpwent='define'
+d_getpwent_r='define'
+d_getpwnam_r='define'
+d_getpwuid_r='define'
+d_getsbyname='define'
+d_getsbyport='define'
+d_getsent='define'
+d_getservbyname_r='define'
+d_getservbyport_r='define'
+d_getservent_r='define'
+d_getservprotos='define'
+d_getspnam='define'
+d_getspnam_r='undef'
+d_gettimeod='define'
+d_gmtime_r='define'
+d_gnulibc='define'
+d_grpasswd='define'
+d_hasmntopt='define'
+d_htonl='define'
+d_ilogbl='define'
+d_index='undef'
+d_inetaton='define'
+d_int64_t='define'
+d_isascii='define'
+d_isfinite='undef'
+d_isinf='define'
+d_isnan='define'
+d_isnanl='define'
+d_killpg='define'
+d_lchown='define'
+d_ldbl_dig='define'
+d_libm_lib_version='define'
+d_link='define'
+d_localtime_r='define'
+d_locconv='define'
+d_lockf='define'
+d_longdbl='$(use sparc && echo 'undef' || echo 'define')'
+d_longlong='define'
+d_lseekproto='define'
+d_lstat='define'
+d_madvise='define'
+d_malloc_good_size='undef'
+d_malloc_size='undef'
+d_mblen='define'
+d_mbstowcs='define'
+d_mbtowc='define'
+d_memchr='define'
+d_memcmp='define'
+d_memcpy='define'
+d_memmove='define'
+d_memset='define'
+d_mkdir='define'
+d_mkdtemp='define'
+d_mkfifo='define'
+d_mkstemp='define'
+d_mkstemps='undef'
+d_mktime='define'
+d_mmap='define'
+d_modfl='define'
+d_modfl_pow32_bug='undef'
+d_modflproto='define'
+d_mprotect='define'
+d_msg='define'
+d_msg_ctrunc='define'
+d_msg_dontroute='define'
+d_msg_oob='define'
+d_msg_peek='define'
+d_msg_proxy='define'
+d_msgctl='define'
+d_msgget='define'
+d_msghdr_s='define'
+d_msgrcv='define'
+d_msgsnd='define'
+d_msync='define'
+d_munmap='define'
+d_mymalloc='undef'
+d_nice='define'
+d_nl_langinfo='define'
+d_nv_zero_is_allbits_zero='define'
+d_off64_t='define'
+d_old_pthread_create_joinable='undef'
+d_oldpthreads='undef'
+d_oldsock='undef'
+d_open3='define'
+d_pathconf='define'
+d_pause='define'
+d_perl_otherlibdirs='define'
+d_phostname='undef'
+d_pipe='define'
+d_poll='define'
+d_portable='define'
+d_procselfexe='define'
+d_pthread_atfork='define'
+d_pthread_attr_setscope='define'
+d_pthread_yield='define'
+d_pwage='undef'
+d_pwchange='undef'
+d_pwclass='undef'
+d_pwcomment='undef'
+d_pwexpire='undef'
+d_pwgecos='define'
+d_pwpasswd='define'
+d_pwquota='undef'
+d_qgcvt='define'
+d_quad='define'
+d_random_r='define'
+d_readdir64_r='define'
+d_readdir='define'
+d_readdir_r='define'
+d_readlink='define'
+d_readv='define'
+d_recvmsg='define'
+d_rename='define'
+d_rewinddir='define'
+d_rmdir='define'
+d_safebcpy='undef'
+d_safemcpy='undef'
+d_sanemcmp='define'
+d_sbrkproto='define'
+d_scalbnl='define'
+d_sched_yield='define'
+d_scm_rights='define'
+d_seekdir='define'
+d_select='define'
+d_sem='define'
+d_semctl='define'
+d_semctl_semid_ds='define'
+d_semctl_semun='define'
+d_semget='define'
+d_semop='define'
+d_sendmsg='define'
+d_setegid='define'
+d_seteuid='define'
+d_setgrent='define'
+d_setgrent_r='undef'
+d_setgrps='define'
+d_sethent='define'
+d_sethostent_r='undef'
+d_setitimer='define'
+d_setlinebuf='define'
+d_setlocale='define'
+d_setlocale_r='undef'
+d_setnent='define'
+d_setnetent_r='undef'
+d_setpent='define'
+d_setpgid='define'
+d_setpgrp2='undef'
+d_setpgrp='define'
+d_setprior='define'
+d_setproctitle='undef'
+d_setprotoent_r='undef'
+d_setpwent='define'
+d_setpwent_r='undef'
+d_setregid='define'
+d_setresgid='define'
+d_setresuid='define'
+d_setreuid='define'
+d_setrgid='undef'
+d_setruid='undef'
+d_setsent='define'
+d_setservent_r='undef'
+d_setsid='define'
+d_setvbuf='define'
+d_sfio='undef'
+d_shm='define'
+d_shmat='define'
+d_shmatprototype='define'
+d_shmctl='define'
+d_shmdt='define'
+d_shmget='define'
+d_sigaction='define'
+d_sigprocmask='define'
+d_sigsetjmp='define'
+d_sockatmark='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_sockatmarkproto='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_socket='define'
+d_socklen_t='define'
+d_sockpair='define'
+d_socks5_init='undef'
+d_sprintf_returns_strlen='define'
+d_sqrtl='define'
+d_srand48_r='define'
+d_srandom_r='define'
+d_sresgproto='define'
+d_sresuproto='define'
+d_statblks='define'
+d_statfs_f_flags='undef'
+d_statfs_s='define'
+d_statvfs='define'
+d_stdio_cnt_lval='undef'
+d_stdio_ptr_lval='undef'
+d_stdio_ptr_lval_nochange_cnt='undef'
+d_stdio_ptr_lval_sets_cnt='undef'
+d_stdio_stream_array='undef'
+d_stdiobase='undef'
+d_stdstdio='undef'
+d_strchr='define'
+d_strcoll='define'
+d_strctcpy='define'
+d_strerrm='strerror(e)'
+d_strerror='define'
+d_strerror_r='define'
+d_strftime='define'
+d_strlcat='undef'
+d_strlcpy='undef'
+d_strtod='define'
+d_strtol='define'
+d_strtold='define'
+d_strtoll='define'
+d_strtoq='define'
+d_strtoul='define'
+d_strtoull='define'
+d_strtouq='define'
+d_strxfrm='define'
+d_suidsafe='undef'
+d_symlink='define'
+d_syscall='define'
+d_syscallproto='define'
+d_sysconf='define'
+d_sysernlst=''
+d_syserrlst='define'
+d_system='define'
+d_tcgetpgrp='define'
+d_tcsetpgrp='define'
+d_telldir='define'
+d_telldirproto='define'
+d_time='define'
+d_times='define'
+d_tm_tm_gmtoff='define'
+d_tm_tm_zone='define'
+d_tmpnam_r='define'
+d_truncate='define'
+d_ttyname_r='define'
+d_tzname='define'
+d_u32align='$(use mips && echo 'define' || echo 'undef')'
+d_ualarm='define'
+d_umask='define'
+d_uname='define'
+d_union_semun='undef'
+d_unordered='undef'
+d_unsetenv='define'
+d_usleep='define'
+d_usleepproto='define'
+d_ustat='define'
+d_vendorarch='define'
+d_vendorbin='define'
+d_vendorlib='define'
+d_vendorscript='define'
+d_vfork='undef'
+d_void_closedir='undef'
+d_voidsig='define'
+d_voidtty=''
+d_volatile='define'
+d_vprintf='define'
+d_wait4='define'
+d_waitpid='define'
+d_wcstombs='define'
+d_wctomb='define'
+d_writev='define'
+d_xenix='undef'
+date='date'
+db_hashtype='u_int32_t'
+db_prefixtype='size_t'
+db_version_major=''
+db_version_minor=''
+db_version_patch=''
+defvoidused='15'
+direntrytype='struct dirent'
+dlext='$(get_libname | cut -d . -f 2)'
+dlsrc='dl_dlopen.xs'
+doublesize='8'
+drand01='drand48()'
+drand48_r_proto='REENTRANT_PROTO_I_ST'
+dynamic_ext='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared'
+eagain='EAGAIN'
+ebcdic='undef'
+echo='echo'
+egrep='egrep'
+emacs=''
+endgrent_r_proto='0'
+endhostent_r_proto='0'
+endnetent_r_proto='0'
+endprotoent_r_proto='0'
+endpwent_r_proto='0'
+endservent_r_proto='0'
+eunicefix=':'
+exe_ext=''
+expr='expr'
+extensions='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared Errno'
+extras=''
+fflushNULL='define'
+fflushall='undef'
+find=''
+firstmakefile='makefile'
+flex=''
+fpossize='16'
+fpostype='fpos_t'
+freetype='void'
+from=':'
+full_ar='$(tc-getAR)'
+full_csh='/bin/csh'
+full_sed='/bin/sed'
+gccansipedantic=''
+gccosandvers=''
+gccversion='$($(tc-getCC) -dumpversion)'
+getgrent_r_proto='REENTRANT_PROTO_I_SBWR'
+getgrgid_r_proto='REENTRANT_PROTO_I_TSBWR'
+getgrnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+gethostbyaddr_r_proto='REENTRANT_PROTO_I_TsISBWRE'
+gethostbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
+gethostent_r_proto='REENTRANT_PROTO_I_SBWRE'
+getlogin_r_proto='REENTRANT_PROTO_I_BW'
+getnetbyaddr_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_uISBWRE')'
+getnetbyname_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_CSBWRE')'
+getnetent_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_SBWRE')'
+getprotobyname_r_proto='REENTRANT_PROTO_I_CSBWR'
+getprotobynumber_r_proto='REENTRANT_PROTO_I_ISBWR'
+getprotoent_r_proto='REENTRANT_PROTO_I_SBWR'
+getpwent_r_proto='REENTRANT_PROTO_I_SBWR'
+getpwnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+getpwuid_r_proto='REENTRANT_PROTO_I_TSBWR'
+getservbyname_r_proto='REENTRANT_PROTO_I_CCSBWR'
+getservbyport_r_proto='REENTRANT_PROTO_I_ICSBWR'
+getservent_r_proto='REENTRANT_PROTO_I_SBWR'
+gidsign='1'
+gidsize='4'
+gidtype='gid_t'
+glibpth='${ROOT}usr/shlib ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir) ${ROOT}usr/$(get_libdir)/386 ${ROOT}$(get_libdir)/386 ${ROOT}usr/ccs/$(get_libdir) ${ROOT}usr/ucblib ${ROOT}usr/local/$(get_libdir)'
+gmake='gmake'
+gmtime_r_proto='REENTRANT_PROTO_S_TS'
+gnulibc_version='$(type -p ${ROOT}$(get_libdir)/libc-*.so | sed 's|.*\-\(.*\)\..*|\1|')'
+grep='grep'
+groupcat='cat /etc/group'
+groupstype='gid_t'
+gzip='gzip'
+h_fcntl='false'
+h_sysfile='true'
+hint='recommended'
+hostcat='cat /etc/hosts'
+html1dir=' '
+html1direxp=''
+html3dir=' '
+html3direxp=''
+i16size='2'
+i16type='short'
+i32size='4'
+i64size='8'
+i8size='1'
+i8type='char'
+i_arpainet='define'
+i_bsdioctl=''
+i_crypt='define'
+i_db='$(use berkdb && echo 'define' || echo 'undef')'
+i_dbm='undef'
+i_dirent='define'
+i_dld='undef'
+i_dlfcn='define'
+i_fcntl='undef'
+i_float='define'
+i_fp='undef'
+i_fp_class='undef'
+i_gdbm='$(use gdbm && echo 'define' || echo 'undef')'
+i_grp='define'
+i_ieeefp='undef'
+i_inttypes='define'
+i_langinfo='define'
+i_libutil='undef'
+i_limits='define'
+i_locale='define'
+i_machcthr='undef'
+i_malloc='define'
+i_math='define'
+i_memory='undef'
+i_mntent='define'
+i_ndbm='$( ( (use gdbm || ( use berkdb && has_version '=sys-libs/db-1*' ) ) && (! use spark || "$(tc-getCC)" != "ccc" ) ) && echo 'define' || echo 'undef')'
+i_netdb='define'
+i_neterrno='undef'
+i_netinettcp='define'
+i_niin='define'
+i_poll='define'
+i_prot='undef'
+i_pthread='define'
+i_pwd='define'
+i_rpcsvcdbm='undef'
+i_sfio='undef'
+i_sgtty='undef'
+i_shadow='define'
+i_socks='undef'
+i_stdarg='define'
+i_stddef='define'
+i_stdlib='define'
+i_string='define'
+i_sunmath='undef'
+i_sysaccess='undef'
+i_sysdir='define'
+i_sysfile='define'
+i_sysfilio='undef'
+i_sysin='undef'
+i_sysioctl='define'
+i_syslog='define'
+i_sysmman='define'
+i_sysmode='undef'
+i_sysmount='define'
+i_sysndir='undef'
+i_sysparam='define'
+i_sysresrc='define'
+i_syssecrt='undef'
+i_sysselct='define'
+i_syssockio='undef'
+i_sysstat='define'
+i_sysstatfs='define'
+i_sysstatvfs='define'
+i_systime='define'
+i_systimek='undef'
+i_systimes='define'
+i_systypes='define'
+i_sysuio='define'
+i_sysun='define'
+i_sysutsname='define'
+i_sysvfs='define'
+i_syswait='define'
+i_termio='undef'
+i_termios='define'
+i_time='define'
+i_unistd='define'
+i_ustat='define'
+i_utime='define'
+i_values='define'
+i_varargs='undef'
+i_varhdr='stdarg.h'
+i_vfork='undef'
+ignore_versioned_solibs='y'
+inc_version_list=' '
+inc_version_list_init='0'
+incpath=''
+inews=''
+installarchlib='${ALIBPTH}/${FULLARCH}'
+installbin='/usr/bin'
+installhtml1dir=''
+installhtml3dir=''
+installman1dir='/usr/share/man/man1'
+installman3dir='/usr/share/man/man3'
+installprefix='/usr'
+installprefixexp='/usr'
+installprivlib='${ALIBPTH}'
+installscript='/usr/bin'
+installsitearch='${SLIBPTH}/${FULLARCH}'
+installsitebin='/usr/bin'
+installsitehtml1dir=''
+installsitehtml3dir=''
+installsitelib='${SLIBPTH}'
+installsiteman1dir='/usr/share/man/man1'
+installsiteman3dir='/usr/share/man/man3'
+installsitescript='/usr/bin'
+installstyle='lib/perl5'
+installusrbinperl='define'
+installvendorarch='${VLIBPTH}/${FULLARCH}'
+installvendorbin='/usr/bin'
+installvendorhtml1dir=''
+installvendorhtml3dir=''
+installvendorlib='${VLIBPTH}'
+installvendorman1dir='/usr/share/man/man1'
+installvendorman3dir='/usr/share/man/man3'
+installvendorscript='/usr/bin'
+intsize='4'
+issymlink='test -h'
+ivdformat='\"ld\"'
+ivtype='long'
+known_extensions='attrs B ByteLoader Cwd Data/Dumper DB_File Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared'
+ksh=''
+ld='$(tc-getCC)'
+lddlflags='${LDFLAGS} -shared'
+ldflags='${LDFLAGS}'
+ldflags_uselargefiles='${LDFLAGS}'
+ldlibpthname='LD_LIBRARY_PATH'
+less='less'
+lib_ext='.a'
+libc='$([[ ${ELIBC} == "FreeBSD" ]] && echo ${ROOT}usr/$(get_libdir)/libc.a || type -p ${ROOT}$(get_libdir)/libc-*$(get_libname))'
+libperl='${LIBPERL}'
+libpth='${ROOT}usr/local/$(get_libdir) ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir)'
+libs='-lnsl $(use berkdb && echo -ldb) $(use gdbm && echo -lgdbm) -ldl -lm -lcrypt -lutil -lpthread -lc'
+libsdirs='${ROOT}usr/lib'
+libsfiles='libnsl.so $(use gdbm && echo libgdbm.so) $(use berkdb && echo libdb.so) libdl.so libm.so libcrypt.so libutil.so libpthread.so libc.so'
+libsfound='${ROOT}usr/$(get_libdir)/libnsl.so $(use gdbm && echo ${ROOT}usr/$(get_libdir)/libgdbm.so) $(use berkdb && echo ${ROOT}usr/$(get_libdir)/libdb.so) ${ROOT}usr/$(get_libdir)/libdl.so ${ROOT}usr/$(get_libdir)/libm.so ${ROOT}usr/$(get_libdir)/libcrypt.so ${ROOT}usr/$(get_libdir)/libutil.s ${ROOT}usr/$(get_libdir)/libpthread.so ${ROOT}usr/$(get_libdir)/libc.so'
+libspath='${ROOT}usr/local/$(get_libdir) ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir)'
+libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util pthread c cposix posix ucb BSD'
+libswanted_uselargefiles=''
+line=''
+lint=''
+lkflags=''
+ln='ln'
+lns='/bin/ln -s'
+localtime_r_proto='REENTRANT_PROTO_S_TS'
+locincpth=''
+loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib'
+longlongsize='8'
+lp=''
+lpr=''
+ls='ls'
+lseeksize='8'
+lseektype='off_t'
+mail=''
+mailx=''
+make='make'
+make_set_make='#'
+mallocobj=''
+mallocsrc=''
+malloctype='void *'
+man1dir='/usr/share/man/man1'
+man1direxp='/usr/share/man/man1'
+man1ext='1'
+man3dir='/usr/share/man/man3'
+man3direxp='/usr/share/man/man3'
+man3ext='3pm'
+mips_type=''
+mistrustnm=''
+mkdir='mkdir'
+mmaptype='void *'
+modetype='mode_t'
+more='more'
+multiarch='undef'
+mv=''
+myarchname='${myarch%%-*}-${osname}'
+mydomain='.localdomain'
+myhostname='localhost'
+myuname='$(uname -a)'
+n='-n'
+need_va_copy='undef'
+netdb_hlen_type='size_t'
+netdb_host_type='const void *'
+netdb_name_type='const char *'
+netdb_net_type='in_addr_t'
+nm='nm'
+nm_opt=''
+nm_so_opt='--dynamic'
+nonxs_ext='Errno'
+nroff='nroff'
+nvEUformat='\"E\"'
+nvFUformat='\"F\"'
+nvGUformat='\"G\"'
+nveformat='\"e\"'
+nvfformat='\"f\"'
+nvgformat='\"g\"'
+nvsize='8'
+nvtype='double'
+o_nonblock='O_NONBLOCK'
+obj_ext='.o'
+old_pthread_create_joinable=''
+optimize='${CFLAGS}'
+orderlib='false'
+osname='${osname}'
+osvers='$(uname -r)'
+otherlibdirs=' '
+package='perl5'
+pager='/usr/bin/less'
+passcat='cat /etc/passwd'
+patchlevel='8'
+path_sep=':'
+perl=''
+perl5='$(type -p perl)'
+perl_patchlevel=''
+perladmin='root@localhost'
+perllibs='-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc'
+perlpath='$(type -p perl)'
+pg='pg'
+phostname='hostname'
+pidtype='pid_t'
+plibpth=''
+pmake=''
+pr=''
+prefix='/usr'
+prefixexp='/usr'
+privlib='${ALIBPTH}'
+privlibexp='${ALIBPTH}'
+procselfexe='\"/proc/self/exe\"'
+prototype='define'
+randbits='48'
+randfunc='drand48'
+random_r_proto='REENTRANT_PROTO_I_St'
+randseedtype='long'
+ranlib=':'
+rd_nodata='-1'
+readdir64_r_proto='REENTRANT_PROTO_I_TSR'
+readdir_r_proto='REENTRANT_PROTO_I_TSR'
+revision='5'
+rm='rm'
+rmail=''
+run=''
+runnm='false'
+sPRIEUldbl='\"LE\"'
+sPRIFUldbl='\"LF\"'
+sPRIGUldbl='\"LG\"'
+sPRIeldbl='\"Le\"'
+sPRIfldbl='\"Lf\"'
+sPRIgldbl='\"Lg\"'
+sSCNfldbl='\"Lf\"'
+sched_yield='sched_yield()'
+scriptdir='/usr/bin'
+scriptdirexp='/usr/bin'
+sed='sed'
+seedfunc='srand48'
+selecttype='fd_set *'
+sendmail=''
+setgrent_r_proto='0'
+sethostent_r_proto='0'
+setlocale_r_proto='0'
+setnetent_r_proto='0'
+setprotoent_r_proto='0'
+setpwent_r_proto='0'
+setservent_r_proto='0'
+sh='/bin/sh'
+shar=''
+sharpbang='#!'
+shmattype='void *'
+shortsize='2'
+shrpenv=''
+shsharp='true'
+sig_count='65'
+sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 6 17 29 31 '
+sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 6, 17, 29, 31, 0'
+sig_size='69'
+sig_name='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS NUM32 NUM33 RTMIN NUM35 NUM36 NUM37 NUM38 NUM39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 NUM48 NUM49 NUM50 NUM51 NUM52 NUM53 NUM54 NUM55 NUM56 NUM57 NUM58 NUM59 NUM60 NUM61 NUM62 NUM63 RTMAX IOT CLD POLL UNUSED '
+sig_name_init='\"ZERO\", \"HUP\", \"INT\", \"QUIT\", \"ILL\", \"TRAP\", \"ABRT\", \"BUS\", \"FPE\", \"KILL\", \"USR1\", \"SEGV\", \"USR2\", \"PIPE\", \"ALRM\", \"TERM\", \"STKFLT\", \"CHLD\", \"CONT\", \"STOP\", \"TSTP\", \"TTIN\", \"TTOU\", \"URG\", \"XCPU\", \"XFSZ\", \"VTALRM\", \"PROF\", \"WINCH\", \"IO\", \"PWR\", \"SYS\", \"NUM32\", \"NUM33\", \"RTMIN\", \"NUM35\", \"NUM36\", \"NUM37\", \"NUM38\", \"NUM39\", \"NUM40\", \"NUM41\", \"NUM42\", \"NUM43\", \"NUM44\", \"NUM45\", \"NUM46\", \"NUM47\", \"NUM48\", \"NUM49\", \"NUM50\", \"NUM51\", \"NUM52\", \"NUM53\", \"NUM54\", \"NUM55\", \"NUM56\", \"NUM57\", \"NUM58\", \"NUM59\", \"NUM60\", \"NUM61\", \"NUM62\", \"NUM63\", \"RTMAX\", \"IOT\", \"CLD\", \"POLL\", \"UNUSED\", 0'
+signal_t='void'
+sitearch='${SLIBPTH}/${FULLARCH}'
+sitearchexp='${SLIBPTH}/${FULLARCH}'
+sitebin='/usr/bin'
+sitebinexp='/usr/bin'
+sitehtml1dir=''
+sitehtml1direxp=''
+sitehtml3dir=''
+sitehtml3direxp=''
+sitelib='${SLIBPTH}'
+sitelib_stem='${LIBPTH}/site_perl'
+sitelibexp='${SLIBPTH}'
+siteman1dir='/usr/share/man/man1'
+siteman1direxp='/usr/share/man/man1'
+siteman3dir='/usr/share/man/man3'
+siteman3direxp='/usr/share/man/man3'
+siteprefix='/usr'
+siteprefixexp='/usr'
+sitescript='/usr/bin'
+sitescriptexp='/usr/bin'
+sizetype='size_t'
+sleep=''
+smail=''
+so='$(get_libname | cut -d . -f 2)'
+sockethdr=''
+socketlib=''
+socksizetype='socklen_t'
+sort='sort'
+spackage='Perl5'
+spitshell='cat'
+srand48_r_proto='REENTRANT_PROTO_I_LS'
+srandom_r_proto='REENTRANT_PROTO_I_TS'
+src='.'
+ssizetype='ssize_t'
+startperl='#!/usr/bin/perl'
+startsh='#!/bin/sh'
+static_ext=' '
+stdchar='char'
+stdio_base='((fp)->_IO_read_base)'
+stdio_bufsiz='((fp)->_IO_read_end - (fp)->_IO_read_base)'
+stdio_cnt='((fp)->_IO_read_end - (fp)->_IO_read_ptr)'
+stdio_filbuf=''
+stdio_ptr='((fp)->_IO_read_ptr)'
+stdio_stream_array=''
+strerror_r_proto='REENTRANT_PROTO_B_IBW'
+strings='${ROOT}usr/include/string.h'
+submit=''
+subversion='8'
+sysman='/usr/share/man/man1'
+tail=''
+tar=''
+targetarch=''
+tbl=''
+tee=''
+test='test'
+timeincl='${ROOT}usr/include/sys/time.h ${ROOT}usr/include/time.h '
+timetype='time_t'
+tmpnam_r_proto='REENTRANT_PROTO_B_B'
+to=':'
+touch='touch'
+tr='tr'
+trnl='\n'
+troff=''
+ttyname_r_proto='REENTRANT_PROTO_I_IBW'
+u16size='2'
+u16type='unsigned short'
+u32size='4'
+u64size='8'
+u8size='1'
+u8type='unsigned char'
+uidsign='1'
+uidsize='4'
+uidtype='uid_t'
+uname='uname'
+uniq='uniq'
+use5005threads='undef'
+usecrosscompile='undef'
+usedl='define'
+usefaststdio='define'
+useithreads='$(use ithreads && echo 'define' || echo 'undef')'
+uselargefiles='define'
+uselongdouble='undef'
+usemallocwrap='define'
+usemorebits='undef'
+usemultiplicity='define'
+usemymalloc='n'
+usenm='false'
+useopcode='true'
+useperlio='define'
+useposix='true'
+usereentrant='undef'
+usesfio='false'
+useshrplib='true'
+usesitecustomize='undef'
+usesocks='undef'
+usethreads='$(use ithreads && echo 'define' || echo 'undef')'
+usevendorprefix='define'
+usevfork='false'
+usrinc='${ROOT}$(get_ml_incdir | cut -d / -f 2-)'
+uuname=''
+uvXUformat='\"lX\"'
+uvoformat='\"lo\"'
+uvtype='unsigned long'
+uvuformat='\"lu\"'
+uvxformat='\"lx\"'
+vendorarch='${VLIBPTH}/${FULLARCH}'
+vendorarchexp='${VLIBPTH}/${FULLARCH}'
+vendorbin='/usr/bin'
+vendorbinexp='/usr/bin'
+vendorhtml1dir=' '
+vendorhtml1direxp=''
+vendorhtml3dir=' '
+vendorhtml3direxp=''
+vendorlib='${VLIBPTH}'
+vendorlib_stem='${LIBPTH}/vendor_perl'
+vendorlibexp='${VLIBPTH}'
+vendorman1dir='/usr/share/man/man1'
+vendorman1direxp='/usr/share/man/man1'
+vendorman3dir='/usr/share/man/man3'
+vendorman3direxp='/usr/share/man/man3'
+vendorprefix='/usr'
+vendorprefixexp='/usr'
+vendorscript='/usr/bin'
+vendorscriptexp='/usr/bin'
+version='5.8.8'
+version_patchlevel_string='version 8 subversion 8'
+versiononly='undef'
+vi=''
+voidflags='15'
+xlibpth='/usr/lib/386 /lib/386'
+yacc='yacc'
+yaccflags=''
+zcat=''
+zip='zip'
+PERL_REVISION=5
+PERL_VERSION=8
+PERL_SUBVERSION=8
+PERL_API_REVISION=5
+PERL_API_VERSION=8
+PERL_API_SUBVERSION=0
+PERL_PATCHLEVEL=
+PERL_CONFIG_SH=true
+" >> "${S}"/config.sh
+
+# Options for 64-bit architectures
+if [[ ${CHOST/64/} != ${CHOST} ]] ; then
+echo "
+alignbytes='8'
+ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -A_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo /gdbm)'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo '/gdbm')'
+cppsymbols='__amd64=1 __amd64__=1 __ELF__=1 _FILE_OFFSET_BITS=64 _GNU_SOURCE=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _LP64=1 __LP64__=1 _POSIX_SOURCE=1 _REENTRANT=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE=1 __USE_LARGEFILE64=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 __x86_64=1 __x86_64__=1 _XOPEN_SOURCE_EXTENDED=1'
+d_nv_preserves_uv='undef'
+d_u32align='define'
+getspnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+gidformat='\"u\"'
+i32type='int'
+i64type='long'
+ivsize='8'
+longdblsize='16'
+longsize='8'
+nv_preserves_uv_bits='53'
+ptrsize='8'
+quadkind='2'
+quadtype='long'
+uquadtype='unsigned long'
+sPRIXU64='\"lX\"'
+sPRId64='\"ld\"'
+sPRIi64='\"li\"'
+sPRIo64='\"lo\"'
+sPRIu64='\"lu\"'
+sPRIx64='\"lx\"'
+selectminbits='64'
+sizesize='8'
+u32type='unsigned int'
+u64type='unsigned long'
+uidformat='\"u\"'
+uquadtype='unsigned long'
+use64bitall='define'
+use64bitint='define'
+uvsize='8'
+" >> "${S}"/config.sh
+
+
+if [[ $(tc-endian) == "little" ]] ; then
+
+# Options for 64-bit little-endian architectures
+echo "
+byteorder='12345678'
+" >> "${S}"/config.sh
+
+ else
+
+# Options for 64-bit big-endian architectures
+echo "
+byteorder='87654321'
+" >> "${S}"/config.sh
+
+fi
+
+
+else
+
+# Options for 32-bit architectures
+echo "
+alignbytes='4'
+ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo /gdbm)'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo '/gdbm')'
+cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 _GNU_SOURCE=1 i386=1 __i386=1 __i386__=1 __i486=1 __i486__=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _POSIX_SOURCE=1 _REENTRANT=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE=1 __USE_LARGEFILE64=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 _XOPEN_SOURCE_EXTENDED=1'
+d_nv_preserves_uv='define'
+d_u32align='undef'
+getspnam_r_proto='0'
+gidformat='\"lu\"'
+i32type='long'
+i64type='long long'
+ivsize='4'
+longdblsize='12'
+longsize='4'
+nv_preserves_uv_bits='32'
+ptrsize='4'
+quadkind='3'
+quadtype='long long'
+uquadtype='unsigned long long'
+sPRIXU64='\"LX\"'
+sPRId64='\"Ld\"'
+sPRIi64='\"Li\"'
+sPRIo64='\"Lo\"'
+sPRIu64='\"Lu\"'
+sPRIx64='\"Lx\"'
+selectminbits='32'
+sizesize='4'
+u32type='unsigned long'
+u64type='unsigned long long'
+uidformat='\"lu\"'
+uquadtype='unsigned long long'
+use64bitall='undef'
+use64bitint='undef'
+uvsize='4'
+" >> "${S}"/config.sh
+
+
+if [[ $(tc-endian) == "little" ]] ; then
+
+# Options for 32-bit little-endian architectures
+echo "
+byteorder='1234'
+" >> "${S}"/config.sh
+
+else
+
+# Options for 32-bit big-endian architectures
+echo "
+byteorder='4321'
+" >> "${S}"/config.sh
+
+fi
+
+
+fi
+
+
+IFS=$IFSOLD
+}
diff --git a/dev-lang/perl/files/letgcc-find-errno.patch b/dev-lang/perl/files/letgcc-find-errno.patch
new file mode 100644
index 0000000..24722ee
--- /dev/null
+++ b/dev-lang/perl/files/letgcc-find-errno.patch
@@ -0,0 +1,42 @@
+This removes all the logic that perl uses to locate an appropriate
+errno.h for the target. Instead we simple create a file that does
+
+ #include "errno.h"
+
+and use that as the file to parse. This is needed when using an
+external toolchain since perl will search in ${STAGING_INCDIR} for
+errno.h (when using gcc) and that isn't where it's located - its
+wherever the external toolchain keeps it's headers.
+
+--- perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:10:10 1.1
++++ perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:21:35
+@@ -11,8 +11,18 @@
+ open OUT, ">Errno.pm" or die "Cannot open Errno.pm: $!";
+ select OUT;
+ my $file;
+-my @files = get_files();
+-if ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
++#my @files = get_files();
++my @files = ("errno.h");
++
++if (1) {
++ open INCS, '>includes.c' or
++ die "Cannot open includes.c";
++ print INCS qq[#include "errno.h"\n];
++ close INCS;
++ process_file('includes.c');
++ unlink 'includes.c';
++}
++elsif ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
+ # MinGW complains "warning: #pragma system_header ignored outside include
+ # file" if the header files are processed individually, so include them
+ # all in .c file and process that instead.
+@@ -44,7 +54,7 @@
+ chomp($file = `cygpath -w "$file"`);
+ }
+
+- return unless defined $file and -f $file;
++# return unless defined $file and -f $file;
+ # warn "Processing $file\n";
+
+ local *FH;
diff --git a/dev-lang/perl/files/native-perlinc.patch b/dev-lang/perl/files/native-perlinc.patch
new file mode 100644
index 0000000..6dc4b95
--- /dev/null
+++ b/dev-lang/perl/files/native-perlinc.patch
@@ -0,0 +1,24 @@
+Index: perl-5.8.8/lib/ExtUtils/MM_Unix.pm
+===================================================================
+--- perl-5.8.8.orig/lib/ExtUtils/MM_Unix.pm 2008-10-31 22:01:35.000000000 +0000
++++ perl-5.8.8/lib/ExtUtils/MM_Unix.pm 2008-11-08 16:01:12.000000000 +0000
+@@ -1597,6 +1597,19 @@
+ $self->{PERL_LIB} ||= $Config{privlibexp};
+ $self->{PERL_ARCHLIB} ||= $Config{archlibexp};
+ $self->{PERL_INC} = $self->catdir("$self->{PERL_ARCHLIB}","CORE"); # wild guess for now
++ # Check for environment override so we'll find the headers in the correct place
++ if (defined $ENV{PERL_LIB})
++ {
++ $self->{PERL_LIB} = $ENV{PERL_LIB};
++ }
++ if (defined $ENV{PERL_ARCHLIB})
++ {
++ $self->{PERL_ARCHLIB} = $ENV{PERL_ARCHLIB};
++ }
++ if (defined $ENV{PERL_INC})
++ {
++ $self->{PERL_INC} = $ENV{PERL_INC};
++ }
+ my $perl_h;
+
+ if (not -f ($perl_h = $self->catfile($self->{PERL_INC},"perl.h"))
diff --git a/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch b/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch
new file mode 100644
index 0000000..c442def
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.7-MakeMaker-RUNPATH.patch
@@ -0,0 +1,21 @@
+Bug #105054.
+
+We do not want the build root in the linked perl module's RUNPATH, so strip
+paths containing PORTAGE_TMPDIR if its set.
+
+--- perl-5.8.7/lib/ExtUtils/MM_Unix.pm 2005-09-10 14:06:59.000000000 +0200
++++ perl-5.8.7.az/lib/ExtUtils/MM_Unix.pm 2005-09-10 15:25:52.000000000 +0200
+@@ -1915,6 +1915,13 @@
+ # LD_RUN_PATH now computed by ExtUtils::Liblist
+ ($self->{EXTRALIBS}, $self->{BSLOADLIBS},
+ $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
++ # We do not want the build root in RPATH
++ if (exists $ENV{PORTAGE_TMPDIR}) {
++ # If we have PORTAGE_TMPDIR set, strip that, as just testing for
++ # /usr and /opt might not be sufficient
++ $self->{LD_RUN_PATH} = join ':', grep !/^\Q$ENV{PORTAGE_TMPDIR}/,
++ split /:/, $self->{LD_RUN_PATH};
++ }
+ last;
+ }
+ }
diff --git a/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch b/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch
new file mode 100644
index 0000000..d29fc25
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-CAN-2005-0448-rmtree-2.patch
@@ -0,0 +1,280 @@
+SECURITY [CAN-2005-0448]:
+
+Rewrite File::Path::rmtree to avoid race condition which allows an
+attacker with write permission on directories in the tree being
+removed to make files setuid or to remove arbitrary files (see
+http://bugs.debian.org/286905 and http://bugs.debian.org/286922).
+
+Revised for 5.8.8-7etch6 to avoid failure when rmtree removes the
+current directory.
+
+diff --git a/lib/File/Path.pm b/lib/File/Path.pm
+index 2e41ff3..fd32b96 100644
+--- a/lib/File/Path.pm
++++ b/lib/File/Path.pm
+@@ -72,33 +72,17 @@ or C<unlink> to remove it, or that it's skipping it.
+
+ =item *
+
+-a boolean value, which if TRUE will cause C<rmtree> to
+-skip any files to which you do not have delete access
+-(if running under VMS) or write access (if running
+-under another OS). This will change in the future when
+-a criterion for 'delete permission' under OSs other
+-than VMS is settled. (defaults to FALSE)
++a boolean value, which if FALSE (the default for non-root users) will
++cause C<rmtree> to adjust the mode of directories (if required) prior
++to attempting to remove the contents. Note that on interruption or
++failure of C<rmtree>, directories may be left with more permissive
++modes for the owner.
+
+ =back
+
+ It returns the number of files successfully deleted. Symlinks are
+ simply deleted and not followed.
+
+-B<NOTE:> There are race conditions internal to the implementation of
+-C<rmtree> making it unsafe to use on directory trees which may be
+-altered or moved while C<rmtree> is running, and in particular on any
+-directory trees with any path components or subdirectories potentially
+-writable by untrusted users.
+-
+-Additionally, if the third parameter is not TRUE and C<rmtree> is
+-interrupted, it may leave files and directories with permissions altered
+-to allow deletion (and older versions of this module would even set
+-files and directories to world-read/writable!)
+-
+-Note also that the occurrence of errors in C<rmtree> can be determined I<only>
+-by trapping diagnostic messages using C<$SIG{__WARN__}>; it is not apparent
+-from the return value.
+-
+ =head1 DIAGNOSTICS
+
+ =over 4
+@@ -172,111 +156,127 @@ sub mkpath {
+ @created;
+ }
+
+-sub rmtree {
+- my($roots, $verbose, $safe) = @_;
+- my(@files);
+- my($count) = 0;
+- $verbose ||= 0;
+- $safe ||= 0;
++sub _rmtree;
++sub _rmtree
++{
++ my ($path, $prefix, $up, $up_dev, $up_ino, $verbose, $safe) = @_;
++ my $up_name = $up eq '..' ? 'parent' : 'initial';
++
++ my ($dev, $ino) = lstat $path or return 0;
++ unless (-d _)
++ {
++ print "unlink $prefix$path\n" if $verbose;
++ unless (unlink $path)
++ {
++ carp "Can't remove file $prefix$path ($!)";
++ return 0;
++ }
+
+- if ( defined($roots) && length($roots) ) {
+- $roots = [$roots] unless ref $roots;
++ return 1;
+ }
+- else {
+- carp "No root path(s) specified\n";
+- return 0;
++
++ unless (chdir $path)
++ {
++ carp "Can't chdir to $prefix$path ($!)";
++ return 0;
+ }
+
+- my($root);
+- foreach $root (@{$roots}) {
+- if ($Is_MacOS) {
+- $root = ":$root" if $root !~ /:/;
+- $root =~ s#([^:])\z#$1:#;
+- } else {
+- $root =~ s#/\z##;
+- }
+- (undef, undef, my $rp) = lstat $root or next;
+- $rp &= 07777; # don't forget setuid, setgid, sticky bits
+- if ( -d _ ) {
+- # notabene: 0700 is for making readable in the first place,
+- # it's also intended to change it to writable in case we have
+- # to recurse in which case we are better than rm -rf for
+- # subtrees with strange permissions
+- chmod($rp | 0700, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
+- or carp "Can't make directory $root read+writeable: $!"
+- unless $safe;
+-
+- if (opendir my $d, $root) {
+- no strict 'refs';
+- if (!defined ${"\cTAINT"} or ${"\cTAINT"}) {
+- # Blindly untaint dir names
+- @files = map { /^(.*)$/s ; $1 } readdir $d;
+- } else {
+- @files = readdir $d;
+- }
+- closedir $d;
+- }
+- else {
+- carp "Can't read $root: $!";
+- @files = ();
+- }
++ # avoid a race condition where a directory may be replaced by a
++ # symlink between the lstat and the chdir
++ my ($new_dev, $new_ino, $perm) = stat '.';
++ unless ("$new_dev:$new_ino" eq "$dev:$ino")
++ {
++ croak "Directory $prefix$path changed before chdir, aborting";
++ }
+
+- # Deleting large numbers of files from VMS Files-11 filesystems
+- # is faster if done in reverse ASCIIbetical order
+- @files = reverse @files if $Is_VMS;
+- ($root = VMS::Filespec::unixify($root)) =~ s#\.dir\z## if $Is_VMS;
+- if ($Is_MacOS) {
+- @files = map("$root$_", @files);
+- } else {
+- @files = map("$root/$_", grep $_!~/^\.{1,2}\z/s,@files);
+- }
+- $count += rmtree(\@files,$verbose,$safe);
+- if ($safe &&
+- ($Is_VMS ? !&VMS::Filespec::candelete($root) : !-w $root)) {
+- print "skipped $root\n" if $verbose;
+- next;
+- }
+- chmod $rp | 0700, $root
+- or carp "Can't make directory $root writeable: $!"
+- if $force_writeable;
+- print "rmdir $root\n" if $verbose;
+- if (rmdir $root) {
+- ++$count;
+- }
+- else {
+- carp "Can't remove directory $root: $!";
+- chmod($rp, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
+- or carp("and can't restore permissions to "
+- . sprintf("0%o",$rp) . "\n");
+- }
+- }
+- else {
+- if ($safe &&
+- ($Is_VMS ? !&VMS::Filespec::candelete($root)
+- : !(-l $root || -w $root)))
+- {
+- print "skipped $root\n" if $verbose;
+- next;
+- }
+- chmod $rp | 0600, $root
+- or carp "Can't make file $root writeable: $!"
+- if $force_writeable;
+- print "unlink $root\n" if $verbose;
+- # delete all versions under VMS
+- for (;;) {
+- unless (unlink $root) {
+- carp "Can't unlink file $root: $!";
+- if ($force_writeable) {
+- chmod $rp, $root
+- or carp("and can't restore permissions to "
+- . sprintf("0%o",$rp) . "\n");
+- }
+- last;
+- }
+- ++$count;
+- last unless $Is_VMS && lstat $root;
+- }
++ $perm &= 07777;
++ my $nperm = $perm | 0700;
++ unless ($safe or $nperm == $perm or chmod $nperm, '.')
++ {
++ carp "Can't make directory $prefix$path read+writeable ($!)";
++ $nperm = $perm;
++ }
++
++ my $count = 0;
++ if (opendir my $dir, '.')
++ {
++ my $entry;
++ while (defined ($entry = readdir $dir))
++ {
++ next if $entry =~ /^\.\.?$/;
++ $entry =~ /^(.*)$/s; $entry = $1; # untaint
++ $count += _rmtree $entry, "$prefix$path/", '..', $dev, $ino,
++ $verbose, $safe;
+ }
++
++ closedir $dir;
++ }
++
++ # restore directory permissions if required (in case the rmdir
++ # below fails) now, while we're still in the directory and may do
++ # so without a race via '.'
++ unless ($nperm == $perm or chmod $perm, '.')
++ {
++ carp "Can't restore permissions on directory $prefix$path ($!)";
++ }
++
++ # don't leave the caller in an unexpected directory
++ unless (chdir $up)
++ {
++ croak "Can't return to $up_name directory from $prefix$path ($!)";
++ }
++
++ # ensure that a chdir .. didn't take us somewhere other than
++ # where we expected (see CVE-2002-0435)
++ unless (($new_dev, $new_ino) = stat '.'
++ and "$new_dev:$new_ino" eq "$up_dev:$up_ino")
++ {
++ croak "\u$up_name directory changed since entering $prefix$path";
++ }
++
++ print "rmdir $prefix$path\n" if $verbose;
++ if (rmdir $path)
++ {
++ $count++;
++ }
++ else
++ {
++ carp "Can't remove directory $prefix$path ($!)";
++ }
++
++ return $count;
++}
++
++sub rmtree
++{
++ my ($p, $verbose, $safe) = @_;
++ $p = [] unless defined $p and length $p;
++ $p = [ $p ] unless ref $p;
++ my @paths = grep defined && length, @$p;
++
++ # default to "unsafe" for non-root (will chmod dirs)
++ $safe = $> ? 0 : 1 unless defined $safe;
++
++ unless (@paths)
++ {
++ carp "No root path(s) specified";
++ return;
++ }
++
++ opendir my $oldpwd, '.' or do {
++ carp "Can't fetch initial working directory";
++ return;
++ };
++
++ my ($dev, $ino) = stat '.' or do {
++ carp "Can't stat initial working directory";
++ return;
++ };
++
++ my $count = 0;
++ for my $path (@paths)
++ {
++ $count += _rmtree $path, '', $oldpwd, $dev, $ino, $verbose, $safe;
+ }
+
+ $count;
diff --git a/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch b/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch
new file mode 100644
index 0000000..4700058
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-CVE-2008-1927.patch
@@ -0,0 +1,256 @@
+Fix a double free / segfault with utf8 regexps
+Debian #454792
+[rt.cpan.org #48156]
+[rt.cpan.org #40641]
+upstream change 29204
+
+UTF8_ALLOW_DEFAULT definition in utf8.h picked from upstream change 27688
+
+diff --git a/embed.fnc b/embed.fnc
+index edfbc0e..26524c7 100644
+--- a/embed.fnc
++++ b/embed.fnc
+@@ -1168,6 +1168,7 @@ Es |void |reguni |NN const struct RExC_state_t *state|UV uv|NN char *s|NN STRLE
+ Es |regnode*|regclass |NN struct RExC_state_t *state
+ ERs |I32 |regcurly |NN const char *
+ Es |regnode*|reg_node |NN struct RExC_state_t *state|U8 op
++Es |UV |reg_recode |const char value|NULLOK SV **encp
+ Es |regnode*|regpiece |NN struct RExC_state_t *state|NN I32 *flagp
+ Es |void |reginsert |NN struct RExC_state_t *state|U8 op|NN regnode *opnd
+ Es |void |regoptail |NN struct RExC_state_t *state|NN regnode *p|NN regnode *val
+diff --git a/embed.h b/embed.h
+index 2b38fd5..372b04f 100644
+--- a/embed.h
++++ b/embed.h
+@@ -1234,6 +1234,7 @@
+ #define regclass S_regclass
+ #define regcurly S_regcurly
+ #define reg_node S_reg_node
++#define reg_recode S_reg_recode
+ #define regpiece S_regpiece
+ #define reginsert S_reginsert
+ #define regoptail S_regoptail
+@@ -3277,6 +3278,7 @@
+ #define regclass(a) S_regclass(aTHX_ a)
+ #define regcurly(a) S_regcurly(aTHX_ a)
+ #define reg_node(a,b) S_reg_node(aTHX_ a,b)
++#define reg_recode(a,b) S_reg_recode(aTHX_ a,b)
+ #define regpiece(a,b) S_regpiece(aTHX_ a,b)
+ #define reginsert(a,b,c) S_reginsert(aTHX_ a,b,c)
+ #define regoptail(a,b,c) S_regoptail(aTHX_ a,b,c)
+diff --git a/pod/perldiag.pod b/pod/perldiag.pod
+index 9b3134c..7d95216 100644
+--- a/pod/perldiag.pod
++++ b/pod/perldiag.pod
+@@ -1900,6 +1900,15 @@ recognized by Perl or by a user-supplied handler. See L<attributes>.
+ (W printf) Perl does not understand the given format conversion. See
+ L<perlfunc/sprintf>.
+
++=item Invalid escape in the specified encoding in regex; marked by <-- HERE in m/%s/
++
++(W regexp) The numeric escape (for example C<\xHH>) of value < 256
++didn't correspond to a single character through the conversion
++from the encoding specified by the encoding pragma.
++The escape was replaced with REPLACEMENT CHARACTER (U+FFFD) instead.
++The <-- HERE shows in the regular expression about where the
++escape was discovered.
++
+ =item Invalid [] range "%s" in regex; marked by <-- HERE in m/%s/
+
+ (F) The range specified in a character class had a minimum character
+diff --git a/proto.h b/proto.h
+index 6d185dd..ef6c0cf 100644
+--- a/proto.h
++++ b/proto.h
+@@ -1748,6 +1748,7 @@ STATIC I32 S_regcurly(pTHX_ const char *)
+ __attribute__warn_unused_result__;
+
+ STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t *state, U8 op);
++STATIC UV S_reg_recode(pTHX_ const char value, SV **encp);
+ STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t *state, I32 *flagp);
+ STATIC void S_reginsert(pTHX_ struct RExC_state_t *state, U8 op, regnode *opnd);
+ STATIC void S_regoptail(pTHX_ struct RExC_state_t *state, regnode *p, regnode *val);
+diff --git a/regcomp.c b/regcomp.c
+index 928cf39..98d48dd 100644
+--- a/regcomp.c
++++ b/regcomp.c
+@@ -2791,6 +2791,39 @@ S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp)
+ }
+
+ /*
++ * reg_recode
++ *
++ * It returns the code point in utf8 for the value in *encp.
++ * value: a code value in the source encoding
++ * encp: a pointer to an Encode object
++ *
++ * If the result from Encode is not a single character,
++ * it returns U+FFFD (Replacement character) and sets *encp to NULL.
++ */
++STATIC UV
++S_reg_recode(pTHX_ const char value, SV **encp)
++{
++ STRLEN numlen = 1;
++ SV * const sv = sv_2mortal(newSVpvn(&value, numlen));
++ const char * const s = encp && *encp ? sv_recode_to_utf8(sv, *encp)
++ : SvPVX(sv);
++ const STRLEN newlen = SvCUR(sv);
++ UV uv = UNICODE_REPLACEMENT;
++
++ if (newlen)
++ uv = SvUTF8(sv)
++ ? utf8n_to_uvchr((U8*)s, newlen, &numlen, UTF8_ALLOW_DEFAULT)
++ : *(U8*)s;
++
++ if (!newlen || numlen != newlen) {
++ uv = UNICODE_REPLACEMENT;
++ if (encp)
++ *encp = NULL;
++ }
++ return uv;
++}
++
++/*
+ - regatom - the lowest level
+ *
+ * Optimization: gobbles an entire sequence of ordinary characters so that
+@@ -3182,6 +3215,8 @@ tryagain:
+ ender = grok_hex(p, &numlen, &flags, NULL);
+ p += numlen;
+ }
++ if (PL_encoding && ender < 0x100)
++ goto recode_encoding;
+ break;
+ case 'c':
+ p++;
+@@ -3201,6 +3236,17 @@ tryagain:
+ --p;
+ goto loopdone;
+ }
++ if (PL_encoding && ender < 0x100)
++ goto recode_encoding;
++ break;
++ recode_encoding:
++ {
++ SV* enc = PL_encoding;
++ ender = reg_recode((const char)(U8)ender, &enc);
++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
++ vWARN(p, "Invalid escape in the specified encoding");
++ RExC_utf8 = 1;
++ }
+ break;
+ case '\0':
+ if (p >= RExC_end)
+@@ -3331,32 +3377,6 @@ tryagain:
+ break;
+ }
+
+- /* If the encoding pragma is in effect recode the text of
+- * any EXACT-kind nodes. */
+- if (PL_encoding && PL_regkind[(U8)OP(ret)] == EXACT) {
+- STRLEN oldlen = STR_LEN(ret);
+- SV *sv = sv_2mortal(newSVpvn(STRING(ret), oldlen));
+-
+- if (RExC_utf8)
+- SvUTF8_on(sv);
+- if (sv_utf8_downgrade(sv, TRUE)) {
+- const char * const s = sv_recode_to_utf8(sv, PL_encoding);
+- const STRLEN newlen = SvCUR(sv);
+-
+- if (SvUTF8(sv))
+- RExC_utf8 = 1;
+- if (!SIZE_ONLY) {
+- DEBUG_r(PerlIO_printf(Perl_debug_log, "recode %*s to %*s\n",
+- (int)oldlen, STRING(ret),
+- (int)newlen, s));
+- Copy(s, STRING(ret), newlen, char);
+- STR_LEN(ret) += newlen - oldlen;
+- RExC_emit += STR_SZ(newlen) - STR_SZ(oldlen);
+- } else
+- RExC_size += STR_SZ(newlen) - STR_SZ(oldlen);
+- }
+- }
+-
+ return(ret);
+ }
+
+@@ -3734,6 +3754,8 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
+ value = grok_hex(RExC_parse, &numlen, &flags, NULL);
+ RExC_parse += numlen;
+ }
++ if (PL_encoding && value < 0x100)
++ goto recode_encoding;
+ break;
+ case 'c':
+ value = UCHARAT(RExC_parse++);
+@@ -3741,13 +3763,24 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
+ break;
+ case '0': case '1': case '2': case '3': case '4':
+ case '5': case '6': case '7': case '8': case '9':
+- {
+- I32 flags = 0;
+- numlen = 3;
+- value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
+- RExC_parse += numlen;
+- break;
+- }
++ {
++ I32 flags = 0;
++ numlen = 3;
++ value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
++ RExC_parse += numlen;
++ if (PL_encoding && value < 0x100)
++ goto recode_encoding;
++ break;
++ }
++ recode_encoding:
++ {
++ SV* enc = PL_encoding;
++ value = reg_recode((const char)(U8)value, &enc);
++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
++ vWARN(RExC_parse,
++ "Invalid escape in the specified encoding");
++ break;
++ }
+ default:
+ if (!SIZE_ONLY && isALPHA(value) && ckWARN(WARN_REGEXP))
+ vWARN2(RExC_parse,
+diff --git a/t/uni/tr_utf8.t b/t/uni/tr_utf8.t
+index 606a84a..354156a 100755
+--- a/t/uni/tr_utf8.t
++++ b/t/uni/tr_utf8.t
+@@ -31,7 +31,7 @@ BEGIN {
+ }
+
+ use strict;
+-use Test::More tests => 7;
++use Test::More tests => 8;
+
+ use encoding 'utf8';
+
+@@ -67,4 +67,12 @@ is($str, $hiragana, "s/// # hiragana -> katakana");
+ $line =~ tr/bcdeghijklmnprstvwxyz$02578/בצדעגהיײקלמנפּרסטװשכיזשױתײחא/;
+ is($line, "aבצדעfגהיײקלמנoפqּרסuטװשכיזש1ױ34ת6ײח9", "[perl #16843]");
+ }
++
++{
++ # [perl #40641]
++ my $str = qq/Gebääääääääääääääääääääude/;
++ my $reg = qr/Gebääääääääääääääääääääude/;
++ ok($str =~ /$reg/, "[perl #40641]");
++}
++
+ __END__
+diff --git a/utf8.h b/utf8.h
+index 6d63897..3800866 100644
+--- a/utf8.h
++++ b/utf8.h
+@@ -198,6 +198,8 @@ encoded character.
+ UTF8_ALLOW_SURROGATE|UTF8_ALLOW_FFFF)
+ #define UTF8_ALLOW_ANY 0x00FF
+ #define UTF8_CHECK_ONLY 0x0200
++#define UTF8_ALLOW_DEFAULT (ckWARN(WARN_UTF8) ? 0 : \
++ UTF8_ALLOW_ANYUV)
+
+ #define UNICODE_SURROGATE_FIRST 0xD800
+ #define UNICODE_SURROGATE_LAST 0xDFFF
diff --git a/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch b/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch
new file mode 100644
index 0000000..edcfc6a
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-USE_MM_LD_RUN_PATH.patch
@@ -0,0 +1,111 @@
+diff -Naurp perl-5.8.8-orig/lib/ExtUtils/Liblist.pm perl-5.8.8/lib/ExtUtils/Liblist.pm
+--- perl-5.8.8-orig/lib/ExtUtils/Liblist.pm 2003-04-07 14:58:17.000000000 -0400
++++ perl-5.8.8/lib/ExtUtils/Liblist.pm 2006-02-07 09:57:04.000000000 -0500
+@@ -87,6 +87,11 @@ libraries. LD_RUN_PATH is a colon separ
+ in LDLOADLIBS. It is passed as an environment variable to the process
+ that links the shared library.
+
++The Red Hat extension: This generation of LD_RUN_PATH is disabled by default.
++To use the generated LD_RUN_PATH for all links, set the USE_MM_LD_RUN_PATH
++MakeMaker object attribute / argument, (or set the $USE_MM_LD_RUN_PATH
++environment variable).
++
+ =head2 BSLOADLIBS
+
+ List of those libraries that are needed but can be linked in
+diff -Naurp perl-5.8.8-orig/lib/ExtUtils/MM_Unix.pm perl-5.8.8/lib/ExtUtils/MM_Unix.pm
+--- perl-5.8.8-orig/lib/ExtUtils/MM_Unix.pm 2005-05-21 05:42:56.000000000 -0400
++++ perl-5.8.8/lib/ExtUtils/MM_Unix.pm 2006-02-07 09:56:08.000000000 -0500
+@@ -941,7 +941,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
+ }
+
+ my $ld_run_path_shell = "";
+- if ($self->{LD_RUN_PATH} ne "") {
++ if (($self->{LD_RUN_PATH} ne "") && ($self->{USE_MM_LD_RUN_PATH})) {
+ $ld_run_path_shell = 'LD_RUN_PATH="$(LD_RUN_PATH)" ';
+ }
+
+diff -Naurp perl-5.8.8-orig/lib/ExtUtils/MakeMaker.pm perl-5.8.8/lib/ExtUtils/MakeMaker.pm
+--- perl-5.8.8-orig/lib/ExtUtils/MakeMaker.pm 2005-10-21 10:11:04.000000000 -0400
++++ perl-5.8.8/lib/ExtUtils/MakeMaker.pm 2006-02-07 09:55:03.000000000 -0500
+@@ -233,7 +233,7 @@ sub full_setup {
+ PERL_SRC PERM_RW PERM_RWX
+ PL_FILES PM PM_FILTER PMLIBDIRS POLLUTE PPM_INSTALL_EXEC
+ PPM_INSTALL_SCRIPT PREREQ_FATAL PREREQ_PM PREREQ_PRINT PRINT_PREREQ
+- SIGN SKIP TYPEMAPS VERSION VERSION_FROM XS XSOPT XSPROTOARG
++ SKIP TYPEMAPS USE_MM_LD_RUN_PATH VERSION VERSION_FROM XS XSOPT XSPROTOARG
+ XS_VERSION clean depend dist dynamic_lib linkext macro realclean
+ tool_autosplit
+
+@@ -371,6 +371,26 @@ sub new {
+ exit 0;
+ }
+
++ # USE_MM_LD_RUN_PATH - borrowed from RedHat to disable automatic RPATH generation
++ if ( ( ! $self->{USE_MM_LD_RUN_PATH} )
++ &&( ("@ARGV" =~ /\bUSE_MM_LD_RUN_PATH(=([01]))?\b/)
++ ||( exists( $ENV{USE_MM_LD_RUN_PATH} )
++ &&( $ENV{USE_MM_LD_RUN_PATH} =~ /([01])?$/ )
++ )
++ )
++ )
++ {
++ my $v = $1;
++ if( $v )
++ {
++ $v = ($v=~/=([01])$/)[0];
++ }else
++ {
++ $v = 1;
++ };
++ $self->{USE_MM_LD_RUN_PATH}=$v;
++ };
++
+ print STDOUT "MakeMaker (v$VERSION)\n" if $Verbose;
+ if (-f "MANIFEST" && ! -f "Makefile"){
+ check_manifest();
+@@ -2057,6 +2077,44 @@ precedence. A typemap in the current di
+ precedence, even if it isn't listed in TYPEMAPS. The default system
+ typemap has lowest precedence.
+
++=item USE_MM_LD_RUN_PATH
++
++boolean
++This feature is borrowed from Red Hat to deal with RPATH issues.
++Please see bug 81745 - http://bugs.gentoo.org/81745 - for more
++information.
++
++The Red Hat perl MakeMaker distribution differs from the standard
++upstream release in that it disables use of the MakeMaker generated
++LD_RUN_PATH by default, UNLESS this attribute is specified , or the
++USE_MM_LD_RUN_PATH environment variable is set during the MakeMaker run.
++
++The upstream MakeMaker will set the ld(1) environment variable LD_RUN_PATH
++to the concatenation of every -L ld(1) option directory in which a -l ld(1)
++option library is found, which is used as the ld(1) -rpath option if none
++is specified. This means that, if your application builds shared libraries
++and your MakeMaker application links to them, that the absolute paths of the
++libraries in the build tree will be inserted into the RPATH header of all
++MakeMaker generated binaries, and that such binaries will be unable to link
++to these libraries if they do not still reside in the build tree directories
++(unlikely) or in the system library directories (/lib or /usr/lib), regardless
++of any LD_LIBRARY_PATH setting. So if you specified -L../mylib -lmylib , and
++your 'libmylib.so' gets installed into /some_directory_other_than_usr_lib,
++your MakeMaker application will be unable to link to it, even if LD_LIBRARY_PATH
++is set to include /some_directory_other_than_usr_lib, because RPATH overrides
++LD_LIBRARY_PATH.
++
++So for Red Hat MakeMaker builds LD_RUN_PATH is NOT generated by default for
++every link. You can still use explicit -rpath ld options or the LD_RUN_PATH
++environment variable during the build to generate an RPATH for the binaries.
++
++You can set the USE_MM_LD_RUN_PATH attribute to 1 on the MakeMaker command
++line or in the WriteMakefile arguments to enable generation of LD_RUN_PATH
++for every link command.
++
++USE_MM_LD_RUN_PATH will default to 1 (LD_RUN_PATH will be used) IF the
++$USE_MM_LD_RUN_PATH environment variable is set during a MakeMaker run.
++
+ =item VENDORPREFIX
+
+ Like PERLPREFIX, but only for the vendor install locations.
diff --git a/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch b/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch
new file mode 100644
index 0000000..325caaf
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-asm-page-h-compile-failure.patch
@@ -0,0 +1,12 @@
+--- perl-5.8.8/ext/IPC/SysV/SysV.xs.no_asm_page_h 2001-06-30 14:46:07.000000000 -0400
++++ perl-5.8.8/ext/IPC/SysV/SysV.xs 2006-06-02 17:37:22.000000000 -0400
+@@ -3,9 +3,6 @@
+ #include "XSUB.h"
+
+ #include <sys/types.h>
+-#ifdef __linux__
+-# include <asm/page.h>
+-#endif
+ #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
+ #ifndef HAS_SEM
+ # include <sys/ipc.h>
diff --git a/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch
new file mode 100644
index 0000000..85f66fe
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-ccld-cflags.patch
@@ -0,0 +1,33 @@
+--- Configure.orig 2009-11-04 11:09:08.934965499 +0100
++++ Configure 2009-11-04 11:13:19.055305854 +0100
+@@ -7617,7 +7617,7 @@
+ cat <<EOM
+ You appear to have ELF support. I'll use $cc to build dynamic libraries.
+ EOM
+- dflt="$cc"
++ dflt="$cc $optimize"
+ else
+ echo "I'll use ld to build dynamic libraries."
+ dflt='ld'
+--- Makefile.SH.orig 2009-11-04 15:34:22.643322823 +0100
++++ Makefile.SH 2009-11-04 15:34:30.110147884 +0100
+@@ -201,7 +201,7 @@
+ LD = $ld
+
+ LDFLAGS = $ldflags
+-CLDFLAGS = $ldflags
++CLDFLAGS = \$(OPTIMIZE) $ldflags
+
+ mallocsrc = $mallocsrc
+ mallocobj = $mallocobj
+--- x2p/Makefile.SH.orig 2009-11-04 15:54:14.146759212 +0100
++++ x2p/Makefile.SH 2009-11-04 15:54:19.963253154 +0100
+@@ -107,7 +107,7 @@
+ $(REALPERL) -I../lib ../utils/perlcc -I .. -L .. $(plextract) -v -log ../compilelog;
+
+ a2p$(EXE_EXT): $(obj) a2p$(OBJ_EXT)
+- $(CC) -o a2p $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs)
++ $(CC) -o a2p $(OPTIMIZE) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs)
+
+ # I now supply a2p.c with the kits, so the following section is
+ # used only if you force byacc to run by saying
diff --git a/dev-lang/perl/files/perl-5.8.8-cplusplus.patch b/dev-lang/perl/files/perl-5.8.8-cplusplus.patch
new file mode 100644
index 0000000..064bda4
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-cplusplus.patch
@@ -0,0 +1,22 @@
+--- perl.h.orig 2006-03-29 08:53:46.000000000 -0500
++++ perl.h 2006-03-29 08:54:19.000000000 -0500
+@@ -159,7 +159,7 @@ struct perl_thread;
+ #endif
+
+ #ifndef PERL_UNUSED_DECL
+-# ifdef HASATTRIBUTE_UNUSED
++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
+ # define PERL_UNUSED_DECL __attribute__unused__
+ # else
+ # define PERL_UNUSED_DECL
+--- XSUB.h.orig 2006-03-29 08:54:24.000000000 -0500
++++ XSUB.h 2006-03-29 08:54:48.000000000 -0500
+@@ -91,7 +91,7 @@ handled automatically by C<xsubpp>.
+ #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
+ # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
+ #else
+-# ifdef HASATTRIBUTE_UNUSED
++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
+ # define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
+ # else
+ # define XS(name) void name(pTHX_ CV* cv)
diff --git a/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch b/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch
new file mode 100644
index 0000000..52f32bf
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-dragonfly-clean.patch
@@ -0,0 +1,170 @@
+Index: perl-5.8.8/Configure
+===================================================================
+--- perl-5.8.8.orig/Configure 2006-01-08 14:51:03 +0000
++++ perl-5.8.8/Configure 2006-02-14 13:41:41 +0000
+@@ -3130,6 +3130,8 @@
+ dgux) osname=dgux
+ osvers="$3"
+ ;;
++ dragonfly) osname=dragonfly
++ osvers="$3" ;;
+ dynixptx*) osname=dynixptx
+ osvers=`echo "$4"|sed 's/^v//'`
+ ;;
+@@ -7889,7 +7891,7 @@
+ solaris)
+ xxx="-R $shrpdir"
+ ;;
+- freebsd|netbsd|openbsd|interix)
++ freebsd|netbsd|openbsd|dragonfly|interix)
+ xxx="-Wl,-R$shrpdir"
+ ;;
+ bsdos|linux|irix*|dec_osf|gnu*)
+Index: perl-5.8.8/Makefile.SH
+===================================================================
+--- perl-5.8.8.orig/Makefile.SH 2006-01-24 12:49:44 +0000
++++ perl-5.8.8/Makefile.SH 2006-02-14 13:46:57 +0000
+@@ -73,7 +73,7 @@
+ sunos*)
+ linklibperl="-lperl"
+ ;;
+- netbsd*|freebsd[234]*|openbsd*)
++ netbsd*|freebsd[234]*|openbsd*|dragonfly*)
+ linklibperl="-L. -lperl"
+ ;;
+ interix*)
+@@ -990,6 +990,10 @@
+ n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
++.PHONY: printconfig
++printconfig:
++ @eval `$(LDLIBPTH) ./perl -Ilib -V:$(CONFIGVAR)`; echo $$$(CONFIGVAR)
++
+ .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
+ realclean _realcleaner clobber _clobber \
+ distclean veryclean _verycleaner
+Index: perl-5.8.8/hints/dragonfly.sh
+===================================================================
+--- perl-5.8.8.orig/hints/dragonfly.sh 1970-01-01 00:00:00 +0000
++++ perl-5.8.8/hints/dragonfly.sh 2006-02-14 13:15:04 +0000
+@@ -0,0 +1,118 @@
++# hints/dragonfly.sh
++#
++# This file is mostly copied from hints/freebsd.sh with the OS version
++# information taken out and only the FreeBSD-4 information intact.
++# Please check with Todd Willey <xtoddx@gmail.com> before making
++# modifications to this file.
++
++case "$osvers" in
++*) usevfork='true'
++ case "$usemymalloc" in
++ "") usemymalloc='n'
++ ;;
++ esac
++ libswanted=`echo $libswanted | sed 's/ malloc / /'`
++ ;;
++esac
++
++# Dynamic Loading flags have not changed much, so they are separated
++# out here to avoid duplicating them everywhere.
++case "$osvers" in
++*)
++ objformat=`/usr/bin/objformat`
++ if [ x$objformat = xelf ]; then
++ libpth="/usr/lib /usr/local/lib"
++ glibpth="/usr/lib /usr/local/lib"
++ ldflags="-Wl,-E "
++ lddlflags="-shared "
++ else
++ if [ -e /usr/lib/aout ]; then
++ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
++ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
++ fi
++ lddlflags='-Bshareable'
++ fi
++ cccdlflags='-DPIC -fPIC'
++ ;;
++esac
++
++case "$osvers" in
++*)
++ ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
++ if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
++ usenm=false
++ fi
++ ;;
++esac
++
++cat <<'EOM' >&4
++
++Some users have reported that Configure halts when testing for
++the O_NONBLOCK symbol with a syntax error. This is apparently a
++sh error. Rerunning Configure with ksh apparently fixes the
++problem. Try
++ ksh Configure [your options]
++
++EOM
++
++# From: Anton Berezin <tobez@plab.ku.dk>
++# To: perl5-porters@perl.org
++# Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
++# Date: 30 Nov 1998 19:46:24 +0100
++# Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk>
++
++signal_t='void'
++d_voidsig='define'
++
++# This script UU/usethreads.cbu will get 'called-back' by Configure
++# after it has prompted the user for whether to use threads.
++cat > UU/usethreads.cbu <<'EOCBU'
++case "$usethreads" in
++$define|true|[yY]*)
++ lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
++ case "$osvers" in
++ *)
++ if [ ! -r "$lc_r" ]; then
++ cat <<EOM >&4
++POSIX threads should be supported by FreeBSD $osvers --
++but your system is missing the shared libc_r.
++(/sbin/ldconfig -r doesn't find any).
++
++Consider using the latest STABLE release.
++EOM
++ exit 1
++ fi
++ case "$osvers" in
++ *) ldflags="-pthread $ldflags"
++ ;;
++ esac
++ # Both in 4.x and 5.x gethostbyaddr_r exists but
++ # it is "Temporary function, not threadsafe"...
++ # Presumably earlier it didn't even exist.
++ d_gethostbyaddr_r="undef"
++ d_gethostbyaddr_r_proto="0"
++ ;;
++
++ esac
++
++ set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
++ shift
++ libswanted="$*"
++ # Configure will probably pick the wrong libc to use for nm scan.
++ # The safest quick-fix is just to not use nm at all...
++ usenm=false
++
++ unset lc_r
++
++ # Even with the malloc mutexes the Perl malloc does not
++ # seem to be threadsafe in FreeBSD?
++ case "$usemymalloc" in
++ '') usemymalloc=n ;;
++ esac
++esac
++EOCBU
++
++# malloc wrap works
++case "$usemallocwrap" in
++'') usemallocwrap='define' ;;
++esac
+
diff --git a/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
new file mode 100644
index 0000000..7dc1a65
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
@@ -0,0 +1,57 @@
+Index: perl-5.8.8/hints/freebsd.sh
+===================================================================
+--- perl-5.8.8.orig/hints/freebsd.sh
++++ perl-5.8.8/hints/freebsd.sh
+@@ -88,6 +88,8 @@ case "$osvers" in
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
+ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
+ libswanted=`echo $libswanted | sed 's/ iconv / /'`
+ d_setregid='define'
+@@ -102,6 +104,10 @@ case "$osvers" in
+ ;;
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
++ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ iconv / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ ;;
+ esac
+
+@@ -116,17 +122,17 @@ case "$osvers" in
+
+ *)
+ objformat=`/usr/bin/objformat`
+- if [ x$objformat = xelf ]; then
+- libpth="/usr/lib /usr/local/lib"
+- glibpth="/usr/lib /usr/local/lib"
+- ldflags="-Wl,-E "
+- lddlflags="-shared "
+- else
++ if [ x$objformat = xaout ]; then
+ if [ -e /usr/lib/aout ]; then
+ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ fi
+ lddlflags='-Bshareable'
++ else
++ libpth="/usr/lib /usr/local/lib"
++ glibpth="/usr/lib /usr/local/lib"
++ ldflags="-Wl,-E"
++ lddlflags="-shared "
+ fi
+ cccdlflags='-DPIC -fPIC'
+ ;;
+@@ -137,7 +143,7 @@ case "$osvers" in
+
+ *)
+ ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
+- if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
++ if /usr/bin/file -L /usr/lib/libc.so | grep -vq "not stripped" ; then
+ usenm=false
+ fi
+ ;;
diff --git a/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch b/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch
new file mode 100644
index 0000000..c75aa89
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-fix_file_path_chdir.patch
@@ -0,0 +1,72 @@
+ExtUtils/Command.pm (among other things) expects to be able to destroy
+a strangely-permissioned testdir. This is a backport of the chdir/chmod
+work performed in File::Path released in Perl 5.10.0.
+
+--- perl-5.8.7.orig/lib/File/Path.pm 2008-12-05 13:23:32.000000000 -0800
++++ perl-5.8.7/lib/File/Path.pm 2008-12-05 13:33:13.000000000 -0800
+@@ -162,7 +162,7 @@
+ {
+ my ($path, $prefix, $up, $up_dev, $up_ino, $verbose, $safe) = @_;
+
+- my ($dev, $ino) = lstat $path or return 0;
++ my ($dev, $ino, $perm) = lstat $path or return 0;
+ unless (-d _)
+ {
+ print "unlink $prefix$path\n" if $verbose;
+@@ -175,15 +175,25 @@
+ return 1;
+ }
+
+- unless (chdir $path)
+- {
++ if (!chdir($path)) {
++ # see if we can escalate privileges to get in
++ # (e.g. funny protection mask such as -w- instead of rwx)
++ $perm &= 07777;
++ my $nperm = $perm | 0700;
++ if (!($safe or $nperm == $perm or chmod($nperm, $path))) {
++ carp "cannot make $prefix$path read-write-exec";
++ return 0;
++ }
++ elsif (!chdir($path)) {
+ carp "Can't chdir to $prefix$path ($!)";
+ return 0;
++ }
+ }
+
+ # avoid a race condition where a directory may be replaced by a
+ # symlink between the lstat and the chdir
+- my ($new_dev, $new_ino, $perm) = stat '.';
++ my ($new_dev, $new_ino);
++ ($new_dev, $new_ino, $perm) = stat '.';
+ unless ("$new_dev:$new_ino" eq "$dev:$ino")
+ {
+ croak "Directory $prefix$path changed before chdir, aborting";
+--- perl-5.8.8.orig/lib/ExtUtils/t/Command.t
++++ perl-5.8.8/lib/ExtUtils/t/Command.t
+@@ -23,7 +23,7 @@
+ }
+
+ BEGIN {
+- use Test::More tests => 38;
++ use Test::More tests => 39;
+ use File::Spec;
+ }
+
+@@ -148,7 +148,7 @@
+ $^O eq 'NetWare' || $^O eq 'dos' || $^O eq 'cygwin' ||
+ $^O eq 'MacOS'
+ ) {
+- skip( "different file permission semantics on $^O", 4);
++ skip( "different file permission semantics on $^O", 5);
+ }
+
+ @ARGV = ('testdir');
+@@ -178,6 +178,7 @@
+
+ @ARGV = ('testdir');
+ rm_rf;
++ ok( ! -e 'testdir', 'rm_rf can delete a read-only dir' );
+ }
+
+
diff --git a/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch b/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch
new file mode 100644
index 0000000..6904136
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-gcc42-command-line.patch
@@ -0,0 +1,11 @@
+diff -Naur perl-5.8.8-orig/makedepend.SH perl-5.8.8/makedepend.SH
+--- perl-5.8.8-orig/makedepend.SH 2006-10-01 20:05:40.000000000 -0600
++++ perl-5.8.8/makedepend.SH 2006-10-01 20:07:03.000000000 -0600
+@@ -167,6 +167,7 @@
+ -e '/^#.*<builtin>/d' \
+ -e '/^#.*<built-in>/d' \
+ -e '/^#.*<command line>/d' \
++ -e '/^#.*<command-line>/d' \
+ -e '/^#.*"-"/d' \
+ -e '/: file path prefix .* never used$/d' \
+ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
diff --git a/dev-lang/perl/files/perl-5.8.8-lib32.patch b/dev-lang/perl/files/perl-5.8.8-lib32.patch
new file mode 100644
index 0000000..88d5049
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-lib32.patch
@@ -0,0 +1,76 @@
+--- a/Configure
++++ b/Configure
+@@ -1255,12 +1255,12 @@ libnames=''
+ : change the next line if compiling for Xenix/286 on Xenix/386
+ xlibpth='/usr/lib/386 /lib/386'
+ : Possible local library directories to search.
+-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
+-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
++loclibpth="/usr/local/lib32 /opt/local/lib32 /usr/gnu/lib32"
++loclibpth="$loclibpth /opt/gnu/lib32 /usr/GNU/lib32 /opt/GNU/lib32"
+
+ : general looking path for locating libraries
+-glibpth="/lib /usr/lib $xlibpth"
+-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
++glibpth="/lib32 /usr/lib32 $xlibpth"
++glibpth="$glibpth /usr/ccs/lib32 /usr/ucblib /usr/local/lib32"
+ test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
+ test -f /shlib/libc.so && glibpth="/shlib $glibpth"
+
+@@ -5945,8 +5945,8 @@ fi
+ : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
+ case "$installstyle" in
+ '') case "$prefix" in
+- *perl*) dflt='lib';;
+- *) dflt='lib/perl5' ;;
++ *perl*) dflt='lib32';;
++ *) dflt='lib32/perl5' ;;
+ esac
+ ;;
+ *) dflt="$installstyle" ;;
+@@ -5962,8 +5962,8 @@ installstyle=$dflt
+ : /opt/perl/lib/perl5... would be redundant.
+ : The default "style" setting is made in installstyle.U
+ case "$installstyle" in
+-*lib/perl5*) set dflt privlib lib/$package/$version ;;
+-*) set dflt privlib lib/$version ;;
++*lib32/perl5*) set dflt privlib lib32/$package/$version ;;
++*) set dflt privlib lib32/$version ;;
+ esac
+ eval $prefixit
+ $cat <<EOM
+@@ -6465,8 +6465,8 @@ siteprefixexp="$ansexp"
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$sitelib" in
+ '') case "$installstyle" in
+- *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
+- *) dflt=$siteprefix/lib/site_$prog/$version ;;
++ *lib32/perl5*) dflt=$siteprefix/lib32/$package/site_$prog/$version ;;
++ *) dflt=$siteprefix/lib32/site_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$sitelib"
+@@ -6592,8 +6592,8 @@ case "$vendorprefix" in
+ '')
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$installstyle" in
+- *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
+- *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
++ *lib32/perl5*) dflt=$vendorprefix/lib32/$package/vendor_$prog/$version ;;
++ *) dflt=$vendorprefix/lib32/vendor_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$vendorlib"
+@@ -10550,9 +10550,9 @@ else
+ else
+ for net in net socket
+ do
+- if test -f /usr/lib/lib$net$_a; then
+- ( ($nm $nm_opt /usr/lib/lib$net$_a | eval $nm_extract) || \
+- $ar t /usr/lib/lib$net$_a) 2>/dev/null >> libc.list
++ if test -f /usr/lib32/lib$net$_a; then
++ ( ($nm $nm_opt /usr/lib32/lib$net$_a | eval $nm_extract) || \
++ $ar t /usr/lib32/lib$net$_a) 2>/dev/null >> libc.list
+ if $contains socket libc.list >/dev/null 2>&1; then
+ d_socket="$define"
+ socketlib="-l$net"
diff --git a/dev-lang/perl/files/perl-5.8.8-lib64.patch b/dev-lang/perl/files/perl-5.8.8-lib64.patch
new file mode 100644
index 0000000..4cc3aee
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-lib64.patch
@@ -0,0 +1,76 @@
+--- a/Configure
++++ b/Configure
+@@ -1255,12 +1255,12 @@ libnames=''
+ : change the next line if compiling for Xenix/286 on Xenix/386
+ xlibpth='/usr/lib/386 /lib/386'
+ : Possible local library directories to search.
+-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
+-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
++loclibpth="/usr/local/lib64 /opt/local/lib64 /usr/gnu/lib64"
++loclibpth="$loclibpth /opt/gnu/lib64 /usr/GNU/lib64 /opt/GNU/lib64"
+
+ : general looking path for locating libraries
+-glibpth="/lib /usr/lib $xlibpth"
+-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
++glibpth="/lib64 /usr/lib64 $xlibpth"
++glibpth="$glibpth /usr/ccs/lib64 /usr/ucblib /usr/local/lib64"
+ test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
+ test -f /shlib/libc.so && glibpth="/shlib $glibpth"
+
+@@ -5945,8 +5945,8 @@ fi
+ : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
+ case "$installstyle" in
+ '') case "$prefix" in
+- *perl*) dflt='lib';;
+- *) dflt='lib/perl5' ;;
++ *perl*) dflt='lib64';;
++ *) dflt='lib64/perl5' ;;
+ esac
+ ;;
+ *) dflt="$installstyle" ;;
+@@ -5962,8 +5962,8 @@ installstyle=$dflt
+ : /opt/perl/lib/perl5... would be redundant.
+ : The default "style" setting is made in installstyle.U
+ case "$installstyle" in
+-*lib/perl5*) set dflt privlib lib/$package/$version ;;
+-*) set dflt privlib lib/$version ;;
++*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
++*) set dflt privlib lib64/$version ;;
+ esac
+ eval $prefixit
+ $cat <<EOM
+@@ -6465,8 +6465,8 @@ siteprefixexp="$ansexp"
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$sitelib" in
+ '') case "$installstyle" in
+- *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
+- *) dflt=$siteprefix/lib/site_$prog/$version ;;
++ *lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
++ *) dflt=$siteprefix/lib64/site_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$sitelib"
+@@ -6592,8 +6592,8 @@ case "$vendorprefix" in
+ '')
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$installstyle" in
+- *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
+- *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
++ *lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
++ *) dflt=$vendorprefix/lib64/vendor_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$vendorlib"
+@@ -10550,9 +10550,9 @@ else
+ else
+ for net in net socket
+ do
+- if test -f /usr/lib/lib$net$_a; then
+- ( ($nm $nm_opt /usr/lib/lib$net$_a | eval $nm_extract) || \
+- $ar t /usr/lib/lib$net$_a) 2>/dev/null >> libc.list
++ if test -f /usr/lib64/lib$net$_a; then
++ ( ($nm $nm_opt /usr/lib64/lib$net$_a | eval $nm_extract) || \
++ $ar t /usr/lib64/lib$net$_a) 2>/dev/null >> libc.list
+ if $contains socket libc.list >/dev/null 2>&1; then
+ d_socket="$define"
+ socketlib="-l$net"
diff --git a/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch b/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch
new file mode 100644
index 0000000..60440e2
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-libnet-hostname.patch
@@ -0,0 +1,25 @@
+commit adeb94125ab7de8d20c129a905a5159972ad9fd1
+Author: Ricardo SIGNES <rjbs@cpan.org>
+Date: Mon Oct 22 05:01:09 2007 -0400
+
+ hostname.t busted
+ Message-ID: <20071022130109.GA16748@knight>
+
+ p4raw-id: //depot/perl@32180
+
+diff --git a/lib/Net/t/hostname.t b/lib/Net/t/hostname.t
+index 758d304..4013d74 100644
+--- a/lib/Net/t/hostname.t
++++ b/lib/Net/t/hostname.t
+@@ -26,7 +26,10 @@ print "1..5\n";
+ $domain = domainname();
+
+ if(defined $domain && $domain ne "") {
+- print "ok 1\n";
++ print "ok 1 - defined, non-empty domainname\n";
++}
++elsif (not defined $domain) {
++ print "ok 1 # SKIP domain not fully defined\n";
+ }
+ else {
+ print "not ok 1\n";
diff --git a/dev-lang/perl/files/perl-5.8.8-links.patch b/dev-lang/perl/files/perl-5.8.8-links.patch
new file mode 100644
index 0000000..22e74b3
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-links.patch
@@ -0,0 +1,86 @@
+--- lib/CPAN/FirstTime.pm.orig 2006-02-06 07:50:13.000000000 -0500
++++ lib/CPAN/FirstTime.pm 2006-02-06 07:50:28.000000000 -0500
+@@ -292,7 +292,7 @@ by ENTER.
+ my(@path) = split /$Config{'path_sep'}/, $ENV{'PATH'};
+ local $^W = $old_warn;
+ my $progname;
+- for $progname (qw/gzip tar unzip make lynx wget ncftpget ncftp ftp gpg/){
++ for $progname (qw/gzip tar unzip make links lynx wget ncftpget ncftp ftp gpg/){
+ if ($^O eq 'MacOS') {
+ $CPAN::Config->{$progname} = 'not_here';
+ next;
+--- lib/CPAN.pm.orig 2006-02-06 07:54:43.000000000 -0500
++++ lib/CPAN.pm 2006-02-06 07:52:59.000000000 -0500
+@@ -2604,7 +2604,7 @@ sub hosthard {
+
+ $self->debug("localizing funkyftpwise[$url]") if $CPAN::DEBUG;
+ my($f,$funkyftp);
+- for $f ('lynx','ncftpget','ncftp','wget') {
++ for $f ('links','lynx','ncftpget','ncftp','wget') {
+ next unless exists $CPAN::Config->{$f};
+ $funkyftp = $CPAN::Config->{$f};
+ next unless defined $funkyftp;
+@@ -2613,7 +2613,7 @@ sub hosthard {
+ ($asl_ungz = $aslocal) =~ s/\.gz//;
+ $asl_gz = "$asl_ungz.gz";
+ my($src_switch) = "";
+- if ($f eq "lynx"){
++ if (($f eq "lynx")||($f eq "links")){
+ $src_switch = " -source";
+ } elsif ($f eq "ncftp"){
+ $src_switch = " -c";
+@@ -2637,10 +2637,14 @@ Trying with "$funkyftp$src_switch" to ge
+ my($wstatus);
+ if (($wstatus = system($system)) == 0
+ &&
+- ($f eq "lynx" ?
++ (($f eq "lynx" ?
+ -s $asl_ungz # lynx returns 0 when it fails somewhere
+ : 1
+- )
++ )||
++ ($f eq "links" ?
++ -s $asl_ungz # links returns 0 when it fails somewhere
++ : 1
++ ))
+ ) {
+ if (-s $aslocal) {
+ # Looks good
+@@ -2695,7 +2699,7 @@ returned status $estatus (wstat $wstatus
+ });
+ }
+ return if $CPAN::Signal;
+- } # lynx,ncftpget,ncftp
++ } # links,lynx,ncftpget,ncftp
+ } # host
+ }
+
+@@ -6022,7 +6026,7 @@ stalled.
+
+ The CPAN module is designed to automate the make and install of perl
+ modules and extensions. It includes some primitive searching capabilities and
+-knows how to use Net::FTP or LWP (or lynx or an external ftp client)
++knows how to use Net::FTP or LWP (or lynx or links or an external ftp client)
+ to fetch the raw data from the net.
+
+ Modules are fetched from one or more of the mirrored CPAN
+@@ -6975,16 +6979,18 @@ or
+
+ =back
+
+-=head2 Configuring lynx or ncftp for going through a firewall
++=head2 Configuring links or lynx or ncftp for going through a firewall
+
+ If you can go through your firewall with e.g. lynx, presumably with a
+ command such as
+
+ /usr/local/bin/lynx -pscott:tiger
++ /usr/local/bin/links -pscott:tiger
+
+ then you would configure CPAN.pm with the command
+
+ o conf lynx "/usr/local/bin/lynx -pscott:tiger"
++ o conf links "/usr/local/bin/links -pscott:tiger"
+
+ That's all. Similarly for ncftp or ftp, you would configure something
+ like
diff --git a/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch b/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch
new file mode 100644
index 0000000..147d499
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-makedepend-syntax.patch
@@ -0,0 +1,11 @@
+--- perl-5.8.8/makedepend.SH
++++ perl-5.8.8/makedepend.SH
+@@ -128,7 +128,7 @@
+ *.y) filebase=`basename $file .y` ;;
+ esac
+ case "$file" in
+- */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;;
++ */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;;
+ *) finc= ;;
+ esac
+ $echo "Finding dependencies for $filebase$_o."
diff --git a/dev-lang/perl/files/perl-5.8.8-perlcc.patch b/dev-lang/perl/files/perl-5.8.8-perlcc.patch
new file mode 100644
index 0000000..5c4b778
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-perlcc.patch
@@ -0,0 +1,11 @@
+--- perl-5.8.8/ext/B/B/C.pm.orig 2007-06-07 21:12:04.000000000 +0300
++++ perl-5.8.8/ext/B/B/C.pm 2007-06-07 21:12:21.000000000 +0300
+@@ -647,7 +647,7 @@
+ return $sym if defined $sym;
+ my $val= $sv->NVX;
+ $val .= '.00' if $val =~ /^-?\d+$/;
+- $xpvnvsect->add(sprintf("0, 0, 0, %d, %s", $sv->IVX, $val));
++ $xpvnvsect->add(sprintf("0, 0, 0, %d, %s", $sv->NVX, $val));
+ $svsect->add(sprintf("&xpvnv_list[%d], %lu, 0x%x",
+ $xpvnvsect->index, $sv->REFCNT , $sv->FLAGS));
+ return savesym($sv, sprintf("&sv_list[%d]", $svsect->index));
diff --git a/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch b/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch
new file mode 100644
index 0000000..11c5692
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-reorder-INC.patch
@@ -0,0 +1,93 @@
+--- perl.c.orig 2006-01-24 09:57:33.000000000 -0500
++++ perl.c 2006-01-24 10:03:15.000000000 -0500
+@@ -4777,9 +4777,9 @@ S_init_perllib(pTHX)
+ incpush(APPLLIB_EXP, TRUE, TRUE, TRUE);
+ #endif
+
+-#ifdef ARCHLIB_EXP
+- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
+-#endif
++ /* for configuration where /usr is mounted ro (CPAN::Config, Net::Config) */
++ incpush("/etc/perl", FALSE, FALSE, TRUE);
++
+ #ifdef MACOS_TRADITIONAL
+ {
+ Stat_t tmpstatbuf;
+@@ -4806,51 +4806,58 @@ S_init_perllib(pTHX)
+ #endif
+ #if defined(WIN32)
+ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE);
+-#else
+- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
+ #endif
+
+-#ifdef SITEARCH_EXP
+- /* sitearch is always relative to sitelib on Windows for
++#ifdef PERL_VENDORARCH_EXP
++ /* vendorarch is always relative to vendorlib on Windows for
+ * DLL-based path intuition to work correctly */
+ # if !defined(WIN32)
+- incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
++ incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef SITELIB_EXP
++#ifdef PERL_VENDORLIB_EXP
+ # if defined(WIN32)
+- /* this picks up sitearch as well */
+- incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
++ incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
+ # else
+- incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
++ incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
+- incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
++#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
++ incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
+ #endif
+
+-#ifdef PERL_VENDORARCH_EXP
+- /* vendorarch is always relative to vendorlib on Windows for
++#ifdef SITEARCH_EXP
++ /* sitearch is always relative to sitelib on Windows for
+ * DLL-based path intuition to work correctly */
+ # if !defined(WIN32)
+- incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
++ incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef PERL_VENDORLIB_EXP
++#ifdef SITELIB_EXP
+ # if defined(WIN32)
+- incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
++ /* this picks up sitearch as well */
++ incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
+ # else
+- incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
++ incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
+- incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
++#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
++ incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
+ #endif
+
++ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
++ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
++
++ /* Non-versioned site directory for local modules and for
++ compatability with the previous packages' site dirs */
++
++ incpush("/usr/local/lib/site_perl", TRUE, FALSE, TRUE);
++
++
+ #ifdef PERL_OTHERLIBDIRS
+ incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE);
+ #endif
diff --git a/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch b/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch
new file mode 100644
index 0000000..d0efa3f
--- /dev/null
+++ b/dev-lang/perl/files/perl-5.8.8-utf8-boundary.patch
@@ -0,0 +1,57 @@
+--- regcomp.c 2006-01-08 12:59:27.000000000 -0800
++++ regcomp.c 2007-10-05 12:07:55.000000000 -0700
+@@ -135,7 +135,8 @@
+ I32 extralen;
+ I32 seen_zerolen;
+ I32 seen_evals;
+- I32 utf8;
++ I32 utf8; /* pattern is utf8 or not */
++ I32 orig_utf8; /* pattern was originally utf8 */
+ #if ADD_TO_REGEXEC
+ char *starttry; /* -Dr: where regtry was called. */
+ #define RExC_starttry (pRExC_state->starttry)
+@@ -161,6 +162,7 @@
+ #define RExC_seen_zerolen (pRExC_state->seen_zerolen)
+ #define RExC_seen_evals (pRExC_state->seen_evals)
+ #define RExC_utf8 (pRExC_state->utf8)
++#define RExC_orig_utf8 (pRExC_state->orig_utf8)
+
+ #define ISMULT1(c) ((c) == '*' || (c) == '+' || (c) == '?')
+ #define ISMULT2(s) ((*s) == '*' || (*s) == '+' || (*s) == '?' || \
+@@ -1749,15 +1751,17 @@
+ if (exp == NULL)
+ FAIL("NULL regexp argument");
+
+- RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
++ RExC_orig_utf8 = RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
+
+- RExC_precomp = exp;
+ DEBUG_r({
+ if (!PL_colorset) reginitcolors();
+ PerlIO_printf(Perl_debug_log, "%sCompiling REx%s `%s%*s%s'\n",
+ PL_colors[4],PL_colors[5],PL_colors[0],
+- (int)(xend - exp), RExC_precomp, PL_colors[1]);
++ (int)(xend - exp), exp, PL_colors[1]);
+ });
++
++redo_first_pass:
++ RExC_precomp = exp;
+ RExC_flags = pm->op_pmflags;
+ RExC_sawback = 0;
+
+@@ -1783,6 +1787,17 @@
+ RExC_precomp = Nullch;
+ return(NULL);
+ }
++ if (RExC_utf8 && !RExC_orig_utf8) {
++ STRLEN len = xend-exp;
++ DEBUG_r(PerlIO_printf(Perl_debug_log,
++ "UTF8 mismatch! Converting to utf8 for resizing and compile\n"));
++ exp = (char*)Perl_bytes_to_utf8(aTHX_ (U8*)exp, &len);
++ xend = exp + len;
++ RExC_orig_utf8 = RExC_utf8;
++ SAVEFREEPV(exp);
++ goto redo_first_pass;
++ }
++
+
diff --git a/dev-lang/perl/files/perl-configpm-switch.patch b/dev-lang/perl/files/perl-configpm-switch.patch
new file mode 100644
index 0000000..b04009c
--- /dev/null
+++ b/dev-lang/perl/files/perl-configpm-switch.patch
@@ -0,0 +1,33 @@
+This patch enables the switching of configuration files between Config_heavy.pl and
+{PERL_ARCHLIB}/Config_heavy.pl by setting the environment variables
+PERL_ARCHLIB - the later containing settings for the target while
+the former contains those for the host. This will allow cpan.bbclass
+to use the settings appropriate for the native and/or target builds
+as required. This also disables the use of the cache since the cached
+values would be valid for the host only.
+
+--- perl-5.8.8/configpm 2007/04/30 03:10:43 1.1
++++ perl-5.8.8/configpm 2007/04/30 03:11:56
+@@ -374,7 +374,7 @@
+ my($self, $key) = @_;
+
+ # check for cached value (which may be undef so we use exists not defined)
+- return $self->{$key} if exists $self->{$key};
++ #return $self->{$key} if exists $self->{$key};
+
+ return $self->fetch_string($key);
+ }
+@@ -530,7 +530,12 @@
+ sub DESTROY { }
+
+ sub AUTOLOAD {
+- require 'Config_heavy.pl';
++ my $cfgfile = 'Config_heavy.pl';
++ if (defined $ENV{PERL_ARCHLIB} )
++ {
++ $cfgfile = "$ENV{PERL_ARCHLIB}/Config_heavy.pl";
++ }
++ require $cfgfile;
+ goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
+ die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
+ }
diff --git a/dev-lang/perl/files/perl-dynloader.patch b/dev-lang/perl/files/perl-dynloader.patch
new file mode 100644
index 0000000..1d88514
--- /dev/null
+++ b/dev-lang/perl/files/perl-dynloader.patch
@@ -0,0 +1,23 @@
+Allow the location that .so files are searched for for dynamic
+loading to be changed via an environment variable. This is to allow
+us to load .so's from the host system while building for the target
+system.
+
+--- perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:03:08 1.1
++++ perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:41:28
+@@ -65,6 +65,15 @@
+ print OUT <<'EOT';
+ my $modpname = join('/',@modparts);
+ my $modlibname = (caller())[1];
++ # OE: Allow env to form dynamic loader to look in a different place
++ # This is so it finds the host .so files, not the targets
++ if (defined $ENV{PERLHOSTLIB})
++ {
++ my $hostlib = $ENV{PERLHOSTLIB};
++ print STDERR "*** Module name IN: $modlibname\n";
++ $modlibname =~ s#(?<!/)(\.\./)*lib/#$hostlib/#g;
++ print STDERR "*** Module name OUT: $modlibname\n";
++ }
+ my $c = @modparts;
+ $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename
+ my $file = "$modlibname/auto/$modpname/$modfname.$dl_dlext";
diff --git a/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch b/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch
new file mode 100644
index 0000000..a71fbe6
--- /dev/null
+++ b/dev-lang/perl/files/perl-fix_h2ph_include_quote.patch
@@ -0,0 +1,61 @@
+Subject: Fix h2ph with double-quote-delimited #include directives.
+
+Allow the quote mark delimiter also for those #include directives chased with "h2ph -a".
+
+Debian bug #479762.
+
+Also add the directory prefix of the current file when the quote syntax is
+used; 'require' will only look in @INC, not the current directory.
+
+Upstream change 33835.
+--- a/utils/h2ph.PL
++++ b/utils/h2ph.PL
+@@ -85,7 +85,7 @@ sub reindent($) {
+ }
+
+ my ($t, $tab, %curargs, $new, $eval_index, $dir, $name, $args, $outfile);
+-my ($incl, $incl_type, $next);
++my ($incl, $incl_type, $incl_quote, $next);
+ while (defined (my $file = next_file())) {
+ if (-l $file and -d $file) {
+ link_if_possible($file) if ($opt_l);
+@@ -186,9 +186,10 @@ while (defined (my $file = next_file())) {
+ print OUT $t,"unless(defined(\&$name)) {\n sub $name () {\t",$new,";}\n}\n";
+ }
+ }
+- } elsif (/^(include|import|include_next)\s*[<\"](.*)[>\"]/) {
++ } elsif (/^(include|import|include_next)\s*([<\"])(.*)[>\"]/) {
+ $incl_type = $1;
+- $incl = $2;
++ $incl_quote = $2;
++ $incl = $3;
+ if (($incl_type eq 'include_next') ||
+ ($opt_e && exists($bad_file{$incl}))) {
+ $incl =~ s/\.h$/.ph/;
+@@ -221,6 +222,10 @@ while (defined (my $file = next_file())) {
+ "warn(\$\@) if \$\@;\n");
+ } else {
+ $incl =~ s/\.h$/.ph/;
++ # copy the prefix in the quote syntax (#include "x.h") case
++ if ($incl !~ m|/| && $incl_quote eq q{"} && $file =~ m|^(.*)/|) {
++ $incl = "$1/$incl";
++ }
+ print OUT $t,"require '$incl';\n";
+ }
+ } elsif (/^ifdef\s+(\w+)/) {
+@@ -724,8 +729,13 @@ sub queue_includes_from
+ $line .= <HEADER>;
+ }
+
+- if ($line =~ /^#\s*include\s+<(.*?)>/) {
+- push(@ARGV, $1) unless $Is_converted{$1};
++ if ($line =~ /^#\s*include\s+([<"])(.*?)[>"]/) {
++ my ($delimiter, $new_file) = ($1, $2);
++ # copy the prefix in the quote syntax (#include "x.h") case
++ if ($delimiter eq q{"} && $file =~ m|^(.*)/|) {
++ $new_file = "$1/$new_file";
++ }
++ push(@ARGV, $new_file) unless $Is_converted{$new_file};
+ }
+ }
+ close HEADER;
diff --git a/dev-lang/perl/files/perl-h2ph-ansi-header.patch b/dev-lang/perl/files/perl-h2ph-ansi-header.patch
new file mode 100644
index 0000000..c7f0d72
--- /dev/null
+++ b/dev-lang/perl/files/perl-h2ph-ansi-header.patch
@@ -0,0 +1,11 @@
+--- perl-5.8.0-RC2/utils/h2ph_patched.pix 2002-06-24 12:52:31.000000000 +0200
++++ perl-5.8.0-RC2/utils/h2ph_patched 2002-06-24 12:54:32.000000000 +0200
+@@ -39,6 +39,8 @@
+ my ($t, $tab, %curargs, $new, $eval_index, $dir, $name, $args, $outfile);
+ my ($incl, $next);
+ while (defined (my $file = next_file())) {
++ next if $file eq 'machine/ansi.h';
++
+ if (-l $file and -d $file) {
+ link_if_possible($file) if ($opt_l);
+ next;
diff --git a/dev-lang/perl/files/perl-hppa-pa7200-configure.patch b/dev-lang/perl/files/perl-hppa-pa7200-configure.patch
new file mode 100644
index 0000000..396209a
--- /dev/null
+++ b/dev-lang/perl/files/perl-hppa-pa7200-configure.patch
@@ -0,0 +1,11 @@
+--- Configure.orig 2006-06-02 13:14:22.000000000 -0500
++++ Configure 2006-06-02 13:07:03.000000000 -0500
+@@ -2967,7 +2967,7 @@
+ : Try to determine whether config.sh was made on this system
+ case "$config_sh" in
+ '')
+-myuname=`$uname -a 2>/dev/null`
++myuname=`$uname -a | $sed -e "s/'//" 2>/dev/null`
+ $test -z "$myuname" && myuname=`hostname 2>/dev/null`
+ # tr '[A-Z]' '[a-z]' would not work in EBCDIC
+ # because the A-Z/a-z are not consecutive.
diff --git a/dev-lang/perl/files/perl-moreconfig.patch b/dev-lang/perl/files/perl-moreconfig.patch
new file mode 100644
index 0000000..590c725
--- /dev/null
+++ b/dev-lang/perl/files/perl-moreconfig.patch
@@ -0,0 +1,16 @@
+We need ld in the fake config library, but it's not included by default. So
+expand the number of items included. While this works it indicates that the
+rest of the config items are not being picked up and/or are being picked up
+from the host. More investigation needed.
+
+--- perl-5.8.8/configpm 2007/04/20 09:48:05 1.1
++++ perl-5.8.8/configpm 2007/04/20 09:57:12
+@@ -2,7 +2,7 @@
+ use strict;
+ use vars qw(%Config $Config_SH_expanded);
+
+-my $how_many_common = 22;
++my $how_many_common = 50;
+
+ # commonly used names to precache (and hence lookup fastest)
+ my %Common;
diff --git a/dev-lang/perl/files/perl-noksh.patch b/dev-lang/perl/files/perl-noksh.patch
new file mode 100644
index 0000000..4c33b3e
--- /dev/null
+++ b/dev-lang/perl/files/perl-noksh.patch
@@ -0,0 +1,16 @@
+diff -burN perl-5.8.4.orig/Configure perl-5.8.4/Configure
+--- perl-5.8.4.orig/Configure 2004-04-01 05:48:18.000000000 -0800
++++ perl-5.8.4/Configure 2004-06-09 12:02:54.694172368 -0700
+@@ -164,6 +164,12 @@
+ ;;
+ esac
+
++# 2004.06.09 rac
++# having $newsh persist as ksh here is bad news if ksh doesn't really
++# exist. this causes us to toss away a perfectly good working test in
++# bash in favour of more exotic external options. see bug 42665.
++test -x "${newsh}" || unset newsh
++
+ : if needed set CDPATH to a harmless value that is not chatty
+ : avoid bash 2.02 problems with empty CDPATH.
+ case "$CDPATH" in
diff --git a/dev-lang/perl/files/perl-perldoc-emptydirs.patch b/dev-lang/perl/files/perl-perldoc-emptydirs.patch
new file mode 100644
index 0000000..650248c
--- /dev/null
+++ b/dev-lang/perl/files/perl-perldoc-emptydirs.patch
@@ -0,0 +1,10 @@
+--- lib/Pod/Perldoc.pm.orig 2003-10-22 13:02:15.000000000 -0700
++++ lib/Pod/Perldoc.pm 2003-10-22 13:02:36.000000000 -0700
+@@ -1513,6 +1513,7 @@
+ $self->{'target'} = (splitdir $s)[-1]; # XXX: why not use File::Basename?
+ for ($i=0; $i<@dirs; $i++) {
+ $dir = $dirs[$i];
++ next unless -d $dir;
+ ($dir = VMS::Filespec::unixpath($dir)) =~ s!/\z!! if IS_VMS;
+ if ( (! $self->opt_m && ( $ret = $self->check_file($dir,"$s.pod")))
+ or ( $ret = $self->check_file($dir,"$s.pm"))
diff --git a/dev-lang/perl/files/perl-picdl.patch b/dev-lang/perl/files/perl-picdl.patch
new file mode 100644
index 0000000..f69a680
--- /dev/null
+++ b/dev-lang/perl/files/perl-picdl.patch
@@ -0,0 +1,13 @@
+--- Makefile.SH.orig 2003-11-29 01:16:15.000000000 -0800
++++ Makefile.SH 2003-11-29 01:16:52.000000000 -0800
+@@ -129,8 +129,8 @@
+
+ ;;
+
+-*) pldlflags=''
+- static_target='static'
++*) pldlflags="$cccdlflags"
++ static_target='static_pic'
+ ;;
+ esac
+
diff --git a/dev-lang/perl/files/perl-prelink-lpthread.patch b/dev-lang/perl/files/perl-prelink-lpthread.patch
new file mode 100644
index 0000000..d38497e
--- /dev/null
+++ b/dev-lang/perl/files/perl-prelink-lpthread.patch
@@ -0,0 +1,11 @@
+--- hints/linux.sh.orig 2003-02-14 18:11:50.000000000 -0800
++++ hints/linux.sh 2003-02-14 18:12:01.000000000 -0800
+@@ -43,7 +43,7 @@
+ # 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
+ set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'`
+ shift
+-libswanted="$*"
++libswanted="pthread $*"
+
+ # If you have glibc, then report the version for ./myconfig bug reporting.
+ # (Configure doesn't need to know the specific version since it just uses
diff --git a/dev-lang/perl/files/perl-regexp-nossp.patch b/dev-lang/perl/files/perl-regexp-nossp.patch
new file mode 100644
index 0000000..d0357cd
--- /dev/null
+++ b/dev-lang/perl/files/perl-regexp-nossp.patch
@@ -0,0 +1,11 @@
+--- cflags.SH.orig 2005-07-03 23:39:10.000000000 -0400
++++ cflags.SH 2005-07-03 23:39:47.000000000 -0400
+@@ -165,6 +165,8 @@
+ esac
+
+ : Can we perhaps use $ansi2knr here
++ [ "x$file" = xregcomp ] && export ccflags="${ccflags} -fno-stack-protector"
++ [ "x$file" = xregexec ] && export ccflags="${ccflags} -fno-stack-protector"
+ echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
+ eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'
+
diff --git a/dev-lang/perl/metadata.xml b/dev-lang/perl/metadata.xml
new file mode 100644
index 0000000..432ee54
--- /dev/null
+++ b/dev-lang/perl/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>perl@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <use>
+ <flag name='ithreads'>Enable Perl threads, has some compatibility problems</flag>
+ <flag name='perlsuid'>Enable Perl SUID install. Has some risks associated.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-lang/perl/perl-5.10.1.ebuild b/dev-lang/perl/perl-5.10.1.ebuild
new file mode 100644
index 0000000..9d17865
--- /dev/null
+++ b/dev-lang/perl/perl-5.10.1.ebuild
@@ -0,0 +1,603 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.10.1.ebuild,v 1.17 2010/02/03 00:18:06 hanno Exp $
+
+EAPI=2
+
+inherit eutils alternatives flag-o-matic toolchain-funcs multilib
+
+PATCH_VER=9
+
+PERL_OLDVERSEN="5.10.0"
+
+SHORT_PV="${PV%.*}"
+MY_P="perl-${PV/_rc/-RC}"
+MY_PV="${PV%_rc*}"
+
+DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
+
+S="${WORKDIR}/${MY_P}"
+SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2
+ mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
+ http://dev.gentoo.org/~tove/files/${MY_P}-${PATCH_VER}.tar.bz2"
+HOMEPAGE="http://www.perl.org/"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="berkdb build debug doc gdbm ithreads"
+
+COMMON_DEPEND="berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
+ >=sys-devel/libperl-5.10.1
+ !!<sys-devel/libperl-5.10.1
+ app-arch/bzip2
+ sys-libs/zlib"
+DEPEND="${COMMON_DEPEND}
+ elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
+RDEPEND="${COMMON_DEPEND}"
+PDEPEND=">=app-admin/perl-cleaner-2_pre090920"
+
+dual_scripts() {
+ src_remove_dual_scripts perl-core/Archive-Tar 1.52 ptar ptardiff
+ src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
+ src_remove_dual_scripts perl-core/CPAN 1.9402 cpan
+ src_remove_dual_scripts perl-core/CPANPLUS 0.88 cpanp cpan2dist cpanp-run-perl
+ src_remove_dual_scripts perl-core/Encode 2.35 enc2xs piconv
+ src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.55_02 instmodsh
+ src_remove_dual_scripts perl-core/Module-Build 0.34_02 config_data
+ src_remove_dual_scripts perl-core/Module-CoreList 2.18 corelist
+ src_remove_dual_scripts perl-core/PodParser 1.37 pod2usage podchecker podselect
+ src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
+ src_remove_dual_scripts perl-core/podlators 2.2.2 pod2man pod2text
+}
+
+pkg_setup() {
+ LIBPERL="libperl$(get_libname ${MY_PV})"
+
+ if use ithreads ; then
+ ewarn "THREADS WARNING:"
+ ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
+ ewarn "interpreter-level threading enabled."
+ ewarn "Threading is not supported by all applications "
+ ewarn "that compile against perl. You use threading at "
+ ewarn "your own discretion. "
+ echo
+ epause 5
+ fi
+ if has_version dev-lang/perl ; then
+ # doesnot work
+ #if ! has_version dev-lang/perl[ithreads=,debug=] ; then
+ #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
+ if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
+ ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
+ ( use debug && ! has_version dev-lang/perl[debug] ) || \
+ ( ! use debug && has_version dev-lang/perl[debug] ) ; then
+ ewarn "TOGGLED USE-FLAGS WARNING:"
+ ewarn "You changed one of the use-flags ithreads or debug."
+ ewarn "You must rebuild all perl-modules installed."
+ ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
+ epause
+ fi
+ fi
+ dual_scripts
+}
+
+src_prepare() {
+ EPATCH_SOURCE="${WORKDIR}/perl-patch" \
+ EPATCH_SUFFIX="diff" \
+ EPATCH_FORCE="yes" \
+ epatch
+
+ # pod/perltoc.pod fails
+ ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
+ ln -s ${LIBPERL} libperl$(get_libname )
+}
+
+myconf() {
+ # the myconf array is declared in src_configure
+ myconf=( "${myconf[@]}" "$@" )
+}
+
+src_configure() {
+ declare -a myconf
+
+ # some arches and -O do not mix :)
+ use arm && replace-flags -O? -O1
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use elibc_uclibc || replace-flags "-Os" "-O2"
+ # This flag makes compiling crash in interesting ways
+ filter-flags "-malign-double"
+ # Fixes bug #97645
+ use ppc && filter-flags "-mpowerpc-gpopt"
+ # Fixes bug #143895 on gcc-4.1.1
+ filter-flags "-fsched2-use-superblocks"
+
+ # this is needed because gcc 3.3-compiled kernels will hang
+ # the machine trying to run this test - check with `Kumba
+ # <rac@gentoo.org> 2003.06.26
+ use mips && myconf -Dd_u32align
+
+ use sparc && myconf -Ud_longdbl
+
+ export LC_ALL="C"
+
+ # 266337
+ export BUILD_BZIP2=0
+ export BZIP2_INCLUDE=/usr/include
+ export BZIP2_LIB=/usr/$(get_libdir)
+ cat <<-EOF > "${S}/ext/Compress-Raw-Zlib/config.in"
+ BUILD_ZLIB = False
+ INCLUDE = /usr/include
+ LIB = /usr/$(get_libdir)
+
+ OLD_ZLIB = False
+ GZIP_OS_CODE = AUTO_DETECT
+ EOF
+
+ case ${CHOST} in
+ *-freebsd*) osname="freebsd" ;;
+ *-dragonfly*) osname="dragonfly" ;;
+ *-netbsd*) osname="netbsd" ;;
+ *-openbsd*) osname="openbsd" ;;
+ *-darwin*) osname="darwin" ;;
+ *) osname="linux" ;;
+ esac
+
+ if use ithreads ; then
+ mythreading="-multi"
+ myconf -Dusethreads
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}-thread"
+ else
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}"
+ fi
+ if use debug ; then
+ myarch="${myarch}-debug"
+ fi
+
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
+ if use gdbm ; then
+ mygdbm='D'
+ myndbm='D'
+ fi
+ if use berkdb ; then
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
+ fi
+
+ myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
+
+ if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
+ ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
+ myconf -Ui_db -Ui_ndbm
+ fi
+
+ if use debug ; then
+ append-cflags "-g"
+ myconf -DDEBUGGING
+ fi
+
+ local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v} ${v}/${myarch}${mythreading}"; done )
+ [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
+
+ [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ # We need to use " and not ', as the written config.sh use ' ...
+ myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
+ fi
+
+ sh Configure \
+ -des \
+ -Duseshrplib \
+ -Darchname="${myarch}" \
+ -Dcc="$(tc-getCC)" \
+ -Doptimize="${CFLAGS}" \
+ -Dscriptdir=/usr/bin \
+ -Dprefix='/usr' \
+ -Dvendorprefix='/usr' \
+ -Dsiteprefix='/usr' \
+ -Dprivlib="/usr/$(get_libdir)/perl5/${MY_PV}" \
+ -Darchlib="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" \
+ -Dvendorlib="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" \
+ -Dvendorarch="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" \
+ -Dsitelib="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}" \
+ -Dsitearch="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}" \
+ -Dlibperl="${LIBPERL}" \
+ -Dlocincpth=' ' \
+ -Duselargefiles \
+ -Dd_semctl_semun \
+ -Dinc_version_list="$inclist" \
+ -Dcf_by='Gentoo' \
+ -Dmyhostname='localhost' \
+ -Dperladmin='root@localhost' \
+ -Dinstallusrbinperl='n' \
+ -Ud_csh \
+ -Uusenm \
+ "${myconf[@]}" || die "Unable to configure"
+}
+
+src_test() {
+# use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
+# TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
+ make test_harness || die "test failed"
+}
+
+src_install() {
+ export LC_ALL="C"
+ local i
+ local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
+
+ # Fix for "stupid" modules and programs
+ dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
+
+ local installtarget=install
+ if use build ; then
+ installtarget=install.perl
+ fi
+ make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
+
+ rm -f "${D}"/usr/bin/perl
+ ln -s perl${MY_PV} "${D}"/usr/bin/perl
+
+ dolib.so "${D}"/${coredir}/${LIBPERL} || die
+ dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
+ dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
+ rm -f "${D}"/${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
+
+ rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
+# cp -f utils/h2ph utils/h2ph_patched
+# epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
+#
+# LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
+# -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
+#asm/termios.h
+#syscall.h
+#syslimits.h
+#syslog.h
+#sys/ioctl.h
+#sys/socket.h
+#sys/time.h
+#wait.h
+#EOF
+
+# vvv still needed?
+# # This is to fix a missing c flag for backwards compat
+# for i in $(find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm" ) ; do
+# sed -i \
+# -e "s:ccflags=':ccflags='-DPERL5 :" \
+# -e "s:cppflags=':cppflags='-DPERL5 :" \
+# "${i}" || die "Sed failed"
+# done
+
+ # A poor fix for the miniperl issues
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
+ fperms 0755 /usr/bin/xsubpp
+
+ # This removes ${D} from Config.pm and .packlist
+ for i in $(find "${D}" -iname "Config.pm" -o -iname ".packlist" ) ; do
+ einfo "Removing ${D} from ${i}..."
+ sed -i -e "s:${D}::" "${i}" || die "Sed failed"
+ done
+
+ # Note: find out from psm why we would need/want this.
+ # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
+ # find "${D}" -name "*NDBM*" | xargs rm -f
+
+ dodoc Changes* README AUTHORS || die
+
+ if use doc ; then
+ # HTML Documentation
+ # We expect errors, warnings, and such with the following.
+
+ dodir /usr/share/doc/${PF}/html
+ ./perl installhtml \
+ --podroot='.' \
+ --podpath='lib:ext:pod:vms' \
+ --recurse \
+ --htmldir="${D}/usr/share/doc/${PF}/html" \
+ --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
+ fi
+
+ dual_scripts
+
+ if use build ; then
+ src_remove_extra_files
+ fi
+}
+
+pkg_postinst() {
+ local INC DIR file
+
+ dual_scripts
+
+ INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
+ if [[ "${ROOT}" = "/" ]] ; then
+ ebegin "Removing old .ph files"
+ for DIR in ${INC} ; do
+ if [[ -d "${ROOT}/${DIR}" ]] ; then
+ for file in $(find "${ROOT}/${DIR}" -name "*.ph" -type f ) ; do
+ rm -f "${ROOT}/${file}"
+ einfo "<< ${file}"
+ done
+ fi
+ done
+ # Silently remove the now empty dirs
+ for DIR in ${INC} ; do
+ if [[ -d "${ROOT}/${DIR}" ]] ; then
+ find "${ROOT}/${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
+ fi
+ done
+ ebegin "Generating ConfigLocal.pm (ignore any error)"
+ enc2xs -C
+ ebegin "Converting C header files to the corresponding Perl format"
+ cd /usr/include
+ h2ph -Q *
+ h2ph -Q -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/*
+ fi
+
+# This has been moved into a function because rumor has it that a future release
+# of portage will allow us to check what version was just removed - which means
+# we will be able to invoke this only as needed :)
+ # Tried doing this via -z, but $INC is too big...
+ if [[ "${INC}x" != "x" ]]; then
+ cleaner_msg
+ epause 5
+ fi
+}
+
+pkg_postrm(){
+ ${IS_PERL} && dual_scripts
+}
+
+cleaner_msg() {
+ eerror "You have had multiple versions of perl. It is recommended"
+ eerror "that you run perl-cleaner now. perl-cleaner will"
+ eerror "assist with this transition. This script is capable"
+ eerror "of cleaning out old .ph files, rebuilding modules for "
+ eerror "your new version of perl, as well as re-emerging"
+ eerror "applications that compiled against your old libperl$(get_libname)"
+ eerror
+ eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
+ eerror "Part of the rebuilding of applications compiled against "
+ eerror "your old libperl involves temporarily unmerging"
+ eerror "them - interruptions could leave you with unmerged"
+ eerror "packages before they can be remerged."
+ eerror ""
+ eerror "If you have run perl-cleaner and a package still gives"
+ eerror "you trouble, and re-emerging it fails to correct"
+ eerror "the problem, please check http://bugs.gentoo.org/"
+ eerror "for more information or to report a bug."
+ eerror ""
+}
+
+src_remove_dual_scripts() {
+ local i pkg ver ff
+ pkg="$1"
+ ver="$2"
+ shift 2
+ if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
+ for i in "$@" ; do
+ ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
+ ff=${ff##*.1}
+ alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
+ alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ done
+ elif has "${EBUILD_PHASE:-none}" "setup" ; then
+ for i in "$@" ; do
+ if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
+ has_version ${pkg} && ewarn "You must reinstall $pkg !"
+ break
+ fi
+ done
+ else
+ for i in "$@" ; do
+ mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
+ mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
+ echo "/usr/share/man/man1/${i}.1 does not exist!"
+ done
+ fi
+}
+
+src_remove_extra_files() {
+ local prefix="./usr" # ./ is important
+ local bindir="${prefix}/bin"
+ local libdir="${prefix}/$(get_libdir)"
+ local perlroot="${libdir}/perl5" # perl installs per-arch dirs
+ local prV="${perlroot}/${MY_PV}"
+ local prVA="${prV}/${myarch}${mythreading}"
+
+ # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
+ # Then, I added several files to get GNU autotools running
+ # FIXME: should this be in a separated file to be sourced?
+ local MINIMAL_PERL_INSTALL="
+ ${bindir}/h2ph
+ ${bindir}/perl
+ ${bindir}/perl${MY_PV}
+ ${bindir}/pod2man
+ ${libdir}/${LIBPERL}
+ ${libdir}/libperl$(get_libname)
+ ${libdir}/libperl$(get_libname ${SHORT_PV})
+ ${prV}/attributes.pm
+ ${prV}/AutoLoader.pm
+ ${prV}/autouse.pm
+ ${prV}/base.pm
+ ${prV}/bigint.pm
+ ${prV}/bignum.pm
+ ${prV}/bigrat.pm
+ ${prV}/blib.pm
+ ${prV}/bytes_heavy.pl
+ ${prV}/bytes.pm
+ ${prV}/Carp/Heavy.pm
+ ${prV}/Carp.pm
+ ${prV}/charnames.pm
+ ${prV}/Class/Struct.pm
+ ${prV}/constant.pm
+ ${prV}/diagnostics.pm
+ ${prV}/DirHandle.pm
+ ${prV}/Exporter/Heavy.pm
+ ${prV}/Exporter.pm
+ ${prV}/ExtUtils/Command.pm
+ ${prV}/ExtUtils/Constant.pm
+ ${prV}/ExtUtils/Embed.pm
+ ${prV}/ExtUtils/Installed.pm
+ ${prV}/ExtUtils/Install.pm
+ ${prV}/ExtUtils/Liblist.pm
+ ${prV}/ExtUtils/MakeMaker.pm
+ ${prV}/ExtUtils/Manifest.pm
+ ${prV}/ExtUtils/Mkbootstrap.pm
+ ${prV}/ExtUtils/Mksymlists.pm
+ ${prV}/ExtUtils/MM_Any.pm
+ ${prV}/ExtUtils/MM_MacOS.pm
+ ${prV}/ExtUtils/MM.pm
+ ${prV}/ExtUtils/MM_Unix.pm
+ ${prV}/ExtUtils/MY.pm
+ ${prV}/ExtUtils/Packlist.pm
+ ${prV}/ExtUtils/testlib.pm
+ ${prV}/ExtUtils/Miniperl.pm
+ ${prV}/ExtUtils/Command/MM.pm
+ ${prV}/ExtUtils/Constant/Base.pm
+ ${prV}/ExtUtils/Constant/Utils.pm
+ ${prV}/ExtUtils/Constant/XS.pm
+ ${prV}/ExtUtils/Liblist/Kid.pm
+ ${prV}/ExtUtils/MakeMaker/bytes.pm
+ ${prV}/ExtUtils/MakeMaker/vmsish.pm
+ ${prV}/fields.pm
+ ${prV}/File/Basename.pm
+ ${prV}/File/Compare.pm
+ ${prV}/File/Copy.pm
+ ${prV}/File/Find.pm
+ ${prV}/FileHandle.pm
+ ${prV}/File/Path.pm
+ ${prV}/File/Spec.pm
+ ${prV}/File/Spec/Unix.pm
+ ${prV}/File/stat.pm
+ ${prV}/filetest.pm
+ ${prVA}/attrs.pm
+ ${prVA}/auto/attrs
+ ${prVA}/auto/Cwd/Cwd$(get_libname)
+ ${prVA}/auto/Data/Dumper/Dumper$(get_libname)
+ ${prVA}/auto/DynaLoader/dl_findfile.al
+ ${prVA}/auto/Fcntl/Fcntl$(get_libname)
+ ${prVA}/auto/File/Glob/Glob$(get_libname)
+ ${prVA}/auto/IO/IO$(get_libname)
+ ${prVA}/auto/POSIX/autosplit.ix
+ ${prVA}/auto/POSIX/fstat.al
+ ${prVA}/auto/POSIX/load_imports.al
+ ${prVA}/auto/POSIX/POSIX.bs
+ ${prVA}/auto/POSIX/POSIX$(get_libname)
+ ${prVA}/auto/POSIX/stat.al
+ ${prVA}/auto/POSIX/tmpfile.al
+ ${prVA}/auto/re/re$(get_libname)
+ ${prVA}/auto/Socket/Socket$(get_libname)
+ ${prVA}/auto/Storable/autosplit.ix
+ ${prVA}/auto/Storable/_retrieve.al
+ ${prVA}/auto/Storable/retrieve.al
+ ${prVA}/auto/Storable/Storable$(get_libname)
+ ${prVA}/auto/Storable/_store.al
+ ${prVA}/auto/Storable/store.al
+ ${prVA}/B/Deparse.pm
+ ${prVA}/B.pm
+ ${prVA}/Config.pm
+ ${prVA}/Config_heavy.pl
+ ${prVA}/CORE/libperl$(get_libname)
+ ${prVA}/Cwd.pm
+ ${prVA}/Data/Dumper.pm
+ ${prVA}/DynaLoader.pm
+ ${prVA}/encoding.pm
+ ${prVA}/Errno.pm
+ ${prVA}/Fcntl.pm
+ ${prVA}/File/Glob.pm
+ ${prVA}/_h2ph_pre.ph
+ ${prVA}/IO/File.pm
+ ${prVA}/IO/Handle.pm
+ ${prVA}/IO/Pipe.pm
+ ${prVA}/IO.pm
+ ${prVA}/IO/Seekable.pm
+ ${prVA}/IO/Select.pm
+ ${prVA}/IO/Socket.pm
+ ${prVA}/lib.pm
+ ${prVA}/NDBM_File.pm
+ ${prVA}/ops.pm
+ ${prVA}/POSIX.pm
+ ${prVA}/re.pm
+ ${prVA}/Socket.pm
+ ${prVA}/Storable.pm
+ ${prVA}/threads
+ ${prVA}/threads.pm
+ ${prVA}/XSLoader.pm
+ ${prV}/Getopt/Long.pm
+ ${prV}/Getopt/Std.pm
+ ${prV}/if.pm
+ ${prV}/integer.pm
+ ${prV}/IO/Socket/INET.pm
+ ${prV}/IO/Socket/UNIX.pm
+ ${prV}/IPC/Open2.pm
+ ${prV}/IPC/Open3.pm
+ ${prV}/less.pm
+ ${prV}/List/Util.pm
+ ${prV}/locale.pm
+ ${prV}/open.pm
+ ${prV}/overload.pm
+ ${prV}/Pod/InputObjects.pm
+ ${prV}/Pod/Man.pm
+ ${prV}/Pod/ParseLink.pm
+ ${prV}/Pod/Parser.pm
+ ${prV}/Pod/Select.pm
+ ${prV}/Pod/Text.pm
+ ${prV}/Pod/Usage.pm
+ ${prV}/PerlIO.pm
+ ${prV}/Scalar/Util.pm
+ ${prV}/SelectSaver.pm
+ ${prV}/sigtrap.pm
+ ${prV}/sort.pm
+ ${prV}/stat.pl
+ ${prV}/strict.pm
+ ${prV}/subs.pm
+ ${prV}/Symbol.pm
+ ${prV}/Text/ParseWords.pm
+ ${prV}/Text/Tabs.pm
+ ${prV}/Text/Wrap.pm
+ ${prV}/Time/Local.pm
+ ${prV}/unicore/Canonical.pl
+ ${prV}/unicore/Exact.pl
+ ${prV}/unicore/lib/gc_sc/Digit.pl
+ ${prV}/unicore/lib/gc_sc/Word.pl
+ ${prV}/unicore/PVA.pl
+ ${prV}/unicore/To/Fold.pl
+ ${prV}/unicore/To/Lower.pl
+ ${prV}/unicore/To/Upper.pl
+ ${prV}/utf8_heavy.pl
+ ${prV}/utf8.pm
+ ${prV}/vars.pm
+ ${prV}/vmsish.pm
+ ${prV}/warnings
+ ${prV}/warnings.pm
+ ${prV}/warnings/register.pm"
+
+ pushd "${D}" > /dev/null
+ # Remove cruft
+ einfo "Removing files that are not in the minimal install"
+ echo "${MINIMAL_PERL_INSTALL}"
+ for f in $(find . -type f ) ; do
+ has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
+ done
+ # Remove empty directories
+ find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
+ popd > /dev/null
+}
diff --git a/dev-lang/perl/perl-5.8.8-r8.ebuild b/dev-lang/perl/perl-5.8.8-r8.ebuild
new file mode 100644
index 0000000..7f2bcb2
--- /dev/null
+++ b/dev-lang/perl/perl-5.8.8-r8.ebuild
@@ -0,0 +1,701 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.8-r8.ebuild,v 1.10 2010/02/03 00:18:06 hanno Exp $
+
+inherit eutils alternatives flag-o-matic toolchain-funcs multilib
+
+# The slot of this binary compat version of libperl.so
+PERLSLOT="1"
+
+SHORT_PV="${PV%.*}"
+MY_P="perl-${PV/_rc/-RC}"
+MY_PV="${PV%_rc*}"
+DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2"
+HOMEPAGE="http://www.perl.org/"
+LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="berkdb debug doc gdbm ithreads perlsuid build elibc_FreeBSD"
+PERL_OLDVERSEN="5.8.0 5.8.2 5.8.4 5.8.5 5.8.6 5.8.7"
+
+DEPEND="berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
+ >=sys-devel/libperl-${PV}-r1
+ elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )
+ <sys-devel/libperl-5.9
+ !<perl-core/File-Spec-0.87
+ !<perl-core/Test-Simple-0.47-r1"
+
+RDEPEND="~sys-devel/libperl-${PV}
+ berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
+ build? (
+ !perl-core/Test-Harness
+ !perl-core/PodParser
+ !dev-perl/Locale-gettext
+ )"
+
+PDEPEND=">=app-admin/perl-cleaner-1.03"
+
+dual_scripts() {
+ src_remove_dual_scripts perl-core/Encode 2.12 enc2xs piconv
+ src_remove_dual_scripts perl-core/PodParser 1.32 pod2usage podchecker podselect
+ src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.30 instmodsh
+ src_remove_dual_scripts perl-core/Test-Harness 2.56 prove
+ src_remove_dual_scripts perl-core/CPAN 1.76_02 cpan
+ src_remove_dual_scripts perl-core/podlators 1.37 pod2man pod2text
+}
+
+pkg_setup() {
+ # I think this should rather be displayed if you *have* 'ithreads'
+ # in USE if it could break things ...
+ if use ithreads
+ then
+ ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
+ ewarn "interpreter-level threading enabled."
+ ewarn "Threading is not supported by all applications "
+ ewarn "that compile against perl. You use threading at "
+ ewarn "your own discretion. "
+ epause 5
+ fi
+
+ if [[ ! -f "${ROOT}/usr/$(get_libdir)/${LIBPERL}" ]]
+ then
+ # Make sure we have libperl installed ...
+ eerror "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}! Make sure that you"
+ eerror "have sys-libs/libperl installed properly ..."
+ die "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}!"
+ fi
+ dual_scripts
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Get -lpthread linked before -lc. This is needed
+ # when using glibc >= 2.3, or else runtime signal
+ # handling breaks. Fixes bug #14380.
+ # <rac@gentoo.org> (14 Feb 2003)
+ # reinstated to try to avoid sdl segfaults 03.10.02
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-prelink-lpthread.patch
+
+ # Patch perldoc to not abort when it attempts to search
+ # nonexistent directories; fixes bug #16589.
+ # <rac@gentoo.org> (28 Feb 2003)
+
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-perldoc-emptydirs.patch
+
+ # this lays the groundwork for solving the issue of what happens
+ # when people (or ebuilds) install different versiosn of modules
+ # that are in the core, by rearranging the @INC directory to look
+ # site -> vendor -> core.
+ cd "${S}"; epatch "${FILESDIR}"/${P}-reorder-INC.patch
+
+ # some well-intentioned stuff in http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=Pine.SOL.4.10.10205231231200.5399-100000%40maxwell.phys.lafayette.edu
+ # attempts to avoid bringing cccdlflags to bear on static
+ # extensions (like DynaLoader). i believe this is
+ # counterproductive on a Gentoo system which has both a shared
+ # and static libperl, so effectively revert this here.
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-picdl.patch
+
+ # Configure makes an unwarranted assumption that /bin/ksh is a
+ # good shell. This patch makes it revert to using /bin/sh unless
+ # /bin/ksh really is executable. Should fix bug 42665.
+ # rac 2004.06.09
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-noksh.patch
+
+ # makedepend.SH contains a syntax error which is ignored by bash but causes
+ # dash to abort
+ epatch "${FILESDIR}"/${P}-makedepend-syntax.patch
+
+ # We do not want the build root in the linked perl module's RUNPATH, so
+ # strip paths containing PORTAGE_TMPDIR if its set. This is for the
+ # MakeMaker module, bug #105054.
+ epatch "${FILESDIR}"/${PN}-5.8.7-MakeMaker-RUNPATH.patch
+
+ # Starting and hopefully ending with 5.8.7 we observe stack
+ # corruption with the regexp handling in perls DynaLoader code
+ # with ssp enabled. This become fatal during compile time so we
+ # temporally disable ssp on two regexp files till upstream has a
+ # chance to work it out. Bug #97452
+ [[ -n $(test-flags -fno-stack-protector) ]] && \
+ epatch "${FILESDIR}"/${PN}-regexp-nossp.patch
+
+ # On PA7200, uname -a contains a single quote and we need to
+ # filter it otherwise configure fails. See #125535.
+ epatch "${FILESDIR}"/perl-hppa-pa7200-configure.patch
+
+ case "$(get_libdir)" in
+ lib64) cd "${S}" && epatch "${FILESDIR}"/${P}-lib64.patch;;
+ lib32) cd "${S}" && epatch "${FILESDIR}"/${P}-lib32.patch;;
+ lib) true;;
+ *) die "Something's wrong with your libdir, don't know how to treat it.";;
+ esac
+
+ [[ ${CHOST} == *-dragonfly* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-dragonfly-clean.patch
+ [[ ${CHOST} == *-freebsd* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-fbsdhints.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-USE_MM_LD_RUN_PATH.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-links.patch
+ # c++ patch - should address swig related items
+ cd "${S}"; epatch "${FILESDIR}"/${P}-cplusplus.patch
+
+ epatch "${FILESDIR}"/${P}-gcc42-command-line.patch
+
+ # Newer linux-headers don't include asm/page.h. Fix this.
+ # Patch from bug 168312, thanks Peter!
+ echo "#include <asm/page.h>" | $(tc-getCPP) > /dev/null 2>&1 || \
+ epatch "${FILESDIR}"/${P}-asm-page-h-compile-failure.patch
+
+ # Also add the directory prefix of the current file when the quote syntax is
+ # used; 'require' will only look in @INC, not the current directory.
+ epatch "${FILESDIR}"/${PN}-fix_h2ph_include_quote.patch
+
+ # perlcc fix patch - bug #181229
+ epatch "${FILESDIR}"/${P}-perlcc.patch
+
+ # libnet hostname test patch
+ epatch "${FILESDIR}"/${P}-libnet-hostname.patch
+
+ # patch to fix bug #198196
+ # UTF/Regular expressions boundary error (CVE-2007-5116)
+ epatch "${FILESDIR}"/${P}-utf8-boundary.patch
+
+ # patch to fix bug #219203
+ epatch "${FILESDIR}"/${P}-CVE-2008-1927.patch
+
+ epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
+ epatch "${FILESDIR}"/${P}-fix_file_path_chdir.patch
+
+ # Respect CFLAGS even for linking when done with compiler
+ epatch "${FILESDIR}"/${P}-ccld-cflags.patch
+}
+
+myconf() {
+ # the myconf array is declared in src_configure
+ myconf=( "${myconf[@]}" "$@" )
+}
+
+src_configure() {
+ declare -a myconf
+
+ # some arches and -O do not mix :)
+ use arm && replace-flags -O? -O1
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use elibc_uclibc || replace-flags "-Os" "-O2"
+ ( gcc-specs-ssp && use ia64 ) && append-flags -fno-stack-protector
+ # This flag makes compiling crash in interesting ways
+ filter-flags -malign-double
+ # Fixes bug #97645
+ use ppc && filter-flags -mpowerpc-gpopt
+ # Fixes bug #143895 on gcc-4.1.1
+ filter-flags "-fsched2-use-superblocks"
+
+ export LC_ALL="C"
+
+ case ${CHOST} in
+ *-freebsd*) osname="freebsd" ;;
+ *-dragonfly*) osname="dragonfly" ;;
+ *-netbsd*) osname="netbsd" ;;
+ *-openbsd*) osname="openbsd" ;;
+ *-darwin*) osname="darwin" ;;
+
+ *) osname="linux" ;;
+ esac
+
+ if use ithreads
+ then
+ einfo "using ithreads"
+ mythreading="-multi"
+ myconf -Dusethreads
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}-thread"
+ else
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}"
+ fi
+
+ local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$myarch$mythreading "; done)
+
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
+ if use gdbm
+ then
+ mygdbm='D'
+ myndbm='D'
+ fi
+ if use berkdb
+ then
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
+ fi
+
+ myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
+
+ if use mips
+ then
+ # this is needed because gcc 3.3-compiled kernels will hang
+ # the machine trying to run this test - check with `Kumba
+ # <rac@gentoo.org> 2003.06.26
+ myconf -Dd_u32align
+ fi
+
+ if use perlsuid
+ then
+ myconf -Dd_dosuid
+ ewarn "You have enabled Perl's suid compile. Please"
+ ewarn "read http://search.cpan.org/~nwclark/perl-5.8.8/INSTALL#suidperl"
+ epause 3
+ fi
+
+ if use debug
+ then
+ CFLAGS="${CFLAGS} -g"
+ myconf -DDEBUGGING
+ fi
+
+ if use sparc
+ then
+ myconf -Ud_longdbl
+ fi
+
+ if use alpha && "$(tc-getCC)" == "ccc"
+ then
+ ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
+ myconf -Ui_db -Ui_ndbm
+ fi
+
+ [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
+
+ [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ # We need to use " and not ', as the written config.sh use ' ...
+ myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
+ fi
+
+ sh Configure -des \
+ -Darchname="${myarch}" \
+ -Dcccdlflags='-fPIC' \
+ -Dccdlflags='-rdynamic' \
+ -Dcc="$(tc-getCC)" \
+ -Dprefix='/usr' \
+ -Dvendorprefix='/usr' \
+ -Dsiteprefix='/usr' \
+ -Dlocincpth=' ' \
+ -Doptimize="${CFLAGS}" \
+ -Duselargefiles \
+ -Dd_semctl_semun \
+ -Dscriptdir=/usr/bin \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dinstallman1dir=/usr/share/man/man1 \
+ -Dinstallman3dir=/usr/share/man/man3 \
+ -Dman1ext='1' \
+ -Dman3ext='3pm' \
+ -Dinc_version_list="$inclist" \
+ -Dcf_by='Gentoo' \
+ -Ud_csh \
+ -Dusenm \
+ "${myconf[@]}" || die "Unable to configure"
+}
+
+src_compile() {
+
+ # would like to bracket this with a test for the existence of a
+ # dotfile, but can't clean it automatically now.
+
+ src_configure
+
+ emake -j1 || die "Unable to make"
+}
+
+src_test() {
+ use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
+ emake -i test CCDLFLAGS= || die "test failed"
+}
+
+src_install() {
+
+ export LC_ALL="C"
+
+ # Need to do this, else apps do not link to dynamic version of
+ # the library ...
+ local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
+ dodir ${coredir}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${PERLSLOT})
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
+
+ # Fix for "stupid" modules and programs
+ dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
+
+ local installtarget=install
+ if use build ; then
+ installtarget=install.perl
+ fi
+ make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
+
+ rm "${D}"/usr/bin/perl
+ ln -s perl${MY_PV} "${D}"/usr/bin/perl
+
+ cp -f utils/h2ph utils/h2ph_patched
+ epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
+
+ LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
+ -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
+asm/termios.h
+syscall.h
+syslimits.h
+syslog.h
+sys/ioctl.h
+sys/socket.h
+sys/time.h
+wait.h
+EOF
+
+ # This is to fix a missing c flag for backwards compat
+ for i in `find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm"`;do
+ sed -e "s:ccflags=':ccflags='-DPERL5 :" \
+ -e "s:cppflags=':cppflags='-DPERL5 :" \
+ ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # A poor fix for the miniperl issues
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
+ fperms 0755 /usr/bin/xsubpp
+
+ # This removes ${D} from Config.pm and .packlist
+ for i in `find "${D}" -iname "Config.pm"` `find "${D}" -iname ".packlist"`;do
+ einfo "Removing ${D} from ${i}..."
+ sed -e "s:${D}::" ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # Note: find out from psm why we would need/want this.
+ # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
+ # find ${D} -name "*NDBM*" | xargs rm -f
+
+ dodoc Changes* Artistic Copying README Todo* AUTHORS
+
+ if use doc
+ then
+ # HTML Documentation
+ # We expect errors, warnings, and such with the following.
+
+ dodir /usr/share/doc/${PF}/html
+ ./perl installhtml \
+ --podroot='.' \
+ --podpath='lib:ext:pod:vms' \
+ --recurse \
+ --htmldir="${D}/usr/share/doc/${PF}/html" \
+ --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
+ fi
+ cd `find "${D}" -name Path.pm|sed -e 's/Path.pm//'`
+ # CAN patch in bug 79685
+ #epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
+
+ dual_scripts
+
+ if use build ; then
+ src_remove_extra_files
+ fi
+}
+
+pkg_postinst() {
+ dual_scripts
+ INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
+ if [[ "${ROOT}" = "/" ]]
+ then
+ ebegin "Removing old .ph files"
+ for DIR in $INC; do
+ if [[ -d "${ROOT}"/$DIR ]]; then
+ for file in $(find "${ROOT}"/$DIR -name "*.ph" -type f); do
+ rm "${ROOT}"/$file
+ einfo "<< $file"
+ done
+ fi
+ done
+ # Silently remove the now empty dirs
+ for DIR in $INC; do
+ if [[ -d "${ROOT}"/$DIR ]]; then
+ find "${ROOT}"/$DIR -depth -type d | xargs -r rmdir &> /dev/null
+ fi
+ done
+ ebegin "Generating ConfigLocal.pm (ignore any error)"
+ enc2xs -C
+ ebegin "Converting C header files to the corresponding Perl format"
+ cd /usr/include;
+ h2ph *
+ h2ph -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/* gentoo*
+ cd /usr/include/linux
+ h2ph *
+ fi
+
+# This has been moved into a function because rumor has it that a future release
+# of portage will allow us to check what version was just removed - which means
+# we will be able to invoke this only as needed :)
+ # Tried doing this via -z, but $INC is too big...
+ if [[ "${INC}x" != "x" ]]; then
+ cleaner_msg
+ epause 5
+ fi
+}
+
+pkg_postrm() {
+ dual_scripts
+}
+
+cleaner_msg() {
+ eerror "You have had multiple versions of perl. It is recommended"
+ eerror "that you run perl-cleaner now. perl-cleaner will"
+ eerror "assist with this transition. This script is capable"
+ eerror "of cleaning out old .ph files, rebuilding modules for "
+ eerror "your new version of perl, as well as re-emerging"
+ eerror "applications that compiled against your old libperl$(get_libname)"
+ eerror
+ eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
+ eerror "Part of the rebuilding of applications compiled against "
+ eerror "your old libperl involves temporarily unmerging"
+ eerror "them - interruptions could leave you with unmerged"
+ eerror "packages before they can be remerged."
+ eerror ""
+ eerror "If you have run perl-cleaner and a package still gives"
+ eerror "you trouble, and re-emerging it fails to correct"
+ eerror "the problem, please check http://bugs.gentoo.org/"
+ eerror "for more information or to report a bug."
+ eerror ""
+ eerror ""
+}
+
+src_remove_dual_scripts() {
+ local i pkg ver ff
+ pkg="$1"
+ ver="$2"
+ shift 2
+ if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
+ for i in "$@" ; do
+ ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
+ ff=${ff##*.1}
+ alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
+ alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ done
+ elif has "${EBUILD_PHASE:-none}" "setup" ; then
+ for i in "$@" ; do
+ if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
+ has_version ${pkg} && ewarn "You must reinstall $pkg !"
+ break
+ fi
+ done
+ else
+ for i in "$@" ; do
+ mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
+ mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
+ echo "/usr/share/man/man1/${i}.1 does not exist!"
+ done
+ fi
+}
+
+src_remove_extra_files() {
+ local prefix="./usr" # ./ is important
+ local bindir="${prefix}/bin"
+ local perlroot="${prefix}/$(get_libdir)/perl5" # perl installs per-arch dirs
+ local prV="${perlroot}/${MY_PV}"
+ # myarch and mythreading are defined inside src_configure()
+ local prVA="${prV}/${myarch}${mythreading}"
+
+ # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
+ # Then, I added several files to get GNU autotools running
+ # FIXME: should this be in a separated file to be sourced?
+ local MINIMAL_PERL_INSTALL="
+ ${bindir}/h2ph
+ ${bindir}/perl
+ ${bindir}/perl${MY_PV}
+ ${bindir}/pod2man
+ ${prV}/attributes.pm
+ ${prV}/AutoLoader.pm
+ ${prV}/autouse.pm
+ ${prV}/base.pm
+ ${prV}/bigint.pm
+ ${prV}/bignum.pm
+ ${prV}/bigrat.pm
+ ${prV}/blib.pm
+ ${prV}/bytes_heavy.pl
+ ${prV}/bytes.pm
+ ${prV}/Carp/Heavy.pm
+ ${prV}/Carp.pm
+ ${prV}/charnames.pm
+ ${prV}/Class/Struct.pm
+ ${prV}/constant.pm
+ ${prV}/diagnostics.pm
+ ${prV}/DirHandle.pm
+ ${prV}/Exporter/Heavy.pm
+ ${prV}/Exporter.pm
+ ${prV}/ExtUtils/Command.pm
+ ${prV}/ExtUtils/Constant.pm
+ ${prV}/ExtUtils/Embed.pm
+ ${prV}/ExtUtils/Installed.pm
+ ${prV}/ExtUtils/Install.pm
+ ${prV}/ExtUtils/Liblist.pm
+ ${prV}/ExtUtils/MakeMaker.pm
+ ${prV}/ExtUtils/Manifest.pm
+ ${prV}/ExtUtils/Mkbootstrap.pm
+ ${prV}/ExtUtils/Mksymlists.pm
+ ${prV}/ExtUtils/MM_Any.pm
+ ${prV}/ExtUtils/MM_MacOS.pm
+ ${prV}/ExtUtils/MM.pm
+ ${prV}/ExtUtils/MM_Unix.pm
+ ${prV}/ExtUtils/MY.pm
+ ${prV}/ExtUtils/Packlist.pm
+ ${prV}/ExtUtils/testlib.pm
+ ${prV}/ExtUtils/Miniperl.pm
+ ${prV}/ExtUtils/Command/MM.pm
+ ${prV}/ExtUtils/Constant/Base.pm
+ ${prV}/ExtUtils/Constant/Utils.pm
+ ${prV}/ExtUtils/Constant/XS.pm
+ ${prV}/ExtUtils/Liblist/Kid.pm
+ ${prV}/ExtUtils/MakeMaker/bytes.pm
+ ${prV}/ExtUtils/MakeMaker/vmsish.pm
+ ${prV}/fields.pm
+ ${prV}/File/Basename.pm
+ ${prV}/File/Compare.pm
+ ${prV}/File/Copy.pm
+ ${prV}/File/Find.pm
+ ${prV}/FileHandle.pm
+ ${prV}/File/Path.pm
+ ${prV}/File/Spec.pm
+ ${prV}/File/Spec/Unix.pm
+ ${prV}/File/stat.pm
+ ${prV}/filetest.pm
+ ${prVA}/attrs.pm
+ ${prVA}/auto/attrs
+ ${prVA}/auto/Cwd/Cwd$(get_libname)
+ ${prVA}/auto/Data/Dumper/Dumper$(get_libname)
+ ${prVA}/auto/DynaLoader/dl_findfile.al
+ ${prVA}/auto/Fcntl/Fcntl$(get_libname)
+ ${prVA}/auto/File/Glob/Glob$(get_libname)
+ ${prVA}/auto/IO/IO$(get_libname)
+ ${prVA}/auto/POSIX/autosplit.ix
+ ${prVA}/auto/POSIX/fstat.al
+ ${prVA}/auto/POSIX/load_imports.al
+ ${prVA}/auto/POSIX/POSIX.bs
+ ${prVA}/auto/POSIX/POSIX$(get_libname)
+ ${prVA}/auto/POSIX/assert.al
+ ${prVA}/auto/POSIX/stat.al
+ ${prVA}/auto/POSIX/tmpfile.al
+ ${prVA}/auto/re/re$(get_libname)
+ ${prVA}/auto/Socket/Socket$(get_libname)
+ ${prVA}/auto/Storable/autosplit.ix
+ ${prVA}/auto/Storable/_retrieve.al
+ ${prVA}/auto/Storable/retrieve.al
+ ${prVA}/auto/Storable/Storable$(get_libname)
+ ${prVA}/auto/Storable/_store.al
+ ${prVA}/auto/Storable/store.al
+ ${prVA}/B/Deparse.pm
+ ${prVA}/B.pm
+ ${prVA}/Config.pm
+ ${prVA}/Config_heavy.pl
+ ${prVA}/CORE/libperl$(get_libname)
+ ${prVA}/Cwd.pm
+ ${prVA}/Data/Dumper.pm
+ ${prVA}/DynaLoader.pm
+ ${prVA}/encoding.pm
+ ${prVA}/Errno.pm
+ ${prVA}/Fcntl.pm
+ ${prVA}/File/Glob.pm
+ ${prVA}/_h2ph_pre.ph
+ ${prVA}/IO/File.pm
+ ${prVA}/IO/Handle.pm
+ ${prVA}/IO/Pipe.pm
+ ${prVA}/IO.pm
+ ${prVA}/IO/Seekable.pm
+ ${prVA}/IO/Select.pm
+ ${prVA}/IO/Socket.pm
+ ${prVA}/lib.pm
+ ${prVA}/NDBM_File.pm
+ ${prVA}/ops.pm
+ ${prVA}/POSIX.pm
+ ${prVA}/re.pm
+ ${prVA}/Socket.pm
+ ${prVA}/Storable.pm
+ ${prVA}/threads
+ ${prVA}/threads.pm
+ ${prVA}/XSLoader.pm
+ ${prV}/Getopt/Long.pm
+ ${prV}/Getopt/Std.pm
+ ${prV}/if.pm
+ ${prV}/integer.pm
+ ${prV}/IO/Socket/INET.pm
+ ${prV}/IO/Socket/UNIX.pm
+ ${prV}/IPC/Open2.pm
+ ${prV}/IPC/Open3.pm
+ ${prV}/less.pm
+ ${prV}/List/Util.pm
+ ${prV}/locale.pm
+ ${prV}/open.pm
+ ${prV}/overload.pm
+ ${prV}/Pod/InputObjects.pm
+ ${prV}/Pod/Man.pm
+ ${prV}/Pod/ParseLink.pm
+ ${prV}/Pod/Parser.pm
+ ${prV}/Pod/Select.pm
+ ${prV}/Pod/Text.pm
+ ${prV}/Pod/Usage.pm
+ ${prV}/PerlIO.pm
+ ${prV}/Scalar/Util.pm
+ ${prV}/SelectSaver.pm
+ ${prV}/sigtrap.pm
+ ${prV}/sort.pm
+ ${prV}/stat.pl
+ ${prV}/strict.pm
+ ${prV}/subs.pm
+ ${prV}/Symbol.pm
+ ${prV}/Text/ParseWords.pm
+ ${prV}/Text/Tabs.pm
+ ${prV}/Text/Wrap.pm
+ ${prV}/Time/Local.pm
+ ${prV}/unicore/Canonical.pl
+ ${prV}/unicore/Exact.pl
+ ${prV}/unicore/lib/gc_sc/Digit.pl
+ ${prV}/unicore/lib/gc_sc/Word.pl
+ ${prV}/unicore/PVA.pl
+ ${prV}/unicore/To/Fold.pl
+ ${prV}/unicore/To/Lower.pl
+ ${prV}/unicore/To/Upper.pl
+ ${prV}/utf8_heavy.pl
+ ${prV}/utf8.pm
+ ${prV}/vars.pm
+ ${prV}/vmsish.pm
+ ${prV}/warnings
+ ${prV}/warnings.pm
+ ${prV}/warnings/register.pm"
+
+ if use perlsuid ; then
+ MINIMAL_PERL_INSTALL="${MINIMAL_PERL_INSTALL}
+ ${bindir}/suidperl
+ ${bindir}/sperl${MY_PV}"
+ fi
+
+ pushd "${D}" > /dev/null
+ # Remove cruft
+ einfo "Removing files that are not in the minimal install"
+ echo "${MINIMAL_PERL_INSTALL}"
+ for f in $(find . -type f); do
+ has ${f} ${MINIMAL_PERL_INSTALL} || rm -f ${f}
+ done
+ # Remove empty directories
+ find . -depth -type d | xargs -r rmdir &> /dev/null
+ popd > /dev/null
+}
diff --git a/dev-lang/perl/perl-5.8.8-r9.ebuild b/dev-lang/perl/perl-5.8.8-r9.ebuild
new file mode 100644
index 0000000..888ffd3
--- /dev/null
+++ b/dev-lang/perl/perl-5.8.8-r9.ebuild
@@ -0,0 +1,786 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.8-r8.ebuild,v 1.9 2009/12/10 20:50:09 ranger Exp $
+
+inherit eutils alternatives flag-o-matic toolchain-funcs multilib
+
+# The slot of this binary compat version of libperl.so
+PERLSLOT="1"
+
+SHORT_PV="${PV%.*}"
+MY_P="perl-${PV/_rc/-RC}"
+MY_PV="${PV%_rc*}"
+DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2"
+HOMEPAGE="http://www.perl.org/"
+LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="berkdb debug doc gdbm ithreads perlsuid build elibc_FreeBSD"
+PERL_OLDVERSEN="5.8.0 5.8.2 5.8.4 5.8.5 5.8.6 5.8.7"
+
+DEPEND="berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
+ >=sys-devel/libperl-${PV}-r1
+ elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )
+ <sys-devel/libperl-5.9
+ !<perl-core/File-Spec-0.87
+ !<perl-core/Test-Simple-0.47-r1"
+
+RDEPEND="~sys-devel/libperl-${PV}
+ berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
+ build? (
+ !perl-core/Test-Harness
+ !perl-core/PodParser
+ !dev-perl/Locale-gettext
+ )"
+
+PDEPEND=">=app-admin/perl-cleaner-1.03"
+
+# Cross-compiled build can't use a bootstrapped miniperl so
+# it uses native perl.
+if tc-is-cross-compiler; then
+ export HOSTPERL="/usr/bin/perl${PV}"
+else
+ export HOSTPERL='./perl'
+fi
+
+dual_scripts() {
+ src_remove_dual_scripts perl-core/Encode 2.12 enc2xs piconv
+ src_remove_dual_scripts perl-core/PodParser 1.32 pod2usage podchecker podselect
+ src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.30 instmodsh
+ src_remove_dual_scripts perl-core/Test-Harness 2.56 prove
+ src_remove_dual_scripts perl-core/CPAN 1.76_02 cpan
+ src_remove_dual_scripts perl-core/podlators 1.37 pod2man pod2text
+}
+
+pkg_setup() {
+ # I think this should rather be displayed if you *have* 'ithreads'
+ # in USE if it could break things ...
+ if use ithreads
+ then
+ ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
+ ewarn "interpreter-level threading enabled."
+ ewarn "Threading is not supported by all applications "
+ ewarn "that compile against perl. You use threading at "
+ ewarn "your own discretion. "
+ epause 5
+ fi
+
+ if tc-is-cross-compiler ; then
+ ewarn "It appears you are cross-compiling ${PN}."
+ ewarn "You must have libperl-${PV} (>=libperl-5.8.8-r3) and"
+ ewarn "perl-${PV} (>=perl-5.8.8-r9) installed on your"
+ ewarn "native build system or this build might fail."
+ epause 5
+ fi
+
+ if [[ ! -f "${ROOT}/usr/$(get_libdir)/${LIBPERL}" ]]
+ then
+ # Make sure we have libperl installed ...
+ eerror "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}! Make sure that you"
+ eerror "have sys-libs/libperl installed properly ..."
+ die "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}!"
+ fi
+ dual_scripts
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Get -lpthread linked before -lc. This is needed
+ # when using glibc >= 2.3, or else runtime signal
+ # handling breaks. Fixes bug #14380.
+ # <rac@gentoo.org> (14 Feb 2003)
+ # reinstated to try to avoid sdl segfaults 03.10.02
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-prelink-lpthread.patch
+
+ # Patch perldoc to not abort when it attempts to search
+ # nonexistent directories; fixes bug #16589.
+ # <rac@gentoo.org> (28 Feb 2003)
+
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-perldoc-emptydirs.patch
+
+ # this lays the groundwork for solving the issue of what happens
+ # when people (or ebuilds) install different versiosn of modules
+ # that are in the core, by rearranging the @INC directory to look
+ # site -> vendor -> core.
+ cd "${S}"; epatch "${FILESDIR}"/${P}-reorder-INC.patch
+
+ # some well-intentioned stuff in http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=Pine.SOL.4.10.10205231231200.5399-100000%40maxwell.phys.lafayette.edu
+ # attempts to avoid bringing cccdlflags to bear on static
+ # extensions (like DynaLoader). i believe this is
+ # counterproductive on a Gentoo system which has both a shared
+ # and static libperl, so effectively revert this here.
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-picdl.patch
+
+ # Configure makes an unwarranted assumption that /bin/ksh is a
+ # good shell. This patch makes it revert to using /bin/sh unless
+ # /bin/ksh really is executable. Should fix bug 42665.
+ # rac 2004.06.09
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-noksh.patch
+
+ # makedepend.SH contains a syntax error which is ignored by bash but causes
+ # dash to abort
+ epatch "${FILESDIR}"/${P}-makedepend-syntax.patch
+
+ # We do not want the build root in the linked perl module's RUNPATH, so
+ # strip paths containing PORTAGE_TMPDIR if its set. This is for the
+ # MakeMaker module, bug #105054.
+ epatch "${FILESDIR}"/${PN}-5.8.7-MakeMaker-RUNPATH.patch
+
+ # Starting and hopefully ending with 5.8.7 we observe stack
+ # corruption with the regexp handling in perls DynaLoader code
+ # with ssp enabled. This become fatal during compile time so we
+ # temporally disable ssp on two regexp files till upstream has a
+ # chance to work it out. Bug #97452
+ [[ -n $(test-flags -fno-stack-protector) ]] && \
+ epatch "${FILESDIR}"/${PN}-regexp-nossp.patch
+
+ # On PA7200, uname -a contains a single quote and we need to
+ # filter it otherwise configure fails. See #125535.
+ epatch "${FILESDIR}"/perl-hppa-pa7200-configure.patch
+
+ case "$(get_libdir)" in
+ lib64) cd "${S}" && epatch "${FILESDIR}"/${P}-lib64.patch;;
+ lib32) cd "${S}" && epatch "${FILESDIR}"/${P}-lib32.patch;;
+ lib) true;;
+ *) die "Something's wrong with your libdir, don't know how to treat it.";;
+ esac
+
+ [[ ${CHOST} == *-dragonfly* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-dragonfly-clean.patch
+ [[ ${CHOST} == *-freebsd* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-fbsdhints.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-USE_MM_LD_RUN_PATH.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-links.patch
+ # c++ patch - should address swig related items
+ cd "${S}"; epatch "${FILESDIR}"/${P}-cplusplus.patch
+
+ epatch "${FILESDIR}"/${P}-gcc42-command-line.patch
+
+ # Newer linux-headers don't include asm/page.h. Fix this.
+ # Patch from bug 168312, thanks Peter!
+ echo "#include <asm/page.h>" | $(tc-getCPP) > /dev/null 2>&1 || \
+ epatch "${FILESDIR}"/${P}-asm-page-h-compile-failure.patch
+
+ # Also add the directory prefix of the current file when the quote syntax is
+ # used; 'require' will only look in @INC, not the current directory.
+ epatch "${FILESDIR}"/${PN}-fix_h2ph_include_quote.patch
+
+ # perlcc fix patch - bug #181229
+ epatch "${FILESDIR}"/${P}-perlcc.patch
+
+ # libnet hostname test patch
+ epatch "${FILESDIR}"/${P}-libnet-hostname.patch
+
+ # patch to fix bug #198196
+ # UTF/Regular expressions boundary error (CVE-2007-5116)
+ epatch "${FILESDIR}"/${P}-utf8-boundary.patch
+
+ # patch to fix bug #219203
+ epatch "${FILESDIR}"/${P}-CVE-2008-1927.patch
+
+ epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
+ epatch "${FILESDIR}"/${P}-fix_file_path_chdir.patch
+
+ # Respect CFLAGS even for linking when done with compiler
+ epatch "${FILESDIR}"/${P}-ccld-cflags.patch
+
+ # Check the environment for {PERL_LIB}, {PERL_ARCHLIB}
+ # and {PERL_INC} and use relative headers
+ epatch "${FILESDIR}"/native-perlinc.patch
+
+ # Dynamically load modules from ${PERLHOSTLIB} to
+ # use while compiling
+ epatch "${FILESDIR}"/perl-dynloader.patch
+
+ # Use Config_heavy.pl from ${PERL_ARCHLIB}
+ epatch "${FILESDIR}"/perl-configpm-switch.patch
+
+ if tc-is-cross-compiler; then
+ # Use ${HOSTPERL}, not miniperl, for cross-compiling
+ epatch "${FILESDIR}"/Makefile.SH.patch
+
+ epatch "${FILESDIR}"/perl-moreconfig.patch
+ epatch "${FILESDIR}"/letgcc-find-errno.patch
+ fi
+}
+
+myconf() {
+ # the myconf array is declared in src_configure
+ myconf=( "${myconf[@]}" "$@" )
+}
+
+src_configure() {
+ declare -a myconf
+
+ # some arches and -O do not mix :)
+ use arm && replace-flags -O? -O1
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use elibc_uclibc || replace-flags "-Os" "-O2"
+ ( gcc-specs-ssp && use ia64 ) && append-flags -fno-stack-protector
+ # This flag makes compiling crash in interesting ways
+ filter-flags -malign-double
+ # Fixes bug #97645
+ use ppc && filter-flags -mpowerpc-gpopt
+ # Fixes bug #143895 on gcc-4.1.1
+ filter-flags "-fsched2-use-superblocks"
+
+ export LC_ALL="C"
+
+ case ${CHOST} in
+ *-freebsd*) osname="freebsd" ;;
+ *-dragonfly*) osname="dragonfly" ;;
+ *-netbsd*) osname="netbsd" ;;
+ *-openbsd*) osname="openbsd" ;;
+ *-darwin*) osname="darwin" ;;
+
+ *) osname="linux" ;;
+ esac
+
+ if use ithreads
+ then
+ einfo "using ithreads"
+ mythreading="-multi"
+ myconf -Dusethreads
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}-thread"
+ else
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}"
+ fi
+
+ local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$myarch$mythreading "; done)
+
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
+ if use gdbm
+ then
+ mygdbm='D'
+ myndbm='D'
+ fi
+ if use berkdb
+ then
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
+ fi
+
+ myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
+
+ if use mips
+ then
+ # this is needed because gcc 3.3-compiled kernels will hang
+ # the machine trying to run this test - check with `Kumba
+ # <rac@gentoo.org> 2003.06.26
+ myconf -Dd_u32align
+ fi
+
+ if use perlsuid
+ then
+ myconf -Dd_dosuid
+ ewarn "You have enabled Perl's suid compile. Please"
+ ewarn "read http://search.cpan.org/~nwclark/perl-5.8.8/INSTALL#suidperl"
+ epause 3
+ fi
+
+ if use debug
+ then
+ CFLAGS="${CFLAGS} -g"
+ myconf -DDEBUGGING
+ fi
+
+ if use sparc
+ then
+ myconf -Ud_longdbl
+ fi
+
+ if use alpha && "$(tc-getCC)" == "ccc"
+ then
+ ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
+ myconf -Ui_db -Ui_ndbm
+ fi
+
+ [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
+
+ [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ # We need to use " and not ', as the written config.sh use ' ...
+ myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
+ fi
+
+ if tc-is-cross-compiler; then
+ # ${S}/config.sh is generated from config-bits.
+ # Bash substitution is used to alter options for each build
+
+ source "${FILESDIR}"/config-bits || die "sourcing of config-bits failed"
+ make_configsh || die "make_configsh failed"
+
+ sed -i -e "s|/usr/include|${ROOT}usr/include|g" \
+ "${S}"/ext/Errno/Errno_pm.PL || die "sed of ${S}/ext/Errno/Errno_pm.PL failed"
+
+ sh Configure -S $(use debug && echo '-DDEBUGGING') || die "Unable to configure"
+ else
+ sh Configure -des \
+ -Darchname="${myarch}" \
+ -Dcccdlflags='-fPIC' \
+ -Dccdlflags='-rdynamic' \
+ -Dcc="$(tc-getCC)" \
+ -Dprefix='/usr' \
+ -Dvendorprefix='/usr' \
+ -Dsiteprefix='/usr' \
+ -Dlocincpth=' ' \
+ -Doptimize="${CFLAGS}" \
+ -Duselargefiles \
+ -Dd_semctl_semun \
+ -Dscriptdir=/usr/bin \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dinstallman1dir=/usr/share/man/man1 \
+ -Dinstallman3dir=/usr/share/man/man3 \
+ -Dman1ext='1' \
+ -Dman3ext='3pm' \
+ -Dinc_version_list="$inclist" \
+ -Dcf_by='Gentoo' \
+ -Ud_csh \
+ -Dusenm \
+ "${myconf[@]}" || die "Unable to configure"
+ fi
+}
+
+src_compile() {
+
+ # would like to bracket this with a test for the existence of a
+ # dotfile, but can't clean it automatically now.
+
+ src_configure
+
+ emake -j1 || die "Unable to make"
+
+ if tc-is-cross-compiler; then
+ # Cross-compile build uses host library
+ export PERLHOSTLIB="$(${HOSTPERL} -V:archlib | cut -d \' -f 2)"
+
+ emake -j1 more || die "Unable to make more"
+
+ mkdir -p "${S}"/fake_config_library || die "Unable to mkdir ${S}/fake_config_library"
+ cp -f "${S}"/lib/Config.pm "${S}"/fake_config_library \
+ || die "Unable to copy ${S}/lib/Config.pm"
+
+ emake -j1 more2 "PERLRUN=${HOSTPERL} \
+ -I${S}/fake_config_library -MConfig" || die "Unable to make more2"
+ emake -j1 more3 "PERLRUN=${HOSTPERL} \
+ -I${S}/fake_config_library -MConfig" || die "Unable to make more3"
+ emake -j1 more4 "PERLRUN=${HOSTPERL} \
+ -I${S}/fake_config_library -MConfig" || die "Unable to make more4"
+
+ rm -rf "${S}"/install_me_here || die "Unable to remove ${S}/install_me_here"
+
+ for f in `find "${S}"/lib -name install_me_here` ; do
+ cp -r "${f}"/* "${S}"/install_me_here/ || die "Unable to copy ${f}/*"
+ done
+
+ for f in `find "${S}"/lib -name install_me_here` ; do
+ rm -rf "${f}" || die "Unable to remove ${f}"
+ done
+ fi
+}
+
+src_test() {
+ use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
+ emake -i test CCDLFLAGS= || die "test failed"
+}
+
+src_install() {
+
+ export LC_ALL="C"
+
+ # Cross-compile build uses host library
+ tc-is-cross-compiler && \
+ export PERLHOSTLIB="$(${HOSTPERL} -V:archlib | cut -d \' -f 2)"
+
+ # Need to do this, else apps do not link to dynamic version of
+ # the library ...
+ local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
+ dodir ${coredir}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${PERLSLOT})
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
+
+ # Fix for "stupid" modules and programs
+ dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
+
+ local installtarget=install
+ if use build ; then
+ installtarget=install.perl
+ fi
+ make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
+
+ rm "${D}"/usr/bin/perl
+ ln -s perl${MY_PV} "${D}"/usr/bin/perl
+
+ cp -f utils/h2ph utils/h2ph_patched
+ epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
+
+ LD_LIBRARY_PATH=. ${HOSTPERL} -Ilib utils/h2ph_patched \
+ -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
+asm/termios.h
+syscall.h
+syslimits.h
+syslog.h
+sys/ioctl.h
+sys/socket.h
+sys/time.h
+wait.h
+EOF
+
+ # This is to fix a missing c flag for backwards compat
+ for i in `find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm"`;do
+ sed -e "s:ccflags=':ccflags='-DPERL5 :" \
+ -e "s:cppflags=':cppflags='-DPERL5 :" \
+ ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # A poor fix for the miniperl issues
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
+ fperms 0755 /usr/bin/xsubpp
+
+ # This removes ${D} from Config.pm and .packlist
+ for i in `find "${D}" -iname "Config.pm"` `find "${D}" -iname ".packlist"`;do
+ einfo "Removing ${D} from ${i}..."
+ sed -e "s:${D}::" ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # Don't let the cross-compiled build try to
+ # Install another libperl
+ tc-is-cross-compiler && \
+ rm -f "${D}"/usr/$(get_libdir)/${LIBPERL}
+
+ # Note: find out from psm why we would need/want this.
+ # ( use berkdb && has_version '=sys-libs/db-1*' ) ||
+ # find ${D} -name "*NDBM*" | xargs rm -f
+
+ dodoc Changes* Artistic Copying README Todo* AUTHORS
+
+ if use doc
+ then
+ # HTML Documentation
+ # We expect errors, warnings, and such with the following.
+
+ dodir /usr/share/doc/${PF}/html
+ ${HOSTPERL} installhtml \
+ --podroot='.' \
+ --podpath='lib:ext:pod:vms' \
+ --recurse \
+ --htmldir="${D}/usr/share/doc/${PF}/html" \
+ --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
+ fi
+ cd `find "${D}" -name Path.pm|sed -e 's/Path.pm//'`
+ # CAN patch in bug 79685
+ #epatch "${FILESDIR}"/${P}-CAN-2005-0448-rmtree-2.patch
+
+ dual_scripts
+
+ if use build ; then
+ src_remove_extra_files
+ fi
+}
+
+pkg_postinst() {
+ dual_scripts
+ INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
+ if [[ "${ROOT}" = "/" ]]
+ then
+ ebegin "Removing old .ph files"
+ for DIR in $INC; do
+ if [[ -d "${ROOT}"/$DIR ]]; then
+ for file in $(find "${ROOT}"/$DIR -name "*.ph" -type f); do
+ rm "${ROOT}"/$file
+ einfo "<< $file"
+ done
+ fi
+ done
+ # Silently remove the now empty dirs
+ for DIR in $INC; do
+ if [[ -d "${ROOT}"/$DIR ]]; then
+ find "${ROOT}"/$DIR -depth -type d | xargs -r rmdir &> /dev/null
+ fi
+ done
+ ebegin "Generating ConfigLocal.pm (ignore any error)"
+ enc2xs -C
+ ebegin "Converting C header files to the corresponding Perl format"
+ cd /usr/include;
+ h2ph *
+ h2ph -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/* gentoo*
+ cd /usr/include/linux
+ h2ph *
+ fi
+
+# This has been moved into a function because rumor has it that a future release
+# of portage will allow us to check what version was just removed - which means
+# we will be able to invoke this only as needed :)
+ # Tried doing this via -z, but $INC is too big...
+ if [[ "${INC}x" != "x" ]]; then
+ cleaner_msg
+ epause 5
+ fi
+}
+
+pkg_postrm() {
+ dual_scripts
+}
+
+cleaner_msg() {
+ eerror "You have had multiple versions of perl. It is recommended"
+ eerror "that you run perl-cleaner now. perl-cleaner will"
+ eerror "assist with this transition. This script is capable"
+ eerror "of cleaning out old .ph files, rebuilding modules for "
+ eerror "your new version of perl, as well as re-emerging"
+ eerror "applications that compiled against your old libperl$(get_libname)"
+ eerror
+ eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
+ eerror "Part of the rebuilding of applications compiled against "
+ eerror "your old libperl involves temporarily unmerging"
+ eerror "them - interruptions could leave you with unmerged"
+ eerror "packages before they can be remerged."
+ eerror ""
+ eerror "If you have run perl-cleaner and a package still gives"
+ eerror "you trouble, and re-emerging it fails to correct"
+ eerror "the problem, please check http://bugs.gentoo.org/"
+ eerror "for more information or to report a bug."
+ eerror ""
+ eerror ""
+}
+
+src_remove_dual_scripts() {
+ local i pkg ver ff
+ pkg="$1"
+ ver="$2"
+ shift 2
+ if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
+ for i in "$@" ; do
+ ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
+ ff=${ff##*.1}
+ alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
+ alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ done
+ elif has "${EBUILD_PHASE:-none}" "setup" ; then
+ for i in "$@" ; do
+ if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
+ has_version ${pkg} && ewarn "You must reinstall $pkg !"
+ break
+ fi
+ done
+ else
+ for i in "$@" ; do
+ mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
+ mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
+ echo "/usr/share/man/man1/${i}.1 does not exist!"
+ done
+ fi
+}
+
+src_remove_extra_files() {
+ local prefix="./usr" # ./ is important
+ local bindir="${prefix}/bin"
+ local perlroot="${prefix}/$(get_libdir)/perl5" # perl installs per-arch dirs
+ local prV="${perlroot}/${MY_PV}"
+ # myarch and mythreading are defined inside src_configure()
+ local prVA="${prV}/${myarch}${mythreading}"
+
+ # I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
+ # Then, I added several files to get GNU autotools running
+ # FIXME: should this be in a separated file to be sourced?
+ local MINIMAL_PERL_INSTALL="
+ ${bindir}/h2ph
+ ${bindir}/perl
+ ${bindir}/perl${MY_PV}
+ ${bindir}/pod2man
+ ${prV}/attributes.pm
+ ${prV}/AutoLoader.pm
+ ${prV}/autouse.pm
+ ${prV}/base.pm
+ ${prV}/bigint.pm
+ ${prV}/bignum.pm
+ ${prV}/bigrat.pm
+ ${prV}/blib.pm
+ ${prV}/bytes_heavy.pl
+ ${prV}/bytes.pm
+ ${prV}/Carp/Heavy.pm
+ ${prV}/Carp.pm
+ ${prV}/charnames.pm
+ ${prV}/Class/Struct.pm
+ ${prV}/constant.pm
+ ${prV}/diagnostics.pm
+ ${prV}/DirHandle.pm
+ ${prV}/Exporter/Heavy.pm
+ ${prV}/Exporter.pm
+ ${prV}/ExtUtils/Command.pm
+ ${prV}/ExtUtils/Constant.pm
+ ${prV}/ExtUtils/Embed.pm
+ ${prV}/ExtUtils/Installed.pm
+ ${prV}/ExtUtils/Install.pm
+ ${prV}/ExtUtils/Liblist.pm
+ ${prV}/ExtUtils/MakeMaker.pm
+ ${prV}/ExtUtils/Manifest.pm
+ ${prV}/ExtUtils/Mkbootstrap.pm
+ ${prV}/ExtUtils/Mksymlists.pm
+ ${prV}/ExtUtils/MM_Any.pm
+ ${prV}/ExtUtils/MM_MacOS.pm
+ ${prV}/ExtUtils/MM.pm
+ ${prV}/ExtUtils/MM_Unix.pm
+ ${prV}/ExtUtils/MY.pm
+ ${prV}/ExtUtils/Packlist.pm
+ ${prV}/ExtUtils/testlib.pm
+ ${prV}/ExtUtils/Miniperl.pm
+ ${prV}/ExtUtils/Command/MM.pm
+ ${prV}/ExtUtils/Constant/Base.pm
+ ${prV}/ExtUtils/Constant/Utils.pm
+ ${prV}/ExtUtils/Constant/XS.pm
+ ${prV}/ExtUtils/Liblist/Kid.pm
+ ${prV}/ExtUtils/MakeMaker/bytes.pm
+ ${prV}/ExtUtils/MakeMaker/vmsish.pm
+ ${prV}/fields.pm
+ ${prV}/File/Basename.pm
+ ${prV}/File/Compare.pm
+ ${prV}/File/Copy.pm
+ ${prV}/File/Find.pm
+ ${prV}/FileHandle.pm
+ ${prV}/File/Path.pm
+ ${prV}/File/Spec.pm
+ ${prV}/File/Spec/Unix.pm
+ ${prV}/File/stat.pm
+ ${prV}/filetest.pm
+ ${prVA}/attrs.pm
+ ${prVA}/auto/attrs
+ ${prVA}/auto/Cwd/Cwd$(get_libname)
+ ${prVA}/auto/Data/Dumper/Dumper$(get_libname)
+ ${prVA}/auto/DynaLoader/dl_findfile.al
+ ${prVA}/auto/Fcntl/Fcntl$(get_libname)
+ ${prVA}/auto/File/Glob/Glob$(get_libname)
+ ${prVA}/auto/IO/IO$(get_libname)
+ ${prVA}/auto/POSIX/autosplit.ix
+ ${prVA}/auto/POSIX/fstat.al
+ ${prVA}/auto/POSIX/load_imports.al
+ ${prVA}/auto/POSIX/POSIX.bs
+ ${prVA}/auto/POSIX/POSIX$(get_libname)
+ ${prVA}/auto/POSIX/assert.al
+ ${prVA}/auto/POSIX/stat.al
+ ${prVA}/auto/POSIX/tmpfile.al
+ ${prVA}/auto/re/re$(get_libname)
+ ${prVA}/auto/Socket/Socket$(get_libname)
+ ${prVA}/auto/Storable/autosplit.ix
+ ${prVA}/auto/Storable/_retrieve.al
+ ${prVA}/auto/Storable/retrieve.al
+ ${prVA}/auto/Storable/Storable$(get_libname)
+ ${prVA}/auto/Storable/_store.al
+ ${prVA}/auto/Storable/store.al
+ ${prVA}/B/Deparse.pm
+ ${prVA}/B.pm
+ ${prVA}/Config.pm
+ ${prVA}/Config_heavy.pl
+ ${prVA}/CORE/libperl$(get_libname)
+ ${prVA}/Cwd.pm
+ ${prVA}/Data/Dumper.pm
+ ${prVA}/DynaLoader.pm
+ ${prVA}/encoding.pm
+ ${prVA}/Errno.pm
+ ${prVA}/Fcntl.pm
+ ${prVA}/File/Glob.pm
+ ${prVA}/_h2ph_pre.ph
+ ${prVA}/IO/File.pm
+ ${prVA}/IO/Handle.pm
+ ${prVA}/IO/Pipe.pm
+ ${prVA}/IO.pm
+ ${prVA}/IO/Seekable.pm
+ ${prVA}/IO/Select.pm
+ ${prVA}/IO/Socket.pm
+ ${prVA}/lib.pm
+ ${prVA}/NDBM_File.pm
+ ${prVA}/ops.pm
+ ${prVA}/POSIX.pm
+ ${prVA}/re.pm
+ ${prVA}/Socket.pm
+ ${prVA}/Storable.pm
+ ${prVA}/threads
+ ${prVA}/threads.pm
+ ${prVA}/XSLoader.pm
+ ${prV}/Getopt/Long.pm
+ ${prV}/Getopt/Std.pm
+ ${prV}/if.pm
+ ${prV}/integer.pm
+ ${prV}/IO/Socket/INET.pm
+ ${prV}/IO/Socket/UNIX.pm
+ ${prV}/IPC/Open2.pm
+ ${prV}/IPC/Open3.pm
+ ${prV}/less.pm
+ ${prV}/List/Util.pm
+ ${prV}/locale.pm
+ ${prV}/open.pm
+ ${prV}/overload.pm
+ ${prV}/Pod/InputObjects.pm
+ ${prV}/Pod/Man.pm
+ ${prV}/Pod/ParseLink.pm
+ ${prV}/Pod/Parser.pm
+ ${prV}/Pod/Select.pm
+ ${prV}/Pod/Text.pm
+ ${prV}/Pod/Usage.pm
+ ${prV}/PerlIO.pm
+ ${prV}/Scalar/Util.pm
+ ${prV}/SelectSaver.pm
+ ${prV}/sigtrap.pm
+ ${prV}/sort.pm
+ ${prV}/stat.pl
+ ${prV}/strict.pm
+ ${prV}/subs.pm
+ ${prV}/Symbol.pm
+ ${prV}/Text/ParseWords.pm
+ ${prV}/Text/Tabs.pm
+ ${prV}/Text/Wrap.pm
+ ${prV}/Time/Local.pm
+ ${prV}/unicore/Canonical.pl
+ ${prV}/unicore/Exact.pl
+ ${prV}/unicore/lib/gc_sc/Digit.pl
+ ${prV}/unicore/lib/gc_sc/Word.pl
+ ${prV}/unicore/PVA.pl
+ ${prV}/unicore/To/Fold.pl
+ ${prV}/unicore/To/Lower.pl
+ ${prV}/unicore/To/Upper.pl
+ ${prV}/utf8_heavy.pl
+ ${prV}/utf8.pm
+ ${prV}/vars.pm
+ ${prV}/vmsish.pm
+ ${prV}/warnings
+ ${prV}/warnings.pm
+ ${prV}/warnings/register.pm"
+
+ if use perlsuid ; then
+ MINIMAL_PERL_INSTALL="${MINIMAL_PERL_INSTALL}
+ ${bindir}/suidperl
+ ${bindir}/sperl${MY_PV}"
+ fi
+
+ pushd "${D}" > /dev/null
+ # Remove cruft
+ einfo "Removing files that are not in the minimal install"
+ echo "${MINIMAL_PERL_INSTALL}"
+ for f in $(find . -type f); do
+ has ${f} ${MINIMAL_PERL_INSTALL} || rm -f ${f}
+ done
+ # Remove empty directories
+ find . -depth -type d | xargs -r rmdir &> /dev/null
+ popd > /dev/null
+}
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
new file mode 100644
index 0000000..8bee0d1
--- /dev/null
+++ b/eclass/perl-module.eclass
@@ -0,0 +1,292 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.122 2010/02/03 00:20:07 hanno Exp $
+#
+# Author: Seemant Kulleen <seemant@gentoo.org>
+
+# @ECLASS: perl-module.eclass
+# @MAINTAINER:
+# perl@gentoo.org
+# @BLURB: eclass for perl modules
+# @DESCRIPTION:
+# The perl-module eclass is designed to allow easier installation of perl
+# modules, and their incorporation into the Gentoo Linux system.
+
+inherit eutils base multilib toolchain-funcs
+[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
+
+PERL_EXPF="src_unpack src_compile src_test src_install"
+
+case "${EAPI:-0}" in
+ 0|1)
+ PERL_EXPF="${PERL_EXPF} pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm"
+ ;;
+ 2)
+ PERL_EXPF="${PERL_EXPF} src_prepare src_configure"
+ [[ ${CATEGORY} == "perl-core" ]] && \
+ PERL_EXPF="${PERL_EXPF} pkg_postinst pkg_postrm"
+
+ case "${GENTOO_DEPEND_ON_PERL:-yes}" in
+ yes)
+ DEPEND="dev-lang/perl[-build]"
+ RDEPEND="${DEPEND}"
+ ;;
+ esac
+ ;;
+esac
+
+EXPORT_FUNCTIONS ${PERL_EXPF}
+
+DESCRIPTION="Based on the $ECLASS eclass"
+
+LICENSE="${LICENSE:-|| ( Artistic GPL-1 GPL-2 GPL-3 )}"
+
+[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && MODULE_A="${MY_P:-${P}}.tar.gz"
+[[ -z "${SRC_URI}" && -n "${MODULE_AUTHOR}" ]] && \
+ SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${MODULE_A}"
+[[ -z "${HOMEPAGE}" ]] && \
+ HOMEPAGE="http://search.cpan.org/dist/${MY_PN:-${PN}}/"
+
+SRC_PREP="no"
+SRC_TEST="skip"
+PREFER_BUILDPL="yes"
+
+PERL_VERSION=""
+SITE_ARCH=""
+SITE_LIB=""
+ARCH_LIB=""
+VENDOR_ARCH=""
+VENDOR_LIB=""
+
+pm_echovar=""
+perlinfo_done=false
+
+
+# Once these 3 variables are set,
+# modules use them for makefile vars,
+# perlinfo gets info from $PERL_ARCHLIB
+# build, and all is well...
+if tc-is-cross-compiler ; then
+ export PERL_LIB="${ROOT}usr/$(get_libdir)/$(perl -V:privlib | cut -d \' -f 2 | cut -d / -f 4-)"
+ export PERL_ARCHLIB="$(ls -d ${PERL_LIB}/${CHOST%%-*}*)"
+ export PERL_INC="${PERL_ARCHLIB}/CORE"
+fi
+
+perl-module_src_unpack() {
+ base_src_unpack
+ has src_prepare ${PERL_EXPF} || perl-module_src_prepare
+}
+
+perl-module_src_prepare() {
+ has src_prepare ${PERL_EXPF} && base_src_prepare
+ esvn_clean
+}
+
+perl-module_src_configure() {
+ perl-module_src_prep
+}
+
+perl-module_src_prep() {
+ [[ ${SRC_PREP} = yes ]] && return 0
+ SRC_PREP="yes"
+
+ ${perlinfo_done} || perlinfo
+
+ export PERL_MM_USE_DEFAULT=1
+ # Disable ExtUtils::AutoInstall from prompting
+ export PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
+
+ if [[ ${PREFER_BUILDPL} == yes && -f Build.PL ]] ; then
+ einfo "Using Module::Build"
+ if [[ ${DEPEND} != *virtual/perl-Module-Build* && ${PN} != Module-Build ]] ; then
+ ewarn "QA Notice: The ebuild uses Module::Build but doesn't depend on it."
+ ewarn " Add virtual/perl-Module-Build to DEPEND!"
+ fi
+ perl Build.PL \
+ --installdirs=vendor \
+ --libdoc= \
+ --destdir="${D}" \
+ --create_packlist=0 \
+ ${myconf} \
+ <<< "${pm_echovar}" \
+ || die "Unable to build! (are you using USE=\"build\"?)"
+ elif [[ -f Makefile.PL ]] ; then
+ einfo "Using ExtUtils::MakeMaker"
+ perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLMAN3DIR='none' \
+ DESTDIR="${D}" \
+ ${myconf} \
+ <<< "${pm_echovar}" \
+ || die "Unable to build! (are you using USE=\"build\"?)"
+ fi
+ if [[ ! -f Build.PL && ! -f Makefile.PL ]] ; then
+ einfo "No Make or Build file detected..."
+ return
+ fi
+}
+
+perl-module_src_compile() {
+ ${perlinfo_done} || perlinfo
+
+ has src_configure ${PERL_EXPF} || perl-module_src_prep
+
+ if [[ -f Build ]] ; then
+ ./Build build \
+ || die "compilation failed"
+ elif [[ -f Makefile ]] ; then
+ emake \
+ OTHERLDFLAGS="${LDFLAGS}" \
+ ${mymake} \
+ || die "compilation failed"
+# OPTIMIZE="${CFLAGS}" \
+ fi
+}
+
+# For testers:
+# This code attempts to work out your threadingness from MAKEOPTS
+# and apply them to Test::Harness.
+#
+# If you want more verbose testing, set TEST_VERBOSE=1
+# in your bashrc | /etc/make.conf | ENV
+#
+# For ebuild writers:
+# If you wish to enable default tests w/ 'make test' ,
+#
+# SRC_TEST="do"
+#
+# If you wish to have threads run in parallel ( using the users makeopts )
+# all of the following have been tested to work.
+#
+# SRC_TEST="do parallel"
+# SRC_TEST="parallel"
+# SRC_TEST="parallel do"
+# SRC_TEST=parallel
+#
+
+perl-module_src_test() {
+ if has 'do' ${SRC_TEST} || has 'parallel' ${SRC_TEST} ; then
+ if has "${TEST_VERBOSE:-0}" 0 && has 'parallel' ${SRC_TEST} ; then
+ export HARNESS_OPTIONS=j$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
+ einfo "Test::Harness Jobs=${HARNESS_OPTIONS}"
+ fi
+ ${perlinfo_done} || perlinfo
+ if [[ -f Build ]] ; then
+ ./Build test verbose=${TEST_VERBOSE:-0} || die "test failed"
+ elif [[ -f Makefile ]] ; then
+ emake test TEST_VERBOSE=${TEST_VERBOSE:-0} || die "test failed"
+ fi
+ fi
+}
+
+perl-module_src_install() {
+ local f
+ ${perlinfo_done} || perlinfo
+
+ if [[ -z ${mytargets} ]] ; then
+ case "${CATEGORY}" in
+ dev-perl|perl-core) mytargets="pure_install" ;;
+ *) mytargets="install" ;;
+ esac
+ fi
+
+ if [[ -f Build ]] ; then
+ ./Build ${mytargets} \
+ || die "./Build ${mytargets} failed"
+ elif [[ -f Makefile ]] ; then
+ emake ${myinst} ${mytargets} \
+ || die "emake ${myinst} ${mytargets} failed"
+ fi
+
+ if [[ -d "${D}"/usr/share/man ]] ; then
+# einfo "Cleaning out stray man files"
+ find "${D}"/usr/share/man -type f -name "*.3pm" -delete
+ find "${D}"/usr/share/man -depth -type d -empty -delete
+ fi
+
+ fixlocalpod
+
+ for f in Change* CHANGES README* TODO ${mydoc}; do
+ [[ -s ${f} ]] && dodoc ${f}
+ done
+
+ if [[ -d ${D}/${VENDOR_LIB} ]] ; then
+ find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \
+ -o \( -name '*.bs' -a -empty \) \) -delete
+ find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete
+ fi
+
+ find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do
+ if file "${f}" | grep -q -i " text" ; then
+ grep -q "${D}" "${f}" && ewarn "QA: File contains a temporary path ${f}"
+ sed -i -e "s:${D}:/:g" "${f}"
+ fi
+ done
+
+ linkduallifescripts
+}
+
+perl-module_pkg_setup() {
+ ${perlinfo_done} || perlinfo
+}
+
+perl-module_pkg_preinst() {
+ ${perlinfo_done} || perlinfo
+}
+
+perl-module_pkg_postinst() {
+ linkduallifescripts
+}
+
+perl-module_pkg_prerm() { : ; }
+
+perl-module_pkg_postrm() {
+ linkduallifescripts
+}
+
+perlinfo() {
+ perlinfo_done=true
+
+ local f version install{{site,vendor}{arch,lib},archlib}
+ for f in version install{{site,vendor}{arch,lib},archlib} ; do
+ eval "$(perl -V:${f} )"
+ done
+ PERL_VERSION=${version}
+ SITE_ARCH=${installsitearch}
+ SITE_LIB=${installsitelib}
+ ARCH_LIB=${installarchlib}
+ VENDOR_LIB=${installvendorlib}
+ VENDOR_ARCH=${installvendorarch}
+}
+
+fixlocalpod() {
+ find "${D}" -type f -name perllocal.pod -delete
+ find "${D}" -depth -mindepth 1 -type d -empty -delete
+}
+
+linkduallifescripts() {
+ if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then
+ return 0
+ fi
+
+ local i ff
+ if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ; then
+ for i in "${DUALLIFESCRIPTS[@]}" ; do
+ alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
+ ff=`echo "${ROOT}"/usr/share/man/man1/${i}-${PV}-${P}.1*`
+ ff=${ff##*.1}
+ alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ done
+ else
+ pushd "${D}" > /dev/null
+ for i in $(find usr/bin -maxdepth 1 -type f 2>/dev/null) ; do
+ mv ${i}{,-${PV}-${P}} || die
+ DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i##*/}
+ if [[ -f usr/share/man/man1/${i##*/}.1 ]] ; then
+ mv usr/share/man/man1/${i##*/}{.1,-${PV}-${P}.1} || die
+ fi
+ done
+ popd > /dev/null
+ fi
+}
diff --git a/sys-devel/libperl/ChangeLog b/sys-devel/libperl/ChangeLog
new file mode 100644
index 0000000..e43e557
--- /dev/null
+++ b/sys-devel/libperl/ChangeLog
@@ -0,0 +1,600 @@
+# ChangeLog for sys-devel/libperl
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/ChangeLog,v 1.151 2010/02/03 00:15:25 hanno Exp $
+
+ 03 Feb 2010; Hanno Boeck <hanno@gentoo.org> libperl-5.8.8-r2.ebuild,
+ libperl-5.10.1.ebuild:
+ Change license, Perl is Artistic or GPL-1 or later. We can't express or
+ later for now, so adding all GPL-1/2/3.
+
+ 11 Dec 2009; Brent Baude <ranger@gentoo.org> libperl-5.10.1.ebuild:
+ Marking libperl-5.10.1 ~ppc64 for bug 288028
+
+ 09 Dec 2009; Raúl Porcel <armin76@gentoo.org> libperl-5.10.1.ebuild:
+ Add ~sh wrt #288028
+
+ 16 Nov 2009; Raúl Porcel <armin76@gentoo.org> libperl-5.10.1.ebuild:
+ Add ~alpha/~ia64/~s390/~sparc wrt #288028
+
+ 15 Nov 2009; Raúl Porcel <armin76@gentoo.org> libperl-5.10.1.ebuild:
+ Add ~m68k wrt #288028, thanks to kolla for testing
+
+ 04 Nov 2009; Michael Haubenwallner <haubi@gentoo.org>
+ libperl-5.8.8-r2.ebuild, +files/libperl-5.8.8-ccld-cflags.patch:
+ Respect CFLAGS even for linking when done with compiler
+
+ 27 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> libperl-5.10.1.ebuild:
+ Keywording for ppc, bug 288028
+
+ 21 Oct 2009; Markus Meier <maekke@gentoo.org> libperl-5.10.1.ebuild:
+ add ~amd64/~arm/~x86, bug #288028
+
+ 13 Oct 2009; Jeroen Roovers <jer@gentoo.org> libperl-5.10.1.ebuild:
+ Marked ~hppa (bug #288028).
+
+ 07 Oct 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild:
+ Different way to remove libperl link. Needed for perserve-libs
+
+ 27 Sep 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild:
+ Remove orphaned symbolic link
+
+*libperl-5.10.1 (27 Sep 2009)
+
+ 27 Sep 2009; Torsten Veller <tove@gentoo.org> +libperl-5.10.1.ebuild:
+ Version bump
+
+ 29 May 2009; Torsten Veller <tove@gentoo.org> -libperl-5.8.8-r1.ebuild:
+ Remove security vulnerable version for bug #271738
+
+ 02 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ libperl-5.8.8-r2.ebuild:
+ Respect LDFLAGS (bug #181464).
+
+ 02 Aug 2008; Panagiotis Christopoulos <pchrist@gentoo.org> metadata.xml:
+ Update metadata.xml to include USE flag descriptions. Entries taken from
+ profiles/use.local.desc. GLEP 56
+
+ 18 Jul 2008; Javier Villavicencio <the_paya@gentoo.org>
+ files/libperl-5.8.8-fbsdhints.patch:
+ Updated fbsdhints patch, bug 225323.
+
+ 16 May 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ libperl-5.8.8-r2.ebuild:
+ ppc stable, bug #219203
+
+ 15 May 2008; Raúl Porcel <armin76@gentoo.org> libperl-5.8.8-r2.ebuild:
+ alpha/ia64 stable wrt security #219203
+
+ 14 May 2008; Markus Meier <maekke@gentoo.org> libperl-5.8.8-r2.ebuild:
+ amd64 stable, bug #219203
+
+ 14 May 2008; Christian Faulhammer <opfer@gentoo.org>
+ libperl-5.8.8-r2.ebuild:
+ stable x86, security bug 219203
+
+ 14 May 2008; Markus Rothe <corsair@gentoo.org> libperl-5.8.8-r2.ebuild:
+ Stable on ppc64; bug #219203
+
+ 14 May 2008; Jeroen Roovers <jer@gentoo.org> libperl-5.8.8-r2.ebuild:
+ Stable for HPPA (bug #219203).
+
+ 14 May 2008; Ferris McCormick <fmccor@gentoo.org> libperl-5.8.8-r2.ebuild:
+ Sparc stable, Security Bug #219203.
+
+*libperl-5.8.8-r2 (09 May 2008)
+
+ 09 May 2008; Torsten Veller <tove@gentoo.org>
+ +files/libperl-5.8.8-CVE-2008-1927.patch,
+ +files/libperl-5.8.8-utf8-boundary.patch, +libperl-5.8.8-r2.ebuild:
+ #219203 - Version bump. Added patch from bug #198196. Apply
+ libperl-5.8.8-lib64.patch for ppc64 too like dev-lang/perl-5.8.8.
+
+ 06 Aug 2007; <truedfx@gentoo.org>
+ +files/libperl-5.8.8-makedepend-syntax.patch, libperl-5.8.8-r1.ebuild:
+ Fix syntax error in makedepend.SH
+
+ 30 Apr 2007; <solar@gentoo.org> ChangeLog:
+ - filter ssp on ia64 due to ICE in compiler. revisit when we have a working
+ hardened gcc-4.x
+
+ 17 Feb 2007; Fabian Groffen <grobian@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Dropped ppc-macos keyword, see you in prefix
+
+ 05 Jan 2007; Michael Cummings <mcummings@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Removed unnecessary dep on groff; fixes releng problem :)
+
+ 19 Nov 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/libperl-5.8.8-gcc42-command-line.patch, libperl-5.8.8-r1.ebuild:
+ Bug 144965, gcc-4.2 bug/patch, patch provided by dirtyepic
+
+ 18 Nov 2006; Michael Cummings <mcummings@gentoo.org>
+ -files/libperl-reorder-INC.patch, libperl-5.8.8-r1.ebuild:
+ Bug 150702; also cleaned up unused patches
+
+ 23 Oct 2006; Michael Cummings <mcummings@gentoo.org>
+ -libperl-5.8.7.ebuild:
+ Removing old libperl
+
+ 17 Oct 2006; Roy Marples <uberlord@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Added ~sparc-fbsd keyword.
+
+ 07 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Add a dependency on freebsd-mk-defs on FreeBSD.
+
+ 08 Sep 2006; Michael Cummings <mcummings@gentoo.org>
+ -files/libperl-5.8.2-uclibc.patch, -files/libperl-uclibc.patch,
+ -libperl-5.8.6.ebuild, -libperl-5.8.6-r1.ebuild, libperl-5.8.7.ebuild,
+ -libperl-5.8.8.ebuild, libperl-5.8.8-r1.ebuild:
+ Cleaning out stale files
+
+ 15 Aug 2006; Christian Hartmann <ian@gentoo.org> libperl-5.8.8.ebuild,
+ libperl-5.8.8-r1.ebuild:
+ Fix bug #143895
+
+ 18 Jun 2006; Bryan Østergaard <kloeri@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Stable on ia64.
+
+ 07 Jun 2006; Joshua Kinard <kumba@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Marked stable on mips.
+
+ 03 Jun 2006; Guy Martin <gmsoft@gentoo.org>
+ +files/perl-hppa-pa7200-configure.patch, libperl-5.8.8-r1.ebuild:
+ On PA7200, uname -a contains a single quote and we need to filter it
+ otherwise configure fails. See #125535.
+
+ 27 May 2006; Bryan Østergaard <kloeri@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Stable on alpha.
+
+ 26 May 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Stable on amd64 wrt bug #133989.
+
+ 25 May 2006; Guy Martin <gmsoft@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Stable on hppa.
+
+ 24 May 2006; <nixnut@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Stable on ppc. bug #133989
+
+ 23 May 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Stable on x86 wrt bug #133989.
+
+ 23 May 2006; <mcummings@gentoo.org> ChangeLog, Manifest:
+ Marking stable sparc, bug 133989
+
+ 23 May 2006; Markus Rothe <corsair@gentoo.org> libperl-5.8.8-r1.ebuild:
+ Stable on ppc64; bug #133989
+
+ 27 Apr 2006; Alec Warner <antarus@gentoo.org> files/digest-libperl-5.8.6,
+ files/digest-libperl-5.8.6-r1, files/digest-libperl-5.8.7,
+ files/digest-libperl-5.8.8, Manifest:
+ Fixing SHA256 digest, pass four
+
+ 31 Mar 2006; Diego Pettenò <flameeyes@gentoo.org>
+ libperl-5.8.8-r1.ebuild:
+ Add ~x86-fbsd keyword.
+
+*libperl-5.8.8-r1 (29 Mar 2006)
+
+ 29 Mar 2006; <mcumming@gentoo.org> +files/libperl-5.8.8-cplusplus.patch,
+ +libperl-5.8.8-r1.ebuild:
+ Patch 27203 in blead - fixes c++ problems in XS code :)
+
+ 21 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/libperl-5.8.8-dragonfly-clean.patch,
+ +files/libperl-5.8.8-fbsdhints.patch, libperl-5.8.8.ebuild:
+ Patches for freebsd and dragonfly per the perl ebuild - just to be safe
+
+ 07 Feb 2006; Aron Griffis <agriffis@gentoo.org> libperl-5.8.8.ebuild:
+ Prefer to avoid eval and use a bash array for myconf instead, it's less
+ error-prone
+
+ 07 Feb 2006; Michael Cummings <mcummings@gentoo.org> libperl-5.8.8.ebuild:
+ src update
+
+ 07 Feb 2006; <mcumming@gentoo.org> libperl-5.8.8.ebuild:
+ Style fixes to 5.8.8, thanks az
+
+*libperl-5.8.8 (07 Feb 2006)
+
+ 07 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/libperl-5.8.8-lib64.patch, +files/libperl-5.8.8-reorder-INC.patch,
+ -files/libperl-5.8.8_rc1-reorder-INC.patch, -libperl-5.8.8_rc1.ebuild,
+ +libperl-5.8.8.ebuild:
+ libperl 5.8.8, shiny and new.
+
+ 24 Jan 2006; Michael Cummings <mcummings@gentoo.org>
+ +files/libperl-5.8.8_rc1-reorder-INC.patch, libperl-5.8.8_rc1.ebuild:
+ Some tweaks to libperl-5.8.8 installation
+
+ 22 Jan 2006; Michael Cummings <mcummings@gentoo.org>
+ libperl-5.8.8_rc1.ebuild:
+ Bring libperl-5.8.8 back up to speed with perl ebuild
+
+*libperl-5.8.8_rc1 (22 Jan 2006)
+
+ 22 Jan 2006; Michael Cummings <mcummings@gentoo.org>
+ +libperl-5.8.8_rc1.ebuild:
+ RC1 of 5.8.8
+
+ 14 Jan 2006; Torsten Veller <tove@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on x86 (#118938)
+
+ 25 Dec 2005; Joshua Kinard <kumba@gentoo.org> libperl-5.8.7.ebuild:
+ Marked stable on mips.
+
+ 19 Dec 2005; Mike Frysinger <vapier@gentoo.org> libperl-5.8.6.ebuild,
+ libperl-5.8.6-r1.ebuild, libperl-5.8.7.ebuild:
+ Remove usage of preplib.
+
+ 06 Dec 2005; Michael Hanselmann <hansmi@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on hppa, ppc.
+
+ 05 Dec 2005; <mcumming@gentoo.org> -libperl-5.8.5-r1.ebuild,
+ -libperl-5.8.5.ebuild, libperl-5.8.6-r1.ebuild, libperl-5.8.6.ebuild,
+ libperl-5.8.7.ebuild:
+ Bug 113930, case statement for non-linux. Also cleaned out 5.8.5 versions
+ since we don't have perl ebuilds for them either.
+
+ 01 Dec 2005; <dang@gentoo.org> libperl-5.8.7.ebuild:
+ Marked stable on amd64
+
+ 29 Nov 2005; Diego Pettenò <flameeyes@gentoo.org> libperl-5.8.7.ebuild:
+ Fix typo (FreeBsd -> FreeBSD).
+
+ 14 Nov 2005; Michael Cummings <mcummings@gentoo.org> libperl-5.8.6.ebuild,
+ libperl-5.8.6-r1.ebuild, libperl-5.8.7.ebuild:
+ NetBSD for osname per thunder
+
+ 05 Nov 2005; <solar@gentoo.org> libperl-5.8.5-r1.ebuild,
+ libperl-5.8.5.ebuild:
+ - remove global use violations in old ebuilds.
+
+ 02 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on ia64, bug 106678.
+
+ 23 Sep 2005; Bryan Østergaard <kloeri@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on alpha, bug 106678.
+
+ 21 Sep 2005; Gustavo Zacarias <gustavoz@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on sparc wrt #106678
+
+ 20 Sep 2005; Markus Rothe <corsair@gentoo.org> libperl-5.8.7.ebuild:
+ Stable on ppc64 (bug #106678)
+
+ 05 Sep 2005; Herbie Hopkins <herbs@gentoo.org> libperl-5.8.7.ebuild:
+ More multilib fixes thanks to Christophe Saout, bug 104509.
+
+ 14 Aug 2005; Michael Cummings <mcummings@gentoo.org> libperl-5.8.7.ebuild:
+ The rest of the patch for bug 58931
+
+ 14 Aug 2005; Michael Cummings <mcummings@gentoo.org> libperl-5.8.7.ebuild:
+ Bug #58931, more userland darwin
+
+ 12 Aug 2005; Michael Cummings <mcummings@gentoo.org> libperl-5.8.7.ebuild:
+ Further bug #58931 - mistake on my part for the LIBPERL= syntax
+
+ 12 Aug 2005; Michael Cummings <mcummings@gentoo.org> libperl-5.8.7.ebuild:
+ getlibdir changes for 5.8.7, bug #58931
+
+ 08 Aug 2005; <solar.@gentoo.org> libperl-5.8.5-r1.ebuild,
+ libperl-5.8.5.ebuild, libperl-5.8.6-r1.ebuild, libperl-5.8.6.ebuild,
+ libperl-5.8.7.ebuild:
+ - Redisable the groff dep for uclibc (again and again...)
+
+ 28 Jul 2005; Michael Cummings <mcummings@gentoo.org>
+ files/libperl-reorder-INC.patch:
+ Update to reorder patch, tested with 5.8.6 and 5.8.7, resolves bug 95770
+
+ 28 Jul 2005; Herbie Hopkins <herbs@gentoo.org> libperl-5.8.6-r1.ebuild:
+ Stable on amd64.
+
+ 20 Jul 2005; <solar.@gentoo.org> libperl-5.8.6-r1.ebuild,
+ libperl-5.8.7.ebuild:
+ - Redisable the groff dep for uclibc. For whatever unsolved reason under
+ sandbox it breaks when building system. bug 98187
+
+ 07 Jul 2005; Markus Rothe <corsair@gentoo.org> libperl-5.8.6-r1.ebuild:
+ Stable on ppc64
+
+ 06 Jul 2005; <plasmaroo@gentoo.org> libperl-5.8.6-r1.ebuild:
+ Stable on IA64.
+
+ 06 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ libperl-5.8.6-r1.ebuild:
+ Stable on arm, m68k, s390, and sh.
+
+ 05 Jul 2005; Hardave Riar <hardave@gentoo.org> libperl-5.8.6-r1.ebuild:
+ Stable on mips.
+
+ 03 Jul 2005; Michael Hanselmann <hansmi@gentoo.org>
+ libperl-5.8.6-r1.ebuild:
+ Stable on ppc.
+
+ 02 Jul 2005; Bryan Østergaard <kloeri@gentoo.org>
+ libperl-5.8.6-r1.ebuild:
+ Stable on alpha.
+
+ 02 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org>
+ libperl-5.8.6-r1.ebuild:
+ Stable on hppa.
+
+*libperl-5.8.6-r1 (30 Jun 2005)
+
+ 30 Jun 2005; Michael Cummings <mcummings@gentoo.org>
+ +libperl-5.8.6-r1.ebuild, libperl-5.8.6.ebuild:
+ Bad osname= line in the 5.8.6 libperl was screwing up. Glad it was caught
+ early I guess. Should close bug 97479. Was previously fixed in 5.8.7 in
+ testing.
+
+*libperl-5.8.7 (29 Jun 2005)
+
+ 29 Jun 2005; Michael Cummings <mcummings@gentoo.org>
+ -files/libperl-5.8.2-create-libperl-soname.patch,
+ -files/libperl-5.8.4-create-libperl-soname.patch,
+ -files/libperl-5.8.4-noksh.patch, -files/libperl-5.8.4-uclibc.patch,
+ -files/libperl-5.8.5-create-libperl-soname.patch,
+ -files/libperl-5.8.5-noksh.patch, -files/libperl-5.8.5-reorder-INC.patch,
+ -files/libperl-5.8.5-uclibc.patch,
+ -files/libperl-5.8.6-create-libperl-soname.patch,
+ -files/libperl-5.8.6-noksh.patch, -files/libperl-5.8.6-uclibc.patch,
+ +files/libperl-create-libperl-soname.patch, +files/libperl-noksh.patch,
+ +files/libperl-reorder-INC.patch, +files/libperl-uclibc.patch,
+ -libperl-5.8.2.ebuild, -libperl-5.8.2-r1.ebuild, -libperl-5.8.4.ebuild,
+ -libperl-5.8.4-r1.ebuild, libperl-5.8.5.ebuild, libperl-5.8.5-r1.ebuild,
+ libperl-5.8.6.ebuild, +libperl-5.8.7.ebuild:
+ Perl 5.8.6 unmasking; perl 5.8.7 being added
+
+ 17 Jun 2005; Danny van Dyk <kugelfang@gentoo.org> libperl-5.8.5.ebuild,
+ libperl-5.8.6.ebuild:
+ Specifying LIBPERL variable for make on command line to fix BUG #63699.
+
+ 29 May 2005; <solar@gentoo.org> libperl-5.8.2-r1.ebuild,
+ libperl-5.8.4-r1.ebuild, libperl-5.8.5-r1.ebuild, libperl-5.8.5.ebuild,
+ libperl-5.8.6.ebuild:
+ - update sys-devel/libperl to use libc expanded variable elibc_uclibc vs
+ uclibc so USE=-* works
+
+ 23 May 2005; Herbie Hopkins <herbs@gentoo.org> libperl-5.8.6.ebuild:
+ More get_libdir-ization, fixes compilation on amd64's no-lib32 profile.
+
+ 08 Mar 2005; Jeremy Huddleston <eradicator@gentoo.org>
+ libperl-5.8.6.ebuild:
+ More multilib fixes
+
+ 16 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org>
+ libperl-5.8.5-r1.ebuild, libperl-5.8.5.ebuild, libperl-5.8.6.ebuild:
+ multilib fixes for amd64's 2005.0.
+
+ 03 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 13 Dec 2004; Mike Frysinger <vapier@gentoo.org> libperl-5.8.5-r1.ebuild,
+ libperl-5.8.5.ebuild, libperl-5.8.6.ebuild:
+ Use toolchain-funcs to get $CC.
+
+ 07 Dec 2004; Hardave Riar <hardave@gentoo.org> libperl-5.8.5.ebuild:
+ Stable on mips, dep for bug #66360
+
+ 06 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> libperl-5.8.5.ebuild:
+ Stable on sparc wrt #66360
+
+ 05 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> libperl-5.8.5.ebuild:
+ Stable on alpha, bug 66360.
+
+ 05 Dec 2004; Markus Rothe <corsair@gentoo.org> libperl-5.8.5.ebuild:
+ Stable on ppc64; bug #66360
+
+ 04 Dec 2004; Robert Coie <rac@gentoo.org> libperl-5.8.5.ebuild:
+ keyword 5.8.5 x86/amd64/ppc
+
+*libperl-5.8.6 (30 Nov 2004)
+
+ 30 Nov 2004; Robert Coie <rac@gentoo.org>
+ -files/libperl-5.8.3-create-libperl-soname.patch,
+ +files/libperl-5.8.6-create-libperl-soname.patch,
+ +files/libperl-5.8.6-noksh.patch, +files/libperl-5.8.6-uclibc.patch,
+ -libperl-5.8.3.ebuild, +libperl-5.8.6.ebuild:
+ New upstream
+
+ 27 Sep 2004; Michael Cummings <mcummings@gentoo.org>
+ libperl-5.8.2-r1.ebuild, libperl-5.8.2.ebuild, libperl-5.8.3.ebuild,
+ libperl-5.8.4-r1.ebuild, libperl-5.8.4.ebuild, libperl-5.8.5-r1.ebuild,
+ libperl-5.8.5.ebuild:
+ Added perl debugging support, bug 60775
+
+ 22 Sep 2004; Robert Coie <rac@gentoo.org> libperl-5.8.2-r1.ebuild,
+ libperl-5.8.2.ebuild, libperl-5.8.3.ebuild, libperl-5.8.4-r1.ebuild,
+ libperl-5.8.4.ebuild, libperl-5.8.5.ebuild:
+ USE threads -> ithreads cleanup
+
+*libperl-5.8.5-r1 (22 Sep 2004)
+
+ 22 Sep 2004; Robert Coie <rac@gentoo.org>
+ +files/libperl-5.8.5-reorder-INC.patch, +libperl-5.8.5-r1.ebuild:
+ Change USE from threads to ithreads, reorder @INC
+
+ 09 Sep 2004; Gustavo Zacarias <gustavoz@gentoo.org> libperl-5.8.4-r1.ebuild:
+ Stable on sparc to finally solve #36478
+
+ 08 Sep 2004; Robert Coie <rac@gentoo.org> libperl-5.8.4-r1.ebuild:
+ keyword x86 and arm for uclibc folks
+
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> libperl-5.8.2-r1.ebuild,
+ libperl-5.8.2.ebuild, libperl-5.8.3.ebuild, libperl-5.8.4-r1.ebuild,
+ libperl-5.8.4.ebuild, libperl-5.8.5.ebuild:
+ Switch to use epause and ebeep, bug #62950
+
+ 21 Aug 2004; Joshua Kinard <kumba@gentoo.org> libperl-5.8.4-r1.ebuild:
+ Marked stable on mips.
+
+ 18 Aug 2004; Aron Griffis <agriffis@gentoo.org> libperl-5.8.4-r1.ebuild:
+ stable on alpha
+
+ 14 Aug 2004; Michael Cummings <mcummings@gentoo.org>
+ libperl-5.8.2-r1.ebuild, libperl-5.8.2.ebuild, libperl-5.8.3.ebuild,
+ libperl-5.8.4-r1.ebuild, libperl-5.8.4.ebuild, libperl-5.8.5.ebuild:
+ Removed reference to old patch
+
+ 13 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> libperl-5.8.4.ebuild:
+ Stable on alpha.
+
+*libperl-5.8.5 (06 Aug 2004)
+
+ 06 Aug 2004; Robert Coie <rac@gentoo.org>
+ +files/libperl-5.8.5-create-libperl-soname.patch,
+ +files/libperl-5.8.5-noksh.patch, +files/libperl-5.8.5-uclibc.patch,
+ +libperl-5.8.5.ebuild:
+ 5.8.5
+
+ 06 Aug 2004; Robert Coie <rac@gentoo.org> libperl-5.8.2-r1.ebuild,
+ libperl-5.8.2.ebuild, libperl-5.8.3.ebuild, libperl-5.8.4-r1.ebuild,
+ libperl-5.8.4.ebuild:
+ restrict maketest, avoid forkbomb in portage 51 with maketest enabled,
+ eliminate some global scope external calls
+
+ 29 Jul 2004; Guy Martin <gmsoft@gentoo.org> libperl-5.8.4-r1.ebuild:
+ Stable on hppa.
+
+ 23 Jul 2004; Robert Coie <rac@gentoo.org> libperl-5.8.4.ebuild:
+ keywording x86 and sparc
+
+ 29 Jun 2004; Aron Griffis <agriffis@gentoo.org> libperl-5.8.2-r1.ebuild,
+ libperl-5.8.2.ebuild, libperl-5.8.3.ebuild, libperl-5.8.4-r1.ebuild,
+ libperl-5.8.4.ebuild:
+ kill sparc64 use flag
+
+*libperl-5.8.4-r1 (16 Jun 2004)
+*libperl-5.8.2-r1 (16 Jun 2004)
+
+ 16 Jun 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/libperl-5.8.2-uclibc.patch, +files/libperl-5.8.4-uclibc.patch,
+ +libperl-5.8.2-r1.ebuild, +libperl-5.8.4-r1.ebuild:
+ uclibc fixes thanks to Peter S. Mazinger <ps.m@gmx.net>
+
+ 14 Jun 2004; Aron Griffis <agriffis@gentoo.org> libperl-5.8.2.ebuild,
+ libperl-5.8.3.ebuild:
+ Fix use invocation
+
+ 09 Jun 2004; Robert Coie <rac@gentoo.org> +files/libperl-5.8.4-noksh.patch,
+ libperl-5.8.4.ebuild:
+ Add noksh.patch, bug 42665
+
+ 02 Jun 2004; Travis Tilley <lv@gentoo.org> libperl-5.8.4.ebuild:
+ stable on amd64
+
+*libperl-5.8.4 (10 May 2004)
+
+ 10 May 2004; Michael McCabe <randy@gentoo.org> libperl-5.8.4.ebuild:
+ Stable on s390
+
+ 03 May 2004; Robert Coie <rac@gentoo.org> libperl-5.8.1.ebuild,
+ files/libperl-5.8.0-create-libperl-soname.patch,
+ files/libperl-5.8.1-create-libperl-soname.patch,
+ files/libperl-5.8.1_rc1-create-libperl-soname.patch,
+ files/libperl-5.8.1_rc2-create-libperl-soname.patch:
+ Add 5.8.4, clean out 5.8.0, 5.8.1, add IUSE for threads to everything
+
+ 08 Mar 2004; <rac@gentoo.org> libperl-5.8.2.ebuild:
+ Add threads to IUSE
+
+ 21 Feb 2004; Michael Cummings <mcummings@gentoo.org> libperl-5.8.0.ebuild:
+ Finish the cleanup of perl 5.8.0
+
+ 19 Feb 2004; Aron Griffis <agriffis@gentoo.org> libperl-5.8.2.ebuild:
+ stable on alpha and ia64
+
+ 19 Feb 2004; Joshua Kinard <kumba@gentoo.org> libperl-5.8.2.ebuild:
+ Marking stable on mips
+
+ 09 Feb 2004; Bartosch Pixa <darkspecter@gentoo.org> libperl-5.8.2.ebuild:
+ set ppc in keywords
+
+ 06 Feb 2004; <gustavoz@gentoo.org> libperl-5.8.2.ebuild:
+ stable on sparc
+
+ 03 Feb 2004; <gustavoz@gentoo.org> libperl-5.8.2.ebuild:
+ stable on hppa
+
+ 01 Feb 2004; <rac@gentoo.org> libperl-5.8.2.ebuild:
+ mark x86
+
+*libperl-5.8.3 (17 Jan 2004)
+
+ 17 Jan 2004; <rac@gentoo.org> libperl-5.8.3.ebuild,
+ files/libperl-5.8.3-create-libperl-soname.patch:
+ New upstream, housecleaning
+
+ 26 Nov 2003; Brad House <brad_mssw@gentoo.org> libperl-5.8.2.ebuild:
+ mark stable on amd64
+
+*libperl-5.8.2 (08 Nov 2003)
+
+ 08 Nov 2003; <rac@gentoo.org> libperl-5.8.2.ebuild,
+ files/libperl-5.8.2-create-libperl-soname.patch:
+ new upstream version
+
+*libperl-5.8.1 (27 Sep 2003)
+
+ 27 Sep 2003; <rac@gentoo.org> libperl-5.8.1.ebuild,
+ files/libperl-5.8.1-create-libperl-soname.patch:
+ New upstream release
+
+*libperl-5.8.1_rc2 (23 Jul 2003)
+
+ 17 Sep 2003; Jon Portnoy <avenj@gentoo.org> libperl-5.8.0.ebuild :
+ Added ia64 keywords
+
+ 23 Jul 2003; <rac@gentoo.org> libperl-5.8.1_rc2.ebuild:
+ Add 5.8.1-rc2
+
+ 11 Jul 2003; <rac@gentoo.org> libperl-5.8.0.ebuild,
+ libperl-5.8.1_rc1.ebuild:
+ Add mips u32align workaround...thanks to Kumba
+
+*libperl-5.8.1_rc1 (10 Jul 2003)
+
+ 10 Jul 2003; <rac@gentoo.org> libperl-5.8.1_rc1.ebuild,
+ files/libperl-5.8.1_rc1-create-libperl-soname.patch:
+ Upstream version bump. Experimental.
+
+ 18 May 2003; Tavis Ormandy <taviso@gentoo.org> libperl-5.8.0.ebuild:
+ removing gcc hardcoded compiler, using ${CC:-gcc}
+
+ 11 Feb 2003; Guy Martin <gmsoft@gentoo.org> libperl-5.8.0.ebuild :
+ Added hppa to keywords.
+
+ 05 Jan 2003; J Robert Ray <jrray@gentoo.org> libperl-5.8.0.ebuild : Synced
+ up with perl-5.8.0-r9.ebuild.
+
+*libperl-5.8.0 (06 Jan 2003)
+
+ 28 Mar 2003; Seemant Kulleen <seemant@gentoo.org> libperl-5.8.0.ebuild:
+ unmasked for ppc and hppa
+
+ 01 Mar 2003; Brandon Low <lostlogic@gentoo.org> libperl-5.8.0.ebuild:
+ Make->emake still not parallel where needed
+
+ 26 Feb 2003; Zach Welch <zwelch@gentoo.org> libperl-5.8.0.ebuild:
+ add arm keyword
+
+ 08 Jan 2002; Seemant Kulleen <seemant@gentoo.org> libperl-5.8.0.ebuild :
+
+ Unmasked for sparc
+
+ 08 Jan 2003; Michael Cummings <mcummings@gentoo.org> libperl-5.8.0:
+ Unmasking for x86.
+
+ 06 Jan 2003; Michael Cummings <mcummings@gentoo.org> libperl-5.8.0:
+ Initial import. Ebuild was provided by azarah. The seperation of
+ the libperl portion of perl into a seperate ebuild is to counter
+ problems experienced with migrating perl versions and the need to
+ recompile libperl.so at each run. This should also allow us a smoother
+ upgrade with future perl releases as the libperl.so is no named
+ according to perl versions - that way, old libperl's can co-exist
+ with new ones and the need to recompile packages should be
+ mitigated.
diff --git a/sys-devel/libperl/Manifest b/sys-devel/libperl/Manifest
new file mode 100644
index 0000000..5b2d431
--- /dev/null
+++ b/sys-devel/libperl/Manifest
@@ -0,0 +1,26 @@
+AUX Makefile.SH.patch 8484 RMD160 5e4e2c6628f9528edc4f53bbf6730accd2c52bb2 SHA1 89bf18040a20b803e38c3f7d2c15efd6d4429ab8 SHA256 01cc2c3cfd1175c5f031d6bb1e5167427813a7bd6f1f3d97b923c0086ac77955
+AUX config-bits 29915 RMD160 6d2e4f4b32c72dff0f0d55d0490459efa9d705de SHA1 abaa8948a466f6faa22f70192f1f8b7f284983e8 SHA256 42ff75e16eccff094cacb74d9d3cdfa0365d5ceb55aee7ee58d33b9108550b2a
+AUX letgcc-find-errno.patch 1434 RMD160 939d8375f667ef341c0bcdb86a6386dcac776c96 SHA1 1c11211c20710b49dc78554db9c3b31638671bd1 SHA256 c9177630da71bb8e864ac76181d69b8216c95564fd1a074bf922fac0b2982547
+AUX libperl-5.8.8-CVE-2008-1927.patch 8129 RMD160 523467accd75f42ea254b1aed219efbfc2c32637 SHA1 0a36c92bb3c59064f3370376a76ef66c63fb1ba4 SHA256 614ebf7a0885fb5f7203627a3051f4df8fee2988d6bfec5a3d8fe70d97f9e45b
+AUX libperl-5.8.8-ccld-cflags.patch 334 RMD160 cedae5a13f77ca057e3a2b7719e3ffd16890f918 SHA1 ac40a4456fa9027febb423cf194b17eb2cca5eb6 SHA256 f2af08a63056970ff5183d27bf017d2f919482a4897512d096f4747b9951fff9
+AUX libperl-5.8.8-cplusplus.patch 854 RMD160 1fbfc7ec9940622beb644ce0fa98a6f52131c9db SHA1 e4718e0b1c869ec56d59466caed3fab555848085 SHA256 ea1368e609b0d992b6cd5f92c327768d8c61ca2096826f26af2576263efb8a89
+AUX libperl-5.8.8-dragonfly-clean.patch 5211 RMD160 d2411913185276cd9c9aa55a614ae2ed13d22fe9 SHA1 2d2bb9a8b7fa312229d5e13eea845384069d7e2f SHA256 08b22fe26695f6f7f7d21ca2628954eded91205b64450e24d0b295eb75952b6c
+AUX libperl-5.8.8-fbsdhints.patch 1984 RMD160 0b298920ce1dce296fc574a4e27f00e59332343c SHA1 50d58cf1bb837261a148eb9d0b7e2a4856c1a9b0 SHA256 98ff829c9544e7edb329974b883f98b1391a5bb0e071edbb5e96feeba2c066c8
+AUX libperl-5.8.8-gcc42-command-line.patch 497 RMD160 5fe723ae71be6c6316f11ca2219f489fce60101c SHA1 ae75dfd80b59afb23377fdf491b46b7a561714d7 SHA256 946d02284221bc3615e1f03afda1735e6da0296b03315e2a644bd784ad6f76d1
+AUX libperl-5.8.8-lib64.patch 3393 RMD160 406206c33b10b4af8cb2d1aba2fa6aadf5d9eea6 SHA1 d2e3bced513435dd66634d89938d65aa5839e7a8 SHA256 3efe8048934093a1a66bc37b22fbb56a6e10df2940bb85b57802c9129c9bd1bd
+AUX libperl-5.8.8-makedepend-syntax.patch 341 RMD160 8d0ee189b86c7c3b6467512a7be25cf8d1a38e68 SHA1 1b604713de487ada27d177d85755784cd3058397 SHA256 f4ff3678b992774552d9ebc9ca7f3da1ae0144077eb52365e96ddbd0ba9c2606
+AUX libperl-5.8.8-reorder-INC.patch 3046 RMD160 73bc824bebee8889073656a7b547dc63b35696dc SHA1 ec56010c38cbadce6fccf7ba314cfc7f42f470c6 SHA256 136ca6c6cfaa3467f6a164f26b34ff06cc55823ca5723118764589cc15d37aed
+AUX libperl-5.8.8-utf8-boundary.patch 1866 RMD160 c65ee9df8b9f71504420b905be2067220ef9daaa SHA1 38eb633f427bf7cd843843bff525dbc50116df8b SHA256 62848b35ed88c7d3a1a836903707b467e421321810e18792da41b28f9e7124a1
+AUX libperl-create-libperl-soname.patch 417 RMD160 ea221c4f1a284ad28b30e9354222859ac1c6392e SHA1 52c81707187bdb3db89d2a9e06bdb44386304067 SHA256 cf417526a71b7c8a5015171fdefb6d7a52dbd6914762bb628d2662f6c28c7f61
+AUX libperl-noksh.patch 611 RMD160 6ddb9e7140c60e05042c3c488c97399a86f965fc SHA1 61bf5bb0955bd04a758d1381fa4260ed9fdbb1d1 SHA256 0861f7f54c184e99a0ffeebeab9420d969d2002f921bc3fb14841a1e24be1f5e
+AUX native-perlinc.patch 982 RMD160 8567629f6f254cba86de92d502636cb890a149eb SHA1 b7bcc3728682b867700a14b87e55507771953ae2 SHA256 692c7a0341f5f2c6f1e6fdcb0a96c351d53db7db0b9ad98f9d90758a62d3f498
+AUX perl-configpm-switch.patch 1217 RMD160 ecd551ec5ce2c1be268de140e043bdb7a47bcacd SHA1 85647ec2aafd400380176cc8aea09cb5fe8683e1 SHA256 3a9e3db56b1b1aa96d948f149b782993b2c89069877ed67bd1ab453cb414a045
+AUX perl-dynloader.patch 1019 RMD160 be7d547c852c4ac549cdd5697ffa820802f6c8c6 SHA1 02d441e991c55ac6ed4feef4fc8130704d51a1a6 SHA256 db787390cc822512386228c5643348403d5aac774b828415352ba2b5855050c5
+AUX perl-hppa-pa7200-configure.patch 446 RMD160 ab902e2b5cf7f96023e0e267f170401b036dd4f5 SHA1 fcb7e61cdf1ce1c9993f257507b3289ce45382d7 SHA256 4fe6a010dbdc39325f4003e7ccd02cb7996b4a99b64ab0fa8b12d6fe67f87a31
+AUX perl-moreconfig.patch 568 RMD160 5d5d83c4f63bb49953e7893b219438c560e0c6b7 SHA1 7ba1f696e77db6b2e038e3357e19071445d562ad SHA256 6b3965a5e592f79b5afe7b270280f108b74c64a01eac0f687c361ed5358060a9
+DIST perl-5.8.8.tar.bz2 10123359 RMD160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b SHA1 4aab490040727ca4419098720eca2ba4367df539 SHA256 818a140d9c04ea8dab3a05104b34ced7f7d9d0a91bfed91baf89a84d0dfb1bc9
+EBUILD libperl-5.10.1.ebuild 801 RMD160 493de988ec2291c4e924f6ecec9e2f0605ce8bf5 SHA1 03121621005dc4f2752c49cdc474d1276454da6d SHA256 109549dbe398f935c81d7e1338c0a1b4d34b631765d9f43101b7d0112f938177
+EBUILD libperl-5.8.8-r2.ebuild 12586 RMD160 4da464c86584909d00a903e1493d8ed883470528 SHA1 487d803ffb510caddea592f83d217f2cc4372213 SHA256 424266d6d2fc177e1a73428cf065f2e8d9dbbc09edefaaff3c14d5bff1c248be
+EBUILD libperl-5.8.8-r3.ebuild 13945 RMD160 772cb5662ec4a7a78253b2a562f7c513aaf53695 SHA1 e33fcf9e4c5b11e8c396c3b1f7579ee8cfa3722a SHA256 29ff39654b19ff277308a227cf57dce8a5daca781fa26d8617aa17219dd3c767
+MISC ChangeLog 21741 RMD160 657d34a38efb481b63273ab00d7a99a841ef7988 SHA1 bb17a74262766721f95490445888c784fb9fe806 SHA256 69cdd19bbdd7cd4e279992df7f118888d8aad3fb1a2b29e5287c831328e5a5d3
+MISC metadata.xml 403 RMD160 1cda5ea2e30a403f93919ff6517319385ea1aa56 SHA1 f2f65146ecf4c7f65e707259286bea45418b65b1 SHA256 71229202663c60ee0e512c81936ceb8a9b70e95c211a4615a14592aa62ea823a
diff --git a/sys-devel/libperl/files/Makefile.SH.patch b/sys-devel/libperl/files/Makefile.SH.patch
new file mode 100644
index 0000000..1efc3c8
--- /dev/null
+++ b/sys-devel/libperl/files/Makefile.SH.patch
@@ -0,0 +1,238 @@
+Index: perl-5.8.8/Makefile.SH
+===================================================================
+--- perl-5.8.8.orig/Makefile.SH 2006-01-24 23:49:44.000000000 +1100
++++ perl-5.8.8/Makefile.SH 2007-06-14 13:29:37.000000000 +1000
+@@ -43,12 +43,12 @@
+ true)
+ # Prefix all runs of 'miniperl' and 'perl' with
+ # $ldlibpth so that ./perl finds *this* shared libperl.
+- case "$LD_LIBRARY_PATH" in
+- '')
+- ldlibpth="LD_LIBRARY_PATH=`pwd`";;
+- *)
+- ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
+- esac
++# case "$LD_LIBRARY_PATH" in
++# '')
++# ldlibpth="LD_LIBRARY_PATH=`pwd`";;
++# *)
++# ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
++# esac
+
+ pldlflags="$cccdlflags"
+ static_target='static_pic'
+@@ -108,7 +108,8 @@
+ ldlibpth=''
+ ;;
+ *)
+- eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
++# We compile in the library path in OE from cross-compile, so lets not do this
++# eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
+ ;;
+ esac
+ # Strip off any trailing :'s
+@@ -129,18 +130,7 @@
+ # INSTALL file, under "Building a shared perl library".
+ # If there is no pre-existing $libperl, we don't need
+ # to do anything further.
+- if test -f $archlib/CORE/$libperl; then
+- rm -f preload
+- cat <<'EOT' > preload
+-#! /bin/sh
+-lib=$1
+-shift
+-test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
+-exec "$@"
+-EOT
+- chmod 755 preload
+- ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
+- fi
++ echo linux libraries overwritten by cross-compile patches
+ ;;
+ os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
+ ;;
+@@ -401,9 +391,19 @@
+ .c.s:
+ $(CCCMDSRC) -S $*.c
+
+-all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
+- @echo " ";
+- @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
++#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
++# @echo " ";
++# @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
++
++all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) $(unidatafiles)
++
++more: extra.pods $(private) $(public)
++
++more2: $(dynamic_ext)
++
++more3: $(nonxs_ext)
++
++more4: extras.make
+
+ .PHONY: all compile translators utilities
+
+@@ -413,10 +413,10 @@
+ cd x2p; $(MAKE) compile;
+ cd pod; $(MAKE) compile;
+
+-translators: miniperl$(EXE_EXT) $(CONFIGPM) FORCE
++translators: $(CONFIGPM) FORCE
+ @echo " "; echo " Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
+
+-utilities: miniperl$(EXE_EXT) $(CONFIGPM) $(plextract) lib/lib.pm FORCE
++utilities: $(CONFIGPM) $(plextract) lib/lib.pm FORCE
+ @echo " "; echo " Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all
+
+
+@@ -591,7 +591,9 @@
+ $(CC) -o miniperl $(CLDFLAGS) \
+ `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ next4*)
+@@ -599,7 +601,9 @@
+ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
+ $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ darwin*)
+@@ -620,7 +624,9 @@
+ -@rm -f miniperl.xok
+ $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o miniperl \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ *)
+@@ -629,7 +635,9 @@
+ -@rm -f miniperl.xok
+ $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \
+ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
+- $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
++ mv -f miniperl miniperl-target
++ ln -s ${HOSTPERL} miniperl
++# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
+ !NO!SUBS!
+ ;;
+ esac
+@@ -766,7 +774,7 @@
+ # We need to autosplit in two steps because VOS can't handle so many args
+ #
+ .PHONY: preplibrary
+-preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
++preplibrary: $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
+ @sh ./makedir lib/auto
+ @echo " AutoSplitting perl library"
+ $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
+@@ -775,35 +783,35 @@
+ autosplit_lib_modules(@ARGV)' lib/*/*.pm
+ $(MAKE) lib/re.pm
+
+-lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
++lib/Config.pod: config.sh configpm Porting/Glossary
+ $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
+
+ $(CONFIGPM): lib/Config.pod
+
+-lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
++lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl $(CONFIGPM)
+ $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
+
+ lib/re.pm: ext/re/re.pm
+ cp ext/re/re.pm lib/re.pm
+
+-$(plextract): miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
++$(plextract): $(CONFIGPM) x2p/s2p
+ @-rm -f $@
+ $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
+
+-x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
++x2p/s2p: $(CONFIGPM) x2p/s2p.PL
+ cd x2p; $(LDLIBPTH) $(MAKE) s2p
+
+-lib/lib.pm: miniperl$(EXE_EXT) $(CONFIGPM)
++lib/lib.pm: $(CONFIGPM)
+ @-rm -f $@
+ $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
+
+ unidatafiles $(unidatafiles): uni.data
+
+-uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
++uni.data: $(CONFIGPM) lib/unicore/mktables
+ cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
+ touch uni.data
+
+-extra.pods: miniperl$(EXE_EXT)
++extra.pods:
+ -@test -f extra.pods && rm -f `cat extra.pods`
+ -@rm -f extra.pods
+ -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
+@@ -857,11 +865,11 @@
+ cd ../pod; $(MAKE) compile; \
+ else :; \
+ fi
+- $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
++ ${HOSTPERL} -Ifake_config_library -Ilib -MConfig installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
+ $(MAKE) extras.install
+
+ install.man: all installman
+- $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
++ ${HOSTPERL} -Ifake_config_library -Ilib -MConfig installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
+
+ # XXX Experimental. Hardwired values, but useful for testing.
+ # Eventually Configure could ask for some of these values.
+@@ -978,16 +986,16 @@
+ #
+ # DynaLoader may be needed for extensions that use Makefile.PL.
+
+-$(DYNALOADER): miniperl$(EXE_EXT) preplibrary FORCE
++$(DYNALOADER): preplibrary FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-d_dummy $(dynamic_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++d_dummy $(dynamic_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-s_dummy $(static_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++s_dummy $(static_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+-n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
++n_dummy $(nonxs_ext): preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
+ .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
+@@ -1125,7 +1133,7 @@
+
+ test_prep_pre: preplibrary utilities $(nonxs_ext)
+
+-test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
++test_prep: test_prep_pre $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
+ PERL=./perl $(MAKE) _test_prep
+
+ _test_tty:
+@@ -1238,7 +1246,7 @@
+
+ # Can't depend on lib/Config.pm because that might be where miniperl
+ # is crashing.
+-minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
++minitest: lib/re.pm minitest.prep
+ - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
+ && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
+
diff --git a/sys-devel/libperl/files/config-bits b/sys-devel/libperl/files/config-bits
new file mode 100644
index 0000000..cce5d75
--- /dev/null
+++ b/sys-devel/libperl/files/config-bits
@@ -0,0 +1,1147 @@
+#/bin/sh
+# Since perl's Configure script is so unfriendly to cross-compilation
+# and is filled with "c compile and run tests" that fail when cross-compiling,
+# configuration variables must be supplied to config.sh ahead of time.
+# The options that are hardcoded are those that were common to Openembedded's
+# supported platforms (arm, mips, sparc, powerpc, etc...) and config.sh
+# files generated in booted arm and amd64 gentoo platforms. All others use shell
+# expansions, and portage variables and functions, for their values.
+# Special characters are backslash escaped when necessary, and
+# command subtitutions use the $() convention, instead of ``, for clarity.
+# All values should be surrounded with single quotes.
+
+make_configsh() {
+ # Sets up path vars used in the options below
+ local FULLARCH="$myarch$mythreading"
+ local LIBPTH="/usr/$(get_libdir)/perl5"
+
+ # Arch
+ local ALIBPTH="${LIBPTH}/${PV}"
+
+ # Site
+ local SLIBPTH="${LIBPTH}/site_perl/${PV}"
+
+ # Vendor
+ local VLIBPTH="${LIBPTH}/vendor_perl/${PV}"
+
+ touch "${S}"/config.sh
+
+ # To make sure it's one config option per line
+ # with no extra quoting, we set $IFS to a newline
+ # and pipe it to ${S}/config.sh
+ IFSOLD=$IFS
+
+ IFS="
+"
+
+# Options that are platform independent (hopefully, for most platforms)
+echo "
+Author=''
+Date='\$Date'
+Header=''
+Id='\$Id'
+Locker=''
+Log='\$Log'
+Mcc='Mcc'
+RCSfile='\$RCSfile'
+Revision='\$Revision'
+Source=''
+State=''
+_a='.a'
+_exe=''
+_o='.o'
+afs='false'
+afsroot='/afs'
+ansi2knr=''
+aphostname=''
+api_revision='5'
+api_subversion='0'
+api_version='8'
+api_versionstring='5.8.0'
+ar='$(tc-getAR)'
+archlib='${ALIBPTH}/${FULLARCH}'
+archlibexp='${ALIBPTH}/${FULLARCH}'
+archname='${FULLARCH}'
+archname64=''
+archobjs=''
+asctime_r_proto='REENTRANT_PROTO_B_SB'
+awk='awk'
+baserev='5.0'
+bash=''
+bin='/usr/bin'
+binexp='/usr/bin'
+bison='bison'
+byacc='byacc'
+c=''
+castflags='0'
+cat='cat'
+cc='$(tc-getCC)'
+cccdlflags='-fPIC'
+ccdlflags='-rdynamic -Wl,-E'
+ccflags='${CFLAGS} -fno-strict-aliasing -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
+ccname='$(tc-getCC)'
+ccsymbols=''
+ccversion=''
+cf_by='Gentoo'
+charsize='1'
+chgrp=''
+chmod='chmod'
+chown=''
+clocktype='clock_t'
+comm='comm'
+compress=''
+contains='grep'
+cp='cp'
+cpio=''
+cpp='$(tc-getCPP)'
+cpp_stuff='42'
+cppccsymbols=''
+cpplast='-'
+cppminus='-'
+cpprun='$(tc-getCC) -E'
+cppstdin='$(tc-getCC) -E'
+crypt_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_B_CCS')'
+cryptlib=''
+csh='csh'
+ctermid_r_proto='0'
+ctime_r_proto='REENTRANT_PROTO_B_SB'
+d_Gconvert='gcvt((x),(n),(b))'
+d_PRIEUldbl='define'
+d_PRIFUldbl='define'
+d_PRIGUldbl='define'
+d_PRIXU64='define'
+d_PRId64='define'
+d_PRIeldbl='define'
+d_PRIfldbl='define'
+d_PRIgldbl='define'
+d_PRIi64='define'
+d_PRIo64='define'
+d_PRIu64='define'
+d_PRIx64='define'
+d_SCNfldbl='define'
+d__fwalk='undef'
+d_access='define'
+d_accessx='undef'
+d_aintl='undef'
+d_alarm='define'
+d_archlib='define'
+d_asctime_r='define'
+d_atolf='undef'
+d_atoll='define'
+d_attribute_format='define'
+d_attribute_malloc='define'
+d_attribute_nonnull='define'
+d_attribute_noreturn='define'
+d_attribute_pure='define'
+d_attribute_unused='define'
+d_attribute_warn_unused_result='undef'
+d_bcmp='define'
+d_bcopy='define'
+d_bsd='undef'
+d_bsdgetpgrp='undef'
+d_bsdsetpgrp='undef'
+d_bzero='define'
+d_casti32='undef'
+d_castneg='define'
+d_charvspr='define'
+d_chown='define'
+d_chroot='define'
+d_chsize='undef'
+d_class='undef'
+d_clearenv='define'
+d_closedir='define'
+d_cmsghdr_s='define'
+d_const='define'
+d_copysignl='define'
+d_crypt='define'
+d_crypt_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_csh='undef'
+d_ctermid_r='undef'
+d_ctime_r='define'
+d_cuserid='define'
+d_dbl_dig='define'
+d_dbminitproto='undef'
+d_difftime='define'
+d_dirfd='define'
+d_dirnamlen='undef'
+d_dlerror='define'
+d_dlopen='define'
+d_dlsymun='undef'
+d_dosuid='$(use perlsuid && echo 'define' || echo 'undef')'
+d_drand48_r='define'
+d_drand48proto='define'
+d_dup2='define'
+d_eaccess='undef'
+d_endgrent='define'
+d_endgrent_r='undef'
+d_endhent='define'
+d_endhostent_r='undef'
+d_endnent='define'
+d_endnetent_r='undef'
+d_endpent='define'
+d_endprotoent_r='undef'
+d_endpwent='define'
+d_endpwent_r='undef'
+d_endsent='define'
+d_endservent_r='undef'
+d_eofnblk='define'
+d_eunice='undef'
+d_faststdio='undef'
+d_fchdir='define'
+d_fchmod='define'
+d_fchown='define'
+d_fcntl='define'
+d_fcntl_can_lock='define'
+d_fd_macros='define'
+d_fd_set='define'
+d_fds_bits='define'
+d_fgetpos='define'
+d_finite='define'
+d_finitel='define'
+d_flexfnam='define'
+d_flock='define'
+d_flockproto='define'
+d_fork='define'
+d_fp_class='undef'
+d_fpathconf='define'
+d_fpclass='undef'
+d_fpclassify='undef'
+d_fpclassl='undef'
+d_fpos64_t='undef'
+d_frexpl='define'
+d_fs_data_s='undef'
+d_fseeko='define'
+d_fsetpos='define'
+d_fstatfs='define'
+d_fstatvfs='define'
+d_fsync='define'
+d_ftello='define'
+d_ftime='undef'
+d_futimes='define'
+d_getcwd='define'
+d_getespwnam='undef'
+d_getfsstat='undef'
+d_getgrent='define'
+d_getgrent_r='define'
+d_getgrgid_r='define'
+d_getgrnam_r='define'
+d_getgrps='define'
+d_gethbyaddr='define'
+d_gethbyname='define'
+d_gethent='define'
+d_gethname='define'
+d_gethostbyaddr_r='define'
+d_gethostbyname_r='define'
+d_gethostent_r='define'
+d_gethostprotos='define'
+d_getitimer='define'
+d_getlogin='define'
+d_getlogin_r='define'
+d_getmnt='undef'
+d_getmntent='define'
+d_getnbyaddr='define'
+d_getnbyname='define'
+d_getnent='define'
+d_getnetbyaddr_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetbyname_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetent_r='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_getnetprotos='define'
+d_getpagsz='define'
+d_getpbyname='define'
+d_getpbynumber='define'
+d_getpent='define'
+d_getpgid='define'
+d_getpgrp2='undef'
+d_getpgrp='define'
+d_getppid='define'
+d_getprior='define'
+d_getprotobyname_r='define'
+d_getprotobynumber_r='define'
+d_getprotoent_r='define'
+d_getprotoprotos='define'
+d_getprpwnam='undef'
+d_getpwent='define'
+d_getpwent_r='define'
+d_getpwnam_r='define'
+d_getpwuid_r='define'
+d_getsbyname='define'
+d_getsbyport='define'
+d_getsent='define'
+d_getservbyname_r='define'
+d_getservbyport_r='define'
+d_getservent_r='define'
+d_getservprotos='define'
+d_getspnam='define'
+d_getspnam_r='undef'
+d_gettimeod='define'
+d_gmtime_r='define'
+d_gnulibc='define'
+d_grpasswd='define'
+d_hasmntopt='define'
+d_htonl='define'
+d_ilogbl='define'
+d_index='undef'
+d_inetaton='define'
+d_int64_t='define'
+d_isascii='define'
+d_isfinite='undef'
+d_isinf='define'
+d_isnan='define'
+d_isnanl='define'
+d_killpg='define'
+d_lchown='define'
+d_ldbl_dig='define'
+d_libm_lib_version='define'
+d_link='define'
+d_localtime_r='define'
+d_locconv='define'
+d_lockf='define'
+d_longdbl='$(use sparc && echo 'undef' || echo 'define')'
+d_longlong='define'
+d_lseekproto='define'
+d_lstat='define'
+d_madvise='define'
+d_malloc_good_size='undef'
+d_malloc_size='undef'
+d_mblen='define'
+d_mbstowcs='define'
+d_mbtowc='define'
+d_memchr='define'
+d_memcmp='define'
+d_memcpy='define'
+d_memmove='define'
+d_memset='define'
+d_mkdir='define'
+d_mkdtemp='define'
+d_mkfifo='define'
+d_mkstemp='define'
+d_mkstemps='undef'
+d_mktime='define'
+d_mmap='define'
+d_modfl='define'
+d_modfl_pow32_bug='undef'
+d_modflproto='define'
+d_mprotect='define'
+d_msg='define'
+d_msg_ctrunc='define'
+d_msg_dontroute='define'
+d_msg_oob='define'
+d_msg_peek='define'
+d_msg_proxy='define'
+d_msgctl='define'
+d_msgget='define'
+d_msghdr_s='define'
+d_msgrcv='define'
+d_msgsnd='define'
+d_msync='define'
+d_munmap='define'
+d_mymalloc='undef'
+d_nice='define'
+d_nl_langinfo='define'
+d_nv_zero_is_allbits_zero='define'
+d_off64_t='define'
+d_old_pthread_create_joinable='undef'
+d_oldpthreads='undef'
+d_oldsock='undef'
+d_open3='define'
+d_pathconf='define'
+d_pause='define'
+d_perl_otherlibdirs='define'
+d_phostname='undef'
+d_pipe='define'
+d_poll='define'
+d_portable='define'
+d_procselfexe='define'
+d_pthread_atfork='define'
+d_pthread_attr_setscope='define'
+d_pthread_yield='define'
+d_pwage='undef'
+d_pwchange='undef'
+d_pwclass='undef'
+d_pwcomment='undef'
+d_pwexpire='undef'
+d_pwgecos='define'
+d_pwpasswd='define'
+d_pwquota='undef'
+d_qgcvt='define'
+d_quad='define'
+d_random_r='define'
+d_readdir64_r='define'
+d_readdir='define'
+d_readdir_r='define'
+d_readlink='define'
+d_readv='define'
+d_recvmsg='define'
+d_rename='define'
+d_rewinddir='define'
+d_rmdir='define'
+d_safebcpy='undef'
+d_safemcpy='undef'
+d_sanemcmp='define'
+d_sbrkproto='define'
+d_scalbnl='define'
+d_sched_yield='define'
+d_scm_rights='define'
+d_seekdir='define'
+d_select='define'
+d_sem='define'
+d_semctl='define'
+d_semctl_semid_ds='define'
+d_semctl_semun='define'
+d_semget='define'
+d_semop='define'
+d_sendmsg='define'
+d_setegid='define'
+d_seteuid='define'
+d_setgrent='define'
+d_setgrent_r='undef'
+d_setgrps='define'
+d_sethent='define'
+d_sethostent_r='undef'
+d_setitimer='define'
+d_setlinebuf='define'
+d_setlocale='define'
+d_setlocale_r='undef'
+d_setnent='define'
+d_setnetent_r='undef'
+d_setpent='define'
+d_setpgid='define'
+d_setpgrp2='undef'
+d_setpgrp='define'
+d_setprior='define'
+d_setproctitle='undef'
+d_setprotoent_r='undef'
+d_setpwent='define'
+d_setpwent_r='undef'
+d_setregid='define'
+d_setresgid='define'
+d_setresuid='define'
+d_setreuid='define'
+d_setrgid='undef'
+d_setruid='undef'
+d_setsent='define'
+d_setservent_r='undef'
+d_setsid='define'
+d_setvbuf='define'
+d_sfio='undef'
+d_shm='define'
+d_shmat='define'
+d_shmatprototype='define'
+d_shmctl='define'
+d_shmdt='define'
+d_shmget='define'
+d_sigaction='define'
+d_sigprocmask='define'
+d_sigsetjmp='define'
+d_sockatmark='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_sockatmarkproto='$(use elibc_uclibc && echo 'undef' || echo 'define')'
+d_socket='define'
+d_socklen_t='define'
+d_sockpair='define'
+d_socks5_init='undef'
+d_sprintf_returns_strlen='define'
+d_sqrtl='define'
+d_srand48_r='define'
+d_srandom_r='define'
+d_sresgproto='define'
+d_sresuproto='define'
+d_statblks='define'
+d_statfs_f_flags='undef'
+d_statfs_s='define'
+d_statvfs='define'
+d_stdio_cnt_lval='undef'
+d_stdio_ptr_lval='undef'
+d_stdio_ptr_lval_nochange_cnt='undef'
+d_stdio_ptr_lval_sets_cnt='undef'
+d_stdio_stream_array='undef'
+d_stdiobase='undef'
+d_stdstdio='undef'
+d_strchr='define'
+d_strcoll='define'
+d_strctcpy='define'
+d_strerrm='strerror(e)'
+d_strerror='define'
+d_strerror_r='define'
+d_strftime='define'
+d_strlcat='undef'
+d_strlcpy='undef'
+d_strtod='define'
+d_strtol='define'
+d_strtold='define'
+d_strtoll='define'
+d_strtoq='define'
+d_strtoul='define'
+d_strtoull='define'
+d_strtouq='define'
+d_strxfrm='define'
+d_suidsafe='undef'
+d_symlink='define'
+d_syscall='define'
+d_syscallproto='define'
+d_sysconf='define'
+d_sysernlst=''
+d_syserrlst='define'
+d_system='define'
+d_tcgetpgrp='define'
+d_tcsetpgrp='define'
+d_telldir='define'
+d_telldirproto='define'
+d_time='define'
+d_times='define'
+d_tm_tm_gmtoff='define'
+d_tm_tm_zone='define'
+d_tmpnam_r='define'
+d_truncate='define'
+d_ttyname_r='define'
+d_tzname='define'
+d_u32align='$(use mips && echo 'define' || echo 'undef')'
+d_ualarm='define'
+d_umask='define'
+d_uname='define'
+d_union_semun='undef'
+d_unordered='undef'
+d_unsetenv='define'
+d_usleep='define'
+d_usleepproto='define'
+d_ustat='define'
+d_vendorarch='define'
+d_vendorbin='define'
+d_vendorlib='define'
+d_vendorscript='define'
+d_vfork='undef'
+d_void_closedir='undef'
+d_voidsig='define'
+d_voidtty=''
+d_volatile='define'
+d_vprintf='define'
+d_wait4='define'
+d_waitpid='define'
+d_wcstombs='define'
+d_wctomb='define'
+d_writev='define'
+d_xenix='undef'
+date='date'
+db_hashtype='u_int32_t'
+db_prefixtype='size_t'
+db_version_major=''
+db_version_minor=''
+db_version_patch=''
+defvoidused='15'
+direntrytype='struct dirent'
+dlext='$(get_libname | cut -d . -f 2)'
+dlsrc='dl_dlopen.xs'
+doublesize='8'
+drand01='drand48()'
+drand48_r_proto='REENTRANT_PROTO_I_ST'
+dynamic_ext='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared'
+eagain='EAGAIN'
+ebcdic='undef'
+echo='echo'
+egrep='egrep'
+emacs=''
+endgrent_r_proto='0'
+endhostent_r_proto='0'
+endnetent_r_proto='0'
+endprotoent_r_proto='0'
+endpwent_r_proto='0'
+endservent_r_proto='0'
+eunicefix=':'
+exe_ext=''
+expr='expr'
+extensions='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared Errno'
+extras=''
+fflushNULL='define'
+fflushall='undef'
+find=''
+firstmakefile='makefile'
+flex=''
+fpossize='16'
+fpostype='fpos_t'
+freetype='void'
+from=':'
+full_ar='$(tc-getAR)'
+full_csh='/bin/csh'
+full_sed='/bin/sed'
+gccansipedantic=''
+gccosandvers=''
+gccversion='$($(tc-getCC) -dumpversion)'
+getgrent_r_proto='REENTRANT_PROTO_I_SBWR'
+getgrgid_r_proto='REENTRANT_PROTO_I_TSBWR'
+getgrnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+gethostbyaddr_r_proto='REENTRANT_PROTO_I_TsISBWRE'
+gethostbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
+gethostent_r_proto='REENTRANT_PROTO_I_SBWRE'
+getlogin_r_proto='REENTRANT_PROTO_I_BW'
+getnetbyaddr_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_uISBWRE')'
+getnetbyname_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_CSBWRE')'
+getnetent_r_proto='$(use elibc_uclibc && echo '0' || echo 'REENTRANT_PROTO_I_SBWRE')'
+getprotobyname_r_proto='REENTRANT_PROTO_I_CSBWR'
+getprotobynumber_r_proto='REENTRANT_PROTO_I_ISBWR'
+getprotoent_r_proto='REENTRANT_PROTO_I_SBWR'
+getpwent_r_proto='REENTRANT_PROTO_I_SBWR'
+getpwnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+getpwuid_r_proto='REENTRANT_PROTO_I_TSBWR'
+getservbyname_r_proto='REENTRANT_PROTO_I_CCSBWR'
+getservbyport_r_proto='REENTRANT_PROTO_I_ICSBWR'
+getservent_r_proto='REENTRANT_PROTO_I_SBWR'
+gidsign='1'
+gidsize='4'
+gidtype='gid_t'
+glibpth='${ROOT}usr/shlib ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir) ${ROOT}usr/$(get_libdir)/386 ${ROOT}$(get_libdir)/386 ${ROOT}usr/ccs/$(get_libdir) ${ROOT}usr/ucblib ${ROOT}usr/local/$(get_libdir)'
+gmake='gmake'
+gmtime_r_proto='REENTRANT_PROTO_S_TS'
+gnulibc_version='$(type -p ${ROOT}$(get_libdir)/libc-*.so | sed 's|.*\-\(.*\)\..*|\1|')'
+grep='grep'
+groupcat='cat /etc/group'
+groupstype='gid_t'
+gzip='gzip'
+h_fcntl='false'
+h_sysfile='true'
+hint='recommended'
+hostcat='cat /etc/hosts'
+html1dir=' '
+html1direxp=''
+html3dir=' '
+html3direxp=''
+i16size='2'
+i16type='short'
+i32size='4'
+i64size='8'
+i8size='1'
+i8type='char'
+i_arpainet='define'
+i_bsdioctl=''
+i_crypt='define'
+i_db='$(use berkdb && echo 'define' || echo 'undef')'
+i_dbm='undef'
+i_dirent='define'
+i_dld='undef'
+i_dlfcn='define'
+i_fcntl='undef'
+i_float='define'
+i_fp='undef'
+i_fp_class='undef'
+i_gdbm='$(use gdbm && echo 'define' || echo 'undef')'
+i_grp='define'
+i_ieeefp='undef'
+i_inttypes='define'
+i_langinfo='define'
+i_libutil='undef'
+i_limits='define'
+i_locale='define'
+i_machcthr='undef'
+i_malloc='define'
+i_math='define'
+i_memory='undef'
+i_mntent='define'
+i_ndbm='$( ( (use gdbm || ( use berkdb && has_version '=sys-libs/db-1*' ) ) && (! use spark || "$(tc-getCC)" != "ccc" ) ) && echo 'define' || echo 'undef')'
+i_netdb='define'
+i_neterrno='undef'
+i_netinettcp='define'
+i_niin='define'
+i_poll='define'
+i_prot='undef'
+i_pthread='define'
+i_pwd='define'
+i_rpcsvcdbm='undef'
+i_sfio='undef'
+i_sgtty='undef'
+i_shadow='define'
+i_socks='undef'
+i_stdarg='define'
+i_stddef='define'
+i_stdlib='define'
+i_string='define'
+i_sunmath='undef'
+i_sysaccess='undef'
+i_sysdir='define'
+i_sysfile='define'
+i_sysfilio='undef'
+i_sysin='undef'
+i_sysioctl='define'
+i_syslog='define'
+i_sysmman='define'
+i_sysmode='undef'
+i_sysmount='define'
+i_sysndir='undef'
+i_sysparam='define'
+i_sysresrc='define'
+i_syssecrt='undef'
+i_sysselct='define'
+i_syssockio='undef'
+i_sysstat='define'
+i_sysstatfs='define'
+i_sysstatvfs='define'
+i_systime='define'
+i_systimek='undef'
+i_systimes='define'
+i_systypes='define'
+i_sysuio='define'
+i_sysun='define'
+i_sysutsname='define'
+i_sysvfs='define'
+i_syswait='define'
+i_termio='undef'
+i_termios='define'
+i_time='define'
+i_unistd='define'
+i_ustat='define'
+i_utime='define'
+i_values='define'
+i_varargs='undef'
+i_varhdr='stdarg.h'
+i_vfork='undef'
+ignore_versioned_solibs='y'
+inc_version_list=' '
+inc_version_list_init='0'
+incpath=''
+inews=''
+installarchlib='${ALIBPTH}/${FULLARCH}'
+installbin='/usr/bin'
+installhtml1dir=''
+installhtml3dir=''
+installman1dir='/usr/share/man/man1'
+installman3dir='/usr/share/man/man3'
+installprefix='/usr'
+installprefixexp='/usr'
+installprivlib='${ALIBPTH}'
+installscript='/usr/bin'
+installsitearch='${SLIBPTH}/${FULLARCH}'
+installsitebin='/usr/bin'
+installsitehtml1dir=''
+installsitehtml3dir=''
+installsitelib='${SLIBPTH}'
+installsiteman1dir='/usr/share/man/man1'
+installsiteman3dir='/usr/share/man/man3'
+installsitescript='/usr/bin'
+installstyle='lib/perl5'
+installusrbinperl='define'
+installvendorarch='${VLIBPTH}/${FULLARCH}'
+installvendorbin='/usr/bin'
+installvendorhtml1dir=''
+installvendorhtml3dir=''
+installvendorlib='${VLIBPTH}'
+installvendorman1dir='/usr/share/man/man1'
+installvendorman3dir='/usr/share/man/man3'
+installvendorscript='/usr/bin'
+intsize='4'
+issymlink='test -h'
+ivdformat='\"ld\"'
+ivtype='long'
+known_extensions='attrs B ByteLoader Cwd Data/Dumper DB_File Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared'
+ksh=''
+ld='$(tc-getCC)'
+lddlflags='${LDFLAGS} -shared'
+ldflags='${LDFLAGS}'
+ldflags_uselargefiles='${LDFLAGS}'
+ldlibpthname='LD_LIBRARY_PATH'
+less='less'
+lib_ext='.a'
+libc='$([[ ${ELIBC} == "FreeBSD" ]] && echo ${ROOT}usr/$(get_libdir)/libc.a || type -p ${ROOT}$(get_libdir)/libc-*$(get_libname))'
+libperl='${LIBPERL}'
+libpth='${ROOT}usr/local/$(get_libdir) ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir)'
+libs='-lnsl $(use berkdb && echo -ldb) $(use gdbm && echo -lgdbm) -ldl -lm -lcrypt -lutil -lpthread -lc'
+libsdirs='${ROOT}usr/lib'
+libsfiles='libnsl.so $(use gdbm && echo libgdbm.so) $(use berkdb && echo libdb.so) libdl.so libm.so libcrypt.so libutil.so libpthread.so libc.so'
+libsfound='${ROOT}usr/$(get_libdir)/libnsl.so $(use gdbm && echo ${ROOT}usr/$(get_libdir)/libgdbm.so) $(use berkdb && echo ${ROOT}usr/$(get_libdir)/libdb.so) ${ROOT}usr/$(get_libdir)/libdl.so ${ROOT}usr/$(get_libdir)/libm.so ${ROOT}usr/$(get_libdir)/libcrypt.so ${ROOT}usr/$(get_libdir)/libutil.s ${ROOT}usr/$(get_libdir)/libpthread.so ${ROOT}usr/$(get_libdir)/libc.so'
+libspath='${ROOT}usr/local/$(get_libdir) ${ROOT}$(get_libdir) ${ROOT}usr/$(get_libdir)'
+libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util pthread c cposix posix ucb BSD'
+libswanted_uselargefiles=''
+line=''
+lint=''
+lkflags=''
+ln='ln'
+lns='/bin/ln -s'
+localtime_r_proto='REENTRANT_PROTO_S_TS'
+locincpth=''
+loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib'
+longlongsize='8'
+lp=''
+lpr=''
+ls='ls'
+lseeksize='8'
+lseektype='off_t'
+mail=''
+mailx=''
+make='make'
+make_set_make='#'
+mallocobj=''
+mallocsrc=''
+malloctype='void *'
+man1dir='/usr/share/man/man1'
+man1direxp='/usr/share/man/man1'
+man1ext='1'
+man3dir='/usr/share/man/man3'
+man3direxp='/usr/share/man/man3'
+man3ext='3pm'
+mips_type=''
+mistrustnm=''
+mkdir='mkdir'
+mmaptype='void *'
+modetype='mode_t'
+more='more'
+multiarch='undef'
+mv=''
+myarchname='${myarch%%-*}-${osname}'
+mydomain='.localdomain'
+myhostname='localhost'
+myuname='$(uname -a)'
+n='-n'
+need_va_copy='undef'
+netdb_hlen_type='size_t'
+netdb_host_type='const void *'
+netdb_name_type='const char *'
+netdb_net_type='in_addr_t'
+nm='nm'
+nm_opt=''
+nm_so_opt='--dynamic'
+nonxs_ext='Errno'
+nroff='nroff'
+nvEUformat='\"E\"'
+nvFUformat='\"F\"'
+nvGUformat='\"G\"'
+nveformat='\"e\"'
+nvfformat='\"f\"'
+nvgformat='\"g\"'
+nvsize='8'
+nvtype='double'
+o_nonblock='O_NONBLOCK'
+obj_ext='.o'
+old_pthread_create_joinable=''
+optimize='${CFLAGS}'
+orderlib='false'
+osname='${osname}'
+osvers='$(uname -r)'
+otherlibdirs=' '
+package='perl5'
+pager='/usr/bin/less'
+passcat='cat /etc/passwd'
+patchlevel='8'
+path_sep=':'
+perl=''
+perl5='$(type -p perl)'
+perl_patchlevel=''
+perladmin='root@localhost'
+perllibs='-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc'
+perlpath='$(type -p perl)'
+pg='pg'
+phostname='hostname'
+pidtype='pid_t'
+plibpth=''
+pmake=''
+pr=''
+prefix='/usr'
+prefixexp='/usr'
+privlib='${ALIBPTH}'
+privlibexp='${ALIBPTH}'
+procselfexe='\"/proc/self/exe\"'
+prototype='define'
+randbits='48'
+randfunc='drand48'
+random_r_proto='REENTRANT_PROTO_I_St'
+randseedtype='long'
+ranlib=':'
+rd_nodata='-1'
+readdir64_r_proto='REENTRANT_PROTO_I_TSR'
+readdir_r_proto='REENTRANT_PROTO_I_TSR'
+revision='5'
+rm='rm'
+rmail=''
+run=''
+runnm='false'
+sPRIEUldbl='\"LE\"'
+sPRIFUldbl='\"LF\"'
+sPRIGUldbl='\"LG\"'
+sPRIeldbl='\"Le\"'
+sPRIfldbl='\"Lf\"'
+sPRIgldbl='\"Lg\"'
+sSCNfldbl='\"Lf\"'
+sched_yield='sched_yield()'
+scriptdir='/usr/bin'
+scriptdirexp='/usr/bin'
+sed='sed'
+seedfunc='srand48'
+selecttype='fd_set *'
+sendmail=''
+setgrent_r_proto='0'
+sethostent_r_proto='0'
+setlocale_r_proto='0'
+setnetent_r_proto='0'
+setprotoent_r_proto='0'
+setpwent_r_proto='0'
+setservent_r_proto='0'
+sh='/bin/sh'
+shar=''
+sharpbang='#!'
+shmattype='void *'
+shortsize='2'
+shrpenv=''
+shsharp='true'
+sig_count='65'
+sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 6 17 29 31 '
+sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 6, 17, 29, 31, 0'
+sig_size='69'
+sig_name='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS NUM32 NUM33 RTMIN NUM35 NUM36 NUM37 NUM38 NUM39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 NUM48 NUM49 NUM50 NUM51 NUM52 NUM53 NUM54 NUM55 NUM56 NUM57 NUM58 NUM59 NUM60 NUM61 NUM62 NUM63 RTMAX IOT CLD POLL UNUSED '
+sig_name_init='\"ZERO\", \"HUP\", \"INT\", \"QUIT\", \"ILL\", \"TRAP\", \"ABRT\", \"BUS\", \"FPE\", \"KILL\", \"USR1\", \"SEGV\", \"USR2\", \"PIPE\", \"ALRM\", \"TERM\", \"STKFLT\", \"CHLD\", \"CONT\", \"STOP\", \"TSTP\", \"TTIN\", \"TTOU\", \"URG\", \"XCPU\", \"XFSZ\", \"VTALRM\", \"PROF\", \"WINCH\", \"IO\", \"PWR\", \"SYS\", \"NUM32\", \"NUM33\", \"RTMIN\", \"NUM35\", \"NUM36\", \"NUM37\", \"NUM38\", \"NUM39\", \"NUM40\", \"NUM41\", \"NUM42\", \"NUM43\", \"NUM44\", \"NUM45\", \"NUM46\", \"NUM47\", \"NUM48\", \"NUM49\", \"NUM50\", \"NUM51\", \"NUM52\", \"NUM53\", \"NUM54\", \"NUM55\", \"NUM56\", \"NUM57\", \"NUM58\", \"NUM59\", \"NUM60\", \"NUM61\", \"NUM62\", \"NUM63\", \"RTMAX\", \"IOT\", \"CLD\", \"POLL\", \"UNUSED\", 0'
+signal_t='void'
+sitearch='${SLIBPTH}/${FULLARCH}'
+sitearchexp='${SLIBPTH}/${FULLARCH}'
+sitebin='/usr/bin'
+sitebinexp='/usr/bin'
+sitehtml1dir=''
+sitehtml1direxp=''
+sitehtml3dir=''
+sitehtml3direxp=''
+sitelib='${SLIBPTH}'
+sitelib_stem='${LIBPTH}/site_perl'
+sitelibexp='${SLIBPTH}'
+siteman1dir='/usr/share/man/man1'
+siteman1direxp='/usr/share/man/man1'
+siteman3dir='/usr/share/man/man3'
+siteman3direxp='/usr/share/man/man3'
+siteprefix='/usr'
+siteprefixexp='/usr'
+sitescript='/usr/bin'
+sitescriptexp='/usr/bin'
+sizetype='size_t'
+sleep=''
+smail=''
+so='$(get_libname | cut -d . -f 2)'
+sockethdr=''
+socketlib=''
+socksizetype='socklen_t'
+sort='sort'
+spackage='Perl5'
+spitshell='cat'
+srand48_r_proto='REENTRANT_PROTO_I_LS'
+srandom_r_proto='REENTRANT_PROTO_I_TS'
+src='.'
+ssizetype='ssize_t'
+startperl='#!/usr/bin/perl'
+startsh='#!/bin/sh'
+static_ext=' '
+stdchar='char'
+stdio_base='((fp)->_IO_read_base)'
+stdio_bufsiz='((fp)->_IO_read_end - (fp)->_IO_read_base)'
+stdio_cnt='((fp)->_IO_read_end - (fp)->_IO_read_ptr)'
+stdio_filbuf=''
+stdio_ptr='((fp)->_IO_read_ptr)'
+stdio_stream_array=''
+strerror_r_proto='REENTRANT_PROTO_B_IBW'
+strings='${ROOT}usr/include/string.h'
+submit=''
+subversion='8'
+sysman='/usr/share/man/man1'
+tail=''
+tar=''
+targetarch=''
+tbl=''
+tee=''
+test='test'
+timeincl='${ROOT}usr/include/sys/time.h ${ROOT}usr/include/time.h '
+timetype='time_t'
+tmpnam_r_proto='REENTRANT_PROTO_B_B'
+to=':'
+touch='touch'
+tr='tr'
+trnl='\n'
+troff=''
+ttyname_r_proto='REENTRANT_PROTO_I_IBW'
+u16size='2'
+u16type='unsigned short'
+u32size='4'
+u64size='8'
+u8size='1'
+u8type='unsigned char'
+uidsign='1'
+uidsize='4'
+uidtype='uid_t'
+uname='uname'
+uniq='uniq'
+use5005threads='undef'
+usecrosscompile='undef'
+usedl='define'
+usefaststdio='define'
+useithreads='$(use ithreads && echo 'define' || echo 'undef')'
+uselargefiles='define'
+uselongdouble='undef'
+usemallocwrap='define'
+usemorebits='undef'
+usemultiplicity='define'
+usemymalloc='n'
+usenm='false'
+useopcode='true'
+useperlio='define'
+useposix='true'
+usereentrant='undef'
+usesfio='false'
+useshrplib='true'
+usesitecustomize='undef'
+usesocks='undef'
+usethreads='$(use ithreads && echo 'define' || echo 'undef')'
+usevendorprefix='define'
+usevfork='false'
+usrinc='${ROOT}$(get_ml_incdir | cut -d / -f 2-)'
+uuname=''
+uvXUformat='\"lX\"'
+uvoformat='\"lo\"'
+uvtype='unsigned long'
+uvuformat='\"lu\"'
+uvxformat='\"lx\"'
+vendorarch='${VLIBPTH}/${FULLARCH}'
+vendorarchexp='${VLIBPTH}/${FULLARCH}'
+vendorbin='/usr/bin'
+vendorbinexp='/usr/bin'
+vendorhtml1dir=' '
+vendorhtml1direxp=''
+vendorhtml3dir=' '
+vendorhtml3direxp=''
+vendorlib='${VLIBPTH}'
+vendorlib_stem='${LIBPTH}/vendor_perl'
+vendorlibexp='${VLIBPTH}'
+vendorman1dir='/usr/share/man/man1'
+vendorman1direxp='/usr/share/man/man1'
+vendorman3dir='/usr/share/man/man3'
+vendorman3direxp='/usr/share/man/man3'
+vendorprefix='/usr'
+vendorprefixexp='/usr'
+vendorscript='/usr/bin'
+vendorscriptexp='/usr/bin'
+version='5.8.8'
+version_patchlevel_string='version 8 subversion 8'
+versiononly='undef'
+vi=''
+voidflags='15'
+xlibpth='/usr/lib/386 /lib/386'
+yacc='yacc'
+yaccflags=''
+zcat=''
+zip='zip'
+PERL_REVISION=5
+PERL_VERSION=8
+PERL_SUBVERSION=8
+PERL_API_REVISION=5
+PERL_API_VERSION=8
+PERL_API_SUBVERSION=0
+PERL_PATCHLEVEL=
+PERL_CONFIG_SH=true
+" >> "${S}"/config.sh
+
+# Options for 64-bit architectures
+if [[ ${CHOST/64/} != ${CHOST} ]] ; then
+echo "
+alignbytes='8'
+ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -A_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo /gdbm)'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo '/gdbm')'
+cppsymbols='__amd64=1 __amd64__=1 __ELF__=1 _FILE_OFFSET_BITS=64 _GNU_SOURCE=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _LP64=1 __LP64__=1 _POSIX_SOURCE=1 _REENTRANT=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE=1 __USE_LARGEFILE64=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 __x86_64=1 __x86_64__=1 _XOPEN_SOURCE_EXTENDED=1'
+d_nv_preserves_uv='undef'
+d_u32align='define'
+getspnam_r_proto='REENTRANT_PROTO_I_CSBWR'
+gidformat='\"u\"'
+i32type='int'
+i64type='long'
+ivsize='8'
+longdblsize='16'
+longsize='8'
+nv_preserves_uv_bits='53'
+ptrsize='8'
+quadkind='2'
+quadtype='long'
+uquadtype='unsigned long'
+sPRIXU64='\"lX\"'
+sPRId64='\"ld\"'
+sPRIi64='\"li\"'
+sPRIo64='\"lo\"'
+sPRIu64='\"lu\"'
+sPRIx64='\"lx\"'
+selectminbits='64'
+sizesize='8'
+u32type='unsigned int'
+u64type='unsigned long'
+uidformat='\"u\"'
+uquadtype='unsigned long'
+use64bitall='define'
+use64bitint='define'
+uvsize='8'
+" >> "${S}"/config.sh
+
+
+if [[ $(tc-endian) == "little" ]] ; then
+
+# Options for 64-bit little-endian architectures
+echo "
+byteorder='12345678'
+" >> "${S}"/config.sh
+
+ else
+
+# Options for 64-bit big-endian architectures
+echo "
+byteorder='87654321'
+" >> "${S}"/config.sh
+
+fi
+
+
+else
+
+# Options for 32-bit architectures
+echo "
+alignbytes='4'
+ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo /gdbm)'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I${ROOT}$(get_ml_incdir | cut -d / -f 2-)$(use gdbm && echo '/gdbm')'
+cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 _GNU_SOURCE=1 i386=1 __i386=1 __i386__=1 __i486=1 __i486__=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _POSIX_SOURCE=1 _REENTRANT=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE=1 __USE_LARGEFILE64=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 _XOPEN_SOURCE_EXTENDED=1'
+d_nv_preserves_uv='define'
+d_u32align='undef'
+getspnam_r_proto='0'
+gidformat='\"lu\"'
+i32type='long'
+i64type='long long'
+ivsize='4'
+longdblsize='12'
+longsize='4'
+nv_preserves_uv_bits='32'
+ptrsize='4'
+quadkind='3'
+quadtype='long long'
+uquadtype='unsigned long long'
+sPRIXU64='\"LX\"'
+sPRId64='\"Ld\"'
+sPRIi64='\"Li\"'
+sPRIo64='\"Lo\"'
+sPRIu64='\"Lu\"'
+sPRIx64='\"Lx\"'
+selectminbits='32'
+sizesize='4'
+u32type='unsigned long'
+u64type='unsigned long long'
+uidformat='\"lu\"'
+uquadtype='unsigned long long'
+use64bitall='undef'
+use64bitint='undef'
+uvsize='4'
+" >> "${S}"/config.sh
+
+
+if [[ $(tc-endian) == "little" ]] ; then
+
+# Options for 32-bit little-endian architectures
+echo "
+byteorder='1234'
+" >> "${S}"/config.sh
+
+else
+
+# Options for 32-bit big-endian architectures
+echo "
+byteorder='4321'
+" >> "${S}"/config.sh
+
+fi
+
+
+fi
+
+
+IFS=$IFSOLD
+}
diff --git a/sys-devel/libperl/files/letgcc-find-errno.patch b/sys-devel/libperl/files/letgcc-find-errno.patch
new file mode 100644
index 0000000..24722ee
--- /dev/null
+++ b/sys-devel/libperl/files/letgcc-find-errno.patch
@@ -0,0 +1,42 @@
+This removes all the logic that perl uses to locate an appropriate
+errno.h for the target. Instead we simple create a file that does
+
+ #include "errno.h"
+
+and use that as the file to parse. This is needed when using an
+external toolchain since perl will search in ${STAGING_INCDIR} for
+errno.h (when using gcc) and that isn't where it's located - its
+wherever the external toolchain keeps it's headers.
+
+--- perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:10:10 1.1
++++ perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:21:35
+@@ -11,8 +11,18 @@
+ open OUT, ">Errno.pm" or die "Cannot open Errno.pm: $!";
+ select OUT;
+ my $file;
+-my @files = get_files();
+-if ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
++#my @files = get_files();
++my @files = ("errno.h");
++
++if (1) {
++ open INCS, '>includes.c' or
++ die "Cannot open includes.c";
++ print INCS qq[#include "errno.h"\n];
++ close INCS;
++ process_file('includes.c');
++ unlink 'includes.c';
++}
++elsif ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
+ # MinGW complains "warning: #pragma system_header ignored outside include
+ # file" if the header files are processed individually, so include them
+ # all in .c file and process that instead.
+@@ -44,7 +54,7 @@
+ chomp($file = `cygpath -w "$file"`);
+ }
+
+- return unless defined $file and -f $file;
++# return unless defined $file and -f $file;
+ # warn "Processing $file\n";
+
+ local *FH;
diff --git a/sys-devel/libperl/files/libperl-5.8.8-CVE-2008-1927.patch b/sys-devel/libperl/files/libperl-5.8.8-CVE-2008-1927.patch
new file mode 100644
index 0000000..4700058
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-CVE-2008-1927.patch
@@ -0,0 +1,256 @@
+Fix a double free / segfault with utf8 regexps
+Debian #454792
+[rt.cpan.org #48156]
+[rt.cpan.org #40641]
+upstream change 29204
+
+UTF8_ALLOW_DEFAULT definition in utf8.h picked from upstream change 27688
+
+diff --git a/embed.fnc b/embed.fnc
+index edfbc0e..26524c7 100644
+--- a/embed.fnc
++++ b/embed.fnc
+@@ -1168,6 +1168,7 @@ Es |void |reguni |NN const struct RExC_state_t *state|UV uv|NN char *s|NN STRLE
+ Es |regnode*|regclass |NN struct RExC_state_t *state
+ ERs |I32 |regcurly |NN const char *
+ Es |regnode*|reg_node |NN struct RExC_state_t *state|U8 op
++Es |UV |reg_recode |const char value|NULLOK SV **encp
+ Es |regnode*|regpiece |NN struct RExC_state_t *state|NN I32 *flagp
+ Es |void |reginsert |NN struct RExC_state_t *state|U8 op|NN regnode *opnd
+ Es |void |regoptail |NN struct RExC_state_t *state|NN regnode *p|NN regnode *val
+diff --git a/embed.h b/embed.h
+index 2b38fd5..372b04f 100644
+--- a/embed.h
++++ b/embed.h
+@@ -1234,6 +1234,7 @@
+ #define regclass S_regclass
+ #define regcurly S_regcurly
+ #define reg_node S_reg_node
++#define reg_recode S_reg_recode
+ #define regpiece S_regpiece
+ #define reginsert S_reginsert
+ #define regoptail S_regoptail
+@@ -3277,6 +3278,7 @@
+ #define regclass(a) S_regclass(aTHX_ a)
+ #define regcurly(a) S_regcurly(aTHX_ a)
+ #define reg_node(a,b) S_reg_node(aTHX_ a,b)
++#define reg_recode(a,b) S_reg_recode(aTHX_ a,b)
+ #define regpiece(a,b) S_regpiece(aTHX_ a,b)
+ #define reginsert(a,b,c) S_reginsert(aTHX_ a,b,c)
+ #define regoptail(a,b,c) S_regoptail(aTHX_ a,b,c)
+diff --git a/pod/perldiag.pod b/pod/perldiag.pod
+index 9b3134c..7d95216 100644
+--- a/pod/perldiag.pod
++++ b/pod/perldiag.pod
+@@ -1900,6 +1900,15 @@ recognized by Perl or by a user-supplied handler. See L<attributes>.
+ (W printf) Perl does not understand the given format conversion. See
+ L<perlfunc/sprintf>.
+
++=item Invalid escape in the specified encoding in regex; marked by <-- HERE in m/%s/
++
++(W regexp) The numeric escape (for example C<\xHH>) of value < 256
++didn't correspond to a single character through the conversion
++from the encoding specified by the encoding pragma.
++The escape was replaced with REPLACEMENT CHARACTER (U+FFFD) instead.
++The <-- HERE shows in the regular expression about where the
++escape was discovered.
++
+ =item Invalid [] range "%s" in regex; marked by <-- HERE in m/%s/
+
+ (F) The range specified in a character class had a minimum character
+diff --git a/proto.h b/proto.h
+index 6d185dd..ef6c0cf 100644
+--- a/proto.h
++++ b/proto.h
+@@ -1748,6 +1748,7 @@ STATIC I32 S_regcurly(pTHX_ const char *)
+ __attribute__warn_unused_result__;
+
+ STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t *state, U8 op);
++STATIC UV S_reg_recode(pTHX_ const char value, SV **encp);
+ STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t *state, I32 *flagp);
+ STATIC void S_reginsert(pTHX_ struct RExC_state_t *state, U8 op, regnode *opnd);
+ STATIC void S_regoptail(pTHX_ struct RExC_state_t *state, regnode *p, regnode *val);
+diff --git a/regcomp.c b/regcomp.c
+index 928cf39..98d48dd 100644
+--- a/regcomp.c
++++ b/regcomp.c
+@@ -2791,6 +2791,39 @@ S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp)
+ }
+
+ /*
++ * reg_recode
++ *
++ * It returns the code point in utf8 for the value in *encp.
++ * value: a code value in the source encoding
++ * encp: a pointer to an Encode object
++ *
++ * If the result from Encode is not a single character,
++ * it returns U+FFFD (Replacement character) and sets *encp to NULL.
++ */
++STATIC UV
++S_reg_recode(pTHX_ const char value, SV **encp)
++{
++ STRLEN numlen = 1;
++ SV * const sv = sv_2mortal(newSVpvn(&value, numlen));
++ const char * const s = encp && *encp ? sv_recode_to_utf8(sv, *encp)
++ : SvPVX(sv);
++ const STRLEN newlen = SvCUR(sv);
++ UV uv = UNICODE_REPLACEMENT;
++
++ if (newlen)
++ uv = SvUTF8(sv)
++ ? utf8n_to_uvchr((U8*)s, newlen, &numlen, UTF8_ALLOW_DEFAULT)
++ : *(U8*)s;
++
++ if (!newlen || numlen != newlen) {
++ uv = UNICODE_REPLACEMENT;
++ if (encp)
++ *encp = NULL;
++ }
++ return uv;
++}
++
++/*
+ - regatom - the lowest level
+ *
+ * Optimization: gobbles an entire sequence of ordinary characters so that
+@@ -3182,6 +3215,8 @@ tryagain:
+ ender = grok_hex(p, &numlen, &flags, NULL);
+ p += numlen;
+ }
++ if (PL_encoding && ender < 0x100)
++ goto recode_encoding;
+ break;
+ case 'c':
+ p++;
+@@ -3201,6 +3236,17 @@ tryagain:
+ --p;
+ goto loopdone;
+ }
++ if (PL_encoding && ender < 0x100)
++ goto recode_encoding;
++ break;
++ recode_encoding:
++ {
++ SV* enc = PL_encoding;
++ ender = reg_recode((const char)(U8)ender, &enc);
++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
++ vWARN(p, "Invalid escape in the specified encoding");
++ RExC_utf8 = 1;
++ }
+ break;
+ case '\0':
+ if (p >= RExC_end)
+@@ -3331,32 +3377,6 @@ tryagain:
+ break;
+ }
+
+- /* If the encoding pragma is in effect recode the text of
+- * any EXACT-kind nodes. */
+- if (PL_encoding && PL_regkind[(U8)OP(ret)] == EXACT) {
+- STRLEN oldlen = STR_LEN(ret);
+- SV *sv = sv_2mortal(newSVpvn(STRING(ret), oldlen));
+-
+- if (RExC_utf8)
+- SvUTF8_on(sv);
+- if (sv_utf8_downgrade(sv, TRUE)) {
+- const char * const s = sv_recode_to_utf8(sv, PL_encoding);
+- const STRLEN newlen = SvCUR(sv);
+-
+- if (SvUTF8(sv))
+- RExC_utf8 = 1;
+- if (!SIZE_ONLY) {
+- DEBUG_r(PerlIO_printf(Perl_debug_log, "recode %*s to %*s\n",
+- (int)oldlen, STRING(ret),
+- (int)newlen, s));
+- Copy(s, STRING(ret), newlen, char);
+- STR_LEN(ret) += newlen - oldlen;
+- RExC_emit += STR_SZ(newlen) - STR_SZ(oldlen);
+- } else
+- RExC_size += STR_SZ(newlen) - STR_SZ(oldlen);
+- }
+- }
+-
+ return(ret);
+ }
+
+@@ -3734,6 +3754,8 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
+ value = grok_hex(RExC_parse, &numlen, &flags, NULL);
+ RExC_parse += numlen;
+ }
++ if (PL_encoding && value < 0x100)
++ goto recode_encoding;
+ break;
+ case 'c':
+ value = UCHARAT(RExC_parse++);
+@@ -3741,13 +3763,24 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
+ break;
+ case '0': case '1': case '2': case '3': case '4':
+ case '5': case '6': case '7': case '8': case '9':
+- {
+- I32 flags = 0;
+- numlen = 3;
+- value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
+- RExC_parse += numlen;
+- break;
+- }
++ {
++ I32 flags = 0;
++ numlen = 3;
++ value = grok_oct(--RExC_parse, &numlen, &flags, NULL);
++ RExC_parse += numlen;
++ if (PL_encoding && value < 0x100)
++ goto recode_encoding;
++ break;
++ }
++ recode_encoding:
++ {
++ SV* enc = PL_encoding;
++ value = reg_recode((const char)(U8)value, &enc);
++ if (!enc && SIZE_ONLY && ckWARN(WARN_REGEXP))
++ vWARN(RExC_parse,
++ "Invalid escape in the specified encoding");
++ break;
++ }
+ default:
+ if (!SIZE_ONLY && isALPHA(value) && ckWARN(WARN_REGEXP))
+ vWARN2(RExC_parse,
+diff --git a/t/uni/tr_utf8.t b/t/uni/tr_utf8.t
+index 606a84a..354156a 100755
+--- a/t/uni/tr_utf8.t
++++ b/t/uni/tr_utf8.t
+@@ -31,7 +31,7 @@ BEGIN {
+ }
+
+ use strict;
+-use Test::More tests => 7;
++use Test::More tests => 8;
+
+ use encoding 'utf8';
+
+@@ -67,4 +67,12 @@ is($str, $hiragana, "s/// # hiragana -> katakana");
+ $line =~ tr/bcdeghijklmnprstvwxyz$02578/בצדעגהיײקלמנפּרסטװשכיזשױתײחא/;
+ is($line, "aבצדעfגהיײקלמנoפqּרסuטװשכיזש1ױ34ת6ײח9", "[perl #16843]");
+ }
++
++{
++ # [perl #40641]
++ my $str = qq/Gebääääääääääääääääääääude/;
++ my $reg = qr/Gebääääääääääääääääääääude/;
++ ok($str =~ /$reg/, "[perl #40641]");
++}
++
+ __END__
+diff --git a/utf8.h b/utf8.h
+index 6d63897..3800866 100644
+--- a/utf8.h
++++ b/utf8.h
+@@ -198,6 +198,8 @@ encoded character.
+ UTF8_ALLOW_SURROGATE|UTF8_ALLOW_FFFF)
+ #define UTF8_ALLOW_ANY 0x00FF
+ #define UTF8_CHECK_ONLY 0x0200
++#define UTF8_ALLOW_DEFAULT (ckWARN(WARN_UTF8) ? 0 : \
++ UTF8_ALLOW_ANYUV)
+
+ #define UNICODE_SURROGATE_FIRST 0xD800
+ #define UNICODE_SURROGATE_LAST 0xDFFF
diff --git a/sys-devel/libperl/files/libperl-5.8.8-ccld-cflags.patch b/sys-devel/libperl/files/libperl-5.8.8-ccld-cflags.patch
new file mode 100644
index 0000000..d1fcbb4
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-ccld-cflags.patch
@@ -0,0 +1,11 @@
+--- Configure.orig 2009-11-04 11:09:08.934965499 +0100
++++ Configure 2009-11-04 11:13:19.055305854 +0100
+@@ -7617,7 +7617,7 @@
+ cat <<EOM
+ You appear to have ELF support. I'll use $cc to build dynamic libraries.
+ EOM
+- dflt="$cc"
++ dflt="$cc $optimize"
+ else
+ echo "I'll use ld to build dynamic libraries."
+ dflt='ld'
diff --git a/sys-devel/libperl/files/libperl-5.8.8-cplusplus.patch b/sys-devel/libperl/files/libperl-5.8.8-cplusplus.patch
new file mode 100644
index 0000000..064bda4
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-cplusplus.patch
@@ -0,0 +1,22 @@
+--- perl.h.orig 2006-03-29 08:53:46.000000000 -0500
++++ perl.h 2006-03-29 08:54:19.000000000 -0500
+@@ -159,7 +159,7 @@ struct perl_thread;
+ #endif
+
+ #ifndef PERL_UNUSED_DECL
+-# ifdef HASATTRIBUTE_UNUSED
++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
+ # define PERL_UNUSED_DECL __attribute__unused__
+ # else
+ # define PERL_UNUSED_DECL
+--- XSUB.h.orig 2006-03-29 08:54:24.000000000 -0500
++++ XSUB.h 2006-03-29 08:54:48.000000000 -0500
+@@ -91,7 +91,7 @@ handled automatically by C<xsubpp>.
+ #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
+ # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
+ #else
+-# ifdef HASATTRIBUTE_UNUSED
++# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
+ # define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
+ # else
+ # define XS(name) void name(pTHX_ CV* cv)
diff --git a/sys-devel/libperl/files/libperl-5.8.8-dragonfly-clean.patch b/sys-devel/libperl/files/libperl-5.8.8-dragonfly-clean.patch
new file mode 100644
index 0000000..52f32bf
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-dragonfly-clean.patch
@@ -0,0 +1,170 @@
+Index: perl-5.8.8/Configure
+===================================================================
+--- perl-5.8.8.orig/Configure 2006-01-08 14:51:03 +0000
++++ perl-5.8.8/Configure 2006-02-14 13:41:41 +0000
+@@ -3130,6 +3130,8 @@
+ dgux) osname=dgux
+ osvers="$3"
+ ;;
++ dragonfly) osname=dragonfly
++ osvers="$3" ;;
+ dynixptx*) osname=dynixptx
+ osvers=`echo "$4"|sed 's/^v//'`
+ ;;
+@@ -7889,7 +7891,7 @@
+ solaris)
+ xxx="-R $shrpdir"
+ ;;
+- freebsd|netbsd|openbsd|interix)
++ freebsd|netbsd|openbsd|dragonfly|interix)
+ xxx="-Wl,-R$shrpdir"
+ ;;
+ bsdos|linux|irix*|dec_osf|gnu*)
+Index: perl-5.8.8/Makefile.SH
+===================================================================
+--- perl-5.8.8.orig/Makefile.SH 2006-01-24 12:49:44 +0000
++++ perl-5.8.8/Makefile.SH 2006-02-14 13:46:57 +0000
+@@ -73,7 +73,7 @@
+ sunos*)
+ linklibperl="-lperl"
+ ;;
+- netbsd*|freebsd[234]*|openbsd*)
++ netbsd*|freebsd[234]*|openbsd*|dragonfly*)
+ linklibperl="-L. -lperl"
+ ;;
+ interix*)
+@@ -990,6 +990,10 @@
+ n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
+ @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
+
++.PHONY: printconfig
++printconfig:
++ @eval `$(LDLIBPTH) ./perl -Ilib -V:$(CONFIGVAR)`; echo $$$(CONFIGVAR)
++
+ .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
+ realclean _realcleaner clobber _clobber \
+ distclean veryclean _verycleaner
+Index: perl-5.8.8/hints/dragonfly.sh
+===================================================================
+--- perl-5.8.8.orig/hints/dragonfly.sh 1970-01-01 00:00:00 +0000
++++ perl-5.8.8/hints/dragonfly.sh 2006-02-14 13:15:04 +0000
+@@ -0,0 +1,118 @@
++# hints/dragonfly.sh
++#
++# This file is mostly copied from hints/freebsd.sh with the OS version
++# information taken out and only the FreeBSD-4 information intact.
++# Please check with Todd Willey <xtoddx@gmail.com> before making
++# modifications to this file.
++
++case "$osvers" in
++*) usevfork='true'
++ case "$usemymalloc" in
++ "") usemymalloc='n'
++ ;;
++ esac
++ libswanted=`echo $libswanted | sed 's/ malloc / /'`
++ ;;
++esac
++
++# Dynamic Loading flags have not changed much, so they are separated
++# out here to avoid duplicating them everywhere.
++case "$osvers" in
++*)
++ objformat=`/usr/bin/objformat`
++ if [ x$objformat = xelf ]; then
++ libpth="/usr/lib /usr/local/lib"
++ glibpth="/usr/lib /usr/local/lib"
++ ldflags="-Wl,-E "
++ lddlflags="-shared "
++ else
++ if [ -e /usr/lib/aout ]; then
++ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
++ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
++ fi
++ lddlflags='-Bshareable'
++ fi
++ cccdlflags='-DPIC -fPIC'
++ ;;
++esac
++
++case "$osvers" in
++*)
++ ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
++ if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
++ usenm=false
++ fi
++ ;;
++esac
++
++cat <<'EOM' >&4
++
++Some users have reported that Configure halts when testing for
++the O_NONBLOCK symbol with a syntax error. This is apparently a
++sh error. Rerunning Configure with ksh apparently fixes the
++problem. Try
++ ksh Configure [your options]
++
++EOM
++
++# From: Anton Berezin <tobez@plab.ku.dk>
++# To: perl5-porters@perl.org
++# Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
++# Date: 30 Nov 1998 19:46:24 +0100
++# Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk>
++
++signal_t='void'
++d_voidsig='define'
++
++# This script UU/usethreads.cbu will get 'called-back' by Configure
++# after it has prompted the user for whether to use threads.
++cat > UU/usethreads.cbu <<'EOCBU'
++case "$usethreads" in
++$define|true|[yY]*)
++ lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
++ case "$osvers" in
++ *)
++ if [ ! -r "$lc_r" ]; then
++ cat <<EOM >&4
++POSIX threads should be supported by FreeBSD $osvers --
++but your system is missing the shared libc_r.
++(/sbin/ldconfig -r doesn't find any).
++
++Consider using the latest STABLE release.
++EOM
++ exit 1
++ fi
++ case "$osvers" in
++ *) ldflags="-pthread $ldflags"
++ ;;
++ esac
++ # Both in 4.x and 5.x gethostbyaddr_r exists but
++ # it is "Temporary function, not threadsafe"...
++ # Presumably earlier it didn't even exist.
++ d_gethostbyaddr_r="undef"
++ d_gethostbyaddr_r_proto="0"
++ ;;
++
++ esac
++
++ set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
++ shift
++ libswanted="$*"
++ # Configure will probably pick the wrong libc to use for nm scan.
++ # The safest quick-fix is just to not use nm at all...
++ usenm=false
++
++ unset lc_r
++
++ # Even with the malloc mutexes the Perl malloc does not
++ # seem to be threadsafe in FreeBSD?
++ case "$usemymalloc" in
++ '') usemymalloc=n ;;
++ esac
++esac
++EOCBU
++
++# malloc wrap works
++case "$usemallocwrap" in
++'') usemallocwrap='define' ;;
++esac
+
diff --git a/sys-devel/libperl/files/libperl-5.8.8-fbsdhints.patch b/sys-devel/libperl/files/libperl-5.8.8-fbsdhints.patch
new file mode 100644
index 0000000..7dc1a65
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-fbsdhints.patch
@@ -0,0 +1,57 @@
+Index: perl-5.8.8/hints/freebsd.sh
+===================================================================
+--- perl-5.8.8.orig/hints/freebsd.sh
++++ perl-5.8.8/hints/freebsd.sh
+@@ -88,6 +88,8 @@ case "$osvers" in
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
+ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
+ libswanted=`echo $libswanted | sed 's/ iconv / /'`
+ d_setregid='define'
+@@ -102,6 +104,10 @@ case "$osvers" in
+ ;;
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
++ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ iconv / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ ;;
+ esac
+
+@@ -116,17 +122,17 @@ case "$osvers" in
+
+ *)
+ objformat=`/usr/bin/objformat`
+- if [ x$objformat = xelf ]; then
+- libpth="/usr/lib /usr/local/lib"
+- glibpth="/usr/lib /usr/local/lib"
+- ldflags="-Wl,-E "
+- lddlflags="-shared "
+- else
++ if [ x$objformat = xaout ]; then
+ if [ -e /usr/lib/aout ]; then
+ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ fi
+ lddlflags='-Bshareable'
++ else
++ libpth="/usr/lib /usr/local/lib"
++ glibpth="/usr/lib /usr/local/lib"
++ ldflags="-Wl,-E"
++ lddlflags="-shared "
+ fi
+ cccdlflags='-DPIC -fPIC'
+ ;;
+@@ -137,7 +143,7 @@ case "$osvers" in
+
+ *)
+ ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
+- if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
++ if /usr/bin/file -L /usr/lib/libc.so | grep -vq "not stripped" ; then
+ usenm=false
+ fi
+ ;;
diff --git a/sys-devel/libperl/files/libperl-5.8.8-gcc42-command-line.patch b/sys-devel/libperl/files/libperl-5.8.8-gcc42-command-line.patch
new file mode 100644
index 0000000..6904136
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-gcc42-command-line.patch
@@ -0,0 +1,11 @@
+diff -Naur perl-5.8.8-orig/makedepend.SH perl-5.8.8/makedepend.SH
+--- perl-5.8.8-orig/makedepend.SH 2006-10-01 20:05:40.000000000 -0600
++++ perl-5.8.8/makedepend.SH 2006-10-01 20:07:03.000000000 -0600
+@@ -167,6 +167,7 @@
+ -e '/^#.*<builtin>/d' \
+ -e '/^#.*<built-in>/d' \
+ -e '/^#.*<command line>/d' \
++ -e '/^#.*<command-line>/d' \
+ -e '/^#.*"-"/d' \
+ -e '/: file path prefix .* never used$/d' \
+ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
diff --git a/sys-devel/libperl/files/libperl-5.8.8-lib64.patch b/sys-devel/libperl/files/libperl-5.8.8-lib64.patch
new file mode 100644
index 0000000..dcc9184
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-lib64.patch
@@ -0,0 +1,96 @@
+--- Configure.orig 2006-02-03 16:15:00.000000000 -0500
++++ Configure 2006-02-03 16:25:04.000000000 -0500
+@@ -1256,17 +1256,24 @@ locincpth="$locincpth /opt/gnu/include /
+ : no include file wanted by default
+ inclwanted=''
+
++: determine libdir name
++: Should be */lib64 on x86-64, sparc64, ppc64
++case `arch` in
++ x86_64) lib='lib64';;
++ *) lib='lib';;
++esac
++
+ groupstype=''
+ libnames=''
+ : change the next line if compiling for Xenix/286 on Xenix/386
+ xlibpth='/usr/lib/386 /lib/386'
+ : Possible local library directories to search.
+-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
+-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
++loclibpth="/usr/local/$lib /opt/local/$lib /usr/gnu/$lib"
++loclibpth="$loclibpth /opt/gnu/$lib /usr/GNU/$lib /opt/GNU/$lib"
+
+ : general looking path for locating libraries
+-glibpth="/lib /usr/lib $xlibpth"
+-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
++glibpth="/$lib /usr/$lib $xlibpth"
++glibpth="$glibpth /usr/ccs/$lib /usr/ucblib /usr/local/$lib"
+ test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
+ test -f /shlib/libc.so && glibpth="/shlib $glibpth"
+
+@@ -5951,8 +5958,8 @@ fi
+ : Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
+ case "$installstyle" in
+ '') case "$prefix" in
+- *perl*) dflt='lib';;
+- *) dflt='lib/perl5' ;;
++ *perl*) dflt='lib64';;
++ *) dflt='lib64/perl5' ;;
+ esac
+ ;;
+ *) dflt="$installstyle" ;;
+@@ -5968,8 +5975,8 @@ installstyle=$dflt
+ : /opt/perl/lib/perl5... would be redundant.
+ : The default "style" setting is made in installstyle.U
+ case "$installstyle" in
+-*lib/perl5*) set dflt privlib lib/$package/$version ;;
+-*) set dflt privlib lib/$version ;;
++*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
++*) set dflt privlib lib64/$version ;;
+ esac
+ eval $prefixit
+ $cat <<EOM
+@@ -6471,8 +6478,8 @@ siteprefixexp="$ansexp"
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$sitelib" in
+ '') case "$installstyle" in
+- *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
+- *) dflt=$siteprefix/lib/site_$prog/$version ;;
++ *lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
++ *) dflt=$siteprefix/lib64/site_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$sitelib"
+@@ -6598,8 +6605,8 @@ case "$vendorprefix" in
+ '')
+ prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ case "$installstyle" in
+- *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
+- *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
++ *lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
++ *) dflt=$vendorprefix/lib64/vendor_$prog/$version ;;
+ esac
+ ;;
+ *) dflt="$vendorlib"
+@@ -10556,9 +10563,9 @@ else
+ else
+ for net in net socket
+ do
+- if test -f /usr/lib/lib$net$_a; then
+- ( ($nm $nm_opt /usr/lib/lib$net$_a | eval $nm_extract) || \
+- $ar t /usr/lib/lib$net$_a) 2>/dev/null >> libc.list
++ if test -f /usr/$lib/lib$net$_a; then
++ ( ($nm $nm_opt /usr/$lib/lib$net$_a | eval $nm_extract) || \
++ $ar t /usr/$lib/lib$net$_a) 2>/dev/null >> libc.list
+ if $contains socket libc.list >/dev/null 2>&1; then
+ d_socket="$define"
+ socketlib="-l$net"
+@@ -21677,6 +21684,7 @@ ldflags='$ldflags'
+ ldflags_uselargefiles='$ldflags_uselargefiles'
+ ldlibpthname='$ldlibpthname'
+ less='$less'
++lib='$lib'
+ lib_ext='$lib_ext'
+ libc='$libc'
+ libperl='$libperl'
diff --git a/sys-devel/libperl/files/libperl-5.8.8-makedepend-syntax.patch b/sys-devel/libperl/files/libperl-5.8.8-makedepend-syntax.patch
new file mode 100644
index 0000000..147d499
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-makedepend-syntax.patch
@@ -0,0 +1,11 @@
+--- perl-5.8.8/makedepend.SH
++++ perl-5.8.8/makedepend.SH
+@@ -128,7 +128,7 @@
+ *.y) filebase=`basename $file .y` ;;
+ esac
+ case "$file" in
+- */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;;
++ */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;;
+ *) finc= ;;
+ esac
+ $echo "Finding dependencies for $filebase$_o."
diff --git a/sys-devel/libperl/files/libperl-5.8.8-reorder-INC.patch b/sys-devel/libperl/files/libperl-5.8.8-reorder-INC.patch
new file mode 100644
index 0000000..11c5692
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-reorder-INC.patch
@@ -0,0 +1,93 @@
+--- perl.c.orig 2006-01-24 09:57:33.000000000 -0500
++++ perl.c 2006-01-24 10:03:15.000000000 -0500
+@@ -4777,9 +4777,9 @@ S_init_perllib(pTHX)
+ incpush(APPLLIB_EXP, TRUE, TRUE, TRUE);
+ #endif
+
+-#ifdef ARCHLIB_EXP
+- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
+-#endif
++ /* for configuration where /usr is mounted ro (CPAN::Config, Net::Config) */
++ incpush("/etc/perl", FALSE, FALSE, TRUE);
++
+ #ifdef MACOS_TRADITIONAL
+ {
+ Stat_t tmpstatbuf;
+@@ -4806,51 +4806,58 @@ S_init_perllib(pTHX)
+ #endif
+ #if defined(WIN32)
+ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE);
+-#else
+- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
+ #endif
+
+-#ifdef SITEARCH_EXP
+- /* sitearch is always relative to sitelib on Windows for
++#ifdef PERL_VENDORARCH_EXP
++ /* vendorarch is always relative to vendorlib on Windows for
+ * DLL-based path intuition to work correctly */
+ # if !defined(WIN32)
+- incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
++ incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef SITELIB_EXP
++#ifdef PERL_VENDORLIB_EXP
+ # if defined(WIN32)
+- /* this picks up sitearch as well */
+- incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
++ incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
+ # else
+- incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
++ incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
+- incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
++#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
++ incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
+ #endif
+
+-#ifdef PERL_VENDORARCH_EXP
+- /* vendorarch is always relative to vendorlib on Windows for
++#ifdef SITEARCH_EXP
++ /* sitearch is always relative to sitelib on Windows for
+ * DLL-based path intuition to work correctly */
+ # if !defined(WIN32)
+- incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE);
++ incpush(SITEARCH_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef PERL_VENDORLIB_EXP
++#ifdef SITELIB_EXP
+ # if defined(WIN32)
+- incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE); /* this picks up vendorarch as well */
++ /* this picks up sitearch as well */
++ incpush(SITELIB_EXP, TRUE, FALSE, TRUE);
+ # else
+- incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE);
++ incpush(SITELIB_EXP, FALSE, FALSE, TRUE);
+ # endif
+ #endif
+
+-#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
+- incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE);
++#ifdef SITELIB_STEM /* Search for version-specific dirs below here */
++ incpush(SITELIB_STEM, FALSE, TRUE, TRUE);
+ #endif
+
++ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE);
++ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE);
++
++ /* Non-versioned site directory for local modules and for
++ compatability with the previous packages' site dirs */
++
++ incpush("/usr/local/lib/site_perl", TRUE, FALSE, TRUE);
++
++
+ #ifdef PERL_OTHERLIBDIRS
+ incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE);
+ #endif
diff --git a/sys-devel/libperl/files/libperl-5.8.8-utf8-boundary.patch b/sys-devel/libperl/files/libperl-5.8.8-utf8-boundary.patch
new file mode 100644
index 0000000..d0efa3f
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-5.8.8-utf8-boundary.patch
@@ -0,0 +1,57 @@
+--- regcomp.c 2006-01-08 12:59:27.000000000 -0800
++++ regcomp.c 2007-10-05 12:07:55.000000000 -0700
+@@ -135,7 +135,8 @@
+ I32 extralen;
+ I32 seen_zerolen;
+ I32 seen_evals;
+- I32 utf8;
++ I32 utf8; /* pattern is utf8 or not */
++ I32 orig_utf8; /* pattern was originally utf8 */
+ #if ADD_TO_REGEXEC
+ char *starttry; /* -Dr: where regtry was called. */
+ #define RExC_starttry (pRExC_state->starttry)
+@@ -161,6 +162,7 @@
+ #define RExC_seen_zerolen (pRExC_state->seen_zerolen)
+ #define RExC_seen_evals (pRExC_state->seen_evals)
+ #define RExC_utf8 (pRExC_state->utf8)
++#define RExC_orig_utf8 (pRExC_state->orig_utf8)
+
+ #define ISMULT1(c) ((c) == '*' || (c) == '+' || (c) == '?')
+ #define ISMULT2(s) ((*s) == '*' || (*s) == '+' || (*s) == '?' || \
+@@ -1749,15 +1751,17 @@
+ if (exp == NULL)
+ FAIL("NULL regexp argument");
+
+- RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
++ RExC_orig_utf8 = RExC_utf8 = pm->op_pmdynflags & PMdf_CMP_UTF8;
+
+- RExC_precomp = exp;
+ DEBUG_r({
+ if (!PL_colorset) reginitcolors();
+ PerlIO_printf(Perl_debug_log, "%sCompiling REx%s `%s%*s%s'\n",
+ PL_colors[4],PL_colors[5],PL_colors[0],
+- (int)(xend - exp), RExC_precomp, PL_colors[1]);
++ (int)(xend - exp), exp, PL_colors[1]);
+ });
++
++redo_first_pass:
++ RExC_precomp = exp;
+ RExC_flags = pm->op_pmflags;
+ RExC_sawback = 0;
+
+@@ -1783,6 +1787,17 @@
+ RExC_precomp = Nullch;
+ return(NULL);
+ }
++ if (RExC_utf8 && !RExC_orig_utf8) {
++ STRLEN len = xend-exp;
++ DEBUG_r(PerlIO_printf(Perl_debug_log,
++ "UTF8 mismatch! Converting to utf8 for resizing and compile\n"));
++ exp = (char*)Perl_bytes_to_utf8(aTHX_ (U8*)exp, &len);
++ xend = exp + len;
++ RExC_orig_utf8 = RExC_utf8;
++ SAVEFREEPV(exp);
++ goto redo_first_pass;
++ }
++
+
diff --git a/sys-devel/libperl/files/libperl-create-libperl-soname.patch b/sys-devel/libperl/files/libperl-create-libperl-soname.patch
new file mode 100644
index 0000000..4aa8f36
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-create-libperl-soname.patch
@@ -0,0 +1,11 @@
+--- Makefile.SH.orig 2003-07-10 14:59:04.000000000 -0700
++++ Makefile.SH 2003-07-10 15:14:08.000000000 -0700
+@@ -494,7 +494,7 @@
+ case "$useshrplib" in
+ true)
+ $spitshell >>Makefile <<'!NO!SUBS!'
+- $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs)
++ $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+ !NO!SUBS!
+ case "$osname" in
+ aix)
diff --git a/sys-devel/libperl/files/libperl-noksh.patch b/sys-devel/libperl/files/libperl-noksh.patch
new file mode 100644
index 0000000..4c33b3e
--- /dev/null
+++ b/sys-devel/libperl/files/libperl-noksh.patch
@@ -0,0 +1,16 @@
+diff -burN perl-5.8.4.orig/Configure perl-5.8.4/Configure
+--- perl-5.8.4.orig/Configure 2004-04-01 05:48:18.000000000 -0800
++++ perl-5.8.4/Configure 2004-06-09 12:02:54.694172368 -0700
+@@ -164,6 +164,12 @@
+ ;;
+ esac
+
++# 2004.06.09 rac
++# having $newsh persist as ksh here is bad news if ksh doesn't really
++# exist. this causes us to toss away a perfectly good working test in
++# bash in favour of more exotic external options. see bug 42665.
++test -x "${newsh}" || unset newsh
++
+ : if needed set CDPATH to a harmless value that is not chatty
+ : avoid bash 2.02 problems with empty CDPATH.
+ case "$CDPATH" in
diff --git a/sys-devel/libperl/files/native-perlinc.patch b/sys-devel/libperl/files/native-perlinc.patch
new file mode 100644
index 0000000..6dc4b95
--- /dev/null
+++ b/sys-devel/libperl/files/native-perlinc.patch
@@ -0,0 +1,24 @@
+Index: perl-5.8.8/lib/ExtUtils/MM_Unix.pm
+===================================================================
+--- perl-5.8.8.orig/lib/ExtUtils/MM_Unix.pm 2008-10-31 22:01:35.000000000 +0000
++++ perl-5.8.8/lib/ExtUtils/MM_Unix.pm 2008-11-08 16:01:12.000000000 +0000
+@@ -1597,6 +1597,19 @@
+ $self->{PERL_LIB} ||= $Config{privlibexp};
+ $self->{PERL_ARCHLIB} ||= $Config{archlibexp};
+ $self->{PERL_INC} = $self->catdir("$self->{PERL_ARCHLIB}","CORE"); # wild guess for now
++ # Check for environment override so we'll find the headers in the correct place
++ if (defined $ENV{PERL_LIB})
++ {
++ $self->{PERL_LIB} = $ENV{PERL_LIB};
++ }
++ if (defined $ENV{PERL_ARCHLIB})
++ {
++ $self->{PERL_ARCHLIB} = $ENV{PERL_ARCHLIB};
++ }
++ if (defined $ENV{PERL_INC})
++ {
++ $self->{PERL_INC} = $ENV{PERL_INC};
++ }
+ my $perl_h;
+
+ if (not -f ($perl_h = $self->catfile($self->{PERL_INC},"perl.h"))
diff --git a/sys-devel/libperl/files/perl-configpm-switch.patch b/sys-devel/libperl/files/perl-configpm-switch.patch
new file mode 100644
index 0000000..b04009c
--- /dev/null
+++ b/sys-devel/libperl/files/perl-configpm-switch.patch
@@ -0,0 +1,33 @@
+This patch enables the switching of configuration files between Config_heavy.pl and
+{PERL_ARCHLIB}/Config_heavy.pl by setting the environment variables
+PERL_ARCHLIB - the later containing settings for the target while
+the former contains those for the host. This will allow cpan.bbclass
+to use the settings appropriate for the native and/or target builds
+as required. This also disables the use of the cache since the cached
+values would be valid for the host only.
+
+--- perl-5.8.8/configpm 2007/04/30 03:10:43 1.1
++++ perl-5.8.8/configpm 2007/04/30 03:11:56
+@@ -374,7 +374,7 @@
+ my($self, $key) = @_;
+
+ # check for cached value (which may be undef so we use exists not defined)
+- return $self->{$key} if exists $self->{$key};
++ #return $self->{$key} if exists $self->{$key};
+
+ return $self->fetch_string($key);
+ }
+@@ -530,7 +530,12 @@
+ sub DESTROY { }
+
+ sub AUTOLOAD {
+- require 'Config_heavy.pl';
++ my $cfgfile = 'Config_heavy.pl';
++ if (defined $ENV{PERL_ARCHLIB} )
++ {
++ $cfgfile = "$ENV{PERL_ARCHLIB}/Config_heavy.pl";
++ }
++ require $cfgfile;
+ goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
+ die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
+ }
diff --git a/sys-devel/libperl/files/perl-dynloader.patch b/sys-devel/libperl/files/perl-dynloader.patch
new file mode 100644
index 0000000..1d88514
--- /dev/null
+++ b/sys-devel/libperl/files/perl-dynloader.patch
@@ -0,0 +1,23 @@
+Allow the location that .so files are searched for for dynamic
+loading to be changed via an environment variable. This is to allow
+us to load .so's from the host system while building for the target
+system.
+
+--- perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:03:08 1.1
++++ perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:41:28
+@@ -65,6 +65,15 @@
+ print OUT <<'EOT';
+ my $modpname = join('/',@modparts);
+ my $modlibname = (caller())[1];
++ # OE: Allow env to form dynamic loader to look in a different place
++ # This is so it finds the host .so files, not the targets
++ if (defined $ENV{PERLHOSTLIB})
++ {
++ my $hostlib = $ENV{PERLHOSTLIB};
++ print STDERR "*** Module name IN: $modlibname\n";
++ $modlibname =~ s#(?<!/)(\.\./)*lib/#$hostlib/#g;
++ print STDERR "*** Module name OUT: $modlibname\n";
++ }
+ my $c = @modparts;
+ $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename
+ my $file = "$modlibname/auto/$modpname/$modfname.$dl_dlext";
diff --git a/sys-devel/libperl/files/perl-hppa-pa7200-configure.patch b/sys-devel/libperl/files/perl-hppa-pa7200-configure.patch
new file mode 100644
index 0000000..396209a
--- /dev/null
+++ b/sys-devel/libperl/files/perl-hppa-pa7200-configure.patch
@@ -0,0 +1,11 @@
+--- Configure.orig 2006-06-02 13:14:22.000000000 -0500
++++ Configure 2006-06-02 13:07:03.000000000 -0500
+@@ -2967,7 +2967,7 @@
+ : Try to determine whether config.sh was made on this system
+ case "$config_sh" in
+ '')
+-myuname=`$uname -a 2>/dev/null`
++myuname=`$uname -a | $sed -e "s/'//" 2>/dev/null`
+ $test -z "$myuname" && myuname=`hostname 2>/dev/null`
+ # tr '[A-Z]' '[a-z]' would not work in EBCDIC
+ # because the A-Z/a-z are not consecutive.
diff --git a/sys-devel/libperl/files/perl-moreconfig.patch b/sys-devel/libperl/files/perl-moreconfig.patch
new file mode 100644
index 0000000..590c725
--- /dev/null
+++ b/sys-devel/libperl/files/perl-moreconfig.patch
@@ -0,0 +1,16 @@
+We need ld in the fake config library, but it's not included by default. So
+expand the number of items included. While this works it indicates that the
+rest of the config items are not being picked up and/or are being picked up
+from the host. More investigation needed.
+
+--- perl-5.8.8/configpm 2007/04/20 09:48:05 1.1
++++ perl-5.8.8/configpm 2007/04/20 09:57:12
+@@ -2,7 +2,7 @@
+ use strict;
+ use vars qw(%Config $Config_SH_expanded);
+
+-my $how_many_common = 22;
++my $how_many_common = 50;
+
+ # commonly used names to precache (and hence lookup fastest)
+ my %Common;
diff --git a/sys-devel/libperl/libperl-5.10.1.ebuild b/sys-devel/libperl/libperl-5.10.1.ebuild
new file mode 100644
index 0000000..212ed60
--- /dev/null
+++ b/sys-devel/libperl/libperl-5.10.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.10.1.ebuild,v 1.11 2010/02/03 00:15:25 hanno Exp $
+
+inherit multilib
+
+DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
+SRC_URI=""
+HOMEPAGE="http://www.gentoo.org/"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+PDEPEND=">=dev-lang/perl-5.10.1"
+
+pkg_postinst() {
+ if [[ $(readlink "${ROOT}/usr/$(get_libdir )/libperl$(get_libname)" ) == libperl$(get_libname).1 ]] ; then
+ einfo "Removing stale symbolic link: ${ROOT}usr/$(get_libdir)/libperl$(get_libname)"
+ rm "${ROOT}"/usr/$(get_libdir )/libperl$(get_libname)
+ fi
+}
diff --git a/sys-devel/libperl/libperl-5.8.8-r2.ebuild b/sys-devel/libperl/libperl-5.8.8-r2.ebuild
new file mode 100644
index 0000000..1b63b09
--- /dev/null
+++ b/sys-devel/libperl/libperl-5.8.8-r2.ebuild
@@ -0,0 +1,413 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.8.8-r2.ebuild,v 1.13 2010/02/03 00:15:25 hanno Exp $
+
+# The basic theory based on comments from Daniel Robbins <drobbins@gentoo.org>.
+#
+# We split the perl ebuild into libperl and perl. The layout is as follows:
+#
+# libperl:
+#
+# This is a slotted (SLOT=[0-9]*) ebuild, meaning we should be able to have a
+# few versions that are not binary compadible installed.
+#
+# How we get libperl.so multi-versioned, is by adding to the link command:
+#
+# -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+#
+# This gives us:
+#
+# $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT)
+# $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) \
+# -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+#
+# We then configure perl with LIBPERL set to:
+#
+# LIBPERL="libperl.so.${SLOT}.`echo ${PV} | cut -d. -f1,2`"
+#
+# Or with the variables defined in this ebuild:
+#
+# LIBPERL="libperl.so.${PERLSLOT}.${SHORT_PV}"
+#
+# The result is that our 'soname' is 'libperl.so.${PERLSLOT}' (at the time of
+# writing this for perl-5.8.0, 'libperl.so.1'), causing all apps that is linked
+# to libperl to link to 'libperl.so.${PERLSLOT}'.
+#
+# If a new perl version, perl-z.y.z comes out that have a libperl not binary
+# compatible with the previous version, we just keep the previous libperl
+# installed, and all apps linked to it will still be able to use:
+#
+# libperl.so.${PERLSLOT}'
+#
+# while the new ones will link to:
+#
+# libperl.so.$((PERLSLOT+1))'
+#
+# perl:
+#
+# Not much to this one. It compiles with a static libperl.a, and are unslotted
+# (meaning SLOT=0). We thus always have the latest *stable* perl version
+# installed, with corrisponding version of libperl. The perl ebuild will of
+# course DEPEND on libperl.
+#
+# Martin Schlemmer <azarah@gentoo.org> (28 Dec 2002).
+
+IUSE="berkdb debug gdbm ithreads"
+
+inherit eutils flag-o-matic toolchain-funcs multilib
+
+# The slot of this binary compat version of libperl.so
+PERLSLOT="1"
+
+SHORT_PV="${PV%.*}"
+MY_P="perl-${PV/_rc/-RC}"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language"
+SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2"
+HOMEPAGE="http://www.perl.org"
+SLOT="${PERLSLOT}"
+LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
+
+# rac 2004.08.06
+
+# i am not kidding here. you will forkbomb yourself out of existence
+# because make check -n wants to make miniperl, which runs itself at
+# the very end to make sure it's working right. this behaves very
+# badly when you -n it, because it won't exist and will therefore try
+# to build itself again ad infinitum.
+
+RESTRICT="test"
+
+DEPEND="berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
+
+RDEPEND="
+ berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+
+PDEPEND="~dev-lang/perl-${PV}"
+
+pkg_setup() {
+ # I think this should rather be displayed if you *have* 'ithreads'
+ # in USE if it could break things ...
+ if use ithreads
+ then
+ ewarn ""
+ ewarn "PLEASE NOTE: You are compiling perl-5.8 with"
+ ewarn "interpreter-level threading enabled."
+ ewarn "Threading is not supported by all applications "
+ ewarn "that compile against perl. You use threading at "
+ ewarn "your own discretion. "
+ ewarn ""
+ epause 10
+ fi
+}
+
+src_unpack() {
+
+ unpack ${A}
+
+ # Fix the build scripts to create libperl with a soname of ${SLOT}.
+ # We basically add:
+ #
+ # -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+ #
+ # to the line that links libperl.so, and then set LIBPERL to:
+ #
+ # LIBPERL=libperl.so.${SLOT}.`echo ${PV} | cut -d. -f1,2`
+ #
+ cd "${S}";
+ epatch "${FILESDIR}"/${PN}-create-libperl-soname.patch
+
+ # Configure makes an unwarranted assumption that /bin/ksh is a
+ # good shell. This patch makes it revert to using /bin/sh unless
+ # /bin/ksh really is executable. Should fix bug 42665.
+ # rac 2004.06.09
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-noksh.patch
+
+ # we need the same @INC-inversion magic here we do in perl
+ cd "${S}"; epatch "${FILESDIR}"/${P}-reorder-INC.patch
+
+ # makedepend.SH contains a syntax error which is ignored by bash but causes
+ # dash to abort
+ epatch "${FILESDIR}"/${P}-makedepend-syntax.patch
+
+ # On PA7200, uname -a contains a single quote and we need to
+ # filter it otherwise configure fails. See #125535.
+ epatch "${FILESDIR}"/perl-hppa-pa7200-configure.patch
+
+ use amd64 || use ppc64 && cd "${S}" && epatch "${FILESDIR}"/${P}-lib64.patch
+ [[ ${CHOST} == *-dragonfly* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-dragonfly-clean.patch
+ [[ ${CHOST} == *-freebsd* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-fbsdhints.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-cplusplus.patch
+ has_version '>=sys-devel/gcc-4.2' && epatch "${FILESDIR}"/${P}-gcc42-command-line.patch
+
+ # patch to fix bug #198196
+ # UTF/Regular expressions boundary error (CVE-2007-5116)
+ epatch "${FILESDIR}"/${P}-utf8-boundary.patch
+
+ # patch to fix bug #219203
+ epatch "${FILESDIR}"/${P}-CVE-2008-1927.patch
+
+ # Respect CFLAGS even for linking when done with compiler
+ epatch "${FILESDIR}"/${P}-ccld-cflags.patch
+
+ # Respect LDFLAGS
+ sed -e 's/$(SHRPLDFLAGS)/& $(LDFLAGS)/' -i Makefile.SH
+}
+
+myconf() {
+ myconf=( "${myconf[@]}" "$@" )
+}
+
+src_compile() {
+ declare -a myconf
+
+ # Perl has problems compiling with -Os in your flags
+ # some arches and -O do not mix :)
+ use arm && replace-flags -O? -O1
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use elibc_uclibc || replace-flags "-Os" "-O2"
+ ( gcc-specs-ssp && use ia64 ) && append-flags -fno-stack-protector
+ # This flag makes compiling crash in interesting ways
+ filter-flags "-malign-double"
+ # Fixes bug #97645
+ use ppc && filter-flags -mpowerpc-gpopt
+ # Fixes bug #143895 on gcc-4.1.1
+ filter-flags "-fsched2-use-superblocks"
+
+ export LC_ALL="C"
+
+ case ${CHOST} in
+ *-freebsd*) osname="freebsd" ;;
+ *-dragonfly*) osname="dragonfly" ;;
+ *-netbsd*) osname="netbsd" ;;
+ *-openbsd*) osname="openbsd" ;;
+ *-darwin*) osname="darwin" ;;
+
+ *) osname="linux" ;;
+ esac
+
+ if use ithreads
+ then
+ einfo "using ithreads"
+ mythreading="-multi"
+ myconf -Dusethreads
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}-thread"
+ else
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}"
+ fi
+
+ local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$myarch$mythreading "; done)
+
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
+ if use gdbm
+ then
+ mygdbm='D'
+ myndbm='D'
+ fi
+ if use berkdb
+ then
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
+ fi
+
+ myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
+
+ if use mips
+ then
+ # this is needed because gcc 3.3-compiled kernels will hang
+ # the machine trying to run this test - check with `Kumba
+ # <rac@gentoo.org> 2003.06.26
+ myconf -Dd_u32align
+ fi
+
+ if use debug
+ then
+ CFLAGS="${CFLAGS} -g"
+ myconf -DDEBUGGING
+ fi
+
+ if use sparc
+ then
+ myconf -Ud_longdbl
+ fi
+
+ if use alpha && "$(tc-getCC)" == "ccc"
+ then
+ ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
+ myconf -Ui_db -Ui_ndbm
+ fi
+
+ rm -f config.sh Policy.sh
+
+ [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
+
+ [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
+ fi
+
+ sh Configure -des \
+ -Darchname="${myarch}" \
+ -Dcccdlflags="-fPIC" \
+ -Dccdlflags="-rdynamic" \
+ -Dcc="$(tc-getCC)" \
+ -Dprefix="/usr" \
+ -Dvendorprefix="/usr" \
+ -Dsiteprefix="/usr" \
+ -Dlocincpth=" " \
+ -Doptimize="${CFLAGS}" \
+ -Duselargefiles \
+ -Duseshrplib \
+ -Dman3ext="3pm" \
+ -Dlibperl="${LIBPERL}" \
+ -Dd_dosuid \
+ -Dd_semctl_semun \
+ -Dcf_by="Gentoo" \
+ -Ud_csh \
+ "${myconf[@]}" || die "Unable to configure"
+
+ emake -j1 -f Makefile depend || die "Couldn't make libperl$(get_libname) depends"
+ emake -j1 -f Makefile LDFLAGS="${LDFLAGS}" LIBPERL=${LIBPERL} ${LIBPERL} || die "Unable to make libperl$(get_libname)"
+ mv ${LIBPERL} "${WORKDIR}"
+}
+
+src_install() {
+
+ export LC_ALL="C"
+
+ if [ "${PN}" = "libperl" ]
+ then
+ dolib.so "${WORKDIR}"/${LIBPERL}
+ dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${PERLSLOT})
+ else
+ # Need to do this, else apps do not link to dynamic version of
+ # the library ...
+ local coredir="/usr/$(get_libdir)/perl5/${PV}/${myarch}${mythreading}/CORE"
+ dodir ${coredir}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${PERLSLOT})
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
+
+ # Fix for "stupid" modules and programs
+ dodir /usr/$(get_libdir)/perl5/site_perl/${PV}/${myarch}${mythreading}
+
+ make DESTDIR="${D}" \
+ INSTALLMAN1DIR="${D}/usr/share/man/man1" \
+ INSTALLMAN3DIR="${D}/usr/share/man/man3" \
+ install || die "Unable to make install"
+
+ cp -f utils/h2ph utils/h2ph_patched
+
+ LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
+ -a -d "${D}"/usr/$(get_libdir)/perl5/${PV}/${myarch}${mythreading} <<EOF
+asm/termios.h
+syscall.h
+syslimits.h
+syslog.h
+sys/ioctl.h
+sys/socket.h
+sys/time.h
+wait.h
+EOF
+
+ # This is to fix a missing c flag for backwards compat
+ for i in `find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm"`;do
+ sed -e "s:ccflags=':ccflags='-DPERL5 :" \
+ -e "s:cppflags=':cppflags='-DPERL5 :" \
+ ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # A poor fix for the miniperl issues
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${PV}/ExtUtils/xsubpp
+ fperms 0444 /usr/$(get_libdir)/perl5/${PV}/ExtUtils/xsubpp
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
+ fperms 0755 /usr/bin/xsubpp
+
+ ./perl installman \
+ --man1dir="${D}/usr/share/man/man1" --man1ext='1' \
+ --man3dir="${D}/usr/share/man/man3" --man3ext='3'
+
+ # This removes ${D} from Config.pm and .packlist
+ for i in `find "${D}" -iname "Config.pm"` `find "${D}" -iname ".packlist"`;do
+ einfo "Removing ${D} from ${i}..."
+ sed -e "s:${D}::" ${i} > "${i}.new" &&\
+ mv "${i}.new" "${i}" || die "Sed failed"
+ done
+ fi
+
+ dodoc Changes* Artistic Copying README Todo* AUTHORS
+
+ if [ "${PN}" = "perl" ]
+ then
+ # HTML Documentation
+ # We expect errors, warnings, and such with the following.
+
+ dodir /usr/share/doc/${PF}/html
+ ./perl installhtml \
+ --podroot='.' \
+ --podpath='lib:ext:pod:vms' \
+ --recurse \
+ --htmldir="${D}/usr/share/doc/${PF}/html" \
+ --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
+ fi
+}
+
+pkg_postinst() {
+
+ # Make sure we do not have stale/invalid libperl.so 's ...
+ if [ -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" -a ! -L "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" ]
+ then
+ mv -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" "${ROOT}usr/$(get_libdir)/libperl$(get_libname).old"
+ fi
+
+ # Next bit is to try and setup the /usr/lib/libperl.so symlink
+ # properly ...
+ local libnumber="`ls -1 "${ROOT}"usr/$(get_libdir)/libperl$(get_libname ?.*) | grep -v '\.old' | wc -l`"
+ if [ "${libnumber}" -eq 1 ]
+ then
+ # Only this version of libperl is installed, so just link libperl.so
+ # to the *soname* version of it ...
+ ln -snf libperl$(get_libname ${PERLSLOT}) "${ROOT}"/usr/$(get_libdir)/libperl$(get_libname)
+ else
+ if [ -x "${ROOT}/usr/bin/perl" ]
+ then
+ # OK, we have more than one version .. first try to figure out
+ # if there are already a perl installed, if so, link libperl.so
+ # to that *soname* version of libperl.so ...
+ local perlversion="`${ROOT}/usr/bin/perl -V:version | cut -d\' -f2 | cut -d. -f1,2`"
+
+ cd "${ROOT}"/usr/$(get_libdir)
+ # Link libperl.so to the *soname* versioned lib ...
+ ln -snf `echo libperl$(get_libname ?.${perlversion}) | cut -d. -f1,2,3` libperl$(get_libname)
+ else
+ local x latest
+
+ # Nope, we are not so lucky ... try to figure out what version
+ # is the latest, and keep fingers crossed ...
+ for x in `ls -1 "${ROOT}"/usr/$(get_libdir)/libperl$(get_libname ?.*)`
+ do
+ latest="${x}"
+ done
+
+ cd "${ROOT}"/usr/$(get_libdir)
+ # Link libperl.so to the *soname* versioned lib ...
+ ln -snf `echo ${latest##*/} | cut -d. -f1,2,3` libperl$(get_libname)
+ fi
+ fi
+}
diff --git a/sys-devel/libperl/libperl-5.8.8-r3.ebuild b/sys-devel/libperl/libperl-5.8.8-r3.ebuild
new file mode 100644
index 0000000..1c0127c
--- /dev/null
+++ b/sys-devel/libperl/libperl-5.8.8-r3.ebuild
@@ -0,0 +1,453 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.8.8-r2.ebuild,v 1.12 2009/11/04 12:37:54 haubi Exp $
+
+# The basic theory based on comments from Daniel Robbins <drobbins@gentoo.org>.
+#
+# We split the perl ebuild into libperl and perl. The layout is as follows:
+#
+# libperl:
+#
+# This is a slotted (SLOT=[0-9]*) ebuild, meaning we should be able to have a
+# few versions that are not binary compadible installed.
+#
+# How we get libperl.so multi-versioned, is by adding to the link command:
+#
+# -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+#
+# This gives us:
+#
+# $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT)
+# $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) \
+# -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+#
+# We then configure perl with LIBPERL set to:
+#
+# LIBPERL="libperl.so.${SLOT}.`echo ${PV} | cut -d. -f1,2`"
+#
+# Or with the variables defined in this ebuild:
+#
+# LIBPERL="libperl.so.${PERLSLOT}.${SHORT_PV}"
+#
+# The result is that our 'soname' is 'libperl.so.${PERLSLOT}' (at the time of
+# writing this for perl-5.8.0, 'libperl.so.1'), causing all apps that is linked
+# to libperl to link to 'libperl.so.${PERLSLOT}'.
+#
+# If a new perl version, perl-z.y.z comes out that have a libperl not binary
+# compatible with the previous version, we just keep the previous libperl
+# installed, and all apps linked to it will still be able to use:
+#
+# libperl.so.${PERLSLOT}'
+#
+# while the new ones will link to:
+#
+# libperl.so.$((PERLSLOT+1))'
+#
+# perl:
+#
+# Not much to this one. It compiles with a static libperl.a, and are unslotted
+# (meaning SLOT=0). We thus always have the latest *stable* perl version
+# installed, with corrisponding version of libperl. The perl ebuild will of
+# course DEPEND on libperl.
+#
+# Martin Schlemmer <azarah@gentoo.org> (28 Dec 2002).
+
+IUSE="berkdb debug gdbm ithreads"
+
+inherit eutils flag-o-matic toolchain-funcs multilib
+
+# The slot of this binary compat version of libperl.so
+PERLSLOT="1"
+
+SHORT_PV="${PV%.*}"
+MY_P="perl-${PV/_rc/-RC}"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language"
+SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2"
+HOMEPAGE="http://www.perl.org"
+SLOT="${PERLSLOT}"
+LIBPERL="libperl$(get_libname ${PERLSLOT}.${SHORT_PV})"
+LICENSE="|| ( Artistic GPL-2 )"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
+
+# rac 2004.08.06
+
+# i am not kidding here. you will forkbomb yourself out of existence
+# because make check -n wants to make miniperl, which runs itself at
+# the very end to make sure it's working right. this behaves very
+# badly when you -n it, because it won't exist and will therefore try
+# to build itself again ad infinitum.
+
+RESTRICT="test"
+
+DEPEND="berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
+
+RDEPEND="
+ berkdb? ( sys-libs/db )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+
+PDEPEND="~dev-lang/perl-${PV}"
+
+pkg_setup() {
+ # I think this should rather be displayed if you *have* 'ithreads'
+ # in USE if it could break things ...
+ if use ithreads
+ then
+ ewarn ""
+ ewarn "PLEASE NOTE: You are compiling perl-5.8 with"
+ ewarn "interpreter-level threading enabled."
+ ewarn "Threading is not supported by all applications "
+ ewarn "that compile against perl. You use threading at "
+ ewarn "your own discretion. "
+ ewarn ""
+ epause 10
+ fi
+
+ if tc-is-cross-compiler ; then
+ ewarn "It appears you are cross-compiling ${PN}."
+ ewarn "You must have libperl-${PV} (>=libperl-5.8.8-r3) and"
+ ewarn "perl-${PV} (>=perl-5.8.8-r9) installed on your"
+ ewarn "native build system or this build might fail."
+ epause 5
+ fi
+}
+
+src_unpack() {
+
+ unpack ${A}
+
+ # Fix the build scripts to create libperl with a soname of ${SLOT}.
+ # We basically add:
+ #
+ # -Wl,-soname -Wl,libperl.so.`echo $(LIBPERL) | cut -d. -f3`
+ #
+ # to the line that links libperl.so, and then set LIBPERL to:
+ #
+ # LIBPERL=libperl.so.${SLOT}.`echo ${PV} | cut -d. -f1,2`
+ #
+ cd "${S}";
+ epatch "${FILESDIR}"/${PN}-create-libperl-soname.patch
+
+ # Configure makes an unwarranted assumption that /bin/ksh is a
+ # good shell. This patch makes it revert to using /bin/sh unless
+ # /bin/ksh really is executable. Should fix bug 42665.
+ # rac 2004.06.09
+ cd "${S}"; epatch "${FILESDIR}"/${PN}-noksh.patch
+
+ # we need the same @INC-inversion magic here we do in perl
+ cd "${S}"; epatch "${FILESDIR}"/${P}-reorder-INC.patch
+
+ # makedepend.SH contains a syntax error which is ignored by bash but causes
+ # dash to abort
+ epatch "${FILESDIR}"/${P}-makedepend-syntax.patch
+
+ # On PA7200, uname -a contains a single quote and we need to
+ # filter it otherwise configure fails. See #125535.
+ epatch "${FILESDIR}"/perl-hppa-pa7200-configure.patch
+
+ use amd64 || use ppc64 && cd "${S}" && epatch "${FILESDIR}"/${P}-lib64.patch
+ [[ ${CHOST} == *-dragonfly* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-dragonfly-clean.patch
+ [[ ${CHOST} == *-freebsd* ]] && cd "${S}" && epatch "${FILESDIR}"/${P}-fbsdhints.patch
+ cd "${S}"; epatch "${FILESDIR}"/${P}-cplusplus.patch
+ has_version '>=sys-devel/gcc-4.2' && epatch "${FILESDIR}"/${P}-gcc42-command-line.patch
+
+ # patch to fix bug #198196
+ # UTF/Regular expressions boundary error (CVE-2007-5116)
+ epatch "${FILESDIR}"/${P}-utf8-boundary.patch
+
+ # patch to fix bug #219203
+ epatch "${FILESDIR}"/${P}-CVE-2008-1927.patch
+
+ # Respect CFLAGS even for linking when done with compiler
+ epatch "${FILESDIR}"/${P}-ccld-cflags.patch
+
+ # Check the environment for {PERL_LIB}, {PERL_ARCHLIB}
+ # and {PERL_INC} and use relative headers
+ epatch "${FILESDIR}"/native-perlinc.patch
+
+ # Dynamically load modules from ${PERLHOSTLIB} to
+ # use while compiling
+ epatch "${FILESDIR}"/perl-dynloader.patch
+
+ # Use Config_heavy.pl from ${PERL_ARCHLIB}
+ epatch "${FILESDIR}"/perl-configpm-switch.patch
+
+ if tc-is-cross-compiler; then
+ # Use ${HOSTPERL}, not miniperl, for cross-compiling
+ epatch "${FILESDIR}"/Makefile.SH.patch
+
+ epatch "${FILESDIR}"/perl-moreconfig.patch
+ epatch "${FILESDIR}"/letgcc-find-errno.patch
+ fi
+
+ # Respect LDFLAGS
+ sed -e 's/$(SHRPLDFLAGS)/& $(LDFLAGS)/' -i Makefile.SH
+}
+
+myconf() {
+ myconf=( "${myconf[@]}" "$@" )
+}
+
+src_compile() {
+ declare -a myconf
+
+ # Perl has problems compiling with -Os in your flags
+ # some arches and -O do not mix :)
+ use arm && replace-flags -O? -O1
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use elibc_uclibc || replace-flags "-Os" "-O2"
+ ( gcc-specs-ssp && use ia64 ) && append-flags -fno-stack-protector
+ # This flag makes compiling crash in interesting ways
+ filter-flags "-malign-double"
+ # Fixes bug #97645
+ use ppc && filter-flags -mpowerpc-gpopt
+ # Fixes bug #143895 on gcc-4.1.1
+ filter-flags "-fsched2-use-superblocks"
+
+ export LC_ALL="C"
+
+ case ${CHOST} in
+ *-freebsd*) osname="freebsd" ;;
+ *-dragonfly*) osname="dragonfly" ;;
+ *-netbsd*) osname="netbsd" ;;
+ *-openbsd*) osname="openbsd" ;;
+ *-darwin*) osname="darwin" ;;
+
+ *) osname="linux" ;;
+ esac
+
+ if use ithreads
+ then
+ einfo "using ithreads"
+ mythreading="-multi"
+ myconf -Dusethreads
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}-thread"
+ else
+ myarch=${CHOST}
+ myarch="${myarch%%-*}-${osname}"
+ fi
+
+ local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$myarch$mythreading "; done)
+
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
+ if use gdbm
+ then
+ mygdbm='D'
+ myndbm='D'
+ fi
+ if use berkdb
+ then
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
+ fi
+
+ myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
+
+ if use mips
+ then
+ # this is needed because gcc 3.3-compiled kernels will hang
+ # the machine trying to run this test - check with `Kumba
+ # <rac@gentoo.org> 2003.06.26
+ myconf -Dd_u32align
+ fi
+
+ if use debug
+ then
+ CFLAGS="${CFLAGS} -g"
+ myconf -DDEBUGGING
+ fi
+
+ if use sparc
+ then
+ myconf -Ud_longdbl
+ fi
+
+ if use alpha && "$(tc-getCC)" == "ccc"
+ then
+ ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
+ myconf -Ui_db -Ui_ndbm
+ fi
+
+ rm -f config.sh Policy.sh
+
+ [[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
+
+ [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
+
+ if [[ $(get_libdir) != "lib" ]] ; then
+ myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
+ fi
+
+ if tc-is-cross-compiler; then
+ # ${S}/config.sh is generated from config-bits.
+ # Bash substitution is used to alter options for each build
+
+ source "${FILESDIR}"/config-bits || die "sourcing of config-bits failed"
+ make_configsh || die "make_configsh failed"
+
+ sed -i -e "s|/usr/include|${ROOT}usr/include|g" \
+ "${S}"/ext/Errno/Errno_pm.PL || die "sed of ${S}/ext/Errno/Errno_pm.PL failed"
+
+ sh Configure -S $(use debug && echo '-DDEBUGGING') || die "Unable to configure"
+ else
+ sh Configure -des \
+ -Darchname="${myarch}" \
+ -Dcccdlflags="-fPIC" \
+ -Dccdlflags="-rdynamic" \
+ -Dcc="$(tc-getCC)" \
+ -Dprefix="/usr" \
+ -Dvendorprefix="/usr" \
+ -Dsiteprefix="/usr" \
+ -Dlocincpth=" " \
+ -Doptimize="${CFLAGS}" \
+ -Duselargefiles \
+ -Duseshrplib \
+ -Dman3ext="3pm" \
+ -Dlibperl="${LIBPERL}" \
+ -Dd_dosuid \
+ -Dd_semctl_semun \
+ -Dcf_by="Gentoo" \
+ -Ud_csh \
+ "${myconf[@]}" || die "Unable to configure"
+ fi
+
+ emake -j1 -f Makefile depend || die "Couldn't make libperl$(get_libname) depends"
+ emake -j1 -f Makefile LDFLAGS="${LDFLAGS}" LIBPERL=${LIBPERL} ${LIBPERL} || die "Unable to make libperl$(get_libname)"
+ mv ${LIBPERL} "${WORKDIR}"
+}
+
+src_install() {
+
+ export LC_ALL="C"
+
+ if [ "${PN}" = "libperl" ]
+ then
+ dolib.so "${WORKDIR}"/${LIBPERL}
+ dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${PERLSLOT})
+ else
+ # Need to do this, else apps do not link to dynamic version of
+ # the library ...
+ local coredir="/usr/$(get_libdir)/perl5/${PV}/${myarch}${mythreading}/CORE"
+ dodir ${coredir}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${PERLSLOT})
+ dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
+
+ # Fix for "stupid" modules and programs
+ dodir /usr/$(get_libdir)/perl5/site_perl/${PV}/${myarch}${mythreading}
+
+ make DESTDIR="${D}" \
+ INSTALLMAN1DIR="${D}/usr/share/man/man1" \
+ INSTALLMAN3DIR="${D}/usr/share/man/man3" \
+ install || die "Unable to make install"
+
+ cp -f utils/h2ph utils/h2ph_patched
+
+ LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
+ -a -d "${D}"/usr/$(get_libdir)/perl5/${PV}/${myarch}${mythreading} <<EOF
+asm/termios.h
+syscall.h
+syslimits.h
+syslog.h
+sys/ioctl.h
+sys/socket.h
+sys/time.h
+wait.h
+EOF
+
+ # This is to fix a missing c flag for backwards compat
+ for i in `find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm"`;do
+ sed -e "s:ccflags=':ccflags='-DPERL5 :" \
+ -e "s:cppflags=':cppflags='-DPERL5 :" \
+ ${i} > ${i}.new &&\
+ mv ${i}.new ${i} || die "Sed failed"
+ done
+
+ # A poor fix for the miniperl issues
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${PV}/ExtUtils/xsubpp
+ fperms 0444 /usr/$(get_libdir)/perl5/${PV}/ExtUtils/xsubpp
+ dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
+ fperms 0755 /usr/bin/xsubpp
+
+ ./perl installman \
+ --man1dir="${D}/usr/share/man/man1" --man1ext='1' \
+ --man3dir="${D}/usr/share/man/man3" --man3ext='3'
+
+ # This removes ${D} from Config.pm and .packlist
+ for i in `find "${D}" -iname "Config.pm"` `find "${D}" -iname ".packlist"`;do
+ einfo "Removing ${D} from ${i}..."
+ sed -e "s:${D}::" ${i} > "${i}.new" &&\
+ mv "${i}.new" "${i}" || die "Sed failed"
+ done
+ fi
+
+ dodoc Changes* Artistic Copying README Todo* AUTHORS
+
+ if [ "${PN}" = "perl" ]
+ then
+ # HTML Documentation
+ # We expect errors, warnings, and such with the following.
+
+ dodir /usr/share/doc/${PF}/html
+ ./perl installhtml \
+ --podroot='.' \
+ --podpath='lib:ext:pod:vms' \
+ --recurse \
+ --htmldir="${D}/usr/share/doc/${PF}/html" \
+ --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
+ fi
+}
+
+pkg_postinst() {
+
+ # Make sure we do not have stale/invalid libperl.so 's ...
+ if [ -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" -a ! -L "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" ]
+ then
+ mv -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" "${ROOT}usr/$(get_libdir)/libperl$(get_libname).old"
+ fi
+
+ # Next bit is to try and setup the /usr/lib/libperl.so symlink
+ # properly ...
+ local libnumber="`ls -1 "${ROOT}"usr/$(get_libdir)/libperl$(get_libname ?.*) | grep -v '\.old' | wc -l`"
+ if [ "${libnumber}" -eq 1 ]
+ then
+ # Only this version of libperl is installed, so just link libperl.so
+ # to the *soname* version of it ...
+ ln -snf libperl$(get_libname ${PERLSLOT}) "${ROOT}"/usr/$(get_libdir)/libperl$(get_libname)
+ else
+ if [ -x "${ROOT}/usr/bin/perl" ]
+ then
+ # OK, we have more than one version .. first try to figure out
+ # if there are already a perl installed, if so, link libperl.so
+ # to that *soname* version of libperl.so ...
+ local perlversion="`${ROOT}/usr/bin/perl -V:version | cut -d\' -f2 | cut -d. -f1,2`"
+
+ cd "${ROOT}"/usr/$(get_libdir)
+ # Link libperl.so to the *soname* versioned lib ...
+ ln -snf `echo libperl$(get_libname ?.${perlversion}) | cut -d. -f1,2,3` libperl$(get_libname)
+ else
+ local x latest
+
+ # Nope, we are not so lucky ... try to figure out what version
+ # is the latest, and keep fingers crossed ...
+ for x in `ls -1 "${ROOT}"/usr/$(get_libdir)/libperl$(get_libname ?.*)`
+ do
+ latest="${x}"
+ done
+
+ cd "${ROOT}"/usr/$(get_libdir)
+ # Link libperl.so to the *soname* versioned lib ...
+ ln -snf `echo ${latest##*/} | cut -d. -f1,2,3` libperl$(get_libname)
+ fi
+ fi
+}
diff --git a/sys-devel/libperl/metadata.xml b/sys-devel/libperl/metadata.xml
new file mode 100644
index 0000000..30a8721
--- /dev/null
+++ b/sys-devel/libperl/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>perl@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription></longdescription>
+ <use>
+ <flag name='ithreads'>Enable Perl threads, has some compatibility problems</flag>
+ </use>
+</pkgmetadata>