From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id NKs1DnPtVGGRNAAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 00:49:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UGssCXPtVGGILAAAbx9fmQ (envelope-from ) for ; Wed, 29 Sep 2021 22:49:23 +0000 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 A85B1E403 for ; Thu, 30 Sep 2021 00:49:22 +0200 (CEST) Received: from localhost ([::1]:35524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mViO9-0005St-NJ for larch@yhetil.org; Wed, 29 Sep 2021 18:49:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mViNt-0005P9-0D for bug-guix@gnu.org; Wed, 29 Sep 2021 18:49:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mViNs-0000k7-OI for bug-guix@gnu.org; Wed, 29 Sep 2021 18:49:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mViNs-0001Zu-Ml for bug-guix@gnu.org; Wed, 29 Sep 2021 18:49:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50299: [PATCH v3 06/27] 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: Wed, 29 Sep 2021 22:49:04 +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.16329557075841 (code B ref 50299); Wed, 29 Sep 2021 22:49:04 +0000 Received: (at 50299) by debbugs.gnu.org; 29 Sep 2021 22:48:27 +0000 Received: from localhost ([127.0.0.1]:50845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mViND-0001W2-6O for submit@debbugs.gnu.org; Wed, 29 Sep 2021 18:48:27 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:53586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mViMv-0001Sv-Es for 50299@debbugs.gnu.org; Wed, 29 Sep 2021 18:48:06 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id zyo1250090mfAB406yo50Y; Thu, 30 Sep 2021 00:48:05 +0200 From: Maxime Devos Date: Thu, 30 Sep 2021 00:47:38 +0200 Message-Id: <20210929224759.21803-6-maximedevos@telenet.be> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210929224759.21803-1-maximedevos@telenet.be> References: <20210929224759.21803-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=r21; t=1632955685; bh=xsJf7mRnqk35mEiQjznTASRCrO1JFOyhucN9ZlBmzFk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=J38fzxQ1FaKfwTrOSoageHLWw81zbrMuh/g/o+TVMu80qAVoyLwLWuZrgcDxHDxaJ +bdt9m6O0bpPvL3gyjL0Y7V7caDM7GlVrKFYzgLg8SKvnNkdAWe6MTZ3/48cgeT6SG 1+uNAPEL3N1Z4WIoFncE/oDyDbEdez4yAY31sZZiYyXoy2JdOvyRxnR5jLMQ2n4RwR e8JHRwN4dBsaNVkGoy+hR0bnoMtT4jV36yEkPvOMrn9DkgTDNhICyIfp8xXsooI/h8 W/mjL7hFbGPPJrueUNsq5izbfskHI+ab5kdCaHql40+5qTDDmlkjo8ixPsGFdGoGwu +YA//E2fySWow== 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: , Cc: Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632955762; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=xsJf7mRnqk35mEiQjznTASRCrO1JFOyhucN9ZlBmzFk=; b=E9cBWwIdkGzKg2wUV/VI5xZqqT3XgfAGS5oXN139CPGlgWXlkJtRKAZZ05zm8J3XmtSVIo 0IydKloWCfof6p/SGBuqcCyvrw5qaZjhgyFMYU6ignYWFsqvjb5+8yiThnnE3ORSTXAjiN BYCJ8oOqWG+pN+tud+4WVT8mGtOR5YvLtS6m4a+u/aWfLe8uT/mdgE2EH+c+6bL8GP5z8w 4DecMJsqEYhf6KsRNjdjF8dKsI8azTp1LKQ5rspCpbALohRCz+NW5GavvMR9jtFXYVrJDT RlGf9UMVIRdd86KY5i3Kl0Pf6iMJ5S8uy4CXJnz61Ybiex1Ggw/QButg+0aWRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632955762; a=rsa-sha256; cv=none; b=MfvCo2qRJm5OTu3frYR5ElyGjUHrBLkl+b5Xd9Y+A3PvPhaNil5X5ruiwyngMoYJCJjPfV 2C4wtJiOOfhsoMbb4TEcGBHVmusqgH6heWMC3uukmDJOcU5HdFxuQagivn9DRPvVKn11gY Q5GMnGd7ObncIlCRzUDfwSQT8WHcJcU/TvFuAdcktsAhCRbxhwdotfic095gBFdK00pzJT Jgm6c6OGFFEkyiOESYWNqfa+yPnW4bUHXdkcoQAJy/m+CF2RFyyFUx+A605auzQMEXbFQa tnBa1A9esZYn44vjX7a6i7l/G4Ko5b2kfuL7Mt3J4U2DQc1/zrm+kZQ1AmIgig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=J38fzxQ1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=J38fzxQ1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A85B1E403 X-Spam-Score: -0.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: jyMxJUQGUc1R * 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.33.0