From patchwork Tue Apr 1 07:04:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Goaziou X-Patchwork-Id: 41117 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D434F27BBEA; Tue, 1 Apr 2025 08:05:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8B4C327BBE2 for ; Tue, 1 Apr 2025 08:05:35 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzVgN-0003T0-KT; Tue, 01 Apr 2025 03:05:11 -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 1tzVgJ-0003Qh-TX for guix-patches@gnu.org; Tue, 01 Apr 2025 03:05:08 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzVgJ-00068U-Hi for guix-patches@gnu.org; Tue, 01 Apr 2025 03:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=TMsNxZ0AKZfv1Q1is3XyS67pHsB1EFxMfyy/MnkfO14=; b=a52o1wVroakOZAN37nU9mHNqHuS5zotryMSWWhkoIBDOX0ALuex7znmtlaQ4EhI4HhWIIenF3BI6DVOaM1oeO8YBmP16VNDOFMku4qdZTwDRutbBfJsSZ8QK13lNDZUoxb0gm7xFsZGmkKFoMm3x870ANDmWPMFvA/PlPya2CCkuChNsg7IlLcLaRQ3KsxUeAsvHhFSQrxNkh2hGULO3ZdjNFSJB2KU2zG4XHtEbtUK8iTWxCTUCugp4QAmzVAj+vQjbQqb18cyWQqpWQ96gY5HApWmZIWW86k/BLXxv58CcQnGHjnLN/if7jcyHddQ1pLLXmVIdjKpKQaV7yfgamA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tzVgG-0008Nc-9a; Tue, 01 Apr 2025 03:05:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#76545] [PATCH v3] gnu: mame: Update to 0.276. References: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@nicolasgoaziou.fr> In-Reply-To: <76983e8b7129b0420e0e2e51e6785a2bebb6bdaf.1740479118.git.mail@nicolasgoaziou.fr> Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: mail@nicolasgoaziou.fr, iyzsong@envs.net, adam.faiz@disroot.org, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Tue, 01 Apr 2025 07:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76545@debbugs.gnu.org Cc: Nicolas Goaziou , Nicolas Goaziou , =?utf-8?b?5a6L5paH5q2m?= , Adam Faiz , Liliana Marie Prikler X-Debbugs-Original-Xcc: Nicolas Goaziou , =?utf-8?b?5a6L5paH5q2m?= , Adam Faiz , Liliana Marie Prikler Received: via spool by 76545-submit@debbugs.gnu.org id=B76545.174349109032112 (code B ref 76545); Tue, 01 Apr 2025 07:05:04 +0000 Received: (at 76545) by debbugs.gnu.org; 1 Apr 2025 07:04:50 +0000 Received: from localhost ([127.0.0.1]:44785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzVfz-0008Lg-VN for submit@debbugs.gnu.org; Tue, 01 Apr 2025 03:04:49 -0400 Received: from msg-1.mailo.com ([213.182.54.11]:36610 helo=mailo.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzVfo-0008K8-U2 for 76545@debbugs.gnu.org; Tue, 01 Apr 2025 03:04:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1743491069; bh=uCWhJeHYyfOSFu0kYNROqApLnbA+9+PeBXnrMUSmjW0=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=nrfm4nVfPBDfrPhcvH5ptmnF+Q9NhvKQe5hIGDH6fpvZdRUvPZoNubrTIUrKDDf/4 lSVqPwXWgUymG/6fMiu5/AifPqjzuFdnSa1WEs4dIUi2JWOQzpBgzbRT3b3EbRq53v ndk135VLo3Gqu5LNtnMv4hj27BD+OSA8C+Ehq5n0= Received: by b221-7.in.mailobj.net [192.168.90.27] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 1 Apr 2025 09:04:29 +0200 (CEST) X-EA-Auth: PSXUGlG/iuT/cpIatzIT0ALb0ba8k/Wl2wZ2q6Cu4aihAzflhWJk8jTubCIALn7TzePJnttCsS4cR9T2bXpdTs1Vv+clSFvDyNwsQFzGMGA= Date: Tue, 1 Apr 2025 09:04:03 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 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: , Reply-to: Nicolas Goaziou X-ACL-Warn: , Nicolas Goaziou via Guix-patches X-Patchwork-Original-From: Nicolas Goaziou via Guix-patches via From: Nicolas Goaziou Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emulators.scm (mame): Update to 0.276. [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 --- v3: Update to 0.276. Remove old comment. Do not try to use C++ Lua as it is not packaged in Guix yet. gnu/packages/emulators.scm | 63 ++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 20 deletions(-) base-commit: 5735c278e16517d9be5e26235fe68dea9bae3527 diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index e71c2803a3..eb784bd43b 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2015, 2018, 2023 David Thompson ;;; Copyright © 2016 Manolis Fragkiskos Ragkousis ;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner -;;; Copyright © 2017-2024 Nicolas Goaziou +;;; Copyright © 2017-2025 Nicolas Goaziou ;;; Copyright © 2017, 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2017, 2018, 2019 Rutger Helling ;;; Copyright © 2019 Pierre Neidhardt @@ -3026,7 +3026,7 @@ (define-public libticalcs2 (define-public mame (package (name "mame") - (version "0.252") + (version "0.276") (source (origin (method git-fetch) @@ -3035,33 +3035,54 @@ (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 "1npjb5n03gchprnz61br0b0sprvwylkhygla3z84xklzd11y678d")) + (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 (delete 'configure) + (add-before 'build 'use-system-libraries + (lambda _ + (substitute* "makefile" + (("# +(USE_SYSTEM_LIB)" _ option) option)))) (add-after 'build 'build-documentation (lambda _ (invoke "make" "-C" "docs" "man" "info"))) (replace 'install @@ -3164,7 +3185,8 @@ (define-public mame Keywords=Game;Emulator;Arcade;~%" executable))))))))) (native-inputs - (list pkg-config + (list nasm + pkg-config python-sphinx python-sphinxcontrib-svg2pdfconverter texinfo)) @@ -3178,7 +3200,7 @@ (define-public mame libjpeg-turbo libxi libxinerama - lua + lua-5.4 portaudio portmidi pugixml @@ -3189,7 +3211,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