diff options
Diffstat (limited to 'recipes/coreutils/coreutils-7.2')
-rw-r--r-- | recipes/coreutils/coreutils-7.2/automake-version.patch | 13 | ||||
-rw-r--r-- | recipes/coreutils/coreutils-7.2/coreutils-7.2-fix-sort-segfault.patch | 103 | ||||
-rw-r--r-- | recipes/coreutils/coreutils-7.2/man.patch | 47 | ||||
-rw-r--r-- | recipes/coreutils/coreutils-7.2/onceonly.m4 | 63 |
4 files changed, 0 insertions, 226 deletions
diff --git a/recipes/coreutils/coreutils-7.2/automake-version.patch b/recipes/coreutils/coreutils-7.2/automake-version.patch deleted file mode 100644 index 497ef15385..0000000000 --- a/recipes/coreutils/coreutils-7.2/automake-version.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: coreutils-7.1/configure.ac -=================================================================== ---- coreutils-7.1.orig/configure.ac -+++ coreutils-7.1/configure.ac -@@ -32,7 +32,7 @@ - AC_CONFIG_AUX_DIR([build-aux]) - AC_CONFIG_HEADERS([lib/config.h:lib/config.hin]) - --AM_INIT_AUTOMAKE([1.10a dist-xz]) -+AM_INIT_AUTOMAKE([1.10.2]) - - AC_PROG_CC_STDC - AM_PROG_CC_C_O diff --git a/recipes/coreutils/coreutils-7.2/coreutils-7.2-fix-sort-segfault.patch b/recipes/coreutils/coreutils-7.2/coreutils-7.2-fix-sort-segfault.patch deleted file mode 100644 index b4ee5b8c2d..0000000000 --- a/recipes/coreutils/coreutils-7.2/coreutils-7.2-fix-sort-segfault.patch +++ /dev/null @@ -1,103 +0,0 @@ -OE modifications to the original patch: - * Removed NEWS hunk to apply on vanilla 7.2 coreutils - ->From 570beb56f58bb087a614af885bec7e9cf6b19423 Mon Sep 17 00:00:00 2001 -From: Jim Meyering <meyering@redhat.com> -Date: Wed, 22 Apr 2009 08:45:27 +0200 -Subject: [PATCH] sort -m: don't segfault when output file is also an input = -file - -* src/sort.c (avoid_trashing_input): Fix an off-by-one error and -guard the use of memmove. -* NEWS (Bug fixes): Mention it. -* tests/misc/sort: Add tests to exercise the offending code. -* THANKS: Update. -Reported by Otavio Salvador in http://bugs.debian.org/525048. ---- - NEWS | 6 +++++- - THANKS | 1 + - src/sort.c | 10 ++++++---- - tests/misc/sort | 17 ++++++++++++++++- - 4 files changed, 28 insertions(+), 6 deletions(-) - -diff --git a/THANKS b/THANKS -index fe523fe..876a6b6 100644 ---- a/THANKS -+++ b/THANKS -@@ -435,6 +435,7 @@ Ole Laursen olau@hardworking.dk - Oliver Kiddle okiddle@yahoo.co.uk - Ørn E. Hansen oehansen@daimi.aau.dk - Oskar Liljeblad osk@hem.passagen.se -+Otavio Salvador otavio@ossystems.com.br - Pádraig Brady P@draigBrady.com - Patrick Mauritz oxygene@studentenbude.ath.cx - Paul D. Smith psmith@gnu.org -diff --git a/src/sort.c b/src/sort.c -index 2e6ce87..f48d727 100644 ---- a/src/sort.c -+++ b/src/sort.c -@@ -1,5 +1,5 @@ - /* sort - sort lines of text (with all kinds of options). -- Copyright (C) 1988, 1991-2008 Free Software Foundation, Inc. -+ Copyright (C) 1988, 1991-2009 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 -@@ -2602,18 +2602,20 @@ avoid_trashing_input (struct sortfile *files, size_t ntemps, - pid_t pid; - char *temp = create_temp (&tftp, &pid); - size_t num_merged = 0; -- while (i + num_merged < nfiles) -+ do - { - num_merged += mergefiles (&files[i], 0, nfiles - i, tftp, temp); - files[i].name = temp; - files[i].pid = pid; - -- memmove(&files[i], &files[i + num_merged], -- num_merged * sizeof *files); -+ if (i + num_merged < nfiles) -+ memmove(&files[i + 1], &files[i + num_merged], -+ num_merged * sizeof *files); - ntemps += 1; - nfiles -= num_merged - 1;; - i += num_merged; - } -+ while (i < nfiles); - } - } - -diff --git a/tests/misc/sort b/tests/misc/sort -index 4f377df..a27f47a 100755 ---- a/tests/misc/sort -+++ b/tests/misc/sort -@@ -1,6 +1,6 @@ - #!/usr/bin/perl - --# Copyright (C) 2008 Free Software Foundation, Inc. -+# Copyright (C) 2008, 2009 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 -@@ -339,6 +339,21 @@ my @Tests = - ["sort-numeric", '--sort=numeric', {IN=>".01\n0\n"}, {OUT=>"0\n.01\n"}], - ["sort-gennum", '--sort=general-numeric', - {IN=>"1e2\n2e1\n"}, {OUT=>"2e1\n1e2\n"}], -+ -+# -m with output file also used as an input file -+# In coreutils-7.2, this caused a segfault. -+# This test looks a little strange. Here's why: -+# since we're using "-o f", standard output will be empty, hence OUT=>'' -+# We still want to ensure that the output file, "f" has expected contents, -+# hence the added CMP=> directive. -+["output-is-input", '-m -o f', {IN=> {f=> "a\n"}}, {OUT=>''}, -+ {CMP=> ["a\n", {'f'=> undef}]} ], -+["output-is-input-2", '-m -o f', {OUT=>''}, -+ {IN=> {f=> "a\n"}}, {IN=> {g=> "b\n"}}, {IN=> {h=> "c\n"}}, -+ {CMP=> ["a\nb\nc\n", {'f'=> undef}]} ], -+["output-is-input-3", '-m -o f', {OUT=>''}, -+ {IN=> {g=> "a\n"}}, {IN=> {h=> "b\n"}}, {IN=> {f=> "c\n"}}, -+ {CMP=> ["a\nb\nc\n", {'f'=> undef}]} ], - ); - - # Add _POSIX2_VERSION=199209 to the environment of each test diff --git a/recipes/coreutils/coreutils-7.2/man.patch b/recipes/coreutils/coreutils-7.2/man.patch deleted file mode 100644 index 3de7c01b0b..0000000000 --- a/recipes/coreutils/coreutils-7.2/man.patch +++ /dev/null @@ -1,47 +0,0 @@ - -# -# Patch managed by http://www.holgerschurig.de/patcher.html -# - -Index: coreutils-7.1/configure.ac -=================================================================== ---- coreutils-7.1.orig/configure.ac -+++ coreutils-7.1/configure.ac -@@ -373,6 +373,20 @@ - # For a test of uniq: it uses the $LOCALE_FR envvar. - gt_LOCALE_FR - -+AC_MSG_CHECKING([whether to build man pages]) -+AC_ARG_WITH(manpages, -+ AS_HELP_STRING([--with-manpages], -+ [Enable building of manpages (default=yes)]), -+ [cu_cv_build_manpages=$enableval], -+ [cu_cv_build_manpages=yes]) -+# help2man doesn't work when crosscompiling, as it needs to run the -+# binary that was built. -+if test x"$cross_compiling" = x"yes"; then -+ cu_cv_build_manpages=no -+fi -+AC_MSG_RESULT($cu_cv_build_manpages) -+AM_CONDITIONAL(ENABLE_MANPAGES, test x"$cu_cv_build_manpages" = x"yes") -+ - AC_CONFIG_FILES( - Makefile - doc/Makefile -Index: coreutils-7.1/Makefile.am -=================================================================== ---- coreutils-7.1.orig/Makefile.am -+++ coreutils-7.1/Makefile.am -@@ -15,7 +15,12 @@ - # You should have received a copy of the GNU General Public License - # along with this program. If not, see <http://www.gnu.org/licenses/>. - -+if ENABLE_MANPAGES - SUBDIRS = lib src doc man po tests gnulib-tests -+else -+SUBDIRS = lib src doc po tests gnulib-tests -+endif -+ - EXTRA_DIST = cfg.mk maint.mk \ - .prev-version THANKS-to-translators THANKStt.in \ - .version \ diff --git a/recipes/coreutils/coreutils-7.2/onceonly.m4 b/recipes/coreutils/coreutils-7.2/onceonly.m4 deleted file mode 100644 index f6fec37cbf..0000000000 --- a/recipes/coreutils/coreutils-7.2/onceonly.m4 +++ /dev/null @@ -1,63 +0,0 @@ -# onceonly.m4 serial 3 -dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl This file defines some "once only" variants of standard autoconf macros. -dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS -dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS -dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS -dnl AC_REQUIRE([AC_HEADER_STDC]) like AC_HEADER_STDC -dnl The advantage is that the check for each of the headers/functions/decls -dnl will be put only once into the 'configure' file. It keeps the size of -dnl the 'configure' file down, and avoids redundant output when 'configure' -dnl is run. -dnl The drawback is that the checks cannot be conditionalized. If you write -dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi -dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to -dnl empty, and the check will be inserted before the body of the AC_DEFUNed -dnl function. - -dnl Autoconf version 2.57 or newer is recommended. -AC_PREREQ(2.54) - -# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of -# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). -AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ - : - AC_FOREACH([gl_HEADER_NAME], [$1], [ - AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(defn([gl_HEADER_NAME]), - [-./], [___])), [ - AC_CHECK_HEADERS(gl_HEADER_NAME) - ]) - AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, - [-./], [___]))) - ]) -]) - -# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of -# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). -AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ - : - AC_FOREACH([gl_FUNC_NAME], [$1], [ - AC_DEFUN([gl_CHECK_FUNC_]defn([gl_FUNC_NAME]), [ - AC_CHECK_FUNCS(defn([gl_FUNC_NAME])) - ]) - AC_REQUIRE([gl_CHECK_FUNC_]defn([gl_FUNC_NAME])) - ]) -]) - -# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of -# AC_CHECK_DECLS(DECL1, DECL2, ...). -AC_DEFUN([AC_CHECK_DECLS_ONCE], [ - : - AC_FOREACH([gl_DECL_NAME], [$1], [ - AC_DEFUN([gl_CHECK_DECL_]defn([gl_DECL_NAME]), [ - AC_CHECK_DECLS(defn([gl_DECL_NAME])) - ]) - AC_REQUIRE([gl_CHECK_DECL_]defn([gl_DECL_NAME])) - ]) -]) |