diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-01-29 23:06:58 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:44:57 +0200 |
commit | d41a1c3c1efbbfcfb7c9720499084d6ffb933cae (patch) | |
tree | a3d6ee70f892767b0bd25787012b97ba4876231c /gnu | |
parent | 44fe64fe5f43c2e6abdaf9e7fa0f9822f3a041c4 (diff) | |
download | guix-d41a1c3c1efbbfcfb7c9720499084d6ffb933cae.tar.gz guix-d41a1c3c1efbbfcfb7c9720499084d6ffb933cae.zip |
gnu: pkgconf: Enable test suite.
* gnu/packages/pkg-config.scm (pkgconf) [arguments]: Remove #:tests? argument.
Add a set-HOME phase.
[native-inputs]: Add atf and kyua.
Change-Id: I28410d7486ab45cf1cbc6d306345fb85f0b9d7fc
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/pkg-config.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm index 06f0db960f..2f07bdab9d 100644 --- a/gnu/packages/pkg-config.scm +++ b/gnu/packages/pkg-config.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2012, 2013, 2014, 2016 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> -;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> +;;; Copyright © 2022, 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. @@ -29,6 +29,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages bash) + #:use-module (gnu packages check) #:use-module (guix memoization) #:export (pkg-config)) @@ -181,7 +182,13 @@ exec ~a \"$@\"" (base32 "0qbpczwrrsq2981mdv3iil26vq9ac8v1sfi9233jpiaixrhmhv96")))) (build-system gnu-build-system) - (arguments (list #:tests? #f)) ;TODO: package kyua + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'set-HOME + (lambda _ + ;; Kyua requires a writable HOME. + (setenv "HOME" "/tmp")))))) + (native-inputs (list atf kyua)) (home-page "http://pkgconf.org/") (synopsis "Package compiler and linker metadata toolkit") (description "@command{pkgconf} is a program which helps to configure |