diff --git a/recipes/parted/files/extensions-m4.patch b/recipes/parted/files/extensions-m4.patch new file mode 100644 index 0000000..1ec53f7 --- /dev/null +++ b/recipes/parted/files/extensions-m4.patch @@ -0,0 +1,26 @@ +diff -Nru parted-1.8.8/m4/extensions.m4 parted-1.8.8.patched/m4/extensions.m4 +--- parted-1.8.8/m4/extensions.m4 2006-10-12 10:01:18.000000000 +0200 ++++ parted-1.8.8.patched/m4/extensions.m4 2010-05-19 18:14:35.000000000 +0200 +@@ -1,4 +1,4 @@ +-# serial 4 -*- Autoconf -*- ++# serial 5 -*- Autoconf -*- + # Enable extensions on systems that normally disable them. + + # Copyright (C) 2003, 2006 Free Software Foundation, Inc. +@@ -16,6 +16,7 @@ + # ------------------------ + # Enable extensions on systems that normally disable them, + # typically due to standards-conformance issues. ++m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [], [ + AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], + [ + AC_BEFORE([$0], [AC_COMPILE_IFELSE]) +@@ -48,7 +49,7 @@ + AC_DEFINE([__EXTENSIONS__]) + AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) + AC_DEFINE([_TANDEM_SOURCE]) +-]) ++])]) + + # gl_USE_SYSTEM_EXTENSIONS + # ------------------------ diff --git a/recipes/parted/parted_1.8.8.bb b/recipes/parted/parted_1.8.8.bb index 2890e23..82369f1 100644 --- a/recipes/parted/parted_1.8.8.bb +++ b/recipes/parted/parted_1.8.8.bb @@ -3,11 +3,12 @@ HOMEPAGE = "http://www.gnu.org/software/parted/parted.html" LICENSE = "GPLv3" SECTION = "console/tools" DEPENDS = "readline util-linux-ng" -PR = "r3" +PR = "r4" SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \ file://use_llseek_syscall.patch;patch=1 \ file://parted-1.8.x.patch;patch=1 \ + file://extensions-m4.patch;patch=1 \ " EXTRA_OECONF = "--disable-Werror ac_cv_func_calloc_0_nonnull=yes"