From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YDFoGqYQImIvFwEAgWs5BA (envelope-from ) for ; Fri, 04 Mar 2022 14:14:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0N/PFqYQImKFDQAAauVa8A (envelope-from ) for ; Fri, 04 Mar 2022 14:14:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CE973B7AA for ; Fri, 4 Mar 2022 14:14:14 +0100 (CET) Received: from localhost ([::1]:46532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ7l7-00086x-7B for larch@yhetil.org; Fri, 04 Mar 2022 08:14:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ7iJ-0004LC-7l for bug-guix@gnu.org; Fri, 04 Mar 2022 08:11:19 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQ7i3-0005TN-Gn for bug-guix@gnu.org; Fri, 04 Mar 2022 08:11:18 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQ7i3-0007ST-BY for bug-guix@gnu.org; Fri, 04 Mar 2022 08:11:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#50299: [PATCH v5 06/24] gnu: swi-prolog: Make configuration wok when cross-compiling. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 04 Mar 2022 13:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50299 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50299@debbugs.gnu.org Received: via spool by 50299-submit@debbugs.gnu.org id=B50299.164639941228455 (code B ref 50299); Fri, 04 Mar 2022 13:11:03 +0000 Received: (at 50299) by debbugs.gnu.org; 4 Mar 2022 13:10:12 +0000 Received: from localhost ([127.0.0.1]:44767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQ7hE-0007Om-8n for submit@debbugs.gnu.org; Fri, 04 Mar 2022 08:10:12 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:42718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQ7Yk-00079u-2e for 50299@debbugs.gnu.org; Fri, 04 Mar 2022 08:01:28 -0500 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id 2D1P2700M4UW6Th01D1Rj9; Fri, 04 Mar 2022 14:01:25 +0100 From: Maxime Devos Date: Fri, 4 Mar 2022 13:01:01 +0000 Message-Id: <20220304130119.14858-7-maximedevos@telenet.be> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220304130119.14858-1-maximedevos@telenet.be> References: <20220304130119.14858-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646398885; bh=suTYAx+xnrtY0xnn6lDVqfZSbWzyzSdxDwH2McORVXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VEGVVCYt9lYOz4wq+b61PGIvD9h/EXV21C9qcBMUCPa5GzBgOIRmD3+upVxW2yN9+ rfC23Tp+YKqaOKn5E0aVqTbThh6voDhLmsCbQQAdvetfsIsKrOJMPrbEjtIIdjbHh4 ElUZjdqcdhZj/7wsZWs+UW9pN2AnN3moXJ1TzaNBnBYHl98ck2Adtke+hNPZq8PzSB l6hl/J699Igu6Lhq51MpWKoEpFomdaC9+pHu8FD41wSJFLfPJ656mKM8ul9Yn/emL/ Gs0BiRi+831qnxlwAyuMRB6RwwLyFeZDpverFUy32Z1qCfhgj+pBRHjxD5sanIkMKH DaAH4bxoclY2Q== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646399654; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=suTYAx+xnrtY0xnn6lDVqfZSbWzyzSdxDwH2McORVXE=; b=q4WTocxiRtpUZv84mtgu9ymeYqT9csxQBYdG09E51k/MA3jZDjOU9Umi3IquG2gAq+bbyU LOjIPu/MEu+0kKGwsSCY2QcuaBU+9JjHXf1yoNOGHyXTe9UA/EWQXA71MhWTOHrS3DjaVm dn+IIDVuq8FHbrZPgb7XbaKV+4F/ZKTRjocAAGZ9VlzNYPxvH9KiBNUEe6Zc3WcWbvYYlf UMs3tWzuB4xEXPUVsZgFALsmbC9uuZf4fotVK1LSUTSp6GXsRYDIk9WEt008+G9AZ5Og7B pSFBMBV+9Fysj0lUA8gUPQNthP4LxCgHgLvHHW+8FG+gJW3yRbEWW3xMEG8Jpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646399654; a=rsa-sha256; cv=none; b=uCrF6dosmp1yrtbtpEmn+b91NLZl42pYlwqcCzIEwgaxO2NbBfXO/nOp36EO8HPjVfvt9Q wiqgYTBVYGoPbmXc2ZVzjALMYo3oj1ekomsgGMR071wyPXAexIs4PAJxfcoRXnLhG7m65d kOS2JtQ7N8sl415NQRH4rJE3UGhODz+IGft1Mh7v0xqx+o9w7Gq3O8conFLWrWw32UjcZK +KLwBihGE2B3nhtYINtccxhPK2yx1eWoOfdoNH1DH6o0JvHqBpMpkFGTWkbSiRFS4DrlqJ m0iNbca5s0H7AGqpiLM0oqKn3jPGDPjoWwpmSymBNkayypJLuoU+HeKGgWI/hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=VEGVVCYt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=VEGVVCYt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0CE973B7AA X-Spam-Score: 5.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: A0dTnlWgH6nZ * gnu/packages/prolog.scm (swi-prolog)[arguments]<#:configure-flags>: Set BSD_SIGNALS and QSORT_R_GNU when cross-compiling. --- gnu/packages/prolog.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm index be5a3c5bf8..8d940530d8 100644 --- a/gnu/packages/prolog.scm +++ b/gnu/packages/prolog.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2013 Mark H Weaver ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2021 Efraim Flashner +;;; Copyright © 2021 Maxime Devos ;;; ;;; This file is part of GNU Guix. ;;; @@ -98,7 +99,13 @@ manner. It also features an interactive interpreter.") (arguments `(#:parallel-build? #t #:configure-flags - (list "-DINSTALL_DOCUMENTATION=ON" + (list ,@(if (%current-target-system) + ;; Set this manually, otherwise CMake would need to + ;; run a cross-compiled binary, which it can't do. + ;; These values were found on a Linux system. + '("-DBSD_SIGNALS=1" "-DQSORT_R_GNU=1") + '()) + "-DINSTALL_DOCUMENTATION=ON" "-DSWIPL_INSTALL_IN_LIB=OFF") ; FIXME: Breaks RUNPATH validation. #:phases (modify-phases %standard-phases -- 2.30.2