From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: [PATCH 1/2] gnu: qemu: Honor #:configure-flags argument. Date: Sun, 16 Aug 2015 07:35:58 -0500 Message-ID: <1439728559-2606-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZR1jn-0003wL-7M for guix-devel@gnu.org; Sun, 16 Aug 2015 13:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZR1jj-0007Sa-Td for guix-devel@gnu.org; Sun, 16 Aug 2015 13:28:51 -0400 Received: from smtp23.openmailbox.org ([62.4.1.57]:56842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZR1jj-0007SI-LT for guix-devel@gnu.org; Sun, 16 Aug 2015 13:28:47 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: Eric Bavier From: Eric Bavier * gnu/packages/qemu.scm (qemu-headless)[arguments]: Honor #:configure-flags arguments for configure phase. --- gnu/packages/qemu.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/qemu.scm b/gnu/packages/qemu.scm index af39427..6979655 100644 --- a/gnu/packages/qemu.scm +++ b/gnu/packages/qemu.scm @@ -74,7 +74,8 @@ (arguments '(#:phases (alist-replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs (configure-flags '()) + #:allow-other-keys) ;; The `configure' script doesn't understand some of the ;; GNU options. Thus, add a new phase that's compatible. (let ((out (assoc-ref outputs "out"))) @@ -87,11 +88,13 @@ ;; The binaries need to be linked against -lrt. (setenv "LDFLAGS" "-lrt") (zero? - (system* "./configure" - (string-append "--cc=" (which "gcc")) + (apply system* + `("./configure" + ,(string-append "--cc=" (which "gcc")) "--disable-debug-info" ; save build space "--enable-virtfs" ; just to be sure - (string-append "--prefix=" out))))) + ,(string-append "--prefix=" out) + ,@configure-flags))))) (alist-cons-after 'install 'install-info (lambda* (#:key inputs outputs #:allow-other-keys) -- 2.4.3