From unknown Fri Sep 05 20:36:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58295] [PATCH] Add dds-bridge Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Oct 2022 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58295 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58295@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16649206294090 (code B ref -1); Tue, 04 Oct 2022 21:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 21:57:09 +0000 Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuW-00013t-OJ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:33470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuS-00013j-QO for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuM-000881-99 for guix-patches@gnu.org; Tue, 04 Oct 2022 17:57:04 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuI-00050K-Qg for guix-patches@gnu.org; Tue, 04 Oct 2022 17:56:57 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 7A122E000A for ; Tue, 4 Oct 2022 21:56:50 +0000 (UTC) From: Nicolas Goaziou Date: Tue, 04 Oct 2022 23:56:49 +0200 Message-ID: <878rlvmevy.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.3 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain Hello, The following patch adds the DDS library for bridge card game development. Note: it builds without libomp (but not without boost). I'm not sure it is really necessary, even though OpenMP is mentioned in the code base. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-dds-bridge.patch Content-Transfer-Encoding: quoted-printable >From af7d1beeebac44c18cac7a37c539043de244215b Mon Sep 17 00:00:00 2001 Message-Id: From: Nicolas Goaziou Date: Tue, 4 Oct 2022 23:51:00 +0200 Subject: [PATCH] gnu: Add dds-bridge. * gnu/packages/game-development.scm (dds-bridge): New variable. --- gnu/packages/game-development.scm | 70 ++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm= ent.scm index 889b435cfb..bda72fe72e 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -17,7 +17,7 @@ ;;; Copyright =C2=A9 2019 Pierre Neidhardt ;;; Copyright =C2=A9 2019, 2020, 2021 Liliana Marie Prikler ;;; Copyright =C2=A9 2019 Jethro Cao -;;; Copyright =C2=A9 2020, 2021 Nicolas Goaziou +;;; Copyright =C2=A9 2020-2022 Nicolas Goaziou ;;; Copyright =C2=A9 2020 Timotej Lazar ;;; Copyright =C2=A9 2020 Giacomo Leidi ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton @@ -74,6 +74,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) #:use-module (gnu packages dbm) + #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) @@ -85,6 +86,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages guile) #:use-module (gnu packages image) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages m4) #:use-module (gnu packages mp3) @@ -181,6 +183,72 @@ (define-public bullet is used in some video games and movies.") (license license:zlib))) =20 +(define-public dds-bridge + (package + (name "dds-bridge") + (version "2.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dds-bridge/dds") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1iv09qic43nvla02lm8zgnkqpjgnc95p8zh3wyifmnmlh1rz02yj")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "src"))) + (replace 'configure + ;; Configuration is done by copying the appropriate + ;; make file in the working directory. There is no + ;; configure script. + (lambda _ + (copy-file "Makefiles/Makefile_linux_shared" + "Makefile"))) + (replace 'check + ;; There is no "check" traget. We must compile + ;; a "dtest" program and apply it on a data set. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (install-file "libdds.so" "../test") + (with-directory-excursion "../test" + (copy-file "Makefiles/Makefile_linux" + "Makefile") + (substitute* "Makefile" + (("-Werror") "")) + (invoke "make") + (invoke "./dtest") + (invoke "./dtest" "-f" "../hands/list100.txt"))))) + (replace 'install + ;; "install" target merely moves ".so" file around + ;; the source directory. We install it in the store, + ;; along with all shipped documentation (which cannot + ;; be built from source unfortunately). + (lambda _ + (install-file "libdds.so" + (string-append #$output "/lib")) + (let ((doc (string-append #$output + "/share/doc/" + #$name "-" #$version))) + (install-file "../LICENSE" doc) + (copy-recursively "../doc" doc))))))) + (native-inputs + (list gawk procps)) + (inputs + (list boost libomp)) + (home-page "http://privat.bahnhof.se/wb758135/") + (synopsis "Double dummy solver for the bridge card game") + (description "DDS is a double-dummy solver of bridge hands. It suppor= ts +single-threading and multi-threading for improved performance. DDS +offers a wide range of functions, including par-score calculations.") + (license license:asl2.0))) + (define-public deutex (package (name "deutex") --=20 2.37.3 --=-=-=-- From unknown Fri Sep 05 20:36:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Goaziou Subject: bug#58295: closed (Re: [bug#58295] [PATCH] Add dds-bridge) Message-ID: References: <8735bnfual.fsf@nicolasgoaziou.fr> <878rlvmevy.fsf@nicolasgoaziou.fr> X-Gnu-PR-Message: they-closed 58295 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 58295@debbugs.gnu.org Date: Sun, 16 Oct 2022 19:23:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1665948182-14308-1" This is a multi-part message in MIME format... ------------=_1665948182-14308-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58295: [PATCH] Add dds-bridge which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58295@debbugs.gnu.org. --=20 58295: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58295 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1665948182-14308-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58295-done) by debbugs.gnu.org; 16 Oct 2022 19:22:23 +0000 Received: from localhost ([127.0.0.1]:46278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok9DL-0003hq-0N for submit@debbugs.gnu.org; Sun, 16 Oct 2022 15:22:23 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok9DJ-0003hZ-16 for 58295-done@debbugs.gnu.org; Sun, 16 Oct 2022 15:22:21 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 3EAA160004 for <58295-done@debbugs.gnu.org>; Sun, 16 Oct 2022 19:22:11 +0000 (UTC) From: Nicolas Goaziou To: 58295-done@debbugs.gnu.org Subject: Re: [bug#58295] [PATCH] Add dds-bridge References: <878rlvmevy.fsf@nicolasgoaziou.fr> Date: Sun, 16 Oct 2022 21:22:10 +0200 In-Reply-To: <878rlvmevy.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 04 Oct 2022 23:56:49 +0200") Message-ID: <8735bnfual.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58295-done 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.7 (-) Nicolas Goaziou writes: > The following patch adds the DDS library for bridge card game > development. > > Note: it builds without libomp (but not without boost). I'm not sure it > is really necessary, even though OpenMP is mentioned in the code base. I renamed it to "dds", removed libomp from inputs, and pushed. ------------=_1665948182-14308-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 21:57:09 +0000 Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuW-00013t-OJ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:33470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuS-00013j-QO for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuM-000881-99 for guix-patches@gnu.org; Tue, 04 Oct 2022 17:57:04 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuI-00050K-Qg for guix-patches@gnu.org; Tue, 04 Oct 2022 17:56:57 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 7A122E000A for ; Tue, 4 Oct 2022 21:56:50 +0000 (UTC) From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [PATCH] Add dds-bridge Date: Tue, 04 Oct 2022 23:56:49 +0200 Message-ID: <878rlvmevy.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit 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: -0.7 (/) --=-=-= Content-Type: text/plain Hello, The following patch adds the DDS library for bridge card game development. Note: it builds without libomp (but not without boost). I'm not sure it is really necessary, even though OpenMP is mentioned in the code base. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-dds-bridge.patch Content-Transfer-Encoding: quoted-printable >From af7d1beeebac44c18cac7a37c539043de244215b Mon Sep 17 00:00:00 2001 Message-Id: From: Nicolas Goaziou Date: Tue, 4 Oct 2022 23:51:00 +0200 Subject: [PATCH] gnu: Add dds-bridge. * gnu/packages/game-development.scm (dds-bridge): New variable. --- gnu/packages/game-development.scm | 70 ++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm= ent.scm index 889b435cfb..bda72fe72e 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -17,7 +17,7 @@ ;;; Copyright =C2=A9 2019 Pierre Neidhardt ;;; Copyright =C2=A9 2019, 2020, 2021 Liliana Marie Prikler ;;; Copyright =C2=A9 2019 Jethro Cao -;;; Copyright =C2=A9 2020, 2021 Nicolas Goaziou +;;; Copyright =C2=A9 2020-2022 Nicolas Goaziou ;;; Copyright =C2=A9 2020 Timotej Lazar ;;; Copyright =C2=A9 2020 Giacomo Leidi ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton @@ -74,6 +74,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) #:use-module (gnu packages dbm) + #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) @@ -85,6 +86,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages guile) #:use-module (gnu packages image) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages m4) #:use-module (gnu packages mp3) @@ -181,6 +183,72 @@ (define-public bullet is used in some video games and movies.") (license license:zlib))) =20 +(define-public dds-bridge + (package + (name "dds-bridge") + (version "2.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dds-bridge/dds") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1iv09qic43nvla02lm8zgnkqpjgnc95p8zh3wyifmnmlh1rz02yj")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "src"))) + (replace 'configure + ;; Configuration is done by copying the appropriate + ;; make file in the working directory. There is no + ;; configure script. + (lambda _ + (copy-file "Makefiles/Makefile_linux_shared" + "Makefile"))) + (replace 'check + ;; There is no "check" traget. We must compile + ;; a "dtest" program and apply it on a data set. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (install-file "libdds.so" "../test") + (with-directory-excursion "../test" + (copy-file "Makefiles/Makefile_linux" + "Makefile") + (substitute* "Makefile" + (("-Werror") "")) + (invoke "make") + (invoke "./dtest") + (invoke "./dtest" "-f" "../hands/list100.txt"))))) + (replace 'install + ;; "install" target merely moves ".so" file around + ;; the source directory. We install it in the store, + ;; along with all shipped documentation (which cannot + ;; be built from source unfortunately). + (lambda _ + (install-file "libdds.so" + (string-append #$output "/lib")) + (let ((doc (string-append #$output + "/share/doc/" + #$name "-" #$version))) + (install-file "../LICENSE" doc) + (copy-recursively "../doc" doc))))))) + (native-inputs + (list gawk procps)) + (inputs + (list boost libomp)) + (home-page "http://privat.bahnhof.se/wb758135/") + (synopsis "Double dummy solver for the bridge card game") + (description "DDS is a double-dummy solver of bridge hands. It suppor= ts +single-threading and multi-threading for improved performance. DDS +offers a wide range of functions, including par-score calculations.") + (license license:asl2.0))) + (define-public deutex (package (name "deutex") --=20 2.37.3 --=-=-=-- ------------=_1665948182-14308-1--