me
/
guix
Archived
1
0
Fork 0

gnu: pth: Update ‘config.guess’ and ‘config.sub’

The original versions are too old to recognize architectures such as
aarch64 and powerpc64le.

* gnu/packages/pth.scm (pth)[arguments]: Change from quasiquote to quote.
[#:phases]{update-config-scripts}: New.
[native-inputs]: Add ‘config’.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Thiago Jung Bauermann 2021-08-17 01:55:52 -03:00 committed by Mathieu Othacehe
parent c88a870e9c
commit 6b85b4cf9b
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 16 additions and 6 deletions

View File

@ -2,6 +2,7 @@
;;; Copyright © 2012, 2015 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2012, 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Thiago Jung Bauermann <bauermann@kolabnow.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -19,6 +20,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages pth) (define-module (gnu packages pth)
#:use-module (gnu packages autotools)
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
@ -38,12 +40,20 @@
"0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj")))) "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:parallel-build? #f '(#:parallel-build? #f
#:configure-flags (list #:phases
,@(if (string=? "aarch64-linux" (modify-phases %standard-phases
(%current-system)) (add-after 'unpack 'update-config-scripts
'("--host=aarch64-unknown-linux-gnu") (lambda* (#:key inputs native-inputs #:allow-other-keys)
'())))) ;; Replace outdated config.guess and config.sub.
(for-each (lambda (file)
(install-file
(search-input-file
(or native-inputs inputs)
(string-append "/bin/" file)) "."))
'("config.guess" "config.sub")))))))
(native-inputs
(list config))
(home-page "https://www.gnu.org/software/pth/") (home-page "https://www.gnu.org/software/pth/")
(synopsis "Portable thread library") (synopsis "Portable thread library")
(description (description