gnu: tcc: Update to a83b285.

Fixes <https://issues.guix.gnu.org/52140>.
Reported by Guillaume Le Vaillant <glv@posteo.net>.

* gnu/packages/c.scm (tcc): Update to a83b28568596afd8792fd58d1a5bd157fc6b6634.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Ekaitz Zarraga 2022-07-12 11:05:15 +02:00 committed by Ludovic Courtès
parent f35b771a0f
commit 18bb89c2b2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -15,6 +15,7 @@
;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com> ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org> ;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com> ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2022 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -112,34 +113,40 @@
(license license:expat)))) (license license:expat))))
(define-public tcc (define-public tcc
;; There's currently no release fixing <https://issues.guix.gnu.org/52140>.
(let ((revision "1")
(commit "a83b28568596afd8792fd58d1a5bd157fc6b6634"))
(package (package
(name "tcc") ;aka. "tinycc" (name "tcc") ;aka. "tinycc"
(version "0.9.27") (version (git-version "0.9.27" revision commit))
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append "mirror://savannah/tinycc/tcc-" (uri (git-reference
version ".tar.bz2")) (url "git://repo.or.cz/tinycc.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"177bdhwzrnqgyrdv1dwvpd04fcxj68s5pm1dzwny6359ziway8yy")))) "01znw86fg73x3k0clafica4b6glbhz69p588kvp766i0zgvs68dh"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list perl texinfo)) (native-inputs (list perl texinfo))
(arguments (arguments
`(#:configure-flags (list (string-append "--elfinterp=" `(#:configure-flags (list (string-append "--elfinterp="
(assoc-ref %build-inputs "libc") (assoc-ref %build-inputs
"libc")
,(glibc-dynamic-linker)) ,(glibc-dynamic-linker))
(string-append "--crtprefix=" (string-append "--crtprefix="
(assoc-ref %build-inputs "libc") (assoc-ref %build-inputs
"/lib") "libc") "/lib")
(string-append "--sysincludepaths=" (string-append "--sysincludepaths="
(assoc-ref %build-inputs "libc") (assoc-ref %build-inputs
"/include:" "libc") "/include:"
(assoc-ref %build-inputs (assoc-ref %build-inputs
"kernel-headers") "kernel-headers")
"/include:{B}/include") "/include:{B}/include")
(string-append "--libpaths=" (string-append "--libpaths="
(assoc-ref %build-inputs "libc") (assoc-ref %build-inputs
"/lib") "libc") "/lib")
,@(if (string-prefix? "armhf-linux" ,@(if (string-prefix? "armhf-linux"
(or (%current-target-system) (or (%current-target-system)
(%current-system))) (%current-system)))
@ -163,7 +170,7 @@ standard.")
(home-page "http://www.tinycc.org/") (home-page "http://www.tinycc.org/")
;; An attempt to re-licence tcc under the Expat licence is underway but not ;; An attempt to re-licence tcc under the Expat licence is underway but not
;; (if ever) complete. See the RELICENSING file for more information. ;; (if ever) complete. See the RELICENSING file for more information.
(license license:lgpl2.1+))) (license license:lgpl2.1+))))
(define-public pcc (define-public pcc
(package (package