[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: gnu: tcl: Produce 'tclIndex' files deterministically.
From: |
Ludovic Courtès |
Subject: |
03/10: gnu: tcl: Produce 'tclIndex' files deterministically. |
Date: |
Thu, 26 Nov 2015 17:02:10 +0000 |
civodul pushed a commit to branch tk-update
in repository guix.
commit 4c1a62acd19c2ede050220d50c503d3276a901bb
Author: Ludovic Courtès <address@hidden>
Date: Fri Nov 13 23:17:15 2015 +0100
gnu: tcl: Produce 'tclIndex' files deterministically.
* gnu/packages/patches/tcl-mkindex-deterministic.patch: New patch.
* gnu/packages/tcl.scm (tcl)[source]: Use it.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
.../patches/tcl-mkindex-deterministic.patch | 29 ++++++++++++++++++++
gnu/packages/tcl.scm | 16 +++++-----
3 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index adc4bb7..8b14151 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -694,6 +694,7 @@ dist_patch_DATA =
\
gnu/packages/patches/synfig-build-fix.patch \
gnu/packages/patches/tar-d_ino_in_dirent-fix.patch \
gnu/packages/patches/tar-skip-unreliable-tests.patch \
+ gnu/packages/patches/tcl-mkindex-deterministic.patch \
gnu/packages/patches/tcsh-fix-autotest.patch \
gnu/packages/patches/texi2html-document-encoding.patch \
gnu/packages/patches/texi2html-i18n.patch \
diff --git a/gnu/packages/patches/tcl-mkindex-deterministic.patch
b/gnu/packages/patches/tcl-mkindex-deterministic.patch
new file mode 100644
index 0000000..2fcef6a
--- /dev/null
+++ b/gnu/packages/patches/tcl-mkindex-deterministic.patch
@@ -0,0 +1,29 @@
+This patch ensures that the 'tclIndex' files generated by 'auto_mkindex'
+are sorted in a deterministic fashion.
+
+Fixes a non-determinism issue reported
+at <https://lists.gnu.org/archive/html/guix-devel/2015-10/msg00696.html>.
+
+--- tcl8.6.4/library/auto.tcl 2015-02-26 17:57:28.000000000 +0100
++++ tcl8.6.4/library/auto.tcl 2015-11-13 23:18:34.964831717 +0100
+@@ -207,6 +207,9 @@ proc auto_mkindex {dir args} {
+ set args *.tcl
+ }
+
++ # Keep file names sorted in a determistic order.
++ set args [lsort -ascii $args]
++
+ auto_mkindex_parser::init
+ foreach file [glob -- {*}$args] {
+ try {
+@@ -241,6 +244,10 @@ proc auto_mkindex_old {dir args} {
+ if {![llength $args]} {
+ set args *.tcl
+ }
++
++ # Keep file names sorted in a determistic order.
++ set args [lsort -ascii $args]
++
+ foreach file [glob -- {*}$args] {
+ set f ""
+ set error [catch {
diff --git a/gnu/packages/tcl.scm b/gnu/packages/tcl.scm
index c18b8b5..6f6838c 100644
--- a/gnu/packages/tcl.scm
+++ b/gnu/packages/tcl.scm
@@ -35,14 +35,14 @@
(package
(name "tcl")
(version "8.6.4")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/tcl/Tcl/"
- version "/tcl" version "-src.tar.gz"))
- (sha256
- (base32
- "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly"))))
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/tcl/Tcl/"
+ version "/tcl" version "-src.tar.gz"))
+ (sha256
+ (base32
+ "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly"))
+ (patches (list (search-patch
"tcl-mkindex-deterministic.patch")))))
(build-system gnu-build-system)
(arguments
'(#:phases (alist-cons-before
- branch tk-update created (now 5c9a1a8), Ludovic Courtès, 2015/11/26
- 01/10: http-client: 'http-fetch' and 'http-fetch/cached' support HTTPS., Ludovic Courtès, 2015/11/26
- 05/10: gnu: python: Set SOURCE_DATE_EPOCH to 1 instead of 0., Ludovic Courtès, 2015/11/26
- 02/10: tk: Hardcode path to TK_LIBRARY., Ludovic Courtès, 2015/11/26
- 06/10: gnu: python: Make 'sys.version' deterministic., Ludovic Courtès, 2015/11/26
- 08/10: gnu: python: Do not record configure flags., Ludovic Courtès, 2015/11/26
- 07/10: gnu: python: Factorize configure flags with minimal variants., Ludovic Courtès, 2015/11/26
- 03/10: gnu: tcl: Produce 'tclIndex' files deterministically.,
Ludovic Courtès <=
- 04/10: gnu: python-2: Honor 'SOURCE_DATE_EPOCH'., Ludovic Courtès, 2015/11/26
- 09/10: gnu: python: Clarify and shorten the list of built-time modules., Ludovic Courtès, 2015/11/26
- 10/10: gnu: python: Move tkinter to "tk" output., Ludovic Courtès, 2015/11/26