From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KL70FfL2zmE8ngAAgWs5BA (envelope-from ) for ; Fri, 31 Dec 2021 13:26:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EN+xDvL2zmHofAAAG6o9tA (envelope-from ) for ; Fri, 31 Dec 2021 13:26:26 +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 C8D1333075 for ; Fri, 31 Dec 2021 13:26:25 +0100 (CET) Received: from localhost ([::1]:57328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3GzH-0003vI-7X for larch@yhetil.org; Fri, 31 Dec 2021 07:26:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Gyx-0003tR-Uu for bug-guix@gnu.org; Fri, 31 Dec 2021 07:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3Gyv-0005kb-TG for bug-guix@gnu.org; Fri, 31 Dec 2021 07:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3Gyv-0002KF-Nf for bug-guix@gnu.org; Fri, 31 Dec 2021 07:26:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#50299: [PATCH v4 06/25] 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, 31 Dec 2021 12:26:01 +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.16409535128847 (code B ref 50299); Fri, 31 Dec 2021 12:26:01 +0000 Received: (at 50299) by debbugs.gnu.org; 31 Dec 2021 12:25:12 +0000 Received: from localhost ([127.0.0.1]:55371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3Gy6-0002IX-C3 for submit@debbugs.gnu.org; Fri, 31 Dec 2021 07:25:12 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:35800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3God-0001rw-5Z for 50299@debbugs.gnu.org; Fri, 31 Dec 2021 07:15:24 -0500 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id d0FM260074UW6Th010FNL0; Fri, 31 Dec 2021 13:15:22 +0100 From: Maxime Devos Date: Fri, 31 Dec 2021 12:14:48 +0000 Message-Id: <20211231121507.70323-7-maximedevos@telenet.be> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211231121507.70323-1-maximedevos@telenet.be> References: <20211231121507.70323-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=1640952922; bh=suTYAx+xnrtY0xnn6lDVqfZSbWzyzSdxDwH2McORVXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=A6vbdPqJPl0pRHJMOsDCUsnDwqCxjvNcFHF6ZxZ5RQQU413tgb1W0dj6v0ARpb6sp cfst+9WidSntQ0yxCoSNAq+EmTlG0IVcdFS20kwSLDgtvC72lZiI64rQbyXXPJezv4 E0tCnBRf9D+KWd6zBA+uoggs8T2Jbx5xgiS5I4sTrr6l/N4AnMJMdAMmcm3rQGQhdE QEn/5um5osPhc+FgmFIBRSTkRL7SRtD/ozurXIW/P0xzizBhPRIehJLTwGljUiLzeF NyjQUi5wMH4Y7qw0FWLHsI19cP9M4K2Y+a7PpLd4sCHEdAnaARxTeR27rX7GVOuBP9 xcd2rdOoL+BPg== 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640953585; 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=suTYAx+xnrtY0xnn6lDVqfZSbWzyzSdxDwH2McORVXE=; b=ENLhDsfNmj2WG/7wpznlWSvue5SKWrrkqJyUBK3vgnvNaAS/I7CVQxPy3q5ejqDiqGFrn7 tW8dXAWKMUyWhiTyKuU3Whmlan+/mGJvF1FQon4+SsNbP6/iyBJ6FkQIolJlJF2WcGk2+g gmA3E9Zumtuc/LV9bK446wvJxLlUkgFp6W/CcE+8Eechj9CUu35NoQsOGcse/ilWJ+kOwr 23lj/Xv88IdPxVdv1K7mh3jZaSaJ2Lc5NX0McTCYOcqh9j6ESiBYfkZRwqto17omHfEXv5 fRBV/hZo1/1yKmrxM4FXWZLRjUcicgcNMr4v+ujQFSQXT/+TuwJVrmzDo4+ANA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640953585; a=rsa-sha256; cv=none; b=nLmRL3JDGnY1WzxeSqo2yLVqfGF9mHmeKNdff7m5YtU5mpOLrFGPUQ+dTnSJ+R2zx1FOna 2QjvmKk6dGUgYTzC7ua/H6tlgkDCThOwH8uE4mnwCE9NeGSJlCAnE44Y2iOUcvEFhV1LmO 5JwKuM6Ch2cf9/c092Xd/Ew6PmrVEJmzCcvxtGDzfZfsKBE9NW3oLzOLZVcDqyUze5/7G9 y2GZigAgZM2cgtLYmJnBOXI3z9USsr5UGa3PBuSc+AaZGwkg/7sUq6TDy8ALj0MX17TFdy PZwXndEtB2v5Rxs6P+ICcqTdjXrhWyjx7bWQScg6rnonvTkjzdY1WLOktF6ngA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=A6vbdPqJ; 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: -1.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=A6vbdPqJ; 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: C8D1333075 X-Spam-Score: -1.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: IfeWGvQ6/xZO * 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