Recipe version updates
cover Recipe version updates
Here are more recipe version updates - I've been looking at recipes that have been last touched in 2014 or earlier. Other than valgrind (which needs a significant effort to update), they're all here.
The following changes since commit b3d6872bf169a13e572638e3809c50a868246616:
lttng-tools: Revert wrong enforcement of Python 3.0 use (2015-12-12 23:42:55 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib akanavin/package-version-updates
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/package-version-updates
Alexander Kanavin (20):
libidn: add native and nativesdk support
gnutls: update to 3.4.7
puzzles: update to current commit
cdrtools-native: update to 3.01 final
cpio: update to 2.12
dmidecode: update to 3.0
libxml-simple-perl: update to 2.22
python-numpy: update to 1.10.1
unfs3: update to r497
mtd-utils: update to 1.5.2
flex: update to 2.6.0
docbook-xsl-stylesheets: fix UPSTREAM_CHECK_REGEX
gmp: update to 6.1.0
kbd: update to 2.0.3
systemtap: update to 2.9
nfs-utils: update to 1.3.3
powertop: update to 2.8
babeltrace: update to 1.3.1
procps: update to 3.3.11
grep: update to 2.22
.../{nfs-utils_1.3.1.bb => nfs-utils_1.3.3.bb} | 7 +-
...-Only-inluclude-kernel-headers-with-glibc.patch | 29 ---
.../kbd/{kbd_2.0.2.bb => kbd_2.0.3.bb} | 5 +-
...s-native_3.01a31.bb => cdrtools-native_3.01.bb} | 10 +-
.../{dmidecode_2.12.bb => dmidecode_3.0.bb} | 9 +-
.../docbook-xml/docbook-xsl-stylesheets_1.78.1.bb | 3 +-
...fixes-Do-not-use-obsolete-bison-construct.patch | 80 --------
meta/recipes-devtools/flex/files/run-ptest | 30 +--
meta/recipes-devtools/flex/flex.inc | 19 +-
...-target-for-building-tests-without-runnin.patch | 28 +++
meta/recipes-devtools/flex/flex_2.5.39.bb | 9 -
meta/recipes-devtools/flex/flex_2.6.0.bb | 13 ++
.../mtd/mtd-utils/0001-Fix-build-with-musl.patch | 24 ---
...emove-duplicate-hashtable_iterator_value-.patch | 64 ------
...ibfec-use-standard-C-type-instead-of-u_lo.patch | 56 ------
meta/recipes-devtools/mtd/mtd-utils_git.bb | 6 +-
...ple-perl_2.20.bb => libxml-simple-perl_2.22.bb} | 6 +-
...-usr-and-so-on-for-libraries-by-default-.patch} | 33 ++-
...ython-numpy_1.7.0.bb => python-numpy_1.10.1.bb} | 9 +-
.../unfs3/unfs3/fix_warnings.patch | 53 -----
.../{unfs3_0.9.22.r490.bb => unfs3_0.9.22.r497.bb} | 11 +-
.../0001-fix-testcase-of-symlink-bad-length.patch | 57 ------
...-bad-length-test-for-64-bit-architectures.patch | 36 ----
.../cpio/cpio-2.11/fix-memory-overrun.patch | 220 --------------------
.../fix-testcase-symlink-bad-lengths.patch | 33 ---
.../cpio/cpio-2.11/remove-gets.patch | 20 --
meta/recipes-extended/cpio/cpio-2.11/statdef.patch | 17 --
.../0001-Fix-CVE-2015-1197.patch} | 103 ++++++----
...need_charset_alias-when-building-for-musl.patch | 0
meta/recipes-extended/cpio/cpio_2.11.bb | 18 --
meta/recipes-extended/cpio/cpio_2.12.bb | 12 ++
meta/recipes-extended/cpio/cpio_2.8.bb | 4 +-
meta/recipes-extended/cpio/cpio_v2.inc | 1 -
.../grep/grep/grep-fix-CVE-2015-1345.patch | 154 --------------
.../grep/{grep_2.21.bb => grep_2.22.bb} | 5 +-
meta/recipes-extended/libidn/libidn_0.6.14.bb | 3 +
meta/recipes-extended/libidn/libidn_1.32.bb | 3 +
.../procps/procps/fix-configure.patch | 19 --
.../procps/{procps_3.3.10.bb => procps_3.3.11.bb} | 5 +-
.../{babeltrace_1.2.4.bb => babeltrace_1.3.1.bb} | 5 +-
.../powertop/{powertop_2.7.bb => powertop_2.8.bb} | 4 +-
.../systemtap/systemtap-uprobes_git.bb | 2 -
meta/recipes-kernel/systemtap/systemtap_git.inc | 4 +-
.../fix-compiling-failure-with-option-g-O.patch | 9 -
meta/recipes-sato/puzzles/puzzles_git.bb | 8 +-
meta/recipes-support/gmp/gmp-6.0.0/configure.patch | 222 ---------------------
.../gmp/gmp-6.0.0/gmp-6.0.0-ppc64.patch | 26 ---
...ser-provided-flags-to-the-auto-detected-.patch} | 39 ++--
.../gmp/{gmp-6.0.0 => gmp-6.1.0}/amd64.patch | 0
.../{gmp-6.0.0 => gmp-6.1.0}/use-includedir.patch | 0
.../gmp/{gmp_6.0.0.bb => gmp_6.1.0.bb} | 17 +-
meta/recipes-support/gnutls/gnutls.inc | 3 +-
...tch => 0001-configure.ac-fix-sed-command.patch} | 29 +--
.../gnutls/{gnutls_3.3.17.1.bb => gnutls_3.4.7.bb} | 6 +-
54 files changed, 260 insertions(+), 1328 deletions(-)
rename meta/recipes-connectivity/nfs-utils/{nfs-utils_1.3.1.bb => nfs-utils_1.3.3.bb} (95%)
delete mode 100644 meta/recipes-core/kbd/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch
rename meta/recipes-core/kbd/{kbd_2.0.2.bb => kbd_2.0.3.bb} (83%)
rename meta/recipes-devtools/cdrtools/{cdrtools-native_3.01a31.bb => cdrtools-native_3.01.bb} (61%)
rename meta/recipes-devtools/dmidecode/{dmidecode_2.12.bb => dmidecode_3.0.bb} (59%)
delete mode 100644 meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
create mode 100644 meta/recipes-devtools/flex/flex/0001-tests-add-a-target-for-building-tests-without-runnin.patch
delete mode 100644 meta/recipes-devtools/flex/flex_2.5.39.bb
create mode 100644 meta/recipes-devtools/flex/flex_2.6.0.bb
delete mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
delete mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-mtd-utils-libfec-use-standard-C-type-instead-of-u_lo.patch
rename meta/recipes-devtools/perl/{libxml-simple-perl_2.20.bb => libxml-simple-perl_2.22.bb} (78%)
rename meta/recipes-devtools/python/python-numpy/{no-host-paths.patch => 0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch} (69%)
rename meta/recipes-devtools/python/{python-numpy_1.7.0.bb => python-numpy_1.10.1.bb} (88%)
delete mode 100644 meta/recipes-devtools/unfs3/unfs3/fix_warnings.patch
rename meta/recipes-devtools/unfs3/{unfs3_0.9.22.r490.bb => unfs3_0.9.22.r497.bb} (88%)
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/0001-fix-testcase-of-symlink-bad-length.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/Fix-symlink-bad-length-test-for-64-bit-architectures.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/fix-memory-overrun.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/fix-testcase-symlink-bad-lengths.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/remove-gets.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/statdef.patch
rename meta/recipes-extended/cpio/{cpio-2.11/cpio-CVE-2015-1197.patch => cpio-2.12/0001-Fix-CVE-2015-1197.patch} (57%)
rename meta/recipes-extended/cpio/{cpio-2.11 => cpio-2.12}/0001-Unset-need_charset_alias-when-building-for-musl.patch (100%)
delete mode 100644 meta/recipes-extended/cpio/cpio_2.11.bb
create mode 100644 meta/recipes-extended/cpio/cpio_2.12.bb
delete mode 100644 meta/recipes-extended/grep/grep/grep-fix-CVE-2015-1345.patch
rename meta/recipes-extended/grep/{grep_2.21.bb => grep_2.22.bb} (85%)
delete mode 100644 meta/recipes-extended/procps/procps/fix-configure.patch
rename meta/recipes-extended/procps/{procps_3.3.10.bb => procps_3.3.11.bb} (93%)
rename meta/recipes-kernel/lttng/{babeltrace_1.2.4.bb => babeltrace_1.3.1.bb} (90%)
rename meta/recipes-kernel/powertop/{powertop_2.7.bb => powertop_2.8.bb} (88%)
delete mode 100644 meta/recipes-support/gmp/gmp-6.0.0/configure.patch
delete mode 100644 meta/recipes-support/gmp/gmp-6.0.0/gmp-6.0.0-ppc64.patch
rename meta/recipes-support/gmp/{gmp-6.0.0/append_user_provided_flags.patch => gmp-6.1.0/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch} (50%)
rename meta/recipes-support/gmp/{gmp-6.0.0 => gmp-6.1.0}/amd64.patch (100%)
rename meta/recipes-support/gmp/{gmp-6.0.0 => gmp-6.1.0}/use-includedir.patch (100%)
rename meta/recipes-support/gmp/{gmp_6.0.0.bb => gmp_6.1.0.bb} (58%)
rename meta/recipes-support/gnutls/gnutls/{configure.ac-fix-sed-command.patch => 0001-configure.ac-fix-sed-command.patch} (40%)
rename meta/recipes-support/gnutls/{gnutls_3.3.17.1.bb => gnutls_3.4.7.bb} (42%)Signature · 1 line
2.6.2
PATCH 1/20 libidn: add native and nativesdk support
This is needed because gnutls now requires libidn.
--- meta/recipes-extended/libidn/libidn_0.6.14.bb | 3 +++ meta/recipes-extended/libidn/libidn_1.32.bb | 3 +++ 2 files changed, 6 insertions(+)
meta/recipes-extended/libidn/libidn_0.6.14.bb +3 -0
@@ -31,3 +31,6 @@ do_install_append() { rm -rf ${D}${libdir}/Libidn.dll rm -rf ${D}${datadir}/emacs } + +BBCLASSEXTEND = "native nativesdk" +
meta/recipes-extended/libidn/libidn_1.32.bb +3 -0
@@ -32,3 +32,6 @@ EXTRA_OECONF = "--disable-csharp" do_install_append() { rm -rf ${D}${datadir}/emacs } + +BBCLASSEXTEND = "native nativesdk" +
Signature · 1 line
2.6.2
PATCH 2/20 gnutls: update to 3.4.7
In reply to Alexander Kanavinlibidn is needed by the new version to compare hostnames. Openssl compatibility is no longer enabled by default, but is required by other packages in oe-core.
---
meta/recipes-support/gnutls/gnutls.inc | 3 ++-
...tch => 0001-configure.ac-fix-sed-command.patch} | 29 +++++++++++-----------
.../gnutls/{gnutls_3.3.17.1.bb => gnutls_3.4.7.bb} | 6 ++---
3 files changed, 20 insertions(+), 18 deletions(-)
rename meta/recipes-support/gnutls/gnutls/{configure.ac-fix-sed-command.patch => 0001-configure.ac-fix-sed-command.patch} (40%)
rename meta/recipes-support/gnutls/{gnutls_3.3.17.1.bb => gnutls_3.4.7.bb} (42%)meta/recipes-support/gnutls/gnutls.inc +2 -1
@@ -1,7 +1,7 @@ SUMMARY = "GNU Transport Layer Security Library" HOMEPAGE = "http://www.gnu.org/software/gnutls/" BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls" -DEPENDS = "nettle" +DEPENDS = "nettle libidn" LICENSE = "GPLv3+ & LGPLv2.1+" LICENSE_${PN} = "LGPLv2.1+"
@@ -26,6 +26,7 @@ EXTRA_OECONF="--disable-rpath \ --disable-guile \ --disable-crywrap \ --without-p11-kit \ + --enable-openssl-compatibility \ " do_configure_prepend() {
meta/recipes-support/gnutls/gnutls/0001-configure.ac-fix-sed-command.patch renamed from meta/recipes-support/gnutls/gnutls/configure.ac-fix-sed-command.patch +15 -14
@@ -1,6 +1,6 @@ -From eb93aa7b986c84da60a3db40afb29d1a70c50223 Mon Sep 17 00:00:00 2001 -From: Robert Yang <[email protected]> -Date: Sat, 17 Jan 2015 17:02:15 +0000 +From 67c638c7e209554d9b19627e9402a20fdabead21 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Fri, 4 Dec 2015 13:19:28 +0200 Subject: [PATCH] configure.ac: fix sed command The "sed 's/.bak//g'" matchs "bitbake", which would cause strange errors
@@ -9,23 +9,24 @@ when the S contains "bitbake", fix to "sed 's/\.bak$//'`" Upstream-Status: Pending Signed-off-by: Robert Yang <[email protected]> +Signed-off-by: Alexander Kanavin <[email protected]> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index c6818a0..1c4582d 100644 +index e634236..dc9e6a8 100644 --- a/configure.ac +++ b/configure.ac -@@ -466,7 +466,7 @@ if test "$NEED_LIBOPTS_DIR" = "true";then - dnl replace libopts-generated files with distributed backups, if present - missing_baks= - for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do -- nam=`echo $i|sed 's/.bak//g'` -+ nam=`echo $i|sed 's/\.bak$//'` - if test -f $i;then - cp -f $i $nam - else +@@ -549,7 +549,7 @@ if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then + dnl replace libopts-generated files with distributed backups, if present + missing_baks= + for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do +- nam=`echo $i|sed 's/.bak//g'` ++ nam=`echo $i|sed 's/\.bak$//'` + if test -f $i;then + cp -f $i $nam + else -- -2.0.1 +2.6.2
meta/recipes-support/gnutls/gnutls_3.4.7.bb renamed from meta/recipes-support/gnutls/gnutls_3.3.17.1.bb +3 -3
@@ -1,8 +1,8 @@ require gnutls.inc SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \ - file://configure.ac-fix-sed-command.patch \ + file://0001-configure.ac-fix-sed-command.patch \ file://use-pkg-config-to-locate-zlib.patch \ " -SRC_URI[md5sum] = "8d01c7e7f2cbc5871fdca832d2260b6b" -SRC_URI[sha256sum] = "b40f158030a92f450a07b20300a3996710ca19800848d9f6fd62493170c5bbb4" +SRC_URI[md5sum] = "e7556cec73c8b34fd2ff0b591e24e44c" +SRC_URI[sha256sum] = "c1be9e4b30295d7b5f96fa332c6a908e6fa2254377b67811301fca92eb882e5a"
Signature · 1 line
2.6.2
PATCH 3/20 puzzles: update to current commit
In reply to Alexander Kanavingtk+3 support has been added upstream, so add an option for that.
--- .../puzzles/files/fix-compiling-failure-with-option-g-O.patch | 9 --------- meta/recipes-sato/puzzles/puzzles_git.bb | 8 ++++++-- 2 files changed, 6 insertions(+), 11 deletions(-)
meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch +0 -9
@@ -29,15 +29,6 @@ diff --git a/gtk.c b/gtk.c index a2eba2c..c54bf63 100644 --- a/gtk.c +++ b/gtk.c -@@ -381,7 +381,7 @@ static void clear_backing_store(frontend *fe) - - static void setup_backing_store(frontend *fe) - { -- cairo_t *cr; -+ cairo_t *cr = NULL; - int i; - - fe->pixmap = gdk_pixmap_new(fe->area->window, fe->pw, fe->ph, -1); @@ -2481,7 +2481,7 @@ char *fgetline(FILE *fp) int main(int argc, char **argv) {
meta/recipes-sato/puzzles/puzzles_git.bb +6 -2
@@ -1,7 +1,7 @@ SUMMARY = "Simon Tatham's Portable Puzzle Collection" HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" -DEPENDS = "gtk+ libxt" +DEPENDS = "libxt" # The libxt requires x11 in DISTRO_FEATURES REQUIRED_DISTRO_FEATURES = "x11"
@@ -13,7 +13,7 @@ SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ file://fix-compiling-failure-with-option-g-O.patch \ file://0001-Use-labs-instead-of-abs.patch \ " -SRCREV = "c296301a06ce49b87c954c9d15452521dfeddf1a" +SRCREV = "346584bf6e38232be8773c24fd7dedcbd7b3d9ed" PE = "1" PV = "0.0+git${SRCPV}"
@@ -21,6 +21,10 @@ S = "${WORKDIR}/git" inherit autotools-brokensep distro_features_check +PACKAGECONFIG ??= "gtk2" +PACKAGECONFIG[gtk2] = "--with-gtk=2,,gtk+," +PACKAGECONFIG[gtk3] = "--with-gtk=3,,gtk+3," + do_configure_prepend () { ./mkfiles.pl }
Signature · 1 line
2.6.2
PATCH 4/20 cdrtools-native: update to 3.01 final
In reply to Alexander KanavinIntroduce a PE to avoid the version going backwards
---
.../{cdrtools-native_3.01a31.bb => cdrtools-native_3.01.bb} | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
rename meta/recipes-devtools/cdrtools/{cdrtools-native_3.01a31.bb => cdrtools-native_3.01.bb} (61%)meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb renamed from meta/recipes-devtools/cdrtools/cdrtools-native_3.01a31.bb +4 -6
@@ -7,14 +7,12 @@ SECTION = "console/utils" LICENSE = "GPLv2 & CDDL-1.0 & LGPLv2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=32f68170be424c2cd64804337726b312" -SRC_URI = "${SOURCEFORGE_MIRROR}/project/cdrtools/alpha/cdrtools-${PV}.tar.bz2" +SRC_URI = "${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${PV}.tar.bz2" -SRC_URI[md5sum] = "78172557894f469b4584d008e93ec469" -SRC_URI[sha256sum] = "183b5c12777779e78d8b69461aae52401f863768e7e7391d60730006f8cadc5a" +SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" +SRC_URI[sha256sum] = "ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f" -UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/cdrtools/files/alpha/" - -S = "${WORKDIR}/cdrtools-3.01" +PE = "1" inherit native
Signature · 1 line
2.6.2
Re: [PATCH 04/20] cdrtools-native: update to 3.01 final
Quoted 2 lines · Alexander Kanavin
+PE = "1"
A PE is for live, not just for Christmas.
I've changed this locally to use PV="3.01a31+really3.0.1" which should hopefully do the right thing but disappear when 3.0.2 is released.
Ross
PATCH 5/20 cpio: update to 2.12
In reply to Alexander KanavinDrop backported patches:
Fix-symlink-bad-length-test-for-64-bit-architectures.patch fix-memory-overrun.patch fix-testcase-symlink-bad-lengths.patch 0001-fix-testcase-of-symlink-bad-length.patch
statdef.patch is fixing code that doesn't exist anymore. The problem handled by remove-gets.patch has been fixed differently.
The CVE-2015-1197 has been ignored by upstream and had to be rebased:
http://lists.gnu.org/archive/html/bug-cpio/2015-09/msg00007.html
---
.../0001-fix-testcase-of-symlink-bad-length.patch | 57 ------
...-bad-length-test-for-64-bit-architectures.patch | 36 ----
.../cpio/cpio-2.11/fix-memory-overrun.patch | 220 ---------------------
.../fix-testcase-symlink-bad-lengths.patch | 33 ----
.../cpio/cpio-2.11/remove-gets.patch | 20 --
meta/recipes-extended/cpio/cpio-2.11/statdef.patch | 17 --
.../0001-Fix-CVE-2015-1197.patch} | 103 ++++++----
...need_charset_alias-when-building-for-musl.patch | 0
meta/recipes-extended/cpio/cpio_2.11.bb | 18 --
meta/recipes-extended/cpio/cpio_2.12.bb | 12 ++
meta/recipes-extended/cpio/cpio_2.8.bb | 4 +-
meta/recipes-extended/cpio/cpio_v2.inc | 1 -
12 files changed, 78 insertions(+), 443 deletions(-)
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/0001-fix-testcase-of-symlink-bad-length.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/Fix-symlink-bad-length-test-for-64-bit-architectures.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/fix-memory-overrun.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/fix-testcase-symlink-bad-lengths.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/remove-gets.patch
delete mode 100644 meta/recipes-extended/cpio/cpio-2.11/statdef.patch
rename meta/recipes-extended/cpio/{cpio-2.11/cpio-CVE-2015-1197.patch => cpio-2.12/0001-Fix-CVE-2015-1197.patch} (57%)
rename meta/recipes-extended/cpio/{cpio-2.11 => cpio-2.12}/0001-Unset-need_charset_alias-when-building-for-musl.patch (100%)
delete mode 100644 meta/recipes-extended/cpio/cpio_2.11.bb
create mode 100644 meta/recipes-extended/cpio/cpio_2.12.bbmeta/recipes-extended/cpio/cpio-2.11/0001-fix-testcase-of-symlink-bad-length.patch deleted +0 -57
@@ -1,57 +0,0 @@ -Upstream-Status: Backport - -Subject: fix testcase of symlink-bad-length - -Signed-off-by: Chen Qi <[email protected]> ---- - tests/symlink-bad-length.at | 24 ++++++++++++++++++++---- - 1 file changed, 20 insertions(+), 4 deletions(-) - -diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at -index 74208ce..11fc6ce 100644 ---- a/tests/symlink-bad-length.at -+++ b/tests/symlink-bad-length.at -@@ -1,5 +1,5 @@ - # Process this file with autom4te to create testsuite. -*- Autotest -*- --# Copyright (C) 2014 Free Software Foundation, Inc. -+# Copyright (C) 2014-2015 Free Software Foundation, Inc. - - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by -@@ -35,14 +35,30 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= - ]) - -+# The exact error message and exit status depend on the host architecture, -+# therefore strderr is filtered out and error code is not checked. -+ -+# So far the only case when cpio would exit with code 0 is when it skips -+# several bytes and encounters a valid record header. Perhaps it should -+# exit with code 2 (non-critical error), if at least one byte was skipped, -+# but that could hurt backward compatibility. -+ - AT_CHECK([ - base64 -d ARCHIVE.base64 > ARCHIVE || AT_SKIP_TEST --cpio -ntv < ARCHIVE --test $? -eq 2 -+TZ=UTC cpio -ntv < ARCHIVE 2>stderr -+cat stderr | grep -v \ -+ -e 'stored filename length is out of range' \ -+ -e 'premature end of file' \ -+ -e 'archive header has reverse byte-order' \ -+ -e 'memory exhausted' \ -+ -e 'skipped [[0-9][0-9]*] bytes of junk' \ -+ -e '[[0-9][0-9]*] block' \ -+ >&2 -+echo >&2 STDERR - ], - [0], - [-rw-rw-r-- 1 10029 10031 13 Nov 25 2014 FILE --],[cpio: premature end of file -+],[STDERR - ]) - - AT_CLEANUP --- -1.9.1 -
meta/recipes-extended/cpio/cpio-2.11/Fix-symlink-bad-length-test-for-64-bit-architectures.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 0e8d8ed494433237cff0ad6c513c40f025005e8c Mon Sep 17 00:00:00 2001 -From: Jun Zhang <[email protected]> -Date: Fri, 16 Oct 2015 10:48:21 +0800 -Subject: [PATCH] Fix symlink-bad-length test for 64-bit architectures. - -* src/util.c: Return non-zero exit code if EOF is hit prematurely. - -Backport commit: -http://git.savannah.gnu.org/cgit/cpio.git/commit/src/util.c?id=f6a8a2cbd2d5ca40ea94900b55b845dd5ca87328 - -Upstream-Status: Backport - -Signed-off-by: Jun Zhang <[email protected]> ---- - src/util.c | 5 +---- - 1 file changed, 1 insertion(+), 4 deletions(-) - -diff --git a/src/util.c b/src/util.c -index 00953d5..b536d82 100644 ---- a/src/util.c -+++ b/src/util.c -@@ -206,10 +206,7 @@ tape_fill_input_buffer (int in_des, int num_bytes) - if (input_size < 0) - error (1, errno, _("read error")); - if (input_size == 0) -- { -- error (0, 0, _("premature end of file")); -- exit (1); -- } -+ error (PAXEXIT_FAILURE, 0, _("premature end of file")); - input_bytes += input_size; - } - --- -1.9.1 -
meta/recipes-extended/cpio/cpio-2.11/fix-memory-overrun.patch deleted +0 -220
220 lines not on this page · raw message
meta/recipes-extended/cpio/cpio-2.11/fix-testcase-symlink-bad-lengths.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From c213ffa2e0ba6677e0dfade9c67b91446c70c8bd Mon Sep 17 00:00:00 2001 -From: Jun Zhang <[email protected]> -Date: Fri, 16 Oct 2015 21:25:17 +0800 -Subject: [PATCH] cpio: fix testcase symlink-bad-lengths - -* fix the output of stderr & stdout to meet latest cpio - -Upstream-Status: Pending - -Signed-off-by: Jun Zhang <[email protected]> ---- - tests/symlink-bad-length.at | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at -index 6f804b1..74208ce 100644 ---- a/tests/symlink-bad-length.at -+++ b/tests/symlink-bad-length.at -@@ -41,9 +41,8 @@ cpio -ntv < ARCHIVE - test $? -eq 2 - ], - [0], --[-rw-rw-r-- 1 10029 10031 13 Nov 25 13:52 FILE --],[cpio: LINK: stored filename length too big --cpio: premature end of file -+[-rw-rw-r-- 1 10029 10031 13 Nov 25 2014 FILE -+],[cpio: premature end of file - ]) - - AT_CLEANUP --- -1.9.1 -
meta/recipes-extended/cpio/cpio-2.11/remove-gets.patch deleted +0 -20
@@ -1,20 +0,0 @@ -ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it - -Signed-off-by: Khem Raj <[email protected]> - -Upstream-Status: Pending -Index: cpio-2.11/gnu/stdio.in.h -=================================================================== ---- cpio-2.11.orig/gnu/stdio.in.h 2012-07-04 12:13:43.133066247 -0700 -+++ cpio-2.11/gnu/stdio.in.h 2012-07-04 12:14:10.189067564 -0700 -@@ -138,8 +138,10 @@ - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#if defined gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@
meta/recipes-extended/cpio/cpio-2.11/statdef.patch deleted +0 -17
@@ -1,17 +0,0 @@ -Avoid multiple stat definitions -Patch taken from cpio mailing list posting 2010-03-19 - -Upstream-Status: Pending - -Signed-off-by: Scott Garman <[email protected]> - -diff -urN cpio-2.11.orig/src/filetypes.h cpio-2.11/src/filetypes.h ---- cpio-2.11.orig/src/filetypes.h 2010-02-12 02:19:23.000000000 -0800 -+++ cpio-2.11/src/filetypes.h 2010-07-23 13:17:25.000000000 -0700 -@@ -82,4 +82,6 @@ - #define lstat stat - #endif - int lstat (); -+#ifndef stat - int stat (); -+#endif
meta/recipes-extended/cpio/cpio-2.12/0001-Fix-CVE-2015-1197.patch renamed from meta/recipes-extended/cpio/cpio-2.11/cpio-CVE-2015-1197.patch +63 -40
149 lines not on this page · raw message
meta/recipes-extended/cpio/cpio-2.12/0001-Unset-need_charset_alias-when-building-for-musl.patch renamed from meta/recipes-extended/cpio/cpio-2.11/0001-Unset-need_charset_alias-when-building-for-musl.patch +0 -0
meta/recipes-extended/cpio/cpio_2.11.bb deleted +0 -18
@@ -1,18 +0,0 @@ -include cpio_v2.inc - -LICENSE = "GPLv3" -LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" - -PR = "r5" - -SRC_URI += "file://remove-gets.patch \ - file://fix-memory-overrun.patch \ - file://cpio-CVE-2015-1197.patch \ - file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ - file://Fix-symlink-bad-length-test-for-64-bit-architectures.patch \ - file://fix-testcase-symlink-bad-lengths.patch \ - file://0001-fix-testcase-of-symlink-bad-length.patch \ - " - -SRC_URI[md5sum] = "1112bb6c45863468b5496ba128792f6c" -SRC_URI[sha256sum] = "601b1d774cd6e4cd39416203c91ec59dbd65dd27d79d75e1a9b89497ea643978"
meta/recipes-extended/cpio/cpio_2.12.bb new file +12 -0
@@ -0,0 +1,12 @@ +include cpio_v2.inc + +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" + +SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ + file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ + file://0001-Fix-CVE-2015-1197.patch \ + " + +SRC_URI[md5sum] = "fc207561a86b63862eea4b8300313e86" +SRC_URI[sha256sum] = "08a35e92deb3c85d269a0059a27d4140a9667a6369459299d08c17f713a92e73"
meta/recipes-extended/cpio/cpio_2.8.bb +3 -1
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b7f772ea3a2489231cb4872656cac34b" PR = "r4" -SRC_URI += "file://m4extensions.patch \ +SRC_URI += " \ + file://statdef.patch \ + file://m4extensions.patch \ file://avoid_heap_overflow.patch \ file://fix-memory-overrun.patch \ "
meta/recipes-extended/cpio/cpio_v2.inc +0 -1
@@ -7,7 +7,6 @@ SECTION = "base" DEPENDS = "texinfo-native" SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ - file://statdef.patch \ " inherit autotools gettext texinfo
Signature · 1 line
2.6.2
PATCH 6/20 dmidecode: update to 3.0
In reply to Alexander KanavinLICENSE is still GPLv2, with a different physical address for the FSF.
---
.../dmidecode/{dmidecode_2.12.bb => dmidecode_3.0.bb} | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
rename meta/recipes-devtools/dmidecode/{dmidecode_2.12.bb => dmidecode_3.0.bb} (59%)meta/recipes-devtools/dmidecode/dmidecode_3.0.bb renamed from meta/recipes-devtools/dmidecode/dmidecode_2.12.bb +5 -4
@@ -1,9 +1,9 @@ SUMMARY = "DMI (Desktop Management Interface) table related utilities" HOMEPAGE = "http://www.nongnu.org/dmidecode/" LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/dmidecode/${BP}.tar.bz2" +SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/dmidecode/${BP}.tar.xz" COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc|powerpc64).*-linux"
@@ -16,5 +16,6 @@ do_unpack_extra() { } addtask unpack_extra after do_unpack before do_patch -SRC_URI[md5sum] = "a406f3cbb27736491698697beeddb781" -SRC_URI[sha256sum] = "913ff3055d563a62a420789b8ee33b038de9afa18ea61254760ddf8ab87a5088" +SRC_URI[md5sum] = "281ee572d45c78eca73a14834c495ffd" +SRC_URI[sha256sum] = "7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45" +
Signature · 1 line
2.6.2
PATCH 7/20 libxml-simple-perl: update to 2.22
In reply to Alexander KanavinLICENSE checksum changed because of copyright year change in the text.
---
.../perl/{libxml-simple-perl_2.20.bb => libxml-simple-perl_2.22.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta/recipes-devtools/perl/{libxml-simple-perl_2.20.bb => libxml-simple-perl_2.22.bb} (78%)meta/recipes-devtools/perl/libxml-simple-perl_2.22.bb renamed from meta/recipes-devtools/perl/libxml-simple-perl_2.20.bb +3 -3
@@ -7,13 +7,13 @@ where the original uses plain Perl or SAX parsers." HOMEPAGE = "http://search.cpan.org/~markov/XML-LibXML-Simple-0.93/lib/XML/LibXML/Simple.pod" SECTION = "libs" LICENSE = "Artistic-1.0 | GPL-1.0+" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e7dbb3e2241fac8457967053fc1a1ddb" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fa1187fceda00eee10b62961407ea7be" DEPENDS += "libxml-parser-perl" SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz" -SRC_URI[md5sum] = "4d10964e123b76eca36678464daa63cd" -SRC_URI[sha256sum] = "5cff13d0802792da1eb45895ce1be461903d98ec97c9c953bc8406af7294434a" +SRC_URI[md5sum] = "0914abddfce749453ed89b54029f2643" +SRC_URI[sha256sum] = "b9450ef22ea9644ae5d6ada086dc4300fa105be050a2030ebd4efd28c198eb49" S = "${WORKDIR}/XML-Simple-${PV}"
Signature · 1 line
2.6.2
PATCH 8/20 python-numpy: update to 1.10.1
In reply to Alexander KanavinLICENSE checksum has changed due to updated copyright years
---
...-usr-and-so-on-for-libraries-by-default-.patch} | 33 ++++++++++++++++++----
...ython-numpy_1.7.0.bb => python-numpy_1.10.1.bb} | 9 +++---
2 files changed, 31 insertions(+), 11 deletions(-)
rename meta/recipes-devtools/python/python-numpy/{no-host-paths.patch => 0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch} (69%)
rename meta/recipes-devtools/python/{python-numpy_1.7.0.bb => python-numpy_1.10.1.bb} (88%)meta/recipes-devtools/python/python-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch renamed from meta/recipes-devtools/python/python-numpy/no-host-paths.patch +27 -6
@@ -1,18 +1,27 @@ -Don't search /usr and so on for libraries by default to avoid host contamination. +From cc2ce6d8b6a3e6e2c8874896c10897034a80cd4f Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Thu, 10 Dec 2015 13:20:30 +0200 +Subject: [PATCH] Don't search /usr and so on for libraries by default to avoid + host contamination. Upstream-Status: Inappropriate (As the code stands, this is a hack) Signed-off-by: Ross Burton <[email protected]> +Signed-off-by: Alexander Kanavin <[email protected]> +--- + numpy/distutils/system_info.py | 50 +++++------------------------------------- + 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py -index bac90fb..a63d796 100644 +index 9dd48e2..80e197a 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py -@@ -191,41 +191,12 @@ if sys.platform == 'win32': +@@ -204,51 +204,13 @@ if sys.platform == 'win32': default_x11_lib_dirs = [] default_x11_include_dirs = [] else: - default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', - '/opt/local/lib', '/sw/lib'], platform_bits) + default_runtime_dirs = [] - default_include_dirs = ['/usr/local/include', - '/opt/include', '/usr/include', - # path of umfpack under macports
@@ -35,17 +44,26 @@ index bac90fb..a63d796 100644 - '/usr/include/X11']) - - import subprocess as sp +- tmp = None - try: +- # Explicitly open/close file to avoid ResourceWarning when +- # tests are run in debug mode Python 3. +- tmp = open(os.devnull, 'w') - p = sp.Popen(["gcc", "-print-multiarch"], stdout=sp.PIPE, -- stderr=open(os.devnull, 'w')) -- except OSError: -- pass # gcc is not installed +- stderr=tmp) +- except (OSError, DistutilsError): +- # OSError if gcc is not installed, or SandboxViolation (DistutilsError +- # subclass) if an old setuptools bug is triggered (see gh-3160). +- pass - else: - triplet = str(p.communicate()[0].decode().strip()) - if p.returncode == 0: - # gcc supports the "-print-multiarch" option - default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)] - default_lib_dirs += [os.path.join("/usr/lib/", triplet)] +- finally: +- if tmp is not None: +- tmp.close() + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) + default_include_dirs = ['/deaddir/include'] + default_src_dirs = ['.', '/deaddir/src']
@@ -55,3 +73,6 @@ index bac90fb..a63d796 100644 if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) +-- +2.6.2 +
meta/recipes-devtools/python/python-numpy_1.10.1.bb renamed from meta/recipes-devtools/python/python-numpy_1.7.0.bb +4 -5
@@ -1,11 +1,10 @@ SUMMARY = "A sophisticated Numeric Processing Package for Python" SECTION = "devel/python" LICENSE = "PSF" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f87832d854acbade6e9f5c601c8b30b1" -PR = "r1" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9f4e88b5748e8313caaf33d081ce65a3" SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \ - file://no-host-paths.patch \ + file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ ${CONFIGFILESURI} " CONFIGFILESURI ?= ""
@@ -70,8 +69,8 @@ do_compile_prepend_class-target() { FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a" -SRC_URI[md5sum] = "4fa54e40b6a243416f0248123b6ec332" -SRC_URI[sha256sum] = "f4fa70b7edbab65ee6432eb63743f5489f1919c614632b20b2fb45aa7e682ac6" +SRC_URI[md5sum] = "3fed2b50906bc19018cec5fa26168aa5" +SRC_URI[sha256sum] = "8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858" # install what is needed for numpy.test() RDEPENDS_${PN} = "python-unittest \
Signature · 1 line
2.6.2
PATCH 9/20 unfs3: update to r497
In reply to Alexander KanavinDrop fix_warnings.patch as it's been merged upstream.
---
.../unfs3/unfs3/fix_warnings.patch | 53 ----------------------
.../{unfs3_0.9.22.r490.bb => unfs3_0.9.22.r497.bb} | 11 ++---
2 files changed, 5 insertions(+), 59 deletions(-)
delete mode 100644 meta/recipes-devtools/unfs3/unfs3/fix_warnings.patch
rename meta/recipes-devtools/unfs3/{unfs3_0.9.22.r490.bb => unfs3_0.9.22.r497.bb} (88%)meta/recipes-devtools/unfs3/unfs3/fix_warnings.patch deleted +0 -53
@@ -1,53 +0,0 @@ -exports.*: fix warnings. - -Fix these warnings: -lex.yy.c:1207: warning: 'yyunput' defined but not used -lex.yy.c:1248: warning: 'input' defined but not used -exports.y: In function 'set_hostname': -exports.y:334: warning: large integer implicitly truncated to unsigned type -exports.y: In function 'set_ipaddr': -exports.y:350: warning: large integer implicitly truncated to unsigned type - -Signed-off-by: Jason Wessel <[email protected]> - -Upstream-Status: Submitted http://sourceforge.net/p/unfs3/bugs/5/ - ---- - Config/exports.l | 3 +++ - Config/exports.y | 6 ++++-- - 2 files changed, 7 insertions(+), 2 deletions(-) - ---- a/Config/exports.l -+++ b/Config/exports.l -@@ -48,6 +48,9 @@ NETCOMP [0-9]{1,2} - NET {IP}"/"{NETCOMP} - OLDNET {IP}"/"{IP} - -+%option nounput -+%option noinput -+ - %% - - ^{WHITE}*\n { /* eat empty line */ } ---- a/Config/exports.y -+++ b/Config/exports.y -@@ -331,7 +331,8 @@ static void set_hostname(const char *nam - if (ent) { - memcpy(&cur_host.addr, ent->h_addr_list[0], - sizeof(struct in_addr)); -- cur_host.mask.s_addr = ~0UL; -+ cur_host.mask.s_addr = 0; -+ cur_host.mask.s_addr = ~cur_host.mask.s_addr; - } else { - logmsg(LOG_CRIT, "could not resolve hostname '%s'", name); - e_error = TRUE; -@@ -347,7 +348,8 @@ static void set_ipaddr(const char *addr) - - if (!inet_aton(addr, &cur_host.addr)) - e_error = TRUE; -- cur_host.mask.s_addr = ~0UL; -+ cur_host.mask.s_addr = 0; -+ cur_host.mask.s_addr = ~cur_host.mask.s_addr; - } - - /*
meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb renamed from meta/recipes-devtools/unfs3/unfs3_0.9.22.r490.bb +5 -6
@@ -4,9 +4,9 @@ LICENSE = "unfs3" LIC_FILES_CHKSUM = "file://LICENSE;md5=9475885294e17c0cc0067820d042792e" # SVN support for upstream version check isn't implemented yet -RECIPE_UPSTREAM_VERSION = "0.9.22.r495" -RECIPE_UPSTREAM_DATE = "Feb 05, 2015" -CHECK_DATE = "Jun 10, 2015" +RECIPE_UPSTREAM_VERSION = "0.9.22.r497" +RECIPE_UPSTREAM_DATE = "Oct 08, 2015" +CHECK_DATE = "Dec 10, 2015" DEPENDS = "flex-native bison-native flex" DEPENDS_append_class-nativesdk += "flex-nativesdk"
@@ -14,16 +14,15 @@ DEPENDS_append_class-nativesdk += "flex-nativesdk" SRC_URI[md5sum] = "3687acc4ee992e536472365dd99712a7" SRC_URI[sha256sum] = "274b43ada9c6eea1da26eb7010d72889c5278984ba0b50dff4e093057d4d64f8" -MOD_PV = "490" +MOD_PV = "497" S = "${WORKDIR}/trunk" -SRC_URI = "svn://svn.code.sf.net/p/unfs3/code;module=trunk;rev=${MOD_PV} \ +SRC_URI = "svn://svn.code.sf.net/p/unfs3/code;module=trunk;rev=${MOD_PV};protocol=http \ file://unfs3_parallel_build.patch \ file://alternate_rpc_ports.patch \ file://fix_pid_race_parent_writes_child_pid.patch \ file://fix_compile_warning.patch \ file://rename_fh_cache.patch \ file://relative_max_socket_path_len.patch \ - file://fix_warnings.patch \ file://tcp_no_delay.patch \ " BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.6.2
PATCH 10/20 mtd-utils: update to 1.5.2
In reply to Alexander KanavinDrop 0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch, the problem has been fixed upstream.
Drop backported 0001-mtd-utils-libfec-use-standard-C-type-instead-of-u_lo.patch Rebase 0001-Fix-build-with-musl.patch (2 out of 3 fixes have been made upstream)
--- .../mtd/mtd-utils/0001-Fix-build-with-musl.patch | 24 -------- ...emove-duplicate-hashtable_iterator_value-.patch | 64 ---------------------- ...ibfec-use-standard-C-type-instead-of-u_lo.patch | 56 ------------------- meta/recipes-devtools/mtd/mtd-utils_git.bb | 6 +- 4 files changed, 2 insertions(+), 148 deletions(-) delete mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch delete mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-mtd-utils-libfec-use-standard-C-type-instead-of-u_lo.patch
meta/recipes-devtools/mtd/mtd-utils/0001-Fix-build-with-musl.patch +0 -24
@@ -24,30 +24,6 @@ index f09c0b2..ed2dc43 100644 #include "rbtree.h" #include "common.h" -diff --git a/recv_image.c b/recv_image.c -index 26a8361..0093831 100644 ---- a/recv_image.c -+++ b/recv_image.c -@@ -4,7 +4,6 @@ - #define _BSD_SOURCE /* struct ip_mreq */ - - #include <errno.h> --#include <error.h> - #include <stdio.h> - #include <netdb.h> - #include <stdlib.h> -diff --git a/serve_image.c b/serve_image.c -index 38549a1..4f0e946 100644 ---- a/serve_image.c -+++ b/serve_image.c -@@ -3,7 +3,6 @@ - - #include <time.h> - #include <errno.h> --#include <error.h> - #include <netdb.h> - #include <stdio.h> - #include <stdlib.h> -- 2.6.1
meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch deleted +0 -64
64 lines not on this page · raw message
meta/recipes-devtools/mtd/mtd-utils/0001-mtd-utils-libfec-use-standard-C-type-instead-of-u_lo.patch deleted +0 -56
56 lines not on this page · raw message
meta/recipes-devtools/mtd/mtd-utils_git.bb +2 -4
@@ -7,16 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ DEPENDS = "zlib lzo e2fsprogs util-linux" -PV = "1.5.1+git${SRCPV}" +PV = "1.5.2" -SRCREV = "9f107132a6a073cce37434ca9cda6917dd8d866b" +SRCREV = "aea36417067dade75192bafa03af70b6eb2677b1" SRC_URI = "git://git.infradead.org/mtd-utils.git \ file://add-exclusion-to-mkfs-jffs2-git-2.patch \ file://fix-armv7-neon-alignment.patch \ - file://0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch \ file://mtd-utils-fix-corrupt-cleanmarker-with-flash_erase--j-command.patch \ file://0001-Fix-build-with-musl.patch \ - file://0001-mtd-utils-libfec-use-standard-C-type-instead-of-u_lo.patch \ " SRC_URI_append_libc-musl = " file://010-fix-rpmatch.patch "
Signature · 1 line
2.6.2
PATCH 11/20 flex: update to 2.6.0
In reply to Alexander KanavinDrop backported 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
Test cases have been completely rearranged upstream, so ptest support is fully rewritten.
--- ...fixes-Do-not-use-obsolete-bison-construct.patch | 80 ---------------------- meta/recipes-devtools/flex/files/run-ptest | 30 +------- meta/recipes-devtools/flex/flex.inc | 19 +++-- ...-target-for-building-tests-without-runnin.patch | 28 ++++++++ meta/recipes-devtools/flex/flex_2.5.39.bb | 9 --- meta/recipes-devtools/flex/flex_2.6.0.bb | 13 ++++ 6 files changed, 52 insertions(+), 127 deletions(-) delete mode 100644 meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch create mode 100644 meta/recipes-devtools/flex/flex/0001-tests-add-a-target-for-building-tests-without-runnin.patch delete mode 100644 meta/recipes-devtools/flex/flex_2.5.39.bb create mode 100644 meta/recipes-devtools/flex/flex_2.6.0.bb
meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch deleted +0 -80
@@ -1,80 +0,0 @@ -From 7fbc074901129ffaff9e18fadacae62d8053ad95 Mon Sep 17 00:00:00 2001 -From: Manoj Srivastava <[email protected]> -Date: Wed, 9 Apr 2014 00:23:07 -0700 -Subject: [PATCH] Do not use obsolete bison constructs in tests. - -In Bison 3.0, support for YYLEX_PARAM and YYPARSE_PARAM has been -removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or -%param. This commit fixes the tests so they still work. - -Signed-off-by: Manoj Srivastava <[email protected]> - -Upstream-Status: Backport [from http://sourceforge.net/p/flex/bugs/169/] - -Signed-off-by: Hongxu Jia <[email protected]> ---- - tests/test-bison-yylloc/parser.y | 4 ++-- - tests/test-bison-yylval/parser.y | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/test-bison-yylloc/parser.y b/tests/test-bison-yylloc/parser.y -index e8f4e56..224d252 100644 ---- a/tests/test-bison-yylloc/parser.y -+++ b/tests/test-bison-yylloc/parser.y -@@ -22,6 +22,7 @@ - */ - - %parse-param { void* scanner } -+%lex-param { void* scanner } - - /* - How to compile: -@@ -34,7 +35,6 @@ - #include "config.h" - - #define YYERROR_VERBOSE 1 --#define YYLEX_PARAM scanner - - extern int testget_lineno(void*); - -@@ -52,7 +52,7 @@ int process_text(char* s) { - - %} - --%pure_parser -+%pure-parser - - %union { - int lineno; -diff --git a/tests/test-bison-yylval/parser.y b/tests/test-bison-yylval/parser.y -index 0ffdb89..626c5e7 100644 ---- a/tests/test-bison-yylval/parser.y -+++ b/tests/test-bison-yylval/parser.y -@@ -26,6 +26,7 @@ - bison --defines --output-file="parser.c" --name-prefix="test" parser.y - */ - %parse-param { void* scanner } -+%lex-param { void* scanner } - %{ - #include <stdio.h> - #include <stdlib.h> -@@ -33,7 +34,6 @@ - #include "config.h" - - #define YYERROR_VERBOSE 1 --#define YYLEX_PARAM scanner - - - /* A dummy function. A check against seg-faults in yylval->str. */ -@@ -49,7 +49,7 @@ int process_text(char* s) { - - %} - --%pure_parser -+%pure-parser - - %union { - long unused; --- -1.9.1 -
meta/recipes-devtools/flex/files/run-ptest +3 -27
@@ -1,29 +1,5 @@ #!/bin/sh -test1="test-alloc-extra test-array-nr test-array-r test-basic-nr test-basic-r test-extended test-quotes \ -test-bison-nr test-bison-yylloc test-bison-yylval test-c++-basic test-c-cpp-nr test-prefix-nr test-ccl \ -test-c-cpp-r test-c++-multiple-scanners test-mem-r test-mem-nr test-debug-nr test-linedir-r test-noansi-r \ -test-yyextra test-header-r test-noansi-nr test-debug-r TEMPLATE test-top test-header-nr test-prefix-r" -test2="test-multiple-scanners-nr test-posixly-correct test-posix test-string-r test-string-nr" -test3="test-pthread test-include-by-push test-include-by-buffer test-include-by-reentrant" -test4="test-lineno-nr test-lineno-r test-lineno-trailing" -test5="test-c++-yywrap test-rescan-r test-rescan-nr" -test6="test-reject-nr test-reject-r" -test7="test-reject-ser test-reject-ver" -test8="test-multiple-scanners-r" - -output() { - if [ $? -eq 0 ]; \ - then echo "PASS: $i"; \ - else echo "FAIL: $i"; \ - fi; -} - -for i in $test1; do $i/$i < $i/test.input >/dev/null; output; done -for i in $test2; do $i/$i >/dev/null; output; done -for i in $test3; do cd $i; ./$i test-1.input >/dev/null; output; cd ..; done -for i in $test4; do test `$i/$i < $i/test.input` -eq `$i/$i 1 < $i/test.input` >/dev/null; output; done -for i in $test5; do $i/$i $i/test.input >/dev/null; output; done -for i in $test6; do test-reject/$i < test-reject/test.input >/dev/null; output; done -for i in $test7; do test-reject/$i test-reject/$i.tables < test-reject/test.input >/dev/null; output; done -cd $test8; ./$test8 >/dev/null; i=$test8 output +# make would want to rebuild some files with a compiler otherwise :-/ +make FLEX=/usr/bin/flex -t check-TESTS || true +make FLEX=/usr/bin/flex check-TESTS
meta/recipes-devtools/flex/flex.inc +8 -11
@@ -7,10 +7,7 @@ SECTION = "devel" LICENSE = "BSD" DEPENDS += "${@'bison-native flex-native' if '${PTEST_ENABLED}' == '1' else ''}" -SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \ - file://0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch \ - file://run-ptest \ -" +UPSTREAM_CHECK_REGEX = "flex-(?P<pver>\d+(\.\d+)+)\.tar" inherit autotools gettext texinfo ptest
@@ -30,16 +27,16 @@ do_install_append_class-nativesdk() { } RDEPENDS_${PN} += "m4" +RDEPENDS_${PN}-ptest += "bash gawk" do_compile_ptest() { - for i in `find ${S}/tests/ -type d |grep -Ev "concatenated-options|reject|table-opts" | awk -F/ '{print $NF}'`; \ - do oe_runmake -C ${S}/tests/$i -f ${B}/tests/$i/Makefile top_builddir=${B} FLEX=flex $i; \ - done - oe_runmake -C ${S}/tests/test-reject -f ${B}/tests/test-reject/Makefile top_builddir=${B} FLEX=flex test-reject-nr test-reject-r test-reject-ser test-reject-ver + oe_runmake -C ${B}/tests -f ${B}/tests/Makefile top_builddir=${B} INCLUDES=-I${S}/src FLEX=`which flex` buildtests } do_install_ptest() { - for i in `find ${S}/tests/ -type d | awk -F/ '{print $NF}'`; \ - do cp -r ${S}/tests/$i ${D}${PTEST_PATH}; \ - done + mkdir -p ${D}${PTEST_PATH}/build-aux/ + cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ + cp -r ${S}/tests/* ${D}${PTEST_PATH} + cp -r ${B}/tests/* ${D}${PTEST_PATH} + sed -e 's/^Makefile:/_Makefile:/' -e 's/^srcdir = \(.*\)/srcdir = ./' -e 's/^top_srcdir = \(.*\)/top_srcdir = ./' -i ${D}${PTEST_PATH}/Makefile }
meta/recipes-devtools/flex/flex/0001-tests-add-a-target-for-building-tests-without-runnin.patch new file +28 -0
@@ -0,0 +1,28 @@ +From b4aa18d939fc0c8825fa584dfcee1a7da61099cf Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Thu, 10 Dec 2015 16:09:26 +0200 +Subject: [PATCH] tests: add a target for building tests without running them + +Upstream-Status: Inappropriate [oe specific] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + tests/Makefile.am | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 4ac3c17..0025cfe 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -21,6 +21,9 @@ + + TESTS = $(check_PROGRAMS) options.cn + ++# This allows building tests without running them ++buildtests: $(TESTS) ++ + # The script testwrapper.sh will run most tests as is. A couple tests + # in the suite end in .reject, .table and the like so that we can pass + # different arguments to the test runner. We list those extensions so +-- +2.6.2 +
meta/recipes-devtools/flex/flex_2.5.39.bb deleted +0 -9
@@ -1,9 +0,0 @@ -require flex.inc -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067" -BBCLASSEXTEND = "native nativesdk" - -SRC_URI += "file://do_not_create_pdf_doc.patch" - -SRC_URI[md5sum] = "77d44c6bb8c0705e0017ab9a84a1502b" -SRC_URI[sha256sum] = "add2b55f3bc38cb512b48fad7d72f43b11ef244487ff25fc00aabec1e32b617f"
meta/recipes-devtools/flex/flex_2.6.0.bb new file +13 -0
@@ -0,0 +1,13 @@ +require flex.inc +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067" +BBCLASSEXTEND = "native nativesdk" + +SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \ + file://run-ptest \ + file://do_not_create_pdf_doc.patch \ + file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ + " + +SRC_URI[md5sum] = "266270f13c48ed043d95648075084d59" +SRC_URI[sha256sum] = "24e611ef5a4703a191012f80c1027dc9d12555183ce0ecd46f3636e587e9b8e9"
Signature · 1 line
2.6.2
Re: [PATCH 11/20] flex: update to 2.6.0
Quoted 6 lines · Alexander Kanavin
Drop backported 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
Test cases have been completely rearranged upstream, so ptest support is fully rewritten.
Fails to build for me:
| Making all in tests
| make[1]: Entering directory '/data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/build/tests'
| /bin/bash /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/build-aux/ylwrap /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_nr_parser.y y.tab.c bison_nr_parser.c y.tab.h `echo bison_nr_parser.c | sed -e
s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output bison_nr_parser.output -- bison -y -d -p test
| ../src/flex -o bison_nr_scanner.c /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_nr_scanner.l | /bin/bash /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/build-aux/ylwrap /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_yylloc_parser.y y.tab.c bison_yylloc_parser.c y.tab.h `echo bison_yylloc_parser.c | sed -e
s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output bison_yylloc_parser.output -- bison -y -d -p test
| ../src/flex -o bison_yylloc_scanner.c /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_yylloc_scanner.l | /bin/bash /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/build-aux/ylwrap /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_yylval_parser.y y.tab.c bison_yylval_parser.c y.tab.h `echo bison_yylval_parser.c | sed -e
s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output bison_yylval_parser.output -- bison -y -d -p test
| ../src/flex -o bison_yylval_scanner.c /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_yylval_scanner.l
| /bin/bash: ../src/flex: No such file or directory | Makefile:2868: recipe for target 'bison_nr_scanner.c' failed | make[1]: *** [bison_nr_scanner.c] Error 127 | make[1]: *** Waiting for unfinished jobs.... | /bin/bash: ../src/flex: No such file or directory | Makefile:2868: recipe for target 'bison_yylloc_scanner.c' failed | make[1]: *** [bison_yylloc_scanner.c] Error 127 | /bin/bash: ../src/flex: No such file or directory | Makefile:2868: recipe for target 'bison_yylval_scanner.c' failed | make[1]: *** [bison_yylval_scanner.c] Error 127 | /data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/flex-2.6.0/tests/bison_nr_parser.y:57.1-12: warning: deprecated directive, use '%pure-parser' [-Wdeprecated] | %pure_parser | ^^^^^^^^^^^^ | updating bison_nr_parser.h | updating bison_yylloc_parser.h | updating bison_yylval_parser.h | make[1]: Leaving directory
'/data/poky-master/tmp/work/corei7-64-poky-linux/flex/2.6.0-r0/build/tests' | Makefile:523: recipe for target 'all-recursive' failed
| make: *** [all-recursive] Error 1
A race in the test build?
Ross
PATCH 12/20 docbook-xsl-stylesheets: fix UPSTREAM_CHECK_REGEX
In reply to Alexander KanavinVersions ending in .0 are release candidates, so exclude those.
--- meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb +2 -1
@@ -12,7 +12,8 @@ SRC_URI[md5sum] = "6dd0f89131cc35bf4f2ed105a1c17771" SRC_URI[sha256sum] = "c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467" UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/docbook/files/docbook-xsl/" -UPSTREAM_CHECK_REGEX = "/docbook-xsl/(?P<pver>(\d+[\.\-_]*)+)/" +# Reject versions ending in .0 as those are release candidates +UPSTREAM_CHECK_REGEX = "/docbook-xsl/(?P<pver>(\d+[\.\-_]*)+(?!\.0)\.\d+)/" S = "${WORKDIR}/docbook-xsl-${PV}"
Signature · 1 line
2.6.2
PATCH 13/20 gmp: update to 6.1.0
In reply to Alexander Kanavingmp-6.0.0-ppc64.patch was a backport
configure.patch was a very old patch with an unclear purpose and significant rebasing effort required.
---
meta/recipes-support/gmp/gmp-6.0.0/configure.patch | 222 ---------------------
.../gmp/gmp-6.0.0/gmp-6.0.0-ppc64.patch | 26 ---
...ser-provided-flags-to-the-auto-detected-.patch} | 39 ++--
.../gmp/{gmp-6.0.0 => gmp-6.1.0}/amd64.patch | 0
.../{gmp-6.0.0 => gmp-6.1.0}/use-includedir.patch | 0
.../gmp/{gmp_6.0.0.bb => gmp_6.1.0.bb} | 17 +-
6 files changed, 31 insertions(+), 273 deletions(-)
delete mode 100644 meta/recipes-support/gmp/gmp-6.0.0/configure.patch
delete mode 100644 meta/recipes-support/gmp/gmp-6.0.0/gmp-6.0.0-ppc64.patch
rename meta/recipes-support/gmp/{gmp-6.0.0/append_user_provided_flags.patch => gmp-6.1.0/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch} (50%)
rename meta/recipes-support/gmp/{gmp-6.0.0 => gmp-6.1.0}/amd64.patch (100%)
rename meta/recipes-support/gmp/{gmp-6.0.0 => gmp-6.1.0}/use-includedir.patch (100%)
rename meta/recipes-support/gmp/{gmp_6.0.0.bb => gmp_6.1.0.bb} (58%)meta/recipes-support/gmp/gmp-6.0.0/configure.patch deleted +0 -222
@@ -1,222 +0,0 @@ -Upstream-Status: Pending - -Updated to apply to gmp-5.1.0 - -Signed-off-by: Marko Lindqvist <[email protected]> - ---- - acinclude.m4 | 32 +++++++++++++++++--------------- - configure.ac | 26 +++++++++----------------- - 2 files changed, 26 insertions(+), 32 deletions(-) - -diff --git a/acinclude.m4 b/acinclude.m4 -index 227712a..199aa6f 100644 ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -40,29 +40,29 @@ dnl a_out.exe - OpenVMS DEC C called via GNV wrapper (gnv.sourceforge.net) - dnl conftest.exe - various DOS compilers - - --define(IA64_PATTERN, -+define([IA64_PATTERN], - [[ia64*-*-* | itanium-*-* | itanium2-*-*]]) - - dnl Need to be careful not to match m6811, m6812, m68hc11 and m68hc12, all - dnl of which config.sub accepts. (Though none of which are likely to work - dnl with GMP.) - dnl --define(M68K_PATTERN, -+define([M68K_PATTERN], - [[m68k-*-* | m68[0-9][0-9][0-9]-*-*]]) - --define(POWERPC64_PATTERN, -+define([POWERPC64_PATTERN], - [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*]]) - --define(S390_PATTERN, -+define([S390_PATTERN], - [[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-*]]) - --define(S390X_PATTERN, -+define([S390X_PATTERN], - [[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*]]) - --define(X86_PATTERN, -+define([X86_PATTERN], - [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]]) - --define(X86_64_PATTERN, -+define([X86_64_PATTERN], - [[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar-*-* | bulldozer-*-* | piledriver-*-* | steamroller-*-* | excavator-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*]]) - - dnl GMP_FAT_SUFFIX(DSTVAR, DIRECTORY) -@@ -80,7 +80,7 @@ dnl x86 -> x86 - dnl x86/k6 -> k6 - dnl x86/k6/mmx -> k6_mmx - --define(GMP_FAT_SUFFIX, -+define([GMP_FAT_SUFFIX], - [[$1=`echo $2 | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`]]) - - -@@ -89,7 +89,7 @@ dnl ---------------------------------- - dnl Emit code to remove any occurrence of ITEM from $LISTVAR. ITEM can be a - dnl shell expression like $foo if desired. - --define(GMP_REMOVE_FROM_LIST, -+define([GMP_REMOVE_FROM_LIST], - [remove_from_list_tmp= - for remove_from_list_i in $[][$1]; do - if test $remove_from_list_i = [$2]; then :; -@@ -105,12 +105,12 @@ dnl GMP_STRIP_PATH(subdir) - dnl ---------------------- - dnl Strip entries */subdir from $path and $fat_path. - --define(GMP_STRIP_PATH, -+define([GMP_STRIP_PATH], - [GMP_STRIP_PATH_VAR(path, [$1]) - GMP_STRIP_PATH_VAR(fat_path, [$1]) - ]) - --define(GMP_STRIP_PATH_VAR, -+define([GMP_STRIP_PATH_VAR], - [tmp_path= - for i in $[][$1]; do - case $i in -@@ -131,7 +131,7 @@ dnl - dnl Dummy value for GMP_LIMB_BITS is enough - dnl for all current configure-time uses of gmp.h. - --define(GMP_INCLUDE_GMP_H, -+define([GMP_INCLUDE_GMP_H], - [[#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ - #define GMP_NAIL_BITS $GMP_NAIL_BITS - #define GMP_LIMB_BITS 123 -@@ -146,7 +146,7 @@ dnl Expand at autoconf time to the value of a "#define NAME" from the given - dnl FILE. The regexps here aren't very rugged, but are enough for gmp. - dnl /dev/null as a parameter prevents a hang if $2 is accidentally omitted. - --define(GMP_HEADER_GETVAL, -+define([GMP_HEADER_GETVAL], - [patsubst(patsubst( - esyscmd([grep "^#define $1 " $2 /dev/null 2>/dev/null]), - [^.*$1[ ]+],[]), -@@ -160,7 +160,7 @@ dnl The gmp version number, extracted from the #defines in gmp-h.in at - dnl autoconf time. Two digits like 3.0 if patchlevel <= 0, or three digits - dnl like 3.0.1 if patchlevel > 0. - --define(GMP_VERSION, -+define([GMP_VERSION], - [GMP_HEADER_GETVAL(__GNU_MP_VERSION,gmp-h.in)[]dnl - .GMP_HEADER_GETVAL(__GNU_MP_VERSION_MINOR,gmp-h.in)[]dnl - .GMP_HEADER_GETVAL(__GNU_MP_VERSION_PATCHLEVEL,gmp-h.in)]) -@@ -1524,7 +1524,9 @@ esac - echo ["define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)"] >>$gmp_tmpconfigm4 - - # All CPUs use asm-defs.m4 --echo ["include][(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')"] >>$gmp_tmpconfigm4i -+echo -n ["include("] >>$gmp_tmpconfigm4i -+echo -n ["CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4'"] >>$gmp_tmpconfigm4i -+echo [")"] >>$gmp_tmpconfigm4i - ]) - - -diff --git a/configure.ac b/configure.ac -index 64b2c50..f07b821 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -39,14 +39,6 @@ AC_REVISION($Revision$) - AC_PREREQ(2.59) - AC_INIT(GNU MP, GMP_VERSION, [[email protected], see https://gmplib.org/manual/Reporting-Bugs.html], gmp) - AC_CONFIG_SRCDIR(gmp-impl.h) --m4_pattern_forbid([^[ \t]*GMP_]) --m4_pattern_allow(GMP_LDFLAGS) --m4_pattern_allow(GMP_LIMB_BITS) --m4_pattern_allow(GMP_MPARAM_H_SUGGEST) --m4_pattern_allow(GMP_NAIL_BITS) --m4_pattern_allow(GMP_NUMB_BITS) --m4_pattern_allow(GMP_NONSTD_ABI) --m4_pattern_allow(GMP_CPU_TYPE) - - # If --target is not used then $target_alias is empty, but if say - # "./configure athlon-pc-freebsd3.5" is used, then all three of -@@ -348,7 +340,7 @@ AH_VERBATIM([HAVE_HOST_CPU_1], - # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is - # called. User selections of CC etc are respected. - # --# Care is taken not to use macros like AC_TRY_COMPILE during the GMP -+# Care is taken not to use macros like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) during the GMP - # pre-testing, since they of course depend on AC_PROG_CC, and also some of - # them cache their results, which is not wanted. - # -@@ -440,7 +432,7 @@ abilist="standard" - # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring - # c89 over cc here. But note that on HP-UX c89 provides a castrated - # environment, and would want to be excluded somehow. Maybe --# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and -+# already does enough to stick cc into ANSI mode and - # we don't need to worry. - # - cclist="gcc cc" -@@ -1843,7 +1835,7 @@ esac - CFLAGS_or_unset=${CFLAGS-'(unset)'} - CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} - --cat >&AC_FD_CC <<EOF -+cat >&AS_MESSAGE_LOG_FD() <<EOF - User: - ABI=$ABI - CC=$CC -@@ -2264,7 +2256,6 @@ AC_SUBST(DEFN_LONG_LONG_LIMB) - - # The C compiler and preprocessor, put into ANSI mode if possible. - AC_PROG_CC --AC_PROG_CC_STDC - AC_PROG_CPP - - -@@ -2286,11 +2277,11 @@ AC_SUBST(CCAS) - - # The C++ compiler, if desired. - want_cxx=no -+AC_PROG_CXX - if test $enable_cxx != no; then - test_CXXFLAGS=${CXXFLAGS+set} -- AC_PROG_CXX - -- echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC -+ echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() - cxxflags_ac_prog_cxx=$CXXFLAGS - cxxflags_list=ac_prog_cxx - -@@ -2412,7 +2403,7 @@ if test "$enable_assembly" = "no"; then - fi - - --cat >&AC_FD_CC <<EOF -+cat >&AS_MESSAGE_LOG_FD() <<EOF - Decided: - ABI=$ABI - CC=$CC -@@ -3781,7 +3772,7 @@ GMP_FINISH - # FIXME: Upcoming version of autoconf/automake may not like broken lines. - # Right now automake isn't accepting the new AC_CONFIG_FILES scheme. - --AC_OUTPUT(Makefile \ -+AC_CONFIG_FILES([Makefile \ - mpf/Makefile mpn/Makefile mpq/Makefile \ - mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile \ - tests/Makefile tests/devel/Makefile \ -@@ -3790,7 +3781,8 @@ AC_OUTPUT(Makefile \ - tests/cxx/Makefile \ - doc/Makefile tune/Makefile \ - demos/Makefile demos/calc/Makefile demos/expr/Makefile \ -- gmp.h:gmp-h.in) -+ gmp.h:gmp-h.in]) -+AC_OUTPUT - - AC_MSG_NOTICE([summary of build options: - --- -1.9.1 -
meta/recipes-support/gmp/gmp-6.0.0/gmp-6.0.0-ppc64.patch deleted +0 -26
@@ -1,26 +0,0 @@ - -Signed-off-by: Armin Kuster <[email protected]> - -This patch with pulled from gmp. -https://gmplib.org/repo/gmp/rev/4a6d258b467f -Upstream-Status: Backport - -# HG changeset patch -# User Torbjorn Granlund <[email protected]> -# Date 1395835068 -3600 -# Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7 -# Parent 301ce2788826a2d4d2725bd5cf01e998638db37a -Provide default for BMOD_1_TO_MOD_1_THRESHOLD. - -diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm ---- a/mpn/powerpc64/mode64/gcd_1.asm Tue Mar 25 15:34:52 2014 +0100 -+++ b/mpn/powerpc64/mode64/gcd_1.asm Wed Mar 26 12:57:48 2014 +0100 -@@ -43,6 +43,9 @@ - define(`n', `r4') - define(`v0', `r5') - -+ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',, -+ `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)') -+ - EXTERN_FUNC(mpn_mod_1) - EXTERN_FUNC(mpn_modexact_1c_odd)
meta/recipes-support/gmp/gmp-6.1.0/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch renamed from meta/recipes-support/gmp/gmp-6.0.0/append_user_provided_flags.patch +24 -15
@@ -1,14 +1,20 @@ -Upstream-Status: Inappropriate - -Append the user provided flags to the auto-detected ones. +From d3b9fc523fc11260ced890c35bc5c9e6391c8656 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Mon, 14 Dec 2015 14:19:49 +0200 +Subject: [PATCH] Append the user provided flags to the auto-detected ones. +Upstream-Status: Inappropriate Signed-off-by: Laurentiu Palcu <[email protected]> +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.ac | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) -Index: gmp-5.1.1/configure.ac -=================================================================== ---- gmp-5.1.1.orig/configure.ac 2014-02-11 15:05:44.925202403 +0200 -+++ gmp-5.1.1/configure.ac 2014-02-11 15:19:03.918511398 +0200 -@@ -1745,8 +1745,12 @@ +diff --git a/configure.ac b/configure.ac +index 9cedfeb..87caee5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1921,8 +1921,12 @@ cclist=$cclist EOF
@@ -23,16 +29,16 @@ Index: gmp-5.1.1/configure.ac for abi in $abilist; do abi_last="$abi" -@@ -2175,7 +2179,7 @@ +@@ -2353,7 +2357,7 @@ AC_SUBST(CCAS) + # The C++ compiler, if desired. want_cxx=no - AC_PROG_CXX if test $enable_cxx != no; then - test_CXXFLAGS=${CXXFLAGS+set} + test_CXXFLAGS= + AC_PROG_CXX - echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() - cxxflags_ac_prog_cxx=$CXXFLAGS -@@ -2202,7 +2206,7 @@ + echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC +@@ -2381,7 +2385,7 @@ if test $enable_cxx != no; then # Automake includes $CPPFLAGS in a C++ compile, so we do the same here. # for cxxflags_choice in $cxxflags_list; do
@@ -41,12 +47,15 @@ Index: gmp-5.1.1/configure.ac GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS, [want_cxx=yes break]) -@@ -2292,6 +2296,8 @@ +@@ -2477,6 +2481,8 @@ if test "$enable_assembly" = "no"; then # done fi +CFLAGS="$CFLAGS $user_CFLAGS" +CPPFLAGS="$CPPFLAGS $user_CPPFLAGS" - cat >&AS_MESSAGE_LOG_FD() <<EOF + cat >&AC_FD_CC <<EOF Decided: +-- +2.6.2 +
meta/recipes-support/gmp/gmp-6.1.0/amd64.patch renamed from meta/recipes-support/gmp/gmp-6.0.0/amd64.patch +0 -0
meta/recipes-support/gmp/gmp-6.1.0/use-includedir.patch renamed from meta/recipes-support/gmp/gmp-6.0.0/use-includedir.patch +0 -0
meta/recipes-support/gmp/gmp_6.1.0.bb renamed from meta/recipes-support/gmp/gmp_6.0.0.bb +7 -10
@@ -2,21 +2,18 @@ require gmp.inc LICENSE="GPLv2+ | LGPLv3+" -REVISION="a" - LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ " -SRC_URI += "file://configure.patch \ - file://amd64.patch \ - file://use-includedir.patch \ - file://append_user_provided_flags.patch \ - file://gmp-6.0.0-ppc64.patch \ - " -SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470" -SRC_URI[sha256sum] = "7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf" +SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \ + file://amd64.patch \ + file://use-includedir.patch \ + file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ + " +SRC_URI[md5sum] = "86ee6e54ebfc4a90b643a65e402c4048" +SRC_URI[sha256sum] = "498449a994efeba527885c10405993427995d3f86b8768d8cdf8d9dd7c6b73e8" acpaths = ""
Signature · 1 line
2.6.2
PATCH 14/20 kbd: update to 2.0.3
In reply to Alexander Kanavin0003-Only-inluclude-kernel-headers-with-glibc.patch is handling #include lines that are no longer present in the upstream source so it was dropped.
---
...-Only-inluclude-kernel-headers-with-glibc.patch | 29 ----------------------
.../kbd/{kbd_2.0.2.bb => kbd_2.0.3.bb} | 5 ++--
2 files changed, 2 insertions(+), 32 deletions(-)
delete mode 100644 meta/recipes-core/kbd/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch
rename meta/recipes-core/kbd/{kbd_2.0.2.bb => kbd_2.0.3.bb} (83%)meta/recipes-core/kbd/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 3c5c7acc7ef874b919b26583d3892e21b907833f Mon Sep 17 00:00:00 2001 -From: Natanael Copa <[email protected]> -Date: Wed, 20 Aug 2014 09:00:03 +0200 -Subject: [PATCH 3/4] Only inluclude kernel headers with glibc - -This fixes compile errors with musl libc - -Signed-off-by: Natanael Copa <[email protected]> -Upstream-Status: Pending ---- - src/resizecons.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/resizecons.c b/src/resizecons.c -index 5f84845..691dfcc 100644 ---- a/src/resizecons.c -+++ b/src/resizecons.c -@@ -80,7 +80,7 @@ - #include <sys/ioctl.h> - #if (__GNU_LIBRARY__ >= 6) - #include <sys/perm.h> --#else -+#elif defined(__GLIBC__) - #include <linux/types.h> - #include <linux/termios.h> - #endif --- -2.1.0 -
meta/recipes-core/kbd/kbd_2.0.3.bb renamed from meta/recipes-core/kbd/kbd_2.0.2.bb +2 -3
@@ -12,11 +12,10 @@ RCONFLICTS_${PN} = "console-tools" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \ file://uclibc-stdarg.patch \ - file://0003-Only-inluclude-kernel-headers-with-glibc.patch \ " -SRC_URI[md5sum] = "87475eb78b1d6e6ab06686dd323ad4ba" -SRC_URI[sha256sum] = "9dfddabf96012e329c4bebb96a21aeef7c3872f624e96e8156ba542b82aeb912" +SRC_URI[md5sum] = "231b46e7142eb41ea3ae06d2ded3c208" +SRC_URI[sha256sum] = "7a899de1c0eb75f3aea737095a736f2375e1cbfbe693fc14a3fe0bfb4649fb5e" PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam,"
Signature · 1 line
2.6.2
PATCH 15/20 systemtap: update to 2.9
In reply to Alexander Kanavin--- meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb | 2 -- meta/recipes-kernel/systemtap/systemtap_git.inc | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb +0 -2
@@ -4,8 +4,6 @@ require systemtap_git.inc DEPENDS = "systemtap virtual/kernel" -PR = "r1" - # On systems without CONFIG_UTRACE, this package is empty. ALLOW_EMPTY_${PN} = "1"
meta/recipes-kernel/systemtap/systemtap_git.inc +2 -2
@@ -1,7 +1,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRCREV = "bf16266782e1f2588b519a50d9684279d4e21036" -PV = "2.7+git${SRCPV}" +SRCREV = "7009f2f782e52d6105fe68d6ea2a9820a1099c06" +PV = "2.9" SRC_URI = "git://sourceware.org/git/systemtap.git \ file://docproc-build-fix.patch \
Signature · 1 line
2.6.2
PATCH 16/20 nfs-utils: update to 1.3.3
In reply to Alexander Kanavinipv6 support now requires libtirpc, so un-disable and add it to dependencies.
---
.../nfs-utils/{nfs-utils_1.3.1.bb => nfs-utils_1.3.3.bb} | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
rename meta/recipes-connectivity/nfs-utils/{nfs-utils_1.3.1.bb => nfs-utils_1.3.3.bb} (95%)meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb +3 -4
@@ -8,7 +8,7 @@ LICENSE = "MIT & GPLv2+ & BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" # util-linux for libblkid -DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3" +DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3 libtirpc" RDEPENDS_${PN}-client = "rpcbind bash" RDEPENDS_${PN} = "${PN}-client bash" RRECOMMENDS_${PN} = "kernel-module-nfsd"
@@ -34,8 +34,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x file://0001-nfs-utils-statd-fix-a-segfault-caused-by-improper-us.patch \ " -SRC_URI[md5sum] = "8de676b9ff34b8f9addc1d0800fabdf8" -SRC_URI[sha256sum] = "ff79d70b7b58b2c8f9b798c58721127e82bb96022adc04a5c4cb251630e696b8" +SRC_URI[md5sum] = "cd6b568c2e9301cc3bfac09d87fbbc0b" +SRC_URI[sha256sum] = "700d689c5622c87953c34102e5befafc4d3c811e676852238f0dd79c9c0c084d" # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will # pull in the remainder of the dependencies.
@@ -59,7 +59,6 @@ EXTRA_OECONF = "--with-statduser=rpcuser \ --disable-nfsv41 \ --enable-uuid \ --disable-gss \ - --disable-tirpc \ --disable-nfsdcltrack \ --with-statdpath=/var/lib/nfs/statd \ "
Signature · 1 line
2.6.2
PATCH 17/20 powertop: update to 2.8
In reply to Alexander Kanavin---
meta/recipes-kernel/powertop/{powertop_2.7.bb => powertop_2.8.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-kernel/powertop/{powertop_2.7.bb => powertop_2.8.bb} (88%)meta/recipes-kernel/powertop/powertop_2.8.bb renamed from meta/recipes-kernel/powertop/powertop_2.7.bb +2 -2
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" SRC_URI = "http://01.org/sites/default/files/downloads/powertop/powertop-${PV}.tar.gz" -SRC_URI[md5sum] = "e0d686e47daaf7e9d89031f7763432ef" -SRC_URI[sha256sum] = "8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca" +SRC_URI[md5sum] = "c55fedb69203e480801b18bd7b886241" +SRC_URI[sha256sum] = "a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a" UPSTREAM_CHECK_URI = "https://01.org/powertop/downloads"
Signature · 1 line
2.6.2
PATCH 18/20 babeltrace: update to 1.3.1
In reply to Alexander Kanavin---
.../lttng/{babeltrace_1.2.4.bb => babeltrace_1.3.1.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta/recipes-kernel/lttng/{babeltrace_1.2.4.bb => babeltrace_1.3.1.bb} (90%)meta/recipes-kernel/lttng/babeltrace_1.3.1.bb renamed from meta/recipes-kernel/lttng/babeltrace_1.2.4.bb +2 -3
@@ -10,10 +10,9 @@ inherit autotools pkgconfig DEPENDS = "glib-2.0 util-linux popt bison-native flex-native" -SRCREV = "90395824efc007de88787a6b8e400a07c980be1c" -PV = "1.2.4+git${SRCPV}" +SRCREV = "6e2b9096c77138593097335b9b27202d98918089" -SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.2 \ +SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.3 \ file://0001-Fix-invalid-pointer-free-with-trace-collection.patch \ "
Signature · 1 line
2.6.2
PATCH 19/20 procps: update to 3.3.11
In reply to Alexander Kanavinfix-configure.patch was fixing lines that have been removed upstream.
---
.../procps/procps/fix-configure.patch | 19 -------------------
.../procps/{procps_3.3.10.bb => procps_3.3.11.bb} | 5 ++---
2 files changed, 2 insertions(+), 22 deletions(-)
delete mode 100644 meta/recipes-extended/procps/procps/fix-configure.patch
rename meta/recipes-extended/procps/{procps_3.3.10.bb => procps_3.3.11.bb} (93%)meta/recipes-extended/procps/procps/fix-configure.patch deleted +0 -19
@@ -1,19 +0,0 @@ - -exec_prefix is /usr default in OE-Core - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Saul Wold <[email protected]> -Index: procps-ng-3.3.10/configure.ac -=================================================================== ---- procps-ng-3.3.10.orig/configure.ac -+++ procps-ng-3.3.10/configure.ac -@@ -70,7 +70,7 @@ AC_FUNC_MMAP - AC_FUNC_REALLOC - AC_FUNC_STRTOD - --usrbin_execdir='${exec_prefix}/usr/bin' -+usrbin_execdir='${exec_prefix}/bin' - AC_SUBST([usrbin_execdir]) - - AM_GNU_GETTEXT_VERSION([0.14.1])
meta/recipes-extended/procps/procps_3.3.11.bb renamed from meta/recipes-extended/procps/procps_3.3.10.bb +2 -3
@@ -13,12 +13,11 @@ DEPENDS = "ncurses" inherit autotools gettext pkgconfig update-alternatives SRC_URI = "http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-${PV}.tar.xz \ - file://fix-configure.patch \ file://sysctl.conf \ " -SRC_URI[md5sum] = "1fb7f3f6bf92ce6c5c9ed9949ae858fe" -SRC_URI[sha256sum] = "a02e6f98974dfceab79884df902ca3df30b0e9bad6d76aee0fb5dce17f267f04" +SRC_URI[md5sum] = "6cc5b94c1c5b8cbc89ad345a7b522f74" +SRC_URI[sha256sum] = "e9493169a2d2adc0bc045538707310c8e877b385e4e296143b62607d2bb044ed" S = "${WORKDIR}/procps-ng-${PV}"
Signature · 1 line
2.6.2
PATCH 20/20 grep: update to 2.22
In reply to Alexander KanavinDrop backported grep-fix-CVE-2015-1345.patch
---
.../grep/grep/grep-fix-CVE-2015-1345.patch | 154 ---------------------
.../grep/{grep_2.21.bb => grep_2.22.bb} | 5 +-
2 files changed, 2 insertions(+), 157 deletions(-)
delete mode 100644 meta/recipes-extended/grep/grep/grep-fix-CVE-2015-1345.patch
rename meta/recipes-extended/grep/{grep_2.21.bb => grep_2.22.bb} (85%)meta/recipes-extended/grep/grep/grep-fix-CVE-2015-1345.patch deleted +0 -154
@@ -1,154 +0,0 @@ -Upstream-Status: Backport - -Backport patch to fix CVE-2015-1345. -http://git.savannah.gnu.org/cgit/grep.git/commit/?id=83a95bd - -Signed-off-by: Kai Kang <[email protected]> ---- -From 83a95bd8c8561875b948cadd417c653dbe7ef2e2 Mon Sep 17 00:00:00 2001 -From: Yuliy Pisetsky <[email protected]> -Date: Thu, 1 Jan 2015 15:36:55 -0800 -Subject: [PATCH] grep -F: fix a heap buffer (read) overrun - -grep's read buffer is often filled to its full size, except when -reading the final buffer of a file. In that case, the number of -bytes read may be far less than the size of the buffer. However, for -certain unusual pattern/text combinations, grep -F would mistakenly -examine bytes in that uninitialized region of memory when searching -for a match. With carefully chosen inputs, one can cause grep -F to -read beyond the end of that buffer altogether. This problem arose via -commit v2.18-90-g73893ff with the introduction of a more efficient -heuristic using what is now the memchr_kwset function. The use of -that function in bmexec_trans could leave TP much larger than EP, -and the subsequent call to bm_delta2_search would mistakenly access -beyond end of the main input read buffer. - -* src/kwset.c (bmexec_trans): When TP reaches or exceeds EP, -do not call bm_delta2_search. -* tests/kwset-abuse: New file. -* tests/Makefile.am (TESTS): Add it. -* THANKS.in: Update. -* NEWS (Bug fixes): Mention it. - -Prior to this patch, this command would trigger a UMR: - - printf %0360db 0 | valgrind src/grep -F $(printf %019dXb 0) - - Use of uninitialised value of size 8 - at 0x4142BE: bmexec_trans (kwset.c:657) - by 0x4143CA: bmexec (kwset.c:678) - by 0x414973: kwsexec (kwset.c:848) - by 0x414DC4: Fexecute (kwsearch.c:128) - by 0x404E2E: grepbuf (grep.c:1238) - by 0x4054BF: grep (grep.c:1417) - by 0x405CEB: grepdesc (grep.c:1645) - by 0x405EC1: grep_command_line_arg (grep.c:1692) - by 0x4077D4: main (grep.c:2570) - -See the accompanying test for how to trigger the heap buffer overrun. - -Thanks to Nima Aghdaii for testing and finding numerous -ways to break early iterations of this patch. ---- - NEWS | 5 +++++ - THANKS.in | 1 + - src/kwset.c | 2 ++ - tests/Makefile.am | 1 + - tests/kwset-abuse | 32 ++++++++++++++++++++++++++++++++ - 5 files changed, 41 insertions(+) - create mode 100755 tests/kwset-abuse - -diff --git a/NEWS b/NEWS -index 975440d..3835d8d 100644 ---- a/NEWS -+++ b/NEWS -@@ -2,6 +2,11 @@ GNU grep NEWS -*- outline -*- - - * Noteworthy changes in release ?.? (????-??-??) [?] - -+** Bug fixes -+ -+ grep no longer reads from uninitialized memory or from beyond the end -+ of the heap-allocated input buffer. -+ - - * Noteworthy changes in release 2.21 (2014-11-23) [stable] - -diff --git a/THANKS.in b/THANKS.in -index aeaf516..624478d 100644 ---- a/THANKS.in -+++ b/THANKS.in -@@ -62,6 +62,7 @@ Michael Aichlmayr [email protected] - Miles Bader [email protected] - Mirraz Mirraz [email protected] - Nelson H. F. Beebe [email protected] -+Nima Aghdaii [email protected] - Olaf Kirch [email protected] - Paul Kimoto [email protected] - Péter Radics [email protected] -diff --git a/src/kwset.c b/src/kwset.c -index 4003c8d..376f7c3 100644 ---- a/src/kwset.c -+++ b/src/kwset.c -@@ -643,6 +643,8 @@ bmexec_trans (kwset_t kwset, char const *text, size_t size) - if (! tp) - return -1; - tp++; -+ if (ep <= tp) -+ break; - } - } - } -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 2cba2cd..0508cd2 100644 ---- a/tests/Makefile.am -+++ b/tests/Makefile.am -@@ -75,6 +75,7 @@ TESTS = \ - inconsistent-range \ - invalid-multibyte-infloop \ - khadafy \ -+ kwset-abuse \ - long-line-vs-2GiB-read \ - match-lines \ - max-count-overread \ -diff --git a/tests/kwset-abuse b/tests/kwset-abuse -new file mode 100755 -index 0000000..6d8ec0c ---- /dev/null -+++ b/tests/kwset-abuse -@@ -0,0 +1,32 @@ -+#! /bin/sh -+# Evoke a segfault in a hard-to-reach code path of kwset.c. -+# This bug affected grep versions 2.19 through 2.21. -+# -+# Copyright (C) 2015 Free Software Foundation, Inc. -+# -+# This program is free software: you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation, either version 3 of the License, or -+# (at your option) any later version. -+ -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+ -+# You should have received a copy of the GNU General Public License -+# along with this program. If not, see <http://www.gnu.org/licenses/>. -+ -+. "${srcdir=.}/init.sh"; path_prepend_ ../src -+ -+fail=0 -+ -+# This test case chooses a haystack of size 260,000, since prodding -+# with gdb showed a reallocation slightly larger than that in fillbuf. -+# To reach the buggy code, the needle must have length < 1/11 that of -+# the haystack, and 10,000 is a nice round number that fits the bill. -+printf '%0260000dXy\n' 0 | grep -F $(printf %010000dy 0) -+ -+test $? = 1 || fail=1 -+ -+Exit $fail --- -2.4.1 -
meta/recipes-extended/grep/grep_2.22.bb renamed from meta/recipes-extended/grep/grep_2.21.bb +2 -3
@@ -7,11 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8006d9c814277c1bfc4ca22af94b59ee" SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \ file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ - file://grep-fix-CVE-2015-1345.patch \ " -SRC_URI[md5sum] = "43c48064d6409862b8a850db83c8038a" -SRC_URI[sha256sum] = "5244a11c00dee8e7e5e714b9aaa053ac6cbfa27e104abee20d3c778e4bb0e5de" +SRC_URI[md5sum] = "e1015e951a49a82b02e38891026ef5df" +SRC_URI[sha256sum] = "ca91d22f017bfcb503d4bc3b44295491c89a33a3df0c3d8b8614f2d3831836eb" inherit autotools gettext texinfo
Signature · 1 line
2.6.2