From 95b5952d68fd31fbe9c81806258019653d44dcf3 Mon Sep 17 00:00:00 2001 From: Tom Martin Date: Sun, 1 Aug 2004 22:35:07 +0000 Subject: Marked ~amd64, added gid patch from zope.org. Closes 48696. --- net-zope/zope/ChangeLog | 6 +++++- net-zope/zope/files/2.7.2/gid.patch | 18 ++++++++++++++++++ net-zope/zope/zope-2.7.2.ebuild | 11 +++++++++-- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 net-zope/zope/files/2.7.2/gid.patch (limited to 'net-zope') diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog index 39a8184eb0b4..586d5c650667 100644 --- a/net-zope/zope/ChangeLog +++ b/net-zope/zope/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-zope/zope # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.38 2004/07/27 16:02:41 batlogg Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.39 2004/08/01 22:35:07 slarti Exp $ + + 01 Aug 2004; Tom Martin zope-2.7.2.ebuild: + Marked ~amd64, added gid.patch. Closing bug 48696 (thanks to Markus Gapp + . 27 Jul 2004; Jodok Batlogg ; zope-2.6.4-r1.ebuild, zope-2.7.1.ebuild, zope-2.7.2.ebuild: diff --git a/net-zope/zope/files/2.7.2/gid.patch b/net-zope/zope/files/2.7.2/gid.patch new file mode 100644 index 000000000000..bdfe2b81aa30 --- /dev/null +++ b/net-zope/zope/files/2.7.2/gid.patch @@ -0,0 +1,18 @@ +--- lib/Components/initgroups/initgroups.c ++++ lib/Components/initgroups/initgroups.c +@@ -23,11 +23,14 @@ + initgroups_initgroups(PyObject *self, PyObject *args) + { + char *username; ++ int igid; + gid_t gid; + +- if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) ++ if (!PyArg_ParseTuple(args, "si:initgroups", &username, &igid)) + return NULL; + ++ gid = igid; ++ + if (initgroups(username, gid) == -1) + return PyErr_SetFromErrno(PyExc_OSError); + diff --git a/net-zope/zope/zope-2.7.2.ebuild b/net-zope/zope/zope-2.7.2.ebuild index 7d1972238a53..4802b7bff2d4 100644 --- a/net-zope/zope/zope-2.7.2.ebuild +++ b/net-zope/zope/zope-2.7.2.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/net-zope/zope/zope-2.7.2.ebuild,v 1.3 2004/07/27 16:02:41 batlogg Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.7.2.ebuild,v 1.4 2004/08/01 22:35:07 slarti Exp $ inherit eutils @@ -10,7 +10,7 @@ SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-0.tgz" LICENSE="ZPL" SLOT="${PV}" -KEYWORDS="~x86 ~sparc ~ppc ~alpha" +KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64" IUSE="unicode" RDEPEND="=dev-lang/python-2.3*" @@ -79,6 +79,13 @@ pkg_preinst() { enewuser ${ZUID} 261 /bin/bash ${ZS_DIR} ${ZGID} } +src_unpack() { + unpack ${A} + cd ${S} + use amd64 \ + && epatch ${FILESDIR}/2.7.2/gid.patch +} + src_compile() { ./configure --ignore-largefile --prefix=${ZOPE_DIR} || die "Failed to configure." emake || die "Failed to compile." -- cgit v1.2.3-65-gdbad