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 ms5.migadu.com with LMTPS id aPCyHBTKSmO5swAAbAwnHQ (envelope-from ) for ; Sat, 15 Oct 2022 16:56:20 +0200 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 gHGIHBTKSmMKIgEAauVa8A (envelope-from ) for ; Sat, 15 Oct 2022 16:56:20 +0200 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 E87D8251B4 for ; Sat, 15 Oct 2022 16:56:19 +0200 (CEST) Received: from localhost ([::1]:43500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojiaI-0001QA-SS for larch@yhetil.org; Sat, 15 Oct 2022 10:56:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojia2-0001Pi-Su for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojia2-0000DQ-LB for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojia2-0001Jj-GZ for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57181] [PATCH v2 2/4] gnu: Add lingeling. References: <923508243.78855.1660404889221@ox93.mailbox.org> In-Reply-To: <923508243.78855.1660404889221@ox93.mailbox.org> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Oct 2022 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57181 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57181@debbugs.gnu.org Cc: mail@maxheisinger.at Received: via spool by 57181-submit@debbugs.gnu.org id=B57181.16658457555030 (code B ref 57181); Sat, 15 Oct 2022 14:56:02 +0000 Received: (at 57181) by debbugs.gnu.org; 15 Oct 2022 14:55:55 +0000 Received: from localhost ([127.0.0.1]:42414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojiZu-0001J2-Gj for submit@debbugs.gnu.org; Sat, 15 Oct 2022 10:55:54 -0400 Received: from mail-ej1-f66.google.com ([209.85.218.66]:45663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojiZr-0001IE-Cx for 57181@debbugs.gnu.org; Sat, 15 Oct 2022 10:55:53 -0400 Received: by mail-ej1-f66.google.com with SMTP id sc25so16103414ejc.12 for <57181@debbugs.gnu.org>; Sat, 15 Oct 2022 07:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:content-transfer-encoding:cc:to:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=XdPsWsuu0ISBY1mQKc2DJF5HZsHaD5IzR6mOKoUtJe8=; b=ja7XbtSYyz/7LJftClytsi9wZzDu8sYvBix6oRrHVIrUTeLipe7JXiKq8EvBYu6QM7 Qq2kISeuPx0gPZJ0c3TCDt/9O8xUW45fm6SKsS8gC8QL1p5DztLiNJRLtVZ9sGQPMM/3 Iv1YlMBtz2nL8Ug88evvysjMCpFnqnHpGc83RGxBMLmOFDfvw/7abY8Tx3JJmn7aDUHI vZdZK713nVRzjym4rR7njTqgix4+YROQ0BJnQjwLEW/ZkbsaKMyFKaaX6Df0FH89203D sa5hLMwGT06xlzPiGUrc6soFgLzfmXmkGFge+6wA3/k1X+shXSRxmdXmgNcNieQ9w1Qy ySkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:content-transfer-encoding:cc:to:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XdPsWsuu0ISBY1mQKc2DJF5HZsHaD5IzR6mOKoUtJe8=; b=65/ygXYhJahn8/erIFfVWEc4Tf5MUBeikzYiuUo6wow74foaM7VM+ul1jhGJdvTNFV EAR5+Ze8LOkdRdSf07LZZcKaienHK5k6ZPnN6hwkxk4mMTCnOlUtDIqHb6IRArmIJIaB jtrOe4nio6b4gB+39MjcRKxFs7qycAsYF+gI14oBx51gEs8xKtAvTX8cVsbPO8ytZi5Z NWunAYMm0RpR1rN/uLO6jj8WjzS+PpVMaRTPQDVp7vz0ZJ6/iCpVdyf83ImUnjqfbZvE 8CT5k8MfQcFQ6cyHnuiIn0rZZADqpXr1Qj1FXs2dWHOHYssf8KUjYRPVeneOX4XKnuQ7 5B5w== X-Gm-Message-State: ACrzQf0DZpWEhz2XKDM05NlMevuSg4nYT1prlFZQ0331Bcy8DmtwhC70 RXyUGsXrW7ai+JemypCJw97jJivIfUE= X-Google-Smtp-Source: AMsMyM42XoNDo1JtzJUJYTkqg7XFXo1Oh8zqMbKLOGDnJ7bY141Xspr8vGfF5mxvuz2AMYkDqcpdWg== X-Received: by 2002:a17:907:968e:b0:78d:d4c7:b74f with SMTP id hd14-20020a170907968e00b0078dd4c7b74fmr2282128ejc.727.1665845745814; Sat, 15 Oct 2022 07:55:45 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id f20-20020a17090631d400b0078a543e9301sm3129583ejf.200.2022.10.15.07.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Oct 2022 07:55:45 -0700 (PDT) From: Liliana Marie Prikler Date: Sat, 15 Oct 2022 16:45:44 +0200 Content-Transfer-Encoding: 7bit Message-ID: <435c49a1276da39ff1b2a2a6f125f09f2d492ae2.camel@gmail.com> MIME-Version: 1.0 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665845780; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=XdPsWsuu0ISBY1mQKc2DJF5HZsHaD5IzR6mOKoUtJe8=; b=PVXQNEvbq97+gIVzzJWjYshq25bctHUJsHRwu50UFV0mMl6DNRr7RRNryife8HDsmh0g0d kzY5RNH51bStBveyA8YeJ11xg9tEio4GPYorVIEWq9p7SYxL/Wh0fZ0a99geotHEcFgFuh 7vKerTXnIMJw050o76CKWX0bYGZaM5ZJd+idWHwS84LS1VsRg+yG+kA3XdD+qhUrsBsWhM AblWNLj7WffbjoORB7xNQpctu+HUPFOP60qHBjEdevZM17kOIc8YQzThqxuQ4Z3CTTO3hc ucVsQXgcxJxMvIjbn1fb6ScPhbprVMqrvTWkjGoOoDI31LuPPW1AaXfpkJVnIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665845780; a=rsa-sha256; cv=none; b=kd5DLBjHeSYvLQks2PlnsIqRtvX9sTrIbk5REPscofCZq5sQXunDJqPvvxXSxqj+Z6ZVXM 8FF06WmiQtPV2EVPCiqyKgfHyPU1us4bQqLsrLj9tOj7lbZbziG3X4JbYUl1Bg2SS1urd9 qONzqo5ouT/lroxCGDGXn5GTehaVq5v3IYWSFPheVuMPuwzMcJsI/Qf2OjeGaLbTYDWAg5 HiwbGj2vseNZ/X6YnI1F8igBEkazDC72c/uP1YlENglRYETvN+MQ1rUSusU6RNzRFv3x49 /gGys6NTaXVsNqZ6/uLbrGlGzQvv+AC4RXW4o/A90zdp8x4+zw05GJhEVUGczA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ja7XbtSY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ja7XbtSY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E87D8251B4 X-Spam-Score: 5.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: K8yWQZZ9Zj23 * gnu/packages/maths.scm (lingeling): New variable. --- gnu/packages/maths.scm | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1e9d7b8be8..5c8a0fe2ef 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -7429,6 +7429,88 @@ (define-public aiger (license (list license:expat license:bsd-3)))) ; blif2aig +(define-public lingeling + (let ((commit "72d2b13eea5fbd95557a3d0d199cd98dfbdc76ee") + (revision "1")) + (package + (name "lingeling") + (version (git-version "sc2022" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arminbiere/lingeling") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16s30x8s2cw6icchwm65zj56ph4qwz6i07g3hwkknvajisvjq85c")))) + (build-system gnu-build-system) + (arguments + (list #:test-target "test" + #:modules `((ice-9 match) + ,@%gnu-build-system-modules) + #:configure-flags #~(list "--aiger=.") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'unpack-aiger + (lambda* (#:key inputs #:allow-other-keys) + (invoke #$(ar-for-target) "x" + (search-input-file inputs "lib/libaiger.a") + "aiger.o") + (copy-file + (search-input-file inputs "include/aiger/aiger.h") + "aiger.h"))) + (add-after 'unpack 'hard-code-commit + (lambda _ + (substitute* "mkconfig.sh" + (("`\\./getgitid`") #$commit)))) + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (list "treengeling.c" "lgldimacs.c") + (("\"(gunzip|xz|bzcat|7z)" all cmd) + (string-append + "\"" + (search-input-file inputs (string-append "bin/" cmd))))))) + (replace 'configure + (lambda* (#:key configure-flags #:allow-other-keys) + (apply invoke "./configure.sh" configure-flags))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") + "/bin"))) + (mkdir-p bin) + (for-each + (lambda (file) + (install-file file bin)) + '("blimc" "ilingeling" "lglddtrace" "lglmbt" + "lgluntrace" "lingeling" "plingeling" + "treengeling"))))) + (add-after 'install 'wrap-path + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion (string-append + (assoc-ref outputs "out") + "/bin") + (for-each + (lambda (file) + (wrap-program + file + '("PATH" suffix + #$(map (lambda (input) + (file-append (this-package-input input) "/bin")) + '("gzip" "bzip2" "xz" "p7zip"))))) + ;; These programs use sprintf on buffers with magic + ;; values to construct commands (yes, eww), so we + ;; can't easily substitute* them. + '("lglddtrace" "lgluntrace" "lingeling" "plingeling")))))))) + (inputs (list `(,aiger "static") gzip bzip2 xz p7zip)) + (home-page "http://fmv.jku.at/lingeling") + (synopsis "SAT solver") + (description "This package provides a range of SAT solvers, including +the sequential @command{lingeling} and its parallel variants +@command{plingeling} and @command{treengeling}. A bounded model checker is +also included.") + (license license:expat)))) + (define-public libqalculate (package (name "libqalculate") -- 2.38.0