+++ /dev/null
---- parted-1.8.0/libparted/exception.c_orig 2006-12-11 19:44:23.000000000 +0000
-+++ parted-1.8.0/libparted/exception.c 2006-12-11 19:47:53.000000000 +0000
-@@ -231,6 +231,9 @@
- PedExceptionOption ex_opts, const char* message, ...)
- {
- va_list arg_list;
-+ int result;
-+ static int size = 1000;
-+
-
- if (ex)
- ped_exception_catch ();
-@@ -239,16 +242,22 @@
- if (!ex)
- goto no_memory;
-
-- ex->message = (char*) malloc (8192);
-- if (!ex->message)
-- goto no_memory;
--
- ex->type = ex_type;
- ex->options = ex_opts;
-
-- va_start (arg_list, message);
-- vsnprintf (ex->message, 8192, message, arg_list);
-- va_end (arg_list);
-+ while (1) {
-+ ex->message = (char*) malloc (size);
-+ if (!ex->message)
-+ goto no_memory;
-+ va_start (arg_list, message);
-+ result = vsnprintf (ex->message, size, message, arg_list);
-+ va_end (arg_list);
-+
-+ if (result > -1 && result < size)
-+ break;
-+ size += 10;
-+ }
-+
-
- return do_throw ();
-
+++ /dev/null
-DESCRIPTION = "parted, the GNU partition resizing program"
-HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
-LICENSE = "GPLv2"
-SECTION = "console/tools"
-DEPENDS = "readline e2fsprogs-libs"
-PR = "r0"
-
-SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz"
-
-EXTRA_OECONF = "--disable-Werror"
-
-inherit autotools
+++ /dev/null
-DESCRIPTION = "parted, the GNU partition resizing program"
-HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
-LICENSE = "GPLv2"
-SECTION = "console/tools"
-DEPENDS = "readline e2fsprogs-libs"
-PR = "r0"
-
-SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz"
-
-EXTRA_OECONF = "--disable-Werror"
-#export CFLAGS = "-mstructure-size-boundary=8"
-
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+++ /dev/null
-DESCRIPTION = "parted, the GNU partition resizing program"
-HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
-LICENSE = "GPLv2"
-SECTION = "console/tools"
-DEPENDS = "readline e2fsprogs-libs"
-PR = "r0"
-
-SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \
- file://memory_allocation.patch;patch=0"
-
-EXTRA_OECONF = "--disable-Werror"
-#export CFLAGS = "-mstructure-size-boundary=8"
-
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+++ /dev/null
-DESCRIPTION = "parted, the GNU partition resizing program"
-HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
-LICENSE = "GPLv2"
-SECTION = "console/tools"
-DEPENDS = "readline e2fsprogs-libs"
-PR = "r0"
-
-SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz"
-
-#EXTRA_OECONF = "--disable-Werror"
-
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+++ /dev/null
-DESCRIPTION = "parted, the GNU partition resizing program"
-HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
-LICENSE = "GPLv2"
-SECTION = "console/tools"
-DEPENDS = "readline e2fsprogs-libs"
-PR = "r2"
-
-SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \
- file://syscalls.h \
- file://syscalls.patch;patch=1 \
- file://cross-gross-hack.patch;patch=1"
-
-EXTRA_OECONF = "--disable-Werror"
-
-inherit autotools pkgconfig
-
-do_configure_prepend() {
- cp ${WORKDIR}/syscalls.h ${S}/libparted/arch/
-}
-
-do_configure() {
- gnu-configize
- libtoolize --force
- autoconf
- oe_runconf
-}
-
-do_stage() {
- autotools_stage_all
-}