From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>, 73522@debbugs.gnu.org
Cc: "Sergey Trofimov" <sarg@sarg.org.ru>, 宋文武 <iyzsong@envs.net>,
"Adam Faiz" <adam.faiz@disroot.org>
Subject: [bug#73522] [PATCH games-team 06/14] gnu: retroarch: Clean-up source from extraneous bundled libraries.
Date: Sun, 06 Oct 2024 08:55:32 +0200 [thread overview]
Message-ID: <1be03efef191b5ac4c9f7d06d8bfe406f3c569e0.camel@gmail.com> (raw)
In-Reply-To: <fb2302832453e4c56054fa02235ee01373a785f8.1728192708.git.maxim.cournoyer@gmail.com>
Am Sonntag, dem 06.10.2024 um 14:32 +0900 schrieb Maxim Cournoyer:
> * gnu/packages/emulators.scm (retroarch) [source]: Add snippet
> removing
> unnecessary sources.
> [license]: Add licenses of bundled sources.
>
> Change-Id: I824391424bf0fa2ec3888f02535b94dea3021378
> ---
>
> gnu/packages/emulators.scm | 45
> +++++++++++++++++++++++++++++++++++++-
> 1 file changed, 44 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
> index afe11caf7f..e6cf365e26 100644
> --- a/gnu/packages/emulators.scm
> +++ b/gnu/packages/emulators.scm
> @@ -1587,6 +1587,43 @@ (define-public retroarch
> (uri (git-reference
> (url "https://github.com/libretro/RetroArch")
> (commit (string-append "v" version))))
> + (modules '((guix build utils)
> + (ice-9 ftw)
> + (srfi srfi-26)))
> + (snippet
> + #~(begin
> + ;; XXX: 'delete-all-but' is copied from the turbovnc
> package.
> + (define (delete-all-but directory . preserve)
> + (define (directory? x)
> + (and=> (stat x #f)
> + (compose (cut eq? 'directory <>) stat:type)))
> + (with-directory-excursion directory
> + (let* ((pred
> + (negate (cut member <> (append '("." "..")
> preserve))))
> + (items (scandir "." pred)))
> + (for-each (lambda (item)
> + (if (directory? item)
> + (delete-file-recursively item)
> + (delete-file item)))
> + items))))
> + ;; Remove as much bundled sources as possible, shaving
> off about
> + ;; 17 MiB.
> + (delete-all-but "deps"
> + "7zip"
> + "SPIRV-Cross" ;used in
> slang_reflection.cpp
Can we unvendor spirv-cross?
> + "discord-rpc" ;used in
> network/discord.h
Can we drop this discord thing?
> + "dr" ;used in audio_mixer.c
> + "feralgamemode" ;used in platform_unix.c
> + "ibxm" ;used in audio_mixer.c
> + "mbedtls" ;further refined below
> + "rcheevos" ;used in menu_setting.c
> + "stb" ;used in audio_mixer.c
> + "switchres" ;used in
> video_crt_switch.c
> + "xdelta3" ;used in task_patch.c
> + "yxml") ;used in rxml.c
> + ;; This is an old root certificate used in
> net_socket_ssl_mbed.c,
> + ;; not actually from mbedtls.
> + (delete-all-but "deps/mbedtls" "cacert.h")))
> (file-name (git-file-name name version))
> (sha256
> (base32
> "15nh4y4vpf4n1ryhiy4fwvzn5xz5idzfzn9fsi5v9hzp25vbjmrm"))))
> @@ -1669,7 +1706,13 @@ (define-public retroarch
> straight into any libretro-compatible frontend. RetroArch is the
> official
> reference frontend for the libretro API, currently used by most as a
> modular
> multi-system game/emulator system.")
> - (license license:gpl3+)))
> + (license (list license:gpl3+ ;for RetroArch itself
> + license:asl2.0 ;SPIRV-Cross, xdelta3
> + license:public-domain ;7zip, stb
> + license:expat ;discord-rpc, rcheevos,
> yxml
> + license:unlicense ;dr
> + license:bsd-3 ;feragamemode, ibxm
> + license:gpl2+)))) ;switchres
Cheers
next prev parent reply other threads:[~2024-10-06 6:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-28 0:29 [bug#73522] [PATCH 0/6] Package and use RetroArch assets, plus other improvements Maxim Cournoyer
2024-09-29 12:08 ` Sergey Trofimov
2024-10-06 5:34 ` Maxim Cournoyer
2024-10-06 5:31 ` [bug#73522] [PATCH games-team 00/14] " Maxim Cournoyer
2024-10-06 5:31 ` [bug#73522] [PATCH games-team 01/14] gnu: Add retroarch-assets Maxim Cournoyer
2024-10-06 5:31 ` [bug#73522] [PATCH games-team 02/14] gnu: Add retroarch-core-info Maxim Cournoyer
2024-10-06 5:31 ` [bug#73522] [PATCH games-team 03/14] gnu: Add retroarch-joypad-autoconfig Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 04/14] gnu: retroarch: Use gexps Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 05/14] gnu: retroarch: Add missing inputs, upgrade Qt to version 6 Maxim Cournoyer
2024-10-06 7:22 ` Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 06/14] gnu: retroarch: Clean-up source from extraneous bundled libraries Maxim Cournoyer
2024-10-06 6:55 ` Liliana Marie Prikler [this message]
2024-10-06 8:12 ` Maxim Cournoyer
2024-10-06 16:26 ` bug#73522: " Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 07/14] gnu: retroarch: Extend search-path support Maxim Cournoyer
2024-10-06 6:58 ` Liliana Marie Prikler
2024-10-06 7:45 ` Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 08/14] gnu: retroarch: Really disable online fetching of cores and resources Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 09/14] gnu: retroarch: Propagate core assets Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 10/14] gnu: retroarch: Update to 1.19.1-1.48b71d5 Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 11/14] gnu: libretro-lowresnx: Use gexps Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 12/14] gnu: Add libretro-mupen64plus-nx Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 13/14] gnu: Add retroarch-slang-shaders Maxim Cournoyer
2024-10-06 5:32 ` [bug#73522] [PATCH games-team 14/14] gnu: Add libretro-bsnes-jg Maxim Cournoyer
2024-10-06 7:17 ` [bug#73522] [PATCH games-team 00/14] Package and use RetroArch assets, plus other improvements Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1be03efef191b5ac4c9f7d06d8bfe406f3c569e0.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=73522@debbugs.gnu.org \
--cc=adam.faiz@disroot.org \
--cc=iyzsong@envs.net \
--cc=maxim.cournoyer@gmail.com \
--cc=sarg@sarg.org.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.