[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: dico: Sort entries in .a files deterministically.
From: |
Ludovic Courtès |
Subject: |
01/06: gnu: dico: Sort entries in .a files deterministically. |
Date: |
Wed, 25 Nov 2015 11:00:15 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit b6094b1f0a6760b9f5296364cf5edb8a2e64953c
Author: Ludovic Courtès <address@hidden>
Date: Wed Nov 25 09:46:40 2015 +0100
gnu: dico: Sort entries in .a files deterministically.
* gnu/packages/patches/dico-libtool-deterministic.patch: New file.
* gnu/packages/dico.scm (dico)[source]: Use it.
[arguments]: Add #:make-flags.
* gnu-system.am (dist_patch_DATA): Add the patch.
---
gnu-system.am | 1 +
gnu/packages/dico.scm | 5 ++++-
.../patches/dico-libtool-deterministic.patch | 15 +++++++++++++++
3 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index 3f83b8b..91f36f4 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -437,6 +437,7 @@ dist_patch_DATA =
\
gnu/packages/patches/dbus-helper-search-path.patch \
gnu/packages/patches/dealii-p4est-interface.patch \
gnu/packages/patches/devil-fix-libpng.patch \
+ gnu/packages/patches/dico-libtool-deterministic.patch \
gnu/packages/patches/diffutils-gets-undeclared.patch \
gnu/packages/patches/dfu-programmer-fix-libusb.patch \
gnu/packages/patches/doxygen-test.patch \
diff --git a/gnu/packages/dico.scm b/gnu/packages/dico.scm
index 372c090..317eeee 100644
--- a/gnu/packages/dico.scm
+++ b/gnu/packages/dico.scm
@@ -43,11 +43,14 @@
(sha256
(base32
"04pjks075x20d19l623mj50bw64g8i41s63z4kzzqcbg9qg96x64"))
- (patches (list (search-patch "cpio-gets-undeclared.patch")))))
+ (patches (map search-patch
+ '("cpio-gets-undeclared.patch"
+ "dico-libtool-deterministic.patch")))))
(build-system gnu-build-system)
(arguments
'(#:configure-flags (list (string-append "--with-guile-site-dir=" %output
"/share/guile/site/2.0"))
+ #:make-flags '("V=1")
#:phases (modify-phases %standard-phases
(add-before 'check 'silence-guile
(lambda _
diff --git a/gnu/packages/patches/dico-libtool-deterministic.patch
b/gnu/packages/patches/dico-libtool-deterministic.patch
new file mode 100644
index 0000000..957fc79
--- /dev/null
+++ b/gnu/packages/patches/dico-libtool-deterministic.patch
@@ -0,0 +1,15 @@
+Dico 2.2 uses an old Libtool (2.2.7a) that did not sort the output
+of 'find', thereby leading to non-deterministic file name ordering
+in the arguments passed to 'ar rcu' for libdico.a & co.
+
+--- dico-2.2/build-aux/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
++++ dico-2.2/build-aux/ltmain.sh 2015-11-25 09:39:30.826169050 +0100
+@@ -2926,7 +2926,7 @@ func_extract_archives ()
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+- my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o
-name \*.lo -print | $NL2SP`
++ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o
-name \*.lo -print | sort | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
- branch master updated (3957013 -> b9c7ed7), Ludovic Courtès, 2015/11/25
- 02/06: gexp: Build text derivations locally., Ludovic Courtès, 2015/11/25
- 01/06: gnu: dico: Sort entries in .a files deterministically.,
Ludovic Courtès <=
- 04/06: services: dmd: Strip the default list of modules., Ludovic Courtès, 2015/11/25
- 06/06: services: dmd: Spawn a REPL upon failure to load a service definition., Ludovic Courtès, 2015/11/25
- 05/06: doc: Remove mention of monadic services., Ludovic Courtès, 2015/11/25
- 03/06: services: dmd: Add 'modules' and 'imported-modules' fields., Ludovic Courtès, 2015/11/25