From unknown Fri Jun 20 07:17:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64446 <64446@debbugs.gnu.org> To: bug#64446 <64446@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add bliss. Reply-To: bug#64446 <64446@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:17:10 +0000 retitle 64446 [PATCH] gnu: Add bliss. reassign 64446 guix-patches submitter 64446 David Elsing severity 64446 normal tag 64446 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 03 17:24:32 2023 Received: (at submit) by debbugs.gnu.org; 3 Jul 2023 21:24:32 +0000 Received: from localhost ([127.0.0.1]:34560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGR27-00063c-Qf for submit@debbugs.gnu.org; Mon, 03 Jul 2023 17:24:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:52468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGR22-00063N-FO for submit@debbugs.gnu.org; Mon, 03 Jul 2023 17:24:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGR21-0003dx-9R for guix-patches@gnu.org; Mon, 03 Jul 2023 17:24:25 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGR1x-00056M-5I for guix-patches@gnu.org; Mon, 03 Jul 2023 17:24:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 55ADE240101 for ; Mon, 3 Jul 2023 23:24:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688419457; bh=i4y28EJVHs2IkHRXDJEqvN6r/UERrd4YXuarxJEuzGQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=ceCAEWUBm823y0ANDYPnEsGDpRZU/rDDVeR4gTu8kzF6fOsC70eZi0+s8PS0UjgST o1dN0qMMxuKAd8UJvZTfTh+r+mex0AGM77h5uD5wXg6v3UJAENrGXatSeQfBaM84Zb qzl49ToW7C6X7Sdpmspf4iT5ZnDLlOozNWD8pvchSFhbddFUG2Q6SIGyHfTvy2GKe8 HbO/PjAesrGjd0Sgu5nNFwpvUGmjSk1FA6FPQOlHjPg538ISW4re7l4aO7oEzyZ2HU ZGYqSQ5HEbMo+Sd/vb1t1LOk4SDKfHb54YYint4/SVGoVWuCLca6vOXm/tf6YUYYpB 876vVlB1ZVing== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QvzSw6srkz6txs; Mon, 3 Jul 2023 23:24:16 +0200 (CEST) From: David Elsing To: guix-patches@gnu.org Subject: [PATCH] gnu: Add bliss. Date: Mon, 3 Jul 2023 21:21:32 +0000 Message-Id: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> MIME-Version: 1.0 X-Debbugs-Cc: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=david.elsing@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/maths.scm (bliss): New variable. --- The Makefile is rudimentary, so it is easier to call g++ directly. I did not include GMP, as it is only used to express group sizes exactly. gnu/packages/maths.scm | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 653e76027a..ff0aa6170b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8529,3 +8529,90 @@ (define-public scilab optimization, and modeling, simulation of explicit and implicit dynamical systems and symbolic manipulations.") (license license:cecill))) ;CeCILL v2.1 + +(define-public bliss + (package + (name "bliss") + (version "0.73") + (source (origin + (method url-fetch) + (uri (string-append "http://www.tcs.hut.fi/Software/bliss/bliss-" + version ".zip")) + (sha256 + (base32 + "110ggzyn4fpsq3haisv7pzkgfs5x1m7802r4n5cas30l0hlg6yzm")))) + (outputs (list "out" "doc")) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; No tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-string-macro + (lambda _ + (substitute* "bliss.cc" + (("\"__DATE__\"") "\" __DATE__ \"")))) + ;; Move headers under the bliss/ prefix + (add-after 'unpack 'move-headers + (lambda _ + (substitute* (find-files "." "\\.(h|hh|cc)$") + (("#include \"(.*)\"" all path) + (string-append "#include "))) + (mkdir-p "bliss") + (for-each + (lambda (file) + (rename-file file + (string-append "bliss/" (basename file)))) + (find-files "." "\\.(h|hh)$")))) + (add-after 'move-headers 'disable-gmp + (lambda _ + (substitute* "bliss/bignum.hh" + (("defined\\(BLISS_USE_GMP\\)") "0")))) + (delete 'configure) + (replace 'build + (lambda _ + (let ((source-files + '("defs" "graph" "partition" "orbit" "uintseqhash" "heap" + "timer" "utils"))) + (for-each + (lambda (file) + (display (string-append "Compiling " file "\n")) + (invoke "g++" "-I." "-fPIC" "-c" "-o" + (string-append file ".o") + (string-append file ".cc"))) + source-files) + (let ((object-files + (map (lambda (file) (string-append file ".o")) + source-files))) + (display (string-append "Linking shared library\n")) + (apply invoke "g++" "-I." "-fPIC" "-shared" + "-o" "libbliss.so" + "bliss_C.cc" + object-files) + (display (string-append "Building bliss\n")) + (apply invoke "g++" "-I." "-o" "bliss.out" "bliss.cc" + "-L." "-lbliss" + (string-append "-Wl,-rpath=" #$output:out "/lib") + object-files))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "Doxyfile" + (("INPUT *=.*") "INPUT = . bliss\n")) + (invoke "doxygen"))) + (replace 'install + (lambda _ + (install-file "libbliss.so" (string-append #$output:out "/lib")) + (mkdir-p (string-append #$output:out "/bin/")) + (copy-file "bliss.out" (string-append #$output:out "/bin/bliss")) + (copy-recursively "bliss" + (string-append #$output:out "/include/bliss")) + (copy-recursively + "html" (string-append #$output:doc "/share/doc/" + #$name "-" #$version "/html"))))))) + (native-inputs (list doxygen unzip)) + (home-page "http://www.tcs.hut.fi/Software/bliss/index.shtml") + (synopsis "Tool for computing automorphism groups and canonical labelings of graphs") + (description "@code{bliss} is a library for computing automorphism groups +and canonical forms of graphs. It has both a command line user interface as +well as C++ and C programming language APIs.") + (license license:lgpl3))) -- 2.40.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 26 12:10:42 2023 Received: (at 64446) by debbugs.gnu.org; 26 Jul 2023 16:10:42 +0000 Received: from localhost ([127.0.0.1]:49942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOh61-0004sR-PV for submit@debbugs.gnu.org; Wed, 26 Jul 2023 12:10:42 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:51238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOh5x-0004sC-Qd for 64446@debbugs.gnu.org; Wed, 26 Jul 2023 12:10:39 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0D69D369; Wed, 26 Jul 2023 18:10:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i112eFBrDaBv; Wed, 26 Jul 2023 18:10:29 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 14D2B2A1; Wed, 26 Jul 2023 18:10:29 +0200 (CEST) Date: Wed, 26 Jul 2023 18:10:27 +0200 From: Andreas Enge To: David Elsing Subject: Re: [bug#64446] [PATCH] gnu: Add bliss. Message-ID: References: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64446 Cc: 64446@debbugs.gnu.org, efraim@flashner.co.il, bavier@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, I have spent quite a long time on this package, trying to simplify your recipe. Am Mon, Jul 03, 2023 at 09:21:32PM +0000 schrieb David Elsing: > + (add-after 'unpack 'fix-string-macro > + (lambda _ > + (substitute* "bliss.cc" > + (("\"__DATE__\"") "\" __DATE__ \"")))) This so far is only a warning with newer gcc versions, so we do not really need it. > + ;; Move headers under the bliss/ prefix > + (add-after 'unpack 'move-headers > + (lambda _ > + (substitute* (find-files "." "\\.(h|hh|cc)$") > + (("#include \"(.*)\"" all path) > + (string-append "#include "))) > + (mkdir-p "bliss") > + (for-each > + (lambda (file) > + (rename-file file > + (string-append "bliss/" (basename file)))) > + (find-files "." "\\.(h|hh)$")))) All surprising phases need more comments for their rationale. I added this: ;; Move headers under the bliss/ prefix. This is a Guix choice, ;; since the header names are sufficiently generic to cause ;; confusions with other packages ("heap.hh"). > + (add-after 'move-headers 'disable-gmp > + (lambda _ > + (substitute* "bliss/bignum.hh" > + (("defined\\(BLISS_USE_GMP\\)") "0")))) This looks like it is not needed if using the Makefile. > + (replace 'build Here I am not convinced. You end up rewriting the Makefile in Guile. The Makefile works, but it tries to create a binary "bliss", which collides with the new file for the headers. This could be solved by moving the content of the 'move-headers phase between the installation of the bliss binary (after which it can be deleted) and the installation of the headers. Moreover, the Makefile does not create a dynamic, but only a static library, and your build phase adds a dynamic library. Is this our role as packagers? According to the time stamps of the files inside the .zip, the software dates from 2015 and is apparently unmaintained (otherwise I would have suggested to get in touch with the developers to improve the Makefile). So I wonder whether this software meets the quality standards for inclusion into Guix. Hm, I just found a new version here: https://users.aalto.fi/~tjunttil/bliss/index.html : "Compiling In Linux and macOS, one can use GNU Make to compile the bliss executable, as well as the static and shared libraries, with (...)"! And the author is here: https://users.aalto.fi/~tjunttil/ Would you like to give it another try, David? And maybe discuss with the author whether they would be willing to implement the bliss/ subdirectory for the headers? (Given that there are now separate src/ and build/ subdirectories that would be quite easy.) And add an "install" target? Andreas From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 26 12:22:34 2023 Received: (at 64446) by debbugs.gnu.org; 26 Jul 2023 16:22:34 +0000 Received: from localhost ([127.0.0.1]:49960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOhHW-0005Am-Iy for submit@debbugs.gnu.org; Wed, 26 Jul 2023 12:22:34 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:38696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOhHV-0005AY-3Y for 64446@debbugs.gnu.org; Wed, 26 Jul 2023 12:22:33 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 89F4E1BD3; Wed, 26 Jul 2023 18:22:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBuozsZUHi4c; Wed, 26 Jul 2023 18:22:25 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0575115F3; Wed, 26 Jul 2023 18:22:24 +0200 (CEST) Date: Wed, 26 Jul 2023 18:22:23 +0200 From: Andreas Enge To: David Elsing Subject: Re: [bug#64446] [PATCH] gnu: Add bliss. Message-ID: References: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64446 Cc: 64446@debbugs.gnu.org, efraim@flashner.co.il, bavier@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Mon, Jul 03, 2023 at 09:21:32PM +0000 schrieb David Elsing: > + (outputs (list "out" "doc")) Oh, and I think the documentation is sufficiently small to be kept in the same package. Andreas From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:14:33 2023 Received: (at 64446) by debbugs.gnu.org; 20 Sep 2023 22:14:33 +0000 Received: from localhost ([127.0.0.1]:60566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Sr-0005eW-5o for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:14:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Sp-0005eI-Am for 64446@debbugs.gnu.org; Wed, 20 Sep 2023 18:14:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A449A240027 for <64446@debbugs.gnu.org>; Thu, 21 Sep 2023 00:14:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695248055; bh=kxQCnOB+KGmn+tbRpAXfAUiebhgnSFvDIy32ysS7tZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=EDOyuCStLk/2z9ZCOKV8Et6ITpVH16nyTXfWjN4md4S9seWxVj0rgqzm0QVa2G6AY MSGnruEtIxglHUBr+TQubVQcwSLGRLITQj7aqcHDdTtHAysdxs2GlXNCF+ZGYPcm5R PsELN0AMr5z1m/u3be2craOrzsm5jCmH3etpin2tha1NAAoj3ybbcN7W/i8xCiiACe edsaY18bYlldKN55pMFj0ANpgXP8YKOVigseb/vWWjb4ciovNOrJGlgHIn4rqWwKuq /JaaA3uk0KTeyX7jc8/4oJyc90qSroMS9Wgn0cKvDSkz7WP/FzQdzEpN/UZLGqQPxm DWnAm5L7v6/Cg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXr669HXz9rxB; Thu, 21 Sep 2023 00:14:14 +0200 (CEST) From: David Elsing To: Andreas Enge Subject: Re: [bug#64446] [PATCH] gnu: Add bliss. In-Reply-To: References: <5840cd3331640479ee55e604b4e5080be85819ba.1688419275.git.david.elsing@posteo.net> Date: Wed, 20 Sep 2023 22:14:14 +0000 Message-ID: <7y1qespk5l.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64446 Cc: 64446@debbugs.gnu.org, efraim@flashner.co.il, bavier@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andreas Enge writes: Hello, thanks for your comments! I noticed that igraph actually contains a bundled copy of bliss which uses GMP, so I added it as a dependency here. > ;; Move headers under the bliss/ prefix. This is a Guix choice, > ;; since the header names are sufficiently generic to cause > ;; confusions with other packages ("heap.hh"). In igraph, the bundled copy also has the files under the bliss/ prefix, so I think it's good we do the same. > Would you like to give it another try, David? And maybe discuss with the > author whether they would be willing to implement the bliss/ subdirectory > for the headers? (Given that there are now separate src/ and build/ > subdirectories that would be quite easy.) And add an "install" target? I updated the package using the CMake build files in the new version. During unbundling bliss from igraph, I saw that it also contains a copy of CXSparse, which led me to split SuiteSparse into its subpackages: https://issues.guix.gnu.org/66129. When updating the igraph package, it would be good to use the suitesparse-cxsparse package right away, so I did not include it yet. The build with the bliss package succeeds however. Cheers, David From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:20:35 2023 Received: (at 64446) by debbugs.gnu.org; 20 Sep 2023 22:20:35 +0000 Received: from localhost ([127.0.0.1]:60577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Yh-0005nv-11 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:20:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Yc-0005nd-LO for 64446@debbugs.gnu.org; Wed, 20 Sep 2023 18:20:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CA05C240027 for <64446@debbugs.gnu.org>; Thu, 21 Sep 2023 00:20:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695248414; bh=DwL7d5wpsylyPB9X46TYgtUYAMyHWWvxD3FlSI8EDIg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Mw+TptQTxq6N3lXf7qG2tp5zREx0kLP8ZTrk73jDVudkSkistgL3FsV3rb+wkNvmt FqmB5oz3PA+KBSP1V1HmUfwP5uDBjvzveqer7Z1CIvvegYcDyCDe4eysIp+Co06krn 6suYy/eHZf7qaLCz5C+FMHjgn73ci60ibhMYisboZ8mf/0F5KJ5RxarHwZFuhwlI6/ DUiag0Sjd1ijhkEkjJmA/5rM9LTb5lvIfJXxrAFrU7BIfnpV0hNuJgRg1BlZsbxYy/ BLquTEvTUAbBcifG6IWgQIjNqpky5YH9yUSuJaJcAT8zGtoh+G0ZjWK2efQFmTD+ha YoR0JCmPhsMRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXz22ktpz6v3k; Thu, 21 Sep 2023 00:20:14 +0200 (CEST) From: David Elsing To: 64446@debbugs.gnu.org Subject: [PATCH v2] gnu: Add bliss. Date: Wed, 20 Sep 2023 22:19:13 +0000 Message-ID: <324c31a7249b044ffb5578795c35961562b12c38.1695248353.git.david.elsing@posteo.net> In-Reply-To: <7y1qespk5l.fsf@posteo.net> References: <7y1qespk5l.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64446 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (bliss): New variable. --- gnu/packages/maths.scm | 85 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6141c09886..76ac34a5d9 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8567,3 +8567,88 @@ (define-public ruy architecture.") (license license:asl2.0)))) +(define-public bliss + (package + (name "bliss") + (version "0.77") + (source (origin + (method url-fetch) + (uri (string-append + "https://users.aalto.fi/~tjunttil/bliss/downloads/bliss-" + version ".zip")) + (sha256 + (base32 + "193jb63kdwfas2cf61xj3fgkvhb6v2mnbwwpr0jas3zk6j0bkj5c")))) + (build-system cmake-build-system) + (arguments + (list + ;; There are no tests + #:tests? #f + #:configure-flags #~(list "-DUSE_GMP=ON") ; Used by igraph + #:phases + #~(modify-phases %standard-phases + ;; Ensure that GMP is used, otherwise the BigNum type changes. + (add-after 'unpack 'define-use-gmp + (lambda _ + (substitute* "src/bignum.hh" + (("#pragma once.*" all) + (string-append all "#define BLISS_USE_GMP"))))) + ;; Move headers under the bliss/ prefix. This is a Guix choice, + ;; since there are no upstream installation instructions and the + ;; header names are sufficiently generic to cause confusions with + ;; other packages (e.g. "heap.hh"). + (add-after 'define-use-gmp 'move-headers + (lambda _ + (substitute* (find-files "src") + (("#include \"(.*)\"" _ path) + (string-append "#include "))) + (mkdir-p "include/bliss") + (for-each + (lambda (file) + (rename-file file + (string-append "include/bliss/" (basename file)))) + (find-files "src" "\\.(h|hh)$")) + (substitute* "Doxyfile" + (("INPUT *=.*") "INPUT = bliss")))) + (add-after 'move-headers 'patch-cmake + (lambda _ + (let ((port (open-file "CMakeLists.txt" "a"))) + (display + (apply + string-append + ;; Install the executable and the shared library. + "install(TARGETS bliss)\n" + "install(TARGETS bliss-executable)\n" + "install(DIRECTORY include/bliss DESTINATION include)\n" + "target_link_libraries(bliss PUBLIC ${GMP_LIBRARIES})\n" + ;; Missing include directories. + (map + (lambda (name) + (string-append + "target_include_directories(" name " PUBLIC\n" + "${CMAKE_CURRENT_SOURCE_DIR}/include" + " ${GMP_INCLUDE_DIR})\n")) + '("bliss" "bliss_static" "bliss-executable"))) + port) + (close-port port)))) + (add-after 'build 'build-doc + (lambda _ + (mkdir "doc") + (with-directory-excursion "doc" + (let ((srcdir (string-append "../../bliss-" #$version))) + (copy-recursively (string-append srcdir "/include/bliss") + "bliss") + (invoke "doxygen" (string-append srcdir "/Doxyfile")))))) + (add-after 'install 'install-doc + (lambda _ + (copy-recursively + "doc/html" (string-append #$output "/share/doc/" + #$name "-" #$version "/html"))))))) + (native-inputs (list doxygen graphviz unzip)) + (propagated-inputs (list gmp)) + (home-page "https://users.aalto.fi/~tjunttil/bliss/index.html") + (synopsis "Tool for computing automorphism groups and canonical labelings of graphs") + (description "@code{bliss} is a library for computing automorphism groups ++and canonical forms of graphs. It has both a command line user interface as ++well as C++ and C programming language APIs.") + (license license:lgpl3))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 11 13:12:35 2023 Received: (at 64446-done) by debbugs.gnu.org; 11 Oct 2023 17:12:35 +0000 Received: from localhost ([127.0.0.1]:39941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqcl9-0000aQ-G7 for submit@debbugs.gnu.org; Wed, 11 Oct 2023 13:12:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqcl5-0000Xd-4q for 64446-done@debbugs.gnu.org; Wed, 11 Oct 2023 13:12:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqckZ-0005JG-0u; Wed, 11 Oct 2023 13:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=vslhg3aSEMBB8c2qRf+wlyq2LwyiPgP6RFuIL8YFlFE=; b=ItrxFVgI5Fnf6/bD4Rvh IvkUjmxpJ9tgpl9BmNaYCzpcSgqkvhQaZ83QjSzDo9yBDSDbCiYXbRmi7B3c+TIokQ8x1mxd1rwhk vQnGOKciA4hLyPVE5WRoJ5iuf5P3QJfH91MpeVvnIjQX5Aw09FOdGxUV4p9uIuP36SXZWdA63ttoa wgtJvQM9QMQr79vNX3+4MRijNJ6Km+7fHIImjvBNtKbGXg/83oKp0dZQkL1tAnQqyqKt8ajFk7ojJ oLGOr3XuIvCIKrQXFT2TO5SX/2SIR0ELjxvD68h7xmBoeHA3cxzfhXv/JfnWyD1SeLR8d8K+LO8cU 4z+clg5AIWms9A==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: [bug#64446] [PATCH v2] gnu: Add bliss. In-Reply-To: <324c31a7249b044ffb5578795c35961562b12c38.1695248353.git.david.elsing@posteo.net> (David Elsing's message of "Wed, 20 Sep 2023 22:19:13 +0000") References: <7y1qespk5l.fsf@posteo.net> <324c31a7249b044ffb5578795c35961562b12c38.1695248353.git.david.elsing@posteo.net> Date: Wed, 11 Oct 2023 19:11:54 +0200 Message-ID: <877cntt76t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64446-done Cc: Andreas Enge , 64446-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, David Elsing skribis: > * gnu/packages/maths.scm (bliss): New variable. I believe this version addresses the concerns Andreas raised. Applied! Ludo=E2=80=99. From unknown Fri Jun 20 07:17:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Nov 2023 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator