From patchwork Thu May 11 23:07:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 49953 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 0207927BBF1; Fri, 12 May 2023 00:08:22 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 9052727BBEE for ; Fri, 12 May 2023 00:08:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxFOG-0007Jq-F8; Thu, 11 May 2023 19:08:04 -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 1pxFOE-0007JQ-HA for guix-patches@gnu.org; Thu, 11 May 2023 19:08:02 -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 1pxFOE-0002Zd-9A for guix-patches@gnu.org; Thu, 11 May 2023 19:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxFOD-0003FJ-Mi for guix-patches@gnu.org; Thu, 11 May 2023 19:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63435] Add vcmi 1.2.1 to games.scm Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 May 2023 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63435 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Liliana Marie Prikler , 63435@debbugs.gnu.org Cc: iyzsong@envs.net Received: via spool by 63435-submit@debbugs.gnu.org id=B63435.168384647312461 (code B ref 63435); Thu, 11 May 2023 23:08:01 +0000 Received: (at 63435) by debbugs.gnu.org; 11 May 2023 23:07:53 +0000 Received: from localhost ([127.0.0.1]:53629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxFO5-0003Ev-AP for submit@debbugs.gnu.org; Thu, 11 May 2023 19:07:53 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:47662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxFO1-0003Ea-Bx for 63435@debbugs.gnu.org; Thu, 11 May 2023 19:07:51 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id F17981ACAB; Thu, 11 May 2023 16:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1683846460; bh=kjh0QM+pZc3BDXTXQ+yCRQ5xo/8zlQkOVlCuaNNHvgg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SYAzyU4xcncR5rfg0ccZD7RH9/jDv+ZJHfNTRh33XGHf5G4tf+qBK9ab6nsUp59U0 BnOMEnNDlqeKPvfPu8+AsRq2/CWjTPP5fmKPgHoydBdstAvUsphNhD+IaT7xgmFwvW AEhw28vkdOq7D0jrXMEGMrRLW7c1XFVKKE6sBaOjuDlqZbsE0dckTw4Gy8TYMJSGrc 7Sc5aE2Qyr/CyJsVYChYUc9gUJxIBYZVZpNqeIjj7xKT+avBeVRvDvEN5uiEcekrhw paDdv8s+xedhqKYeaZ9Ml+jB1TEUDrKHQJZm2GbHGLMukYrbBQfXNJdZkA4CTIrSHm oJkBb+HaZ2WFg== From: Vagrant Cascadian In-Reply-To: <873542o7ze.fsf@wireframe> References: <87a5yb4e41.fsf@wireframe> <51be2fdd711bf490e3a925334e571ff7871d6cbb.camel@gmail.com> <873542o7ze.fsf@wireframe> Date: Thu, 11 May 2023 16:07:36 -0700 Message-ID: <87zg6ampqf.fsf@wireframe> 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: , 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 On 2023-05-11, Vagrant Cascadian wrote: > On 2023-05-11, Liliana Marie Prikler wrote: >> Am Mittwoch, dem 10.05.2023 um 22:43 -0700 schrieb Vagrant Cascadian: >>> We probably want to try to apply Debian's "privacy-breach" patch to >>> disable phoning home, as well as the reproducible builds patch and >>> some additional reproducibility patches I am working on, but figured >>> I would submit the package to guix for review now, in case anyone >>> else wants to join me down this rabbit hole... >> Well, it won't be added to Guix without such patches, so someone needs >> to go down this rabbit hole. Applied the privacy-breach patch, the maxu32/minizip patch was no longer relevent, and the reproducible builds patches only affect documentation, which is not currently provided in this package (there are no upstream rules to build vcmimanual.tex into any documentation). >>> + "@code{vcmi} is an implementation of Heroes of Might and >>> +Magic III (aka HOMM3) game engine. It requires assets and game >>> resources to >>> +play; it will look for them at @file{~/.local/share/vcmi} folder.") >> Use an @acronym or just spell it out. > > Presuming you mean "(aka HOMM3)" ... honestly, maybe best to just drop > it entirely; I am not sure it adds much. Dropped it. V2 patch attached. Thanks for reviewing! live well, vagrant From b46fad945222a64b8d73b35e2c0d57a017987235 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 7 May 2023 17:43:33 -0700 Subject: [PATCH] gnu: Add vcmi 1.2.1. * gnu/packages/games.scm (vcmi): New variable. * gnu/packages/patches/vcmi-disable-privacy-breach.patch: New patch. * gnu/local.mk (dist_patch_DATA): Add patches. --- gnu/local.mk | 1 + gnu/packages/games.scm | 47 +++++++++++++++++++ .../patches/vcmi-disable-privacy-breach.patch | 21 +++++++++ 3 files changed, 69 insertions(+) create mode 100644 gnu/packages/patches/vcmi-disable-privacy-breach.patch diff --git a/gnu/local.mk b/gnu/local.mk index 73db48f720..d5034300ef 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2028,6 +2028,7 @@ dist_patch_DATA = \ %D%/packages/patches/vboot-utils-fix-format-load-address.patch \ %D%/packages/patches/vboot-utils-fix-tests-show-contents.patch \ %D%/packages/patches/vboot-utils-skip-test-workbuf.patch \ + %D%/packages/patches/vcmi-disable-privacy-breach.patch \ %D%/packages/patches/vinagre-newer-freerdp.patch \ %D%/packages/patches/vinagre-newer-rdp-parameters.patch \ %D%/packages/patches/virtuoso-ose-remove-pre-built-jar-files.patch \ diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index bae79ee48b..ace32959b6 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -201,6 +201,7 @@ (define-module (gnu packages games) #:use-module (gnu packages sqlite) #:use-module (gnu packages squirrel) #:use-module (gnu packages swig) + #:use-module (gnu packages tbb) #:use-module (gnu packages tcl) #:use-module (gnu packages terminals) #:use-module (gnu packages texinfo) @@ -11187,6 +11188,52 @@ (define-public fheroes2 play; it will look for them at @file{~/.local/share/fheroes2} folder.") (license license:gpl2))) +(define-public vcmi + (package + (name "vcmi") + (version "1.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vcmi/vcmi") + (commit version) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nx3i078cxkak2ci514pf4pgi5269mp08njynsg35pin4yp3fn0p")) + (patches (search-patches "vcmi-disable-privacy-breach.patch")))) + (build-system cmake-build-system) + (arguments + ;; Test suites do not seem well supported upstream and are disabled by default. + ;; Pass -DENABLE_TEST to configure to enable. + `(#:tests? #f)) + (native-inputs (list boost + ffmpeg + ;; googletest ; needed for tests, but tests are disabled + libxkbcommon + luajit + minizip + pkg-config + python + ;; qtbase and qttools @6 not currently buildable but may work ok + qtbase-5 + qttools-5 + sdl2 + sdl2-mixer + sdl2-image + sdl2-ttf + tbb + vulkan-headers + zlib)) + (home-page "https://vcmi.eu/") + (synopsis "Turn-based strategy game engine") + (description + "@code{vcmi} is an implementation of Heroes of Might and +Magic III game engine. It requires assets and game resources to +play; it will look for them at @file{~/.local/share/vcmi} folder.") + (license license:gpl2))) + (define-public apricots (package (name "apricots") diff --git a/gnu/packages/patches/vcmi-disable-privacy-breach.patch b/gnu/packages/patches/vcmi-disable-privacy-breach.patch new file mode 100644 index 0000000000..c03bc66119 --- /dev/null +++ b/gnu/packages/patches/vcmi-disable-privacy-breach.patch @@ -0,0 +1,21 @@ +Origin: https://salsa.debian.org/games-team/vcmi/-/blob/debian/1.1.0+dfsg-1/debian/patches/disable-privacy-breach +From: Johannes Schauer +Subject: do not check remote repositories on startup by default +Forwarded: not-needed + +--- a/config/schemas/settings.json ++++ b/config/schemas/settings.json +@@ -401,11 +401,11 @@ + }, + "autoCheckRepositories" : { + "type" : "boolean", +- "default" : true ++ "default" : false + }, + "updateOnStartup" : { + "type" : "boolean", +- "default" : true ++ "default" : false + }, + "updateConfigUrl" : { + "type" : "string", base-commit: d07342b16612cfdffad6a7b3504b74e0d95d551f -- 2.39.2