summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Coie <rac@gentoo.org>2004-11-13 01:04:02 +0000
committerRobert Coie <rac@gentoo.org>2004-11-13 01:04:02 +0000
commitd80a1bbabc171bbaf98e6f6ec800d8a1f78bab2c (patch)
tree9458b7f7df980e94de63ab1e1db15a68231760f2 /dev-lang
parentRespect LDFLAGS, so we can append -Wl,-z,-now to fix QA security notices. Ma... (diff)
downloadhistorical-d80a1bbabc171bbaf98e6f6ec800d8a1f78bab2c.tar.gz
historical-d80a1bbabc171bbaf98e6f6ec800d8a1f78bab2c.tar.bz2
historical-d80a1bbabc171bbaf98e6f6ec800d8a1f78bab2c.zip
add 5.8.5-r1 with more backcompat @INC and optional testing, kill 5.8.3
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/ChangeLog9
-rw-r--r--dev-lang/perl/Manifest40
-rw-r--r--dev-lang/perl/files/digest-perl-5.8.31
-rw-r--r--dev-lang/perl/files/digest-perl-5.8.5-r11
-rw-r--r--dev-lang/perl/perl-5.8.5-r1.ebuild (renamed from dev-lang/perl/perl-5.8.3.ebuild)135
5 files changed, 122 insertions, 64 deletions
diff --git a/dev-lang/perl/ChangeLog b/dev-lang/perl/ChangeLog
index 239f6f4b60ef..d6e9754b2879 100644
--- a/dev-lang/perl/ChangeLog
+++ b/dev-lang/perl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/perl
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.91 2004/10/25 11:41:36 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/ChangeLog,v 1.92 2004/11/13 01:04:02 rac Exp $
+
+*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,
diff --git a/dev-lang/perl/Manifest b/dev-lang/perl/Manifest
index 8e8fe626ca94..b82e1caf4a07 100644
--- a/dev-lang/perl/Manifest
+++ b/dev-lang/perl/Manifest
@@ -1,37 +1,37 @@
-MD5 af123473cfd118a1ca4fbbbb6eb759f2 ChangeLog 29552
-MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
MD5 bf56ee74ad687ee93d617e0897514b11 perl-5.8.2-r1.ebuild 10010
-MD5 5f853492ce6cd1c8072971ce60778a17 perl-5.8.3.ebuild 9979
+MD5 75aaefd1d626e5848ed45e1f4ef3dbda ChangeLog 29811
+MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
+MD5 c6ad04deb0ecefb9930fba98905a200c perl-5.8.5-r1.ebuild 11595
MD5 55eb9292a050b8a1f33bdb7a3a4177aa perl-5.8.4-r1.ebuild 12148
MD5 a54ea97c178e1be3a56f3fbcc280743a perl-5.8.4.ebuild 10775
MD5 f26a32cd5257f9f0f9582cea15a1836b perl-5.8.5.ebuild 11515
+MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.2-picdl.patch 250
+MD5 8381e239056a7895edf8f3c6c05c835c files/digest-perl-5.8.2-r1 64
MD5 93155b02a7e9d3cdc6d6934ce78d9f11 files/digest-perl-5.8.4 64
+MD5 b8480b2ccbf7d5a7fe543b9e6f8dbc14 files/libperl_rebuilder 10260
+MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.3-perldoc-emptydirs.patch 489
+MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.2-reorder-INC.patch 2211
+MD5 060e9f10466fdc1268c75a7cf4dcbc7c files/perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patch 446
+MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.2-perldoc-emptydirs.patch 489
+MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.2-prelink-lpthread.patch 476
+MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.3-reorder-INC.patch 2211
+MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.3-picdl.patch 250
+MD5 803b7c028f59008ea1e6d577e5c0bab0 files/stat.t 8884
+MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.3-prelink-lpthread.patch 476
+MD5 076dcbef37263d6dd7af719b55cfc2de files/perl-5.8.4-noksh.patch 611
MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.4-perldoc-emptydirs.patch 489
MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.4-picdl.patch 250
-MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.4-reorder-INC.patch 2211
MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.4-prelink-lpthread.patch 476
-MD5 076dcbef37263d6dd7af719b55cfc2de files/perl-5.8.4-noksh.patch 611
+MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.4-reorder-INC.patch 2211
MD5 ce442db939c59218a16be167f793b817 files/perl-5.8.2-uclibc.patch 573
-MD5 93155b02a7e9d3cdc6d6934ce78d9f11 files/digest-perl-5.8.4-r1 64
-MD5 35eb3b7645102bbcc4088d900dc28984 files/digest-perl-5.8.3 64
MD5 44e1f1420947cc552c66fb434ba4c855 files/perl-5.8.4-NDBM-GDBM-compat.patch 428
-MD5 8381e239056a7895edf8f3c6c05c835c files/digest-perl-5.8.2-r1 64
-MD5 c354e2fbf8141a769c20032e94f45fd3 files/digest-perl-5.8.5 64
-MD5 b8480b2ccbf7d5a7fe543b9e6f8dbc14 files/libperl_rebuilder 10260
-MD5 060e9f10466fdc1268c75a7cf4dcbc7c files/perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patch 446
+MD5 93155b02a7e9d3cdc6d6934ce78d9f11 files/digest-perl-5.8.4-r1 64
MD5 01af75daf3d222a668059e90d78a1f9d files/perl-5.8.4-nonblock.patch 400
MD5 076dcbef37263d6dd7af719b55cfc2de files/perl-5.8.5-noksh.patch 611
MD5 01af75daf3d222a668059e90d78a1f9d files/perl-5.8.5-nonblock.patch 400
MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.5-perldoc-emptydirs.patch 489
-MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.3-perldoc-emptydirs.patch 489
-MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.3-picdl.patch 250
-MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.3-prelink-lpthread.patch 476
-MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.3-reorder-INC.patch 2211
MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.5-picdl.patch 250
MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.5-prelink-lpthread.patch 476
MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.5-reorder-INC.patch 2211
-MD5 0a28eb41f5f12ed54f025004af45c83d files/perl-5.8.2-perldoc-emptydirs.patch 489
-MD5 319b56a7ce715fb7a494fe4d5cb9474c files/perl-5.8.2-picdl.patch 250
-MD5 4e99f7529e149661372283c981cf17ff files/perl-5.8.2-prelink-lpthread.patch 476
-MD5 d9412dab085f22309997c8f08ea1ac85 files/perl-5.8.2-reorder-INC.patch 2211
-MD5 803b7c028f59008ea1e6d577e5c0bab0 files/stat.t 8884
+MD5 c354e2fbf8141a769c20032e94f45fd3 files/digest-perl-5.8.5 64
+MD5 c354e2fbf8141a769c20032e94f45fd3 files/digest-perl-5.8.5-r1 64
diff --git a/dev-lang/perl/files/digest-perl-5.8.3 b/dev-lang/perl/files/digest-perl-5.8.3
deleted file mode 100644
index 7c8f3b31b5b0..000000000000
--- a/dev-lang/perl/files/digest-perl-5.8.3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6d2b389f8c6424b7af303f417947714f perl-5.8.3.tar.gz 12002329
diff --git a/dev-lang/perl/files/digest-perl-5.8.5-r1 b/dev-lang/perl/files/digest-perl-5.8.5-r1
new file mode 100644
index 000000000000..a774272cdab6
--- /dev/null
+++ b/dev-lang/perl/files/digest-perl-5.8.5-r1
@@ -0,0 +1 @@
+MD5 49baa8d7d29b4a9713c06edeb81e6b1b perl-5.8.5.tar.gz 11930764
diff --git a/dev-lang/perl/perl-5.8.3.ebuild b/dev-lang/perl/perl-5.8.5-r1.ebuild
index a516b11915d4..5a2048d22bc7 100644
--- a/dev-lang/perl/perl-5.8.3.ebuild
+++ b/dev-lang/perl/perl-5.8.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.3.ebuild,v 1.16 2004/10/25 11:41:36 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.8.5-r1.ebuild,v 1.1 2004/11/13 01:04:02 rac Exp $
inherit eutils flag-o-matic gcc
@@ -14,14 +14,16 @@ S="${WORKDIR}/${MY_P}"
SRC_URI="ftp://ftp.perl.org/pub/CPAN/src/${MY_P}.tar.gz"
HOMEPAGE="http://www.perl.org/"
LIBPERL="libperl.so.${PERLSLOT}.${SHORT_PV}"
+
LICENSE="Artistic GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~ppc ~ppc64 ~sparc ~mips ~alpha arm ~hppa ~amd64 ~ia64 s390"
-IUSE="berkdb debug doc gdbm ithreads perlsuid"
+KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~ppc64 ~s390 ~sh"
+IUSE="berkdb debug doc gdbm ithreads perlsuid uclibc"
+PERL_OLDVERSEN="5.8.2 5.8.4"
-DEPEND="sys-apps/groff
+DEPEND="!uclibc? ( sys-apps/groff )
berkdb? ( sys-libs/db )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )
>=sys-apps/portage-2.0.48-r4
>=sys-devel/libperl-${PV}
!<dev-perl/ExtUtils-MakeMaker-6.17
@@ -29,7 +31,7 @@ DEPEND="sys-apps/groff
!<dev-perl/Test-Simple-0.47-r1"
RDEPEND=">=sys-devel/libperl-${PV}
berkdb? ( sys-libs/db )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )"
+ gdbm? ( >=sys-libs/gdbm-1.8.3 )"
pkg_setup() {
# I think this should rather be displayed if you *have* 'ithreads'
@@ -92,13 +94,41 @@ src_unpack() {
# counterproductive on a Gentoo system which has both a shared
# and static libperl, so effectively revert this here.
cd ${S}; epatch ${FILESDIR}/${P}-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}/${P}-noksh.patch
+
+ # uclibc support
+ epatch ${FILESDIR}/perl-5.8.2-uclibc.patch
+
+ # this one only affects sparc64, as best weeve and rac can tell,
+ # but seems sane for all linux. we don't have to worry about
+ # drifting into obscure SysV non-posix semantics, and the current
+ # code in IO.xs that checks for this sort of thing dies in LDAP on
+ # sparc64.
+
+ epatch ${FILESDIR}/${P}-nonblock.patch
}
-src_compile() {
- # Arm and -O do not mix :)
+src_configure() {
+
+ # this attempts to mimic (and the code is directly derived from)
+ # Configure's attempt to guess archname. it will be appended to
+ # the old versions to search.
+
+ local perlarch=$(echo $(arch)-$(uname | sed -e 's/^[^=]*=//' -e 's/\///g' \
+ | tr '[A-Z]' '[a-z]'))
+ local inclist=$(for v in $PERL_OLDVERSEN; do echo -n "$v $v/$perlarch "; done)
+
+ # some arches and -O do not mix :)
use arm && replace-flags -O? -O1
- # Perl has problems compiling with -Os in your flags
- replace-flags "-Os" "-O2"
+ use ppc && replace-flags -O? -O1
+ use ia64 && replace-flags -O? -O1
+ # Perl has problems compiling with -Os in your flags with glibc
+ use uclibc || replace-flags "-Os" "-O2"
# This flag makes compiling crash in interesting ways
filter-flags -malign-double
@@ -115,28 +145,25 @@ src_compile() {
myarch="${CHOST%%-*}-linux"
fi
+ # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
+
+ myndbm='U'
+ mygdbm='U'
+ mydb='U'
+
if use gdbm
then
- myconf="${myconf} -Di_gdbm"
+ mygdbm='D'
+ myndbm='D'
fi
if use berkdb
then
- myconf="${myconf} -Di_db"
-
- # ndbm.h is only provided by db1 (and perhaps by gdbm in
- # error). an alternate approach here would be to check for the
- # presence (or some string therein) of /usr/include/ndbm.h
- # itself.
-
- if has_version '=sys-libs/db-1*'
- then
- myconf="${myconf} -Di_ndbm"
- else
- myconf="${myconf} -Ui_ndbm"
- fi
- else
- myconf="${myconf} -Ui_db -Ui_ndbm"
+ mydb='D'
+ has_version '=sys-libs/db-1*' && myndbm='D'
fi
+
+ myconf="${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
@@ -169,13 +196,6 @@ src_compile() {
myconf="${myconf} -Ui_db -Ui_ndbm"
fi
- # These are temporary fixes. Need to edit the build so that that libraries created
- # only get compiled with -fPIC, since they get linked into shared objects, they
- # must be compiled with -fPIC. Don't have time to parse through the build system
- # at this time.
- [ "${ARCH}" = "hppa" ] && append-flags -fPIC
-# [ "${ARCH}" = "amd64" ] && append-flags -fPIC
-
sh Configure -des \
-Darchname="${myarch}" \
-Dcccdlflags='-fPIC' \
@@ -189,14 +209,31 @@ src_compile() {
-Duselargefiles \
-Dd_semctl_semun \
-Dscriptdir=/usr/bin \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dinstallman1dir=${D}/usr/share/man/man1 \
+ -Dinstallman3dir=${D}/usr/share/man/man3 \
+ -Dman1ext='1' \
-Dman3ext='3pm' \
+ -Dinc_version_list="$inclist" \
-Dcf_by='Gentoo' \
-Ud_csh \
${myconf} || die "Unable to configure"
+}
- MAKEOPTS="${MAKEOPTS} -j1" emake || die "Unable to make"
+src_compile() {
- emake -i test CCDLFLAGS=
+ # 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 uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
+ emake -i test CCDLFLAGS= || die "test failed"
}
src_install() {
@@ -214,10 +251,23 @@ src_install() {
# Fix for "stupid" modules and programs
dodir /usr/lib/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"
+ make DESTDIR="${D}" install || die "Unable to make install"
+
+ # 2004.07.28 rac
+
+ # suidperl has had a history of security trouble, and the
+ # perldelta has recommended against using it for a while. genone
+ # alerted me to the fact that the hardlinks aren't carrying
+ # through the staging directory, and we end up with four copies of
+ # perl, basically. two normal, two suid. fix this up here, and
+ # delete suidperl entirely. if this causes outrage, here's where
+ # to fix.
+
+ # Moved to a use flag enablement - bug 64823 - mcummings
+ #rm ${D}/usr/bin/sperl${PV}
+ #rm ${D}/usr/bin/suidperl
+ rm ${D}/usr/bin/perl
+ ln -s perl${PV} ${D}/usr/bin/perl
cp -f utils/h2ph utils/h2ph_patched
epatch ${FILESDIR}/perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patch
@@ -248,9 +298,6 @@ EOF
dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
fperms 0755 /usr/bin/xsubpp
- ./perl installman \
- --destdir="${D}" --man1ext='1' --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}..."
@@ -258,6 +305,10 @@ EOF
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