From 8dcba8014d7d0714e15a1ba2524690ed82601560 Mon Sep 17 00:00:00 2001 From: Qing He Date: Thu, 30 Dec 2010 14:07:06 +0800 Subject: parted: upgrade to version 2.3 from 1.9.0 license checksum is changed due to one extra line in the COPYING Signed-off-by: Qing He --- .../parted/parted-1.9.0/no_check.patch | 18 -------- .../parted/parted-1.9.0/syscalls.patch | 53 ---------------------- .../parted/parted-2.3/no_check.patch | 18 ++++++++ .../parted/parted-2.3/syscalls.patch | 53 ++++++++++++++++++++++ meta/recipes-extended/parted/parted_1.9.0.bb | 20 -------- meta/recipes-extended/parted/parted_2.3.bb | 20 ++++++++ 6 files changed, 91 insertions(+), 91 deletions(-) delete mode 100644 meta/recipes-extended/parted/parted-1.9.0/no_check.patch delete mode 100644 meta/recipes-extended/parted/parted-1.9.0/syscalls.patch create mode 100644 meta/recipes-extended/parted/parted-2.3/no_check.patch create mode 100644 meta/recipes-extended/parted/parted-2.3/syscalls.patch delete mode 100644 meta/recipes-extended/parted/parted_1.9.0.bb create mode 100644 meta/recipes-extended/parted/parted_2.3.bb (limited to 'meta/recipes-extended/parted') diff --git a/meta/recipes-extended/parted/parted-1.9.0/no_check.patch b/meta/recipes-extended/parted/parted-1.9.0/no_check.patch deleted file mode 100644 index 24a328cee..000000000 --- a/meta/recipes-extended/parted/parted-1.9.0/no_check.patch +++ /dev/null @@ -1,18 +0,0 @@ -If check is detected, it makes the builds non-determinstic so just force -it to be disabled. - -RP - 4/11/08 - -Index: parted-1.9.0/configure.ac -=================================================================== ---- parted-1.9.0.orig/configure.ac 2009-07-23 18:52:08.000000000 +0100 -+++ parted-1.9.0/configure.ac 2010-02-02 14:13:56.013905093 +0000 -@@ -477,7 +477,7 @@ - AM_CONDITIONAL([BUILD_LINUX], [test "$OS" = linux]) - - dnl check for "check", unit testing library/header --PKG_CHECK_MODULES([CHECK], [check >= 0.9.3], have_check=yes, have_check=no) -+have_check=no - if test "$have_check" != "yes"; then - AC_MSG_RESULT([Unable to locate check version 0.9.3 or higher: not building]) - fi diff --git a/meta/recipes-extended/parted/parted-1.9.0/syscalls.patch b/meta/recipes-extended/parted/parted-1.9.0/syscalls.patch deleted file mode 100644 index 6be49968f..000000000 --- a/meta/recipes-extended/parted/parted-1.9.0/syscalls.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- - libparted/arch/linux.c | 13 +++++++++++++ - 1 file changed, 13 insertions(+) - -Index: parted-1.9.0/libparted/arch/linux.c -=================================================================== ---- parted-1.9.0.orig/libparted/arch/linux.c 2009-07-23 18:52:08.000000000 +0100 -+++ parted-1.9.0/libparted/arch/linux.c 2010-02-02 14:14:16.523904768 +0000 -@@ -17,6 +17,8 @@ - - #define PROC_DEVICES_BUFSIZ 16384 - -+#include -+ - #include - #include - -@@ -1477,12 +1479,14 @@ - - #if SIZEOF_OFF_T < 8 - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) - static _syscall5(int,_llseek, - unsigned int, fd, - unsigned long, offset_high, - unsigned long, offset_low, - loff_t*, result, - unsigned int, origin) -+#endif - - loff_t - llseek (unsigned int fd, loff_t offset, unsigned int whence) -@@ -1490,11 +1494,20 @@ - loff_t result; - int retval; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) - retval = _llseek(fd, - ((unsigned long long)offset) >> 32, - ((unsigned long long)offset) & 0xffffffff, - &result, - whence); -+#else -+ retval = syscall(__NR__llseek, fd, -+ ((unsigned long long)offset) >> 32, -+ ((unsigned long long)offset) & 0xffffffff, -+ &result, -+ whence); -+#endif -+ - return (retval==-1 ? (loff_t) retval : result); - } - diff --git a/meta/recipes-extended/parted/parted-2.3/no_check.patch b/meta/recipes-extended/parted/parted-2.3/no_check.patch new file mode 100644 index 000000000..24a328cee --- /dev/null +++ b/meta/recipes-extended/parted/parted-2.3/no_check.patch @@ -0,0 +1,18 @@ +If check is detected, it makes the builds non-determinstic so just force +it to be disabled. + +RP - 4/11/08 + +Index: parted-1.9.0/configure.ac +=================================================================== +--- parted-1.9.0.orig/configure.ac 2009-07-23 18:52:08.000000000 +0100 ++++ parted-1.9.0/configure.ac 2010-02-02 14:13:56.013905093 +0000 +@@ -477,7 +477,7 @@ + AM_CONDITIONAL([BUILD_LINUX], [test "$OS" = linux]) + + dnl check for "check", unit testing library/header +-PKG_CHECK_MODULES([CHECK], [check >= 0.9.3], have_check=yes, have_check=no) ++have_check=no + if test "$have_check" != "yes"; then + AC_MSG_RESULT([Unable to locate check version 0.9.3 or higher: not building]) + fi diff --git a/meta/recipes-extended/parted/parted-2.3/syscalls.patch b/meta/recipes-extended/parted/parted-2.3/syscalls.patch new file mode 100644 index 000000000..6be49968f --- /dev/null +++ b/meta/recipes-extended/parted/parted-2.3/syscalls.patch @@ -0,0 +1,53 @@ +--- + libparted/arch/linux.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +Index: parted-1.9.0/libparted/arch/linux.c +=================================================================== +--- parted-1.9.0.orig/libparted/arch/linux.c 2009-07-23 18:52:08.000000000 +0100 ++++ parted-1.9.0/libparted/arch/linux.c 2010-02-02 14:14:16.523904768 +0000 +@@ -17,6 +17,8 @@ + + #define PROC_DEVICES_BUFSIZ 16384 + ++#include ++ + #include + #include + +@@ -1477,12 +1479,14 @@ + + #if SIZEOF_OFF_T < 8 + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) + static _syscall5(int,_llseek, + unsigned int, fd, + unsigned long, offset_high, + unsigned long, offset_low, + loff_t*, result, + unsigned int, origin) ++#endif + + loff_t + llseek (unsigned int fd, loff_t offset, unsigned int whence) +@@ -1490,11 +1494,20 @@ + loff_t result; + int retval; + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) + retval = _llseek(fd, + ((unsigned long long)offset) >> 32, + ((unsigned long long)offset) & 0xffffffff, + &result, + whence); ++#else ++ retval = syscall(__NR__llseek, fd, ++ ((unsigned long long)offset) >> 32, ++ ((unsigned long long)offset) & 0xffffffff, ++ &result, ++ whence); ++#endif ++ + return (retval==-1 ? (loff_t) retval : result); + } + diff --git a/meta/recipes-extended/parted/parted_1.9.0.bb b/meta/recipes-extended/parted/parted_1.9.0.bb deleted file mode 100644 index 3601fb100..000000000 --- a/meta/recipes-extended/parted/parted_1.9.0.bb +++ /dev/null @@ -1,20 +0,0 @@ -DESCRIPTION = "parted, the GNU partition resizing program" -HOMEPAGE = "http://www.gnu.org/software/parted/parted.html" -LICENSE = "GPLv3+" -LIC_FILES_CHKSUM = "file://COPYING;md5=4c61b8950dc1aab4d2aa7c2ae6b1cfb3" -SECTION = "console/tools" -DEPENDS = "readline e2fsprogs" -PR = "r3" - -SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \ - file://no_check.patch;patch=1 \ - file://syscalls.patch;patch=1 " - -SRC_URI[md5sum] = "055305bc7bcf472ce38f9abf69a9d94d" -SRC_URI[sha256sum] = "53231241ba24c104c207bd2920d70d31fda86df86a69c90e11f35144ffc55509" - -EXTRA_OECONF = "--disable-Werror --disable-device-mapper" - -inherit autotools pkgconfig gettext - -BBCLASSEXTEND = "native" diff --git a/meta/recipes-extended/parted/parted_2.3.bb b/meta/recipes-extended/parted/parted_2.3.bb new file mode 100644 index 000000000..14c9c256e --- /dev/null +++ b/meta/recipes-extended/parted/parted_2.3.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "parted, the GNU partition resizing program" +HOMEPAGE = "http://www.gnu.org/software/parted/parted.html" +LICENSE = "GPLv3+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c" +SECTION = "console/tools" +DEPENDS = "readline e2fsprogs" +PR = "r0" + +SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \ + file://no_check.patch \ + file://syscalls.patch " + +SRC_URI[md5sum] = "30ceb6df7e8681891e865e2fe5a7903d" +SRC_URI[sha256sum] = "e81fa140805b5cd029ff6dda5cfa94d223e83ac182ebcae94f841d62ce468829" + +EXTRA_OECONF = "--disable-Werror --disable-device-mapper" + +inherit autotools pkgconfig gettext + +BBCLASSEXTEND = "native" -- cgit v1.2.3