mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Tcl/Tk: Update to 8.6.11.
* gnu/packages/patches/tcl-fix-cross-compilation.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/tcl.scm (tcl): Update to 8.6.11. [source](patches): Remove. [arguments]: Remove trailing #t's. (tk): Update to 8.6.11.1. [arguments]: Remove trailing #t's and reindent.
This commit is contained in:
parent
4119775de1
commit
6daa0b5af3
3 changed files with 25 additions and 74 deletions
|
@ -1686,7 +1686,6 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/tar-skip-unreliable-tests.patch \
|
%D%/packages/patches/tar-skip-unreliable-tests.patch \
|
||||||
%D%/packages/patches/tcc-boot-0.9.27.patch \
|
%D%/packages/patches/tcc-boot-0.9.27.patch \
|
||||||
%D%/packages/patches/tclxml-3.2-install.patch \
|
%D%/packages/patches/tclxml-3.2-install.patch \
|
||||||
%D%/packages/patches/tcl-fix-cross-compilation.patch \
|
|
||||||
%D%/packages/patches/tcsh-fix-autotest.patch \
|
%D%/packages/patches/tcsh-fix-autotest.patch \
|
||||||
%D%/packages/patches/teensy-loader-cli-help.patch \
|
%D%/packages/patches/teensy-loader-cli-help.patch \
|
||||||
%D%/packages/patches/texinfo-5-perl-compat.patch \
|
%D%/packages/patches/texinfo-5-perl-compat.patch \
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
From f7fa48c4c75a1e748dc5071e709c0b62ff739eaa Mon Sep 17 00:00:00 2001
|
|
||||||
From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
|
|
||||||
Date: Mon, 9 Dec 2019 10:02:20 +0000
|
|
||||||
Subject: [PATCH] Fix [abd4abedd2]: Failed to build tk 8.6.10 with cross
|
|
||||||
compile
|
|
||||||
|
|
||||||
Patch taken from upstream to fix cross-compilation. To be removed on next Tcl release.
|
|
||||||
|
|
||||||
---
|
|
||||||
compat/strtol.c | 2 +-
|
|
||||||
compat/strtoul.c | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/compat/strtol.c b/compat/strtol.c
|
|
||||||
index b7f69196ce2..811006a64c3 100644
|
|
||||||
--- a/compat/strtol.c
|
|
||||||
+++ b/compat/strtol.c
|
|
||||||
@@ -53,7 +53,7 @@ strtol(
|
|
||||||
*/
|
|
||||||
|
|
||||||
p = string;
|
|
||||||
- while (TclIsSpaceProc(*p)) {
|
|
||||||
+ while (isspace(UCHAR(*p))) {
|
|
||||||
p += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/compat/strtoul.c b/compat/strtoul.c
|
|
||||||
index e37eb05f823..15587f1da1a 100644
|
|
||||||
--- a/compat/strtoul.c
|
|
||||||
+++ b/compat/strtoul.c
|
|
||||||
@@ -74,7 +74,7 @@ strtoul(
|
|
||||||
*/
|
|
||||||
|
|
||||||
p = string;
|
|
||||||
- while (TclIsSpaceProc(*p)) {
|
|
||||||
+ while (isspace(UCHAR(*p))) {
|
|
||||||
p += 1;
|
|
||||||
}
|
|
||||||
if (*p == '-') {
|
|
|
@ -44,20 +44,19 @@
|
||||||
(define-public tcl
|
(define-public tcl
|
||||||
(package
|
(package
|
||||||
(name "tcl")
|
(name "tcl")
|
||||||
(version "8.6.10")
|
(version "8.6.11")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/tcl/Tcl/"
|
(uri (string-append "mirror://sourceforge/tcl/Tcl/"
|
||||||
version "/tcl" version "-src.tar.gz"))
|
version "/tcl" version "-src.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1vc7imilx6kcb5319r7hnrp4jn5pqb41an3vr3azhgcfcgvdp5ji"))
|
"0n4211j80mxr6ql0xx52rig8r885rcbminfpjdb2qrw6hmk8c14c"))))
|
||||||
(patches (search-patches "tcl-fix-cross-compilation.patch"))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
(lambda _ (chdir "unix") #t))
|
(lambda _ (chdir "unix")))
|
||||||
(add-after 'install 'install-private-headers
|
(add-after 'install 'install-private-headers
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Private headers are needed by Expect.
|
;; Private headers are needed by Expect.
|
||||||
|
@ -68,8 +67,7 @@
|
||||||
;; Programs such as Ghostscript rely on it.
|
;; Programs such as Ghostscript rely on it.
|
||||||
(with-directory-excursion bin
|
(with-directory-excursion bin
|
||||||
(symlink (car (find-files "." "tclsh"))
|
(symlink (car (find-files "." "tclsh"))
|
||||||
"tclsh"))
|
"tclsh"))))))
|
||||||
#t))))
|
|
||||||
|
|
||||||
;; By default, man pages are put in PREFIX/man, but we want them in
|
;; By default, man pages are put in PREFIX/man, but we want them in
|
||||||
;; PREFIX/share/man. The 'validate-documentation-location' phase is
|
;; PREFIX/share/man. The 'validate-documentation-location' phase is
|
||||||
|
@ -197,7 +195,7 @@ X11 GUIs.")
|
||||||
(define-public tk
|
(define-public tk
|
||||||
(package
|
(package
|
||||||
(name "tk")
|
(name "tk")
|
||||||
(version "8.6.10")
|
(version "8.6.11.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/tcl/Tcl/"
|
(uri (string-append "mirror://sourceforge/tcl/Tcl/"
|
||||||
|
@ -205,38 +203,31 @@ X11 GUIs.")
|
||||||
version "-src.tar.gz"))
|
version "-src.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"11p3ycqbr5116vpaxv6fl6md6gcav1ffspgr8wrlc2lxhn543pv3"))
|
"1gh9k7l76qg9l0sb78ijw9xz4xl1af47aqbdifb6mjpf3cbsnv00"))
|
||||||
(patches (search-patches "tk-find-library.patch"))))
|
(patches (search-patches "tk-find-library.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(add-before
|
(add-before 'configure 'pre-configure
|
||||||
'configure 'pre-configure
|
(lambda _ (chdir "unix")))
|
||||||
(lambda _
|
(add-after 'install 'create-wish-symlink
|
||||||
(chdir "unix")
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
#t))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(add-after
|
(symlink (string-append out "/bin/wish"
|
||||||
'install 'create-wish-symlink
|
,(version-major+minor
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(symlink (string-append out "/bin/wish"
|
|
||||||
,(version-major+minor
|
|
||||||
(package-version tk)))
|
(package-version tk)))
|
||||||
(string-append out "/bin/wish")))
|
(string-append out "/bin/wish")))))
|
||||||
#t))
|
(add-after 'install 'add-fontconfig-flag
|
||||||
(add-after
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
'install 'add-fontconfig-flag
|
;; Add the missing -L flag for Fontconfig in 'tk.pc' and
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
;; 'tkConfig.sh'.
|
||||||
;; Add the missing -L flag for Fontconfig in 'tk.pc' and
|
(let ((out (assoc-ref outputs "out"))
|
||||||
;; 'tkConfig.sh'.
|
(fontconfig (assoc-ref inputs "fontconfig")))
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(substitute* (find-files out
|
||||||
(fontconfig (assoc-ref inputs "fontconfig")))
|
"^(tkConfig\\.sh|tk\\.pc)$")
|
||||||
(substitute* (find-files out
|
(("-lfontconfig")
|
||||||
"^(tkConfig\\.sh|tk\\.pc)$")
|
(string-append "-L" fontconfig
|
||||||
(("-lfontconfig")
|
"/lib -lfontconfig")))))))
|
||||||
(string-append "-L" fontconfig
|
|
||||||
"/lib -lfontconfig")))
|
|
||||||
#t))))
|
|
||||||
|
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(list (string-append "--with-tcl="
|
(list (string-append "--with-tcl="
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue