X-Loop: help-debbugs@HIDDEN Subject: [bug#76545] [PATCH] gnu: mame: Update to 0.274. Resent-From: Nicolas Goaziou <mail@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: adam.faiz@HIDDEN, liliana.prikler@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN Resent-Date: Tue, 25 Feb 2025 10:28:02 +0000 Resent-Message-ID: <handler.76545.B.17404792571164 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 76545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76545 <at> debbugs.gnu.org Cc: Nicolas Goaziou <mail@HIDDEN>, Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN X-Debbugs-Original-Xcc: Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17404792571164 (code B ref -1); Tue, 25 Feb 2025 10:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2025 10:27:37 +0000 Received: from localhost ([127.0.0.1]:44929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tmsA4-0000Ih-1K for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 05:27:36 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57870) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1tmsA0-0000II-NG for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 05:27:33 -0500 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 <mail@HIDDEN>) id 1tms9u-0008BG-Ve for guix-patches@HIDDEN; Tue, 25 Feb 2025 05:27:27 -0500 Received: from msg-4.mailo.com ([213.182.54.15] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1tms9s-0002JR-Mu for guix-patches@HIDDEN; Tue, 25 Feb 2025 05:27:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1740479235; bh=ZL0BAV9fHo6o/vBs+Tlv+pcUlc+jJexZob7EQnY3wAQ=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=zgQ2Gl/8bbsH89oCyPhauSQj+xZBLvwv2JpRtjPpGZxl0I9ASNytXv5gkZegCi3Tj ZBb2EX5bDLnfZEs7n3OAtef0kOeyv8j6msmDKnXTIJgt1OoiROhwjlJEwYNAbrJ7e7 6MSXldiizpWD1z4t43Ahp5tIL7phy4vNxu2l8z00= Received: by b221-8.in.mailobj.net [192.168.90.28] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 25 Feb 2025 11:27:11 +0100 (CET) X-EA-Auth: qYwyyCluRCHxvEDVHDXhgqc/rZ61gVBs+a8qzFjw5QSqkwSc23VhTLRUZ5pT2qUgrsGYTXUP2OM4ufZCT7v0kCULJ78uKcuZsqfL2rAescc= From: Nicolas Goaziou <mail@HIDDEN> Date: Tue, 25 Feb 2025 11:26:43 +0100 Message-ID: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@HIDDEN> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=213.182.54.15; envelope-from=mail@HIDDEN; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/emulators.scm (mame): Update to 0.274. [source]: Add modules for CUT and SCANDIR. Preserve the minimum set of third-party libraries. [arguments]<#:make-flags>: Remove unnecessary flags. [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=mail%40nicolasgoaziou.fr; ip=2001%3A470%3A142%3A%3A17; r=debbugs.gnu.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.7 (/) * gnu/packages/emulators.scm (mame): Update to 0.274. [source]: Add modules for CUT and SCANDIR. Preserve the minimum set of third-party libraries. [arguments]<#:make-flags>: Remove unnecessary flags. <#:phases>: Add a phase to use all possible system libraries instead of listing them piece wise. [native-inputs]: Add NASM. [inputs]: Replace LUA with LUA-5.4. Change-Id: I650a008461d69e5a39ba6a12e7140aa785dc0298 --- gnu/packages/emulators.scm | 71 ++++++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 19 deletions(-) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 0eafc3df9e..7a38700ac1 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2015, 2018, 2023 David Thompson <dthompson2@HIDDEN> ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@HIDDEN> ;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner <efraim@HIDDEN> -;;; Copyright © 2017-2024 Nicolas Goaziou <mail@HIDDEN> +;;; Copyright © 2017-2025 Nicolas Goaziou <mail@HIDDEN> ;;; Copyright © 2017, 2020, 2021 Tobias Geerinckx-Rice <me@HIDDEN> ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@HIDDEN> ;;; Copyright © 2019 Pierre Neidhardt <mail@HIDDEN> @@ -3034,7 +3034,7 @@ (define-public libticalcs2 (define-public mame (package (name "mame") - (version "0.252") + (version "0.274") (source (origin (method git-fetch) @@ -3043,33 +3043,65 @@ (define-public mame (commit (apply string-append "mame" (string-split version #\.))))) (file-name (git-file-name name version)) (sha256 - (base32 "07qhcm1v47sy2wj30nx3cbhvcbgki0cl83gabr0miiw60fhgyn6j")) - (modules '((guix build utils))) + (base32 "0xkj5xvnv8fl54k1nnr738jpsxkxmpsxak60ins3bjzcxl3az4by")) + (modules '((ice-9 ftw) + (srfi srfi-26) + (guix build utils))) (snippet - ;; Remove bundled libraries. - '(begin - (with-directory-excursion "3rdparty" - (for-each delete-file-recursively - '("asio" "expat" "glm" "libflac" "libjpeg" "lua" - "portaudio" "portmidi" "pugixml" "rapidjson" "SDL2" - "SDL2-override" "sqlite3" "utf8proc" "zlib"))))))) + ;; Remove most bundled libraries. + ;; + ;; XXX: Some of the preserved the libraries below ship with Guix, but + ;; may prove difficult to un-bundle. + #~(with-directory-excursion "3rdparty" + (let ((keep (list "." ".." + "asmjit" + "bgfx" + "bimg" + "bx" + "genie" + "linenoise" + "lsqlite3" + "lua-linenoise" + "lua-zlib" + "luafilesystem" + "lzma" + "minimp3" + "nanosvg" + "softfloat" + "softfloat3" + "sol2" + "wdlfft" + "ymfm"))) + (for-each delete-file-recursively + (scandir "." (negate (cut member <> keep))))))))) (build-system gnu-build-system) (arguments (list #:make-flags - #~(cons* + #~(list ;; A 'strict-overflow' error pops up on i686 so disable '-Werror'. "NOWERROR=1" (string-append "QT_HOME=" #$(this-package-input "qtbase")) - (string-append "SDL_INI_PATH=" #$output "/share/mame/ini") - (map (lambda (lib) - (string-append "USE_SYSTEM_LIB_" (string-upcase lib) "=1")) - '("asio" "expat" "flac" "glm" "jpeg" "lua" "portaudio" "portmidi" - "pugixml" "rapidjson" "sqlite3" "utf8proc" "zlib"))) + (string-append "SDL_INI_PATH=" #$output "/share/mame/ini")) #:tests? #f ;no test in regular release #:phases #~(modify-phases %standard-phases + ;; (add-after 'unpack 'fix-sol2-build-error + ;; ;; Fix "error: operator '!=' has no left operand" because + ;; ;; LUA_COMPAT_BITLIB is empty. + ;; (lambda _ + ;; (substitute* "3rdparty/sol2/sol/sol.hpp" + ;; (("&& \\(LUA_COMPAT_BITLIB != 0\\)") "")))) (delete 'configure) + (add-before 'build 'use-system-libraries + (lambda _ + (substitute* "makefile" + (("# +(USE_SYSTEM_LIB)" _ option) option)))) + (add-before 'build 'use-c++-lua + (lambda _ + (substitute* (list "scripts/src/main.lua" + "scripts/src/3rdparty.lua") + (("ext_lib\\(\"lua\"\\)") "ext_lib(\"lua++\")")))) (add-after 'build 'build-documentation (lambda _ (invoke "make" "-C" "docs" "man" "info"))) (replace 'install @@ -3172,7 +3204,8 @@ (define-public mame Keywords=Game;Emulator;Arcade;~%" executable))))))))) (native-inputs - (list pkg-config + (list nasm + pkg-config python-sphinx python-sphinxcontrib-svg2pdfconverter texinfo)) @@ -3186,7 +3219,7 @@ (define-public mame libjpeg-turbo libxi libxinerama - lua + lua-5.4 portaudio portmidi pugixml base-commit: 075fe3083b5838463f2cef26e2fc0d1b2c87e310 -- 2.48.1
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Nicolas Goaziou <mail@HIDDEN> Subject: bug#76545: Acknowledgement ([PATCH] gnu: mame: Update to 0.274.) Message-ID: <handler.76545.B.17404792571164.ack <at> debbugs.gnu.org> References: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@HIDDEN> X-Gnu-PR-Message: ack 76545 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 76545 <at> debbugs.gnu.org Date: Tue, 25 Feb 2025 10:28:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler= @gmail.com>, =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 76545 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 76545: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76545 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#76545] [PATCH v2] gnu: mame: Update to 0.275. References: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@HIDDEN> In-Reply-To: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@HIDDEN> Resent-From: Nicolas Goaziou <mail@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: mail@HIDDEN, adam.faiz@HIDDEN, liliana.prikler@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN Resent-Date: Thu, 13 Mar 2025 15:56:02 +0000 Resent-Message-ID: <handler.76545.B76545.174188131329112 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76545 <at> debbugs.gnu.org Cc: Nicolas Goaziou <mail@HIDDEN>, Nicolas Goaziou <mail@HIDDEN>, Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> X-Debbugs-Original-Xcc: Nicolas Goaziou <mail@HIDDEN>, Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Received: via spool by 76545-submit <at> debbugs.gnu.org id=B76545.174188131329112 (code B ref 76545); Thu, 13 Mar 2025 15:56:02 +0000 Received: (at 76545) by debbugs.gnu.org; 13 Mar 2025 15:55:13 +0000 Received: from localhost ([127.0.0.1]:57757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tskts-0007ZQ-2d for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 11:55:12 -0400 Received: from msg-3.mailo.com ([213.182.54.8]:57652 helo=mailo.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1tsktn-0007T1-DP for 76545 <at> debbugs.gnu.org; Thu, 13 Mar 2025 11:55:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1741881299; bh=E7FOHO2POz5bxA/wOJsoVCqplOyySyaBBiNzB4Q1gVw=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=SVVcOxbXI6ke+MGV5b8OINKCKu36p6Tty6QJo3+4FeH2VpeL/0Hw4Mr80O9auZA7p K64oOQ0uKI2+72gSC86du1zB2QeSvFzgBqH113JltJJNAPE3L4EONP9g0xotsSWpFq 1dFn636hJAg9VpLD+WPlHUP6lgDI9JEeqMVcetXE= Received: by b221-4.in.mailobj.net [192.168.90.24] with ESMTP via ip-20.mailobj.net [213.182.54.20] Thu, 13 Mar 2025 16:54:56 +0100 (CET) X-EA-Auth: 5QC7NzidMishOKsqS6NKeLC4eO2tdWLNvF3Gv+7ywf5jnNNP9ke3Kg3pc7yneXsbJ8Z1/ATjKs+7mgO8htVCnwl0XRmbzNAGpaEz0nPur2A= From: Nicolas Goaziou <mail@HIDDEN> Date: Thu, 13 Mar 2025 16:53:58 +0100 Message-ID: <5179ae334bbc5b51d217a8cd310758add6a1e5d5.1741823527.git.mail@HIDDEN> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) * gnu/packages/emulators.scm (mame): Update to 0.275. [source]: Add modules for cut and scandir. Preserve the minimum set of third-party libraries. [arguments]<#:make-flags>: Remove unnecessary flags. <#:phases>: Add a phase to use all possible system libraries instead of listing them piece wise. [native-inputs]: Add nasm. [inputs]: Replace lua with lua-5.4. Add zstd:lib. Change-Id: I650a008461d69e5a39ba6a12e7140aa785dc0298 --- - v2: Update to 0.275. Add zstd:lib as an input. gnu/packages/emulators.scm | 74 +++++++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 2bed105653..b7dd141120 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2015, 2018, 2023 David Thompson <dthompson2@HIDDEN> ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@HIDDEN> ;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner <efraim@HIDDEN> -;;; Copyright © 2017-2024 Nicolas Goaziou <mail@HIDDEN> +;;; Copyright © 2017-2025 Nicolas Goaziou <mail@HIDDEN> ;;; Copyright © 2017, 2020, 2021 Tobias Geerinckx-Rice <me@HIDDEN> ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@HIDDEN> ;;; Copyright © 2019 Pierre Neidhardt <mail@HIDDEN> @@ -3025,7 +3025,7 @@ (define-public libticalcs2 (define-public mame (package (name "mame") - (version "0.252") + (version "0.275") (source (origin (method git-fetch) @@ -3034,33 +3034,65 @@ (define-public mame (commit (apply string-append "mame" (string-split version #\.))))) (file-name (git-file-name name version)) (sha256 - (base32 "07qhcm1v47sy2wj30nx3cbhvcbgki0cl83gabr0miiw60fhgyn6j")) - (modules '((guix build utils))) + (base32 "178wvdr126klz4xmhiv737xys6d3wvgrs216h9544y4s1pvxskpk")) + (modules '((ice-9 ftw) + (srfi srfi-26) + (guix build utils))) (snippet - ;; Remove bundled libraries. - '(begin - (with-directory-excursion "3rdparty" - (for-each delete-file-recursively - '("asio" "expat" "glm" "libflac" "libjpeg" "lua" - "portaudio" "portmidi" "pugixml" "rapidjson" "SDL2" - "SDL2-override" "sqlite3" "utf8proc" "zlib"))))))) + ;; Remove most bundled libraries. + ;; + ;; XXX: Some of the preserved the libraries below ship with Guix, but + ;; may prove difficult to un-bundle. + #~(with-directory-excursion "3rdparty" + (let ((keep (list "." ".." + "asmjit" + "bgfx" + "bimg" + "bx" + "genie" + "linenoise" + "lsqlite3" + "lua-linenoise" + "lua-zlib" + "luafilesystem" + "lzma" + "minimp3" + "nanosvg" + "softfloat" + "softfloat3" + "sol2" + "wdlfft" + "ymfm"))) + (for-each delete-file-recursively + (scandir "." (negate (cut member <> keep))))))))) (build-system gnu-build-system) (arguments (list #:make-flags - #~(cons* + #~(list ;; A 'strict-overflow' error pops up on i686 so disable '-Werror'. "NOWERROR=1" (string-append "QT_HOME=" #$(this-package-input "qtbase")) - (string-append "SDL_INI_PATH=" #$output "/share/mame/ini") - (map (lambda (lib) - (string-append "USE_SYSTEM_LIB_" (string-upcase lib) "=1")) - '("asio" "expat" "flac" "glm" "jpeg" "lua" "portaudio" "portmidi" - "pugixml" "rapidjson" "sqlite3" "utf8proc" "zlib"))) + (string-append "SDL_INI_PATH=" #$output "/share/mame/ini")) #:tests? #f ;no test in regular release #:phases #~(modify-phases %standard-phases + ;; (add-after 'unpack 'fix-sol2-build-error + ;; ;; Fix "error: operator '!=' has no left operand" because + ;; ;; LUA_COMPAT_BITLIB is empty. + ;; (lambda _ + ;; (substitute* "3rdparty/sol2/sol/sol.hpp" + ;; (("&& \\(LUA_COMPAT_BITLIB != 0\\)") "")))) (delete 'configure) + (add-before 'build 'use-system-libraries + (lambda _ + (substitute* "makefile" + (("# +(USE_SYSTEM_LIB)" _ option) option)))) + (add-before 'build 'use-c++-lua + (lambda _ + (substitute* (list "scripts/src/main.lua" + "scripts/src/3rdparty.lua") + (("ext_lib\\(\"lua\"\\)") "ext_lib(\"lua++\")")))) (add-after 'build 'build-documentation (lambda _ (invoke "make" "-C" "docs" "man" "info"))) (replace 'install @@ -3163,7 +3195,8 @@ (define-public mame Keywords=Game;Emulator;Arcade;~%" executable))))))))) (native-inputs - (list pkg-config + (list nasm + pkg-config python-sphinx python-sphinxcontrib-svg2pdfconverter texinfo)) @@ -3177,7 +3210,7 @@ (define-public mame libjpeg-turbo libxi libxinerama - lua + lua-5.4 portaudio portmidi pugixml @@ -3188,7 +3221,8 @@ (define-public mame (sdl-union (list sdl2 sdl2-ttf)) sqlite utf8proc - zlib)) + zlib + `(,zstd "lib"))) (home-page "https://www.mamedev.org") (synopsis "Multi-purpose emulation framework") (description "MAME's purpose is to preserve decades of software base-commit: d83d4653e42da26bfb4548f9fcf1bd6e323b40fe -- 2.48.1
X-Loop: help-debbugs@HIDDEN Subject: [bug#76545] [PATCH v2] gnu: mame: Update to 0.275. Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Fri, 14 Mar 2025 05:55:02 +0000 Resent-Message-ID: <handler.76545.B76545.17419316446565 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou <mail@HIDDEN> Cc: 76545 <at> debbugs.gnu.org, Liliana Marie Prikler <liliana.prikler@HIDDEN>, Adam Faiz <adam.faiz@HIDDEN> Received: via spool by 76545-submit <at> debbugs.gnu.org id=B76545.17419316446565 (code B ref 76545); Fri, 14 Mar 2025 05:55:02 +0000 Received: (at 76545) by debbugs.gnu.org; 14 Mar 2025 05:54:04 +0000 Received: from localhost ([127.0.0.1]:59585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsxzg-0001ho-F4 for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 01:54:04 -0400 Received: from mail.envs.net ([5.199.136.28]:50586) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <iyzsong@HIDDEN>) id 1tsxzd-0001hJ-RV for 76545 <at> debbugs.gnu.org; Fri, 14 Mar 2025 01:54:02 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 0544838A3FF8; Fri, 14 Mar 2025 05:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1741931639; bh=zyioI/u9bKl7ksmaWS+IVfj0Nz/Y2rb2a4zGlSceEwI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZRr6rR2uqflzocXy+blZxhYzCNvHpSEwb36rgey2NhvkNujQsf0MaaNkjZ4AWh1bs SIcrT5uy31qfieeyyrhH9yMm9poFjfj8mLL294tOM4xJBmRlsjsMgxjHhF4owtwRN/ h9fdOZ8WiHC4mdECucV7nsx2vJA2GK0n9gJGLDW7fbThM7JbKizdj+j3y2sBeQTFUe BEkrXyMdEO6fs5YCj8DEEEU6ireC79eULZHrHSlaHbDFWfhn7SG19kUl4oW4G7t25R +2DqwFPirkFCNlQQmD4912LMUhCtErIknWA3kr38cLH9yzOJv1AmedjB1liEWZSmCu LAKGwyuiE7WVdkvRI40F8pNt2wXfbaWo/jihqtP0QPOGAZqkwE7h1KnhvOZrAQTrbN xBbt6SsewNbSk1+Zp/6jNx9U/ddJC5ct/yYXPxZ/8sNWXYyYIwXDTrI1OqyurmBESJ Wa1yA66I0E9QzcNNiMTHtJf85Api4IGTkUFa6PCpQeRcmiQAnnuMYGlJxbEgM/kHxR kkauM1I5qGZUQYL9eLZiUChJwrck122h+4lMeOhwrM8eanfQvvcyWvIrrbj+Pc7xvZ bgNm1/h5Z+2GXGEhcV5tLIH+eFuFV7qTDpdleA5nWaigHyyhG5fUiBQDo+MKhKBfIE 6HMaiprrgr1jbItaEmY8VAks= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wfYWiW21bJet; Fri, 14 Mar 2025 05:53:52 +0000 (UTC) Received: from localhost (unknown [112.44.101.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Fri, 14 Mar 2025 05:53:52 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 4fa61a14; Fri, 14 Mar 2025 05:58:03 +0000 (UTC) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN> In-Reply-To: <5179ae334bbc5b51d217a8cd310758add6a1e5d5.1741823527.git.mail@HIDDEN> (Nicolas Goaziou's message of "Thu, 13 Mar 2025 16:53:58 +0100") References: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@HIDDEN> <5179ae334bbc5b51d217a8cd310758add6a1e5d5.1741823527.git.mail@HIDDEN> Date: Fri, 14 Mar 2025 13:58:03 +0800 Message-ID: <87sengrw5w.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello, Nicolas Goaziou <mail@HIDDEN> writes: > * gnu/packages/emulators.scm (mame): Update to 0.275. > [source]: Add modules for cut and scandir. Preserve the minimum set of > third-party libraries. > [arguments]<#:make-flags>: Remove unnecessary flags. > <#:phases>: Add a phase to use all possible system libraries instead of > listing them piece wise. > [native-inputs]: Add nasm. > [inputs]: Replace lua with lua-5.4. Add zstd:lib. > [...] > #~(modify-phases %standard-phases > + ;; (add-after 'unpack 'fix-sol2-build-error > + ;; ;; Fix "error: operator '!=' has no left operand" because > + ;; ;; LUA_COMPAT_BITLIB is empty. > + ;; (lambda _ > + ;; (substitute* "3rdparty/sol2/sol/sol.hpp" > + ;; (("&& \\(LUA_COMPAT_BITLIB != 0\\)") "")))) Does this commented phase useful? Maybe just remove it. Otherwise looks good to me, thanks.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.