guix: gnu-dist: Fix distcheck.

* guix/build/gnu-dist.scm (build): Add a configure-flag during the
distcheck rebuild to use a shell we have in the build environment.

Change-Id: I3519ab498ef47728729297a70ac1dce8e1b922ee
This commit is contained in:
Efraim Flashner 2025-05-21 16:51:53 +03:00
parent 57b43d9af9
commit ed69ed73c1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2015, 2020, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2025 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
@ -37,6 +38,8 @@
(let ((build (assq-ref %standard-phases 'build)))
(apply build args)))
(format #t "building target `~a'~%" dist-target)
(setenv "DISTCHECK_CONFIGURE_FLAGS"
(string-append "SHELL=" (which "sh")))
(apply invoke "make" dist-target make-flags))
(define* (install-dist #:key outputs #:allow-other-keys)