summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2018-12-23 16:37:20 +0200
committerEfraim Flashner <efraim@flashner.co.il>2018-12-23 16:37:51 +0200
commitb83ddd03d961ea0a0cf75eb6649ecec4fbd4fb94 (patch)
treea7d86df8cb64bab1b3633889fce00f3fd50091ed
parentfc1f3f254785823be3eaca7fb4be262deace6cbf (diff)
gnu: datamash: Update to 1.4.
* gnu/packages/datamash.scm (datamash): Update to 1.4. [source]: Remove patch. * gnu/packages/patches/datamash-arm-tests.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it.
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/datamash.scm7
-rw-r--r--gnu/packages/patches/datamash-arm-tests.patch71
3 files changed, 3 insertions, 76 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index e2cac7ffed4..0af948cf450 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -651,7 +651,6 @@ dist_patch_DATA = \
651 %D%/packages/patches/cursynth-wave-rand.patch \ 651 %D%/packages/patches/cursynth-wave-rand.patch \
652 %D%/packages/patches/cvs-2017-12836.patch \ 652 %D%/packages/patches/cvs-2017-12836.patch \
653 %D%/packages/patches/cyrus-sasl-CVE-2013-4122.patch \ 653 %D%/packages/patches/cyrus-sasl-CVE-2013-4122.patch \
654 %D%/packages/patches/datamash-arm-tests.patch \
655 %D%/packages/patches/dbus-helper-search-path.patch \ 654 %D%/packages/patches/dbus-helper-search-path.patch \
656 %D%/packages/patches/deja-dup-use-ref-keyword-for-iter.patch \ 655 %D%/packages/patches/deja-dup-use-ref-keyword-for-iter.patch \
657 %D%/packages/patches/dfu-programmer-fix-libusb.patch \ 656 %D%/packages/patches/dfu-programmer-fix-libusb.patch \
diff --git a/gnu/packages/datamash.scm b/gnu/packages/datamash.scm
index 182d281a5d1..81b0069aab2 100644
--- a/gnu/packages/datamash.scm
+++ b/gnu/packages/datamash.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014, 2018 Eric Bavier <bavier@member.fsf.org> 2;;; Copyright © 2014, 2018 Eric Bavier <bavier@member.fsf.org>
3;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> 3;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
4;;; 4;;;
5;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
6;;; 6;;;
@@ -29,7 +29,7 @@
29(define-public datamash 29(define-public datamash
30 (package 30 (package
31 (name "datamash") 31 (name "datamash")
32 (version "1.3") 32 (version "1.4")
33 (source 33 (source
34 (origin 34 (origin
35 (method url-fetch) 35 (method url-fetch)
@@ -37,8 +37,7 @@
37 version ".tar.gz")) 37 version ".tar.gz"))
38 (sha256 38 (sha256
39 (base32 39 (base32
40 "19jpcv4ryvbz0476d6dgpxpbjkpmih4q84wj06nslls338bm5fzf")) 40 "0aj7wvv14s2fsf2rl49mqhxdagy8cbz6rz4xyi7bkg2nahnxsi7s"))))
41 (patches (search-patches "datamash-arm-tests.patch"))))
42 (native-inputs 41 (native-inputs
43 `(("which" ,which) ;for tests 42 `(("which" ,which) ;for tests
44 ("perl" ,perl))) ;for help2man 43 ("perl" ,perl))) ;for help2man
diff --git a/gnu/packages/patches/datamash-arm-tests.patch b/gnu/packages/patches/datamash-arm-tests.patch
deleted file mode 100644
index a24c5320ade..00000000000
--- a/gnu/packages/patches/datamash-arm-tests.patch
+++ /dev/null
@@ -1,71 +0,0 @@
1See https://lists.gnu.org/archive/html/bug-datamash/2018-03/msg00003.html and
2https://lists.gnu.org/archive/html/bug-datamash/2018-03/txt4DmvR7p6J9.txt
3
4From d446dba317aa067440d6312d955d523129949327 Mon Sep 17 00:00:00 2001
5From: Assaf Gordon <address@hidden>
6Date: Thu, 22 Mar 2018 11:00:34 -0600
7Subject: [PATCH 1/2] tests: fix --format='%4000f' expected output
8
9Can be 1.000009... or 1.000008999, depending on representation.
10
11* tests/datamash-output-format.pl: Check only the first 5 digits.
12---
13 tests/datamash-output-format.pl | 9 +++++----
14 1 file changed, 5 insertions(+), 4 deletions(-)
15
16diff --git a/tests/datamash-output-format.pl b/tests/datamash-output-format.pl
17index 52c68a2..ca99bb0 100755
18--- a/tests/datamash-output-format.pl
19+++ b/tests/datamash-output-format.pl
20@@ -98,12 +98,13 @@ my @Tests =
21 {OUT => "0" x 3999 . "1\n"}],
22
23 # due to binary floating representation, some decimal point digits won't be
24- # zero (e.g. 1.0000090000000000000000000000000523453254320000000...).
25- # The OUT_SUBST replaces exactly 3994 digits (as expected from the format)
26+ # zero (e.g. 1.0000090000000000000000000000000523453254320000000... or
27+ # 1.000008999999...).
28+ # The OUT_SUBST replaces exactly 3995 digits (as expected from the format)
29 # with an "X".
30 ['m2', '--format "%.4000f" sum 1', {IN_PIPE=>$in1},
31- {OUT => "1.000009X\n"},
32- {OUT_SUBST => 's/^(1\.000009)([0-9]{3994})$/\1X/'}],
33+ {OUT => "1.00000X\n"},
34+ {OUT_SUBST => 's/^(1\.00000)([0-9]{3995})$/\1X/'}],
35
36 );
37
38--
392.7.4
40
41
42From f4871963974a96d6e69cb80b9c2fac7ff0c1d472 Mon Sep 17 00:00:00 2001
43From: Assaf Gordon <address@hidden>
44Date: Thu, 22 Mar 2018 11:18:13 -0600
45Subject: [PATCH 2/2] tests: disable --format="%a" test
46
47Valid output can differ (e.g. 0x8.000p-3 vs 0x1.000p+0).
48
49* tests/datamash-output-format.pl: Disable 'a1' test.
50---
51 tests/datamash-output-format.pl | 4 +++-
52 1 file changed, 3 insertions(+), 1 deletion(-)
53
54diff --git a/tests/datamash-output-format.pl b/tests/datamash-output-format.pl
55index ca99bb0..5e90ae0 100755
56--- a/tests/datamash-output-format.pl
57+++ b/tests/datamash-output-format.pl
58@@ -90,7 +90,9 @@ my @Tests =
59 ['e2', '--format "%.3e" sum 1', {IN_PIPE=>$in1}, {OUT=>"1.000e+00\n"}],
60
61 # Test Custom formats: %a
62- ['a1', '--format "%0.3a" sum 1', {IN_PIPE=>$in1}, {OUT=>"0x8.000p-3\n"}],
63+ # Disable the test for now. Valid output can differ (e.g. 0x8.000p-3 and
64+ # 0x1.000p0 ).
65+ # ['a1', '--format "%0.3a" sum 1', {IN_PIPE=>$in1}, {OUT=>"0x8.000p-3\n"}],
66
67
68 # Custom formats can use lots of memory
69--
702.7.4
71