]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
findutils: Update to 4.6.0
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2016 23:53:05 +0000 (23:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2016 23:53:20 +0000 (23:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
findutils/findutils.nm
findutils/patches/findutils-4.6.0-mbrtowc-tests.patch [new file with mode: 0644]

index 135faed1a30130df13e330e830963d124f97f1aa..da3bca23224a868039c04c37ec00af91302ea5d1 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = findutils
-version    = 4.5.14
+version    = 4.6.0
 release    = 1
 
 groups     = System/Tools
@@ -25,9 +25,16 @@ source_dl  = http://ftp.gnu.org/pub/gnu/findutils/ ftp://alpha.gnu.org/gnu/findu
 
 build
        requires
+               autoconf
+               automake
+               gettext-devel
                libselinux-devel
        end
 
+       prepare_cmds
+               autoreconf -vfi
+       end
+
        configure_options += \
                --libexecdir=/usr/lib/findutils \
                --localstatedir=/var/lib/locate
diff --git a/findutils/patches/findutils-4.6.0-mbrtowc-tests.patch b/findutils/patches/findutils-4.6.0-mbrtowc-tests.patch
new file mode 100644 (file)
index 0000000..a140654
--- /dev/null
@@ -0,0 +1,35 @@
+From 06a46ba755195810f2aeda01b12d1ccfe7c2dcfd Mon Sep 17 00:00:00 2001
+From: Daiki Ueno <ueno@gnu.org>
+Date: Mon, 28 Dec 2015 06:27:42 +0900
+Subject: [PATCH] maint: fix operator precedence in mbrtowc test
+
+This is a fix for test breakage introduced by commit 45228d96; the
+equality expression must be parenthesized when negated with '!',
+otherwise we always get:
+
+  test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
+
+* m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
+
+Upstream-commit: 1f63650823cebf52044df840c81062ccb52163a2
+Signed-off-by: Kamil Dudka <kdudka@redhat.com>
+---
+ gl/m4/mbrtowc.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gl/m4/mbrtowc.m4 b/gl/m4/mbrtowc.m4
+index deb9f06..be2e9d6 100644
+--- a/gl/m4/mbrtowc.m4
++++ b/gl/m4/mbrtowc.m4
+@@ -569,7 +569,7 @@ changequote([,])dnl
+            int
+            main (void)
+            {
+-             return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
++             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
+            }]])],
+         [gl_cv_func_mbrtowc_empty_input=yes],
+         [gl_cv_func_mbrtowc_empty_input=no],
+-- 
+2.5.0
+