From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sKuaLInk/WCTnwAAgWs5BA (envelope-from ) for ; Mon, 26 Jul 2021 00:24:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sNUuKInk/WAXYQAAbx9fmQ (envelope-from ) for ; Sun, 25 Jul 2021 22:24:09 +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 07387B553 for ; Mon, 26 Jul 2021 00:24:09 +0200 (CEST) Received: from localhost ([::1]:42998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7mXX-0005ow-TZ for larch@yhetil.org; Sun, 25 Jul 2021 18:24:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7mXT-0005oG-71 for guix-patches@gnu.org; Sun, 25 Jul 2021 18:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7mXS-0007Dp-V9 for guix-patches@gnu.org; Sun, 25 Jul 2021 18:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7mXS-0002s5-SP for guix-patches@gnu.org; Sun, 25 Jul 2021 18:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49625] [PATCH v2 1/2] gnu: Add gecode. References: <20210718150351.12359-1-leo.prikler@student.tugraz.at> In-Reply-To: <20210718150351.12359-1-leo.prikler@student.tugraz.at> Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jul 2021 22:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49625 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49625@debbugs.gnu.org Received: via spool by 49625-submit@debbugs.gnu.org id=B49625.162725183811021 (code B ref 49625); Sun, 25 Jul 2021 22:24:02 +0000 Received: (at 49625) by debbugs.gnu.org; 25 Jul 2021 22:23:58 +0000 Received: from localhost ([127.0.0.1]:49554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7mXO-0002ra-7J for submit@debbugs.gnu.org; Sun, 25 Jul 2021 18:23:58 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:21660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7mXK-0002rG-CY for 49625@debbugs.gnu.org; Sun, 25 Jul 2021 18:23:56 -0400 Received: from localhost.localdomain (80-121-26-175.adsl.highway.telekom.at [80.121.26.175]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GXyJR1GPjz3wXX for <49625@debbugs.gnu.org>; Mon, 26 Jul 2021 00:23:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1627251831; bh=M0cWcUY0/FY8RTB9OOGX7u1lv0kSpSdNxAyDli6Ftx8=; h=From:To:Subject:Date; b=E41X/UK4G2+XDQkvKnev8R/nNTKgxNZhIGDsFu8FM71zCiSS2su0yTyKDVdphTCnX ROwbxrfV841JN+5/fUN8Lw9M4Wj8OXoEMMtpjsYrk5/YA2rSjRYbRMvKA7RIyQ+WMv 5hSR2DTKBprQRIb9E1BH0l7d/7bCLmf4VZhCQQY0= From: Leo Prikler Date: Mon, 26 Jul 2021 00:23:40 +0200 Message-Id: <20210725222341.30622-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627251849; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=M0cWcUY0/FY8RTB9OOGX7u1lv0kSpSdNxAyDli6Ftx8=; b=QIOsm6GE708Sx7YJBosYAz0T5NOIH/ASSrdVYEHgXn/sBK5HXVc+ULgRIcCy5BwzIk7eah n5jdRWcj3sdcWr22bO21mht4F9+bdK48KkST4GwsgaeXrMmxu/lhIVsK4MB3NI5EUOCvpZ wFVMOsVTyHIIRwGNVCrX9eRzKmVjBgN9rbfOac6SgrUf7dBDnSMdpsqqMzcBbD7q0RU1tg /dx086cgfUNEa4pFUXegY6gnc8/NlCAnAyEyOZNQQ2IW6RjTD7FrgHc0HtY4ts49ZTSWSm E4qJ+DKOYm2Eb1IXnGYEtpgfa7Dez+3mnkZO6u7SLCodwaJvAumQ0gw9Ki/x4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627251849; a=rsa-sha256; cv=none; b=jj2AJmX2AAv35Tdv5ET+mIB4Uiv96Ductggw09JcVUQme3PCQTSzPD/vswMB1LKsBcq+dK kEDb7p7vbHi+uqgqFSIdJxoGUX0rnj7HoGRVgMKhYsDiWFkpGE0/VTtUmOTq2kiCmGKNf+ 02UVK3lZd0aU7gDighz0Cvtmv77Q4yG8YcPE4DwQ0n1Ju2+zCEEyTGngahSbTLPERfY1+p PpDSxBJeryRxAx5Sf/0j8LiENmg1AcXQXwibow7OeiGOMk4hLZ2LwHaiDtM7q+zTTqHPaw wNqFNBR89JWP7HE24zgXfX6W1GmRRm0uMhUgAiRBzG8V30ES9rmifjeDpvqyxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="E41X/UK4"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="E41X/UK4"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 07387B553 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: hKxImIxsAluy * gnu/packages/maths.scm (gecode): New variable. --- gnu/packages/maths.scm | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index eeb32d554a..c052d33214 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2008,6 +2008,77 @@ linear and quadratic objectives. There are limited facilities for nonlinear and quadratic objectives using the Simplex algorithm.") (license license:epl1.0))) +(define-public gecode + (package + (name "gecode") + (version "6.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Gecode/gecode") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b1cq0c810j1xr2x9y9996p894571sdxng5h74py17c6nr8c6dmk")) + (modules '((guix build utils))) + (snippet + '(begin + ;; delete generated sources + (for-each delete-file + '("gecode/kernel/var-imp.hpp" + "gecode/kernel/var-type.hpp")))))) + (outputs '("out" "examples")) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list (string-append "GLDFLAGS=-Wl,-rpath=" + (assoc-ref %outputs "out") + "/lib") + "--enable-examples=no") + #:modules ((guix build gnu-build-system) + (guix build utils) + (ice-9 rdelim) + (ice-9 popen)) + #:phases + (modify-phases %standard-phases + (add-after 'build 'build-examples + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "compileexamples"))) + ;; The Makefile disrespects GLDFLAGS for some reason, so we have to + ;; patch it ourselves... *sigh* + (add-after 'install 'fix-rpath + (lambda* (#:key outputs #:allow-other-keys) + (let ((libdir (string-append (assoc-ref outputs "out") "/lib"))) + (for-each + (lambda (file) + (let* ((pipe (open-pipe* OPEN_READ "patchelf" + "--print-rpath" file)) + (line (read-line pipe))) + (and (zero? (close-pipe pipe)) + (invoke "patchelf" "--set-rpath" + (string-append libdir ":" line) + file)))) + (find-files libdir ".*\\.so$"))))) + (add-after 'install 'install-examples + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "installexamples" + (string-append "bindir=" (assoc-ref outputs "examples") + "/bin")))) + ;; Tests depend on installed libraries. + (delete 'check) + (add-after 'fix-rpath 'check + (assoc-ref %standard-phases 'check))))) + (native-inputs + `(("patchelf" ,patchelf) + ("perl" ,perl) + ("sed" ,sed))) + (home-page "https://www.gecode.org") + (synopsis "Toolkit for developing constraint-based systems") + (description "Gecode is a C++ toolkit for developing constraint-based +systems and applications. It provides a modular and extensible solver.") + (license license:expat))) + (define-public libflame (package (name "libflame") -- 2.32.0