From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qMKGIkOsP2TwSQEASxT56A (envelope-from ) for ; Wed, 19 Apr 2023 10:54:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MC6iIkOsP2S7AAEAauVa8A (envelope-from ) for ; Wed, 19 Apr 2023 10:54:27 +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 0567C8321 for ; Wed, 19 Apr 2023 10:54:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pp3Zm-00055Q-7Z; Wed, 19 Apr 2023 04:54:06 -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 1pp3Zj-000550-3r for guix-patches@gnu.org; Wed, 19 Apr 2023 04:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pp3Zi-0007EQ-S7 for guix-patches@gnu.org; Wed, 19 Apr 2023 04:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pp3Zi-0005EQ-7v for guix-patches@gnu.org; Wed, 19 Apr 2023 04:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62724] [PATCH v8] gnu: mame: Update to 0.253. References: <20230408101422.781587-1-mail@nicolasgoaziou.fr> In-Reply-To: <20230408101422.781587-1-mail@nicolasgoaziou.fr> Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Apr 2023 08:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62724 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62724@debbugs.gnu.org Received: via spool by 62724-submit@debbugs.gnu.org id=B62724.168189441620077 (code B ref 62724); Wed, 19 Apr 2023 08:54:02 +0000 Received: (at 62724) by debbugs.gnu.org; 19 Apr 2023 08:53:36 +0000 Received: from localhost ([127.0.0.1]:60995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pp3ZE-0005De-9Y for submit@debbugs.gnu.org; Wed, 19 Apr 2023 04:53:36 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pp3Z7-0005DK-GM for 62724@debbugs.gnu.org; Wed, 19 Apr 2023 04:53:29 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 49CB6240015 for <62724@debbugs.gnu.org>; Wed, 19 Apr 2023 08:53:17 +0000 (UTC) From: Nicolas Goaziou Date: Wed, 19 Apr 2023 10:53:15 +0200 Message-Id: <20230419085315.1121326-1-mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681894467; a=rsa-sha256; cv=none; b=IIZT+clhBH3vTXw5/IGmo9USOsQTnp2CI5vo4lnjeafz2Zhv5jalYLj5TDxhjYVOUZDqLK GVZhEDB0UZK/flDqa4qblBPVb00UG1ZbM3W2Fcr6M6T4oSHwbGRvgTCRbTvA5CuEJEatgA 2d/Pq5b/TuvatDEpGE65HJrDp9HPPv9thFLX2KSkFT+kUMxmHCamK5U5Jlat7BcbdXETnh n2Lh3cZZweM+KLHRN8WOKSAnlUZPZlj7ITp6SqPK4Gp/Lv+0V25wZE5it9AhMR51S6qV/f Hjo1nMk/qgZ3ylLPSn73KjvV7VXwq7VSlxT8u8DkRQeUl80oEIb8SCXuCloIaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681894467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=6ME+Apwzezc0Alpdm0+ZQsCmeN3x7jN/xzdyVkbf2b4=; b=IV+cK3GCMRVw5vjlpx4mopvS1pkQmzYWbL65/nbZxCkq3g7cSlj8CNyGlDHnW9UyOnrPWv fFKoZbC69ATR7IN3iF/9f/nxBu80n6uVhdQDGBr00sJZtbXfZX6arXXjOVjZdBRZBicir4 Rmco189mJ0VdT+8vSUxHJ2MAbge2Ie5jt23UIKX1h9YjkAK/R4zVgEPP96+zeATXMp0Iru XgL9pICCvqaUYBtaCeshPwZYU4lU06X9Q0FVoEOs0NAkf75bvuKpO2GUfkOlfRGxXqh4gI Avvko9GCjMfSBFBfhTJgJos1sEKeiOThLr2bbQdwF14e8HTon3SSPkbPSEl2Dw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.81 X-Spam-Score: -1.81 X-Migadu-Queue-Id: 0567C8321 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-TUID: mRN9gEv7U20g * gnu/packages/emulators.scm (mame): Update to 0.253. [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. --- v8: Preserve "lua-linenoise" third-party library. gnu/packages/emulators.scm | 60 ++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index fa1f07eaf3..8e63cfacbd 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -1760,7 +1760,7 @@ (define-public libticalcs2 (define-public mame (package (name "mame") - (version "0.252") + (version "0.253") (source (origin (method git-fetch) @@ -1769,33 +1769,56 @@ (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 "0mk6clpvw7y567qis1g1rxabwz7qxik6c1ywjdqr5075a2kw44jm")) + (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. Some of the kept libraries below + ;; are provided by Guix, but difficult to un-bundle. + #~(with-directory-excursion "3rdparty" + (let ((keep (list "." ".." + "asmjit" + "bgfx" + "bimg" + "bx" + "genie" + "linenoise" + "lsqlite3" + "lua-linenoise" + "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-after 'build 'build-documentation (lambda _ (invoke "make" "-C" "docs" "man" "info"))) (replace 'install @@ -1898,7 +1921,8 @@ (define-public mame Keywords=Game;Emulator;Arcade;~%" executable))))))))) (native-inputs - (list pkg-config + (list nasm + pkg-config python-sphinx python-sphinxcontrib-svg2pdfconverter texinfo)) @@ -1912,7 +1936,7 @@ (define-public mame libjpeg-turbo libxi libxinerama - lua + lua-5.4 portaudio portmidi pugixml base-commit: 1f78148b951f498e3733e4b2b1bd65439963f843 -- 2.39.2