summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn N. Laliberte <allanonjl@gentoo.org>2006-06-09 21:18:27 +0000
committerJohn N. Laliberte <allanonjl@gentoo.org>2006-06-09 21:18:27 +0000
commit77d05c522691f8309afb2b6a8145ff481dbdadf2 (patch)
tree14109a94f502dcf098dab8351856c9da7ba708f2 /sys-apps/parted
parentVersion bump wrt security bug #134483. (diff)
downloadhistorical-77d05c522691f8309afb2b6a8145ff481dbdadf2.tar.gz
historical-77d05c522691f8309afb2b6a8145ff481dbdadf2.tar.bz2
historical-77d05c522691f8309afb2b6a8145ff481dbdadf2.zip
add patch to fix segfault
Package-Manager: portage-2.1_rc4-r2
Diffstat (limited to 'sys-apps/parted')
-rw-r--r--sys-apps/parted/ChangeLog9
-rw-r--r--sys-apps/parted/files/digest-parted-1.7.1-r13
-rw-r--r--sys-apps/parted/files/parted-1.7.1-fix-seg.patch13
-rw-r--r--sys-apps/parted/parted-1.7.1-r1.ebuild44
4 files changed, 68 insertions, 1 deletions
diff --git a/sys-apps/parted/ChangeLog b/sys-apps/parted/ChangeLog
index 66dcc99579bd..09d50ba8ff3a 100644
--- a/sys-apps/parted/ChangeLog
+++ b/sys-apps/parted/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/parted
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/parted/ChangeLog,v 1.94 2006/05/30 18:40:08 allanonjl Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/parted/ChangeLog,v 1.95 2006/06/09 21:18:27 allanonjl Exp $
+
+*parted-1.7.1-r1 (09 Jun 2006)
+
+ 09 Jun 2006; John N. Laliberte <allanonjl@gentoo.org>
+ +files/parted-1.7.1-fix-seg.patch, -parted-1.7.1.ebuild,
+ +parted-1.7.1-r1.ebuild:
+ add patch to fix segfault
*parted-1.7.1 (30 May 2006)
diff --git a/sys-apps/parted/files/digest-parted-1.7.1-r1 b/sys-apps/parted/files/digest-parted-1.7.1-r1
new file mode 100644
index 000000000000..01cae143de9f
--- /dev/null
+++ b/sys-apps/parted/files/digest-parted-1.7.1-r1
@@ -0,0 +1,3 @@
+MD5 baa6771273c8362d735086d52a0d6efe parted-1.7.1.tar.bz2 1096587
+RMD160 2cfcc7c4f6c5eb7541907eb970781b2c95e6a37c parted-1.7.1.tar.bz2 1096587
+SHA256 23be537d9ace2d8faef423c88eb7f8f2c21dbfa2ee25bdeb0a64b7ac22a2e9d1 parted-1.7.1.tar.bz2 1096587
diff --git a/sys-apps/parted/files/parted-1.7.1-fix-seg.patch b/sys-apps/parted/files/parted-1.7.1-fix-seg.patch
new file mode 100644
index 000000000000..a05c57c34bbe
--- /dev/null
+++ b/sys-apps/parted/files/parted-1.7.1-fix-seg.patch
@@ -0,0 +1,13 @@
+--- parted-1.7.1/libparted/fs/hfs/probe.c 2006-05-25 13:28:58.000000000 -0400
++++ parted-1.7.1.new/libparted/fs/hfs/probe.c 2006-06-09 16:58:35.000000000 -0400
+@@ -42,8 +42,9 @@
+ {
+ PedDevice* dev;
+
++ dev = geom->dev;
+ PED_ASSERT (geom != NULL, return 0);
+- PED_ASSERT ((dev = geom->dev) != NULL, return 0);
++ PED_ASSERT (dev != NULL, return 0);
+
+ if (dev->sector_size != PED_SECTOR_SIZE_DEFAULT) {
+ ped_exception_throw (
diff --git a/sys-apps/parted/parted-1.7.1-r1.ebuild b/sys-apps/parted/parted-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..1797891a9021
--- /dev/null
+++ b/sys-apps/parted/parted-1.7.1-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/parted/parted-1.7.1-r1.ebuild,v 1.1 2006/06/09 21:18:27 allanonjl Exp $
+
+inherit eutils
+
+DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems"
+HOMEPAGE="http://www.gnu.org/software/parted"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="nls static readline debug"
+
+# specific version for gettext needed
+# to fix bug 85999
+DEPEND=">=sys-fs/e2fsprogs-1.27
+ >=sys-libs/ncurses-5.2
+ nls? ( >=sys-devel/gettext-0.12.1-r2 )
+ readline? ( >=sys-libs/readline-4.1-r4 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/parted-1.7.0-pyparted.patch
+ epatch ${FILESDIR}/parted-1.7.1-fix-seg.patch
+}
+
+src_compile() {
+ econf \
+ $(use_with readline) \
+ $(use_enable nls) \
+ $(use_enable debug) \
+ $(use_enable static all-static) \
+ --disable-Werror || die "Configure failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "Install failed"
+ dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
+ dodoc doc/{API,FAT,USER.jp}
+}