From b647d3a149c94ee84cde1af3af7442633afa3416 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 16 Nov 2024 11:21:32 +0300 Subject: [PATCH] gnu: libx86emu: Fix build. * gnu/packages/virtualization.scm (libx86emu): Fix build. [arguments]: Add extra "make-x86test" phase to make sure that "x86test" exists before running the parallel tests. Change-Id: Iad8d3fca6d4c04f6df9eba88e33e47324f160083 --- gnu/packages/virtualization.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 5c9461745c..b76180c3c6 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -38,6 +38,7 @@ ;;; Copyright © 2024 Ashish SHUKLA ;;; Copyright © 2024 Jakob Kirsch ;;; Copyright © 2024 Giacomo Leidi +;;; Copyright © 2024 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -732,6 +733,12 @@ (define-public libx86emu (string-append "LIBDIR = " lib "\n")) (("/usr/include") include))))) + ;; XXX: "make -C test" fails because it cannot find "x86test" + ;; executable due to parallel tests. So we need to make sure that + ;; this file is built before running the tests. + (add-before 'check 'make-x86test + (lambda _ + (invoke "make" "-C" "test" "x86test"))) (delete 'configure)))) ;no configure script (native-inputs (list nasm perl)) (synopsis "Library for x86 emulation")