GNU bug report logs - #67200
[PATCH] gnu: Add minetest-server.

Previous Next

Package: guix-patches;

Reported by: Tristan Cottam <tristan <at> cott.am>

Date: Wed, 15 Nov 2023 17:29:01 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67200 in the body.
You can then email your comments to 67200 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Wed, 15 Nov 2023 17:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tristan Cottam <tristan <at> cott.am>:
New bug report received and forwarded. Copy sent to liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Wed, 15 Nov 2023 17:29:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tristan Cottam <tristan <at> cott.am>
To: guix-patches <at> gnu.org
Cc: Tristan Cottam <tristan <at> cott.am>
Subject: [PATCH] gnu: Add minetest-server.
Date: Wed, 15 Nov 2023 12:53:01 +0100
* gnu/packages/minetest.scm (minetest-server): New variable.

Change-Id: I1125888b2944acc4063a19db4c602d33286a7e14
---

This package is a variant of minetest, with modified arguments and dropped
inputs.

About the inputs, I'm having a hard time understanding why certain of them
(i.e. pkg-config, coreutils, libxxf86vm, and ncurses) are specified for
minetest in the first place; the docs make no mention of them, and the package
builds fine without them.

 gnu/packages/minetest.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/minetest.scm b/gnu/packages/minetest.scm
index bf0df314a7..4d658f9e03 100644
--- a/gnu/packages/minetest.scm
+++ b/gnu/packages/minetest.scm
@@ -44,6 +44,7 @@ (define-module (gnu packages minetest)
   #:use-module (guix packages)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
+  #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system minetest)
@@ -154,6 +155,41 @@ (define-public minetest
     (home-page "https://www.minetest.net/")
     (license license:lgpl2.1+)))
 
+(define-public minetest-server
+  (package
+    (inherit minetest)
+    (name "minetest-server")
+    (arguments
+     (substitute-keyword-arguments (package-arguments minetest)
+       ((#:configure-flags configure-flags)
+        #~(cons* "-DBUILD_CLIENT=FALSE"
+                 "-DBUILD_SERVER=TRUE"
+                 #$configure-flags))
+       ((#:phases phases)
+        #~(modify-phases #$phases
+            (replace 'check
+              (lambda* (#:key tests? #:allow-other-keys)
+                (when tests?
+                  (setenv "HOME" "/tmp")
+                  (invoke "src/minetestserver" "--run-unittests"))))))))
+    (inputs
+     (modify-inputs (package-inputs minetest)
+       (delete "libjpeg-turbo"
+               "libpng"
+               "libogg"
+               "libvorbis"
+               "libxxf86vm"
+               "mesa"
+               "openal")))
+    (synopsis "Infinite-world block sandbox game (server)")
+    (description
+     "Minetest is a sandbox construction game.  Players can create and destroy
+various types of blocks in a three-dimensional open world.  This allows
+forming structures in every possible creation, on multiplayer servers or as a
+single player.  Mods and texture packs allow players to personalize the game
+in different ways.  This package provides @command{minetestserver} to run a
+Minetest server.")))
+
 (define minetest-data
   (package
     (name "minetest-data")

base-commit: bd0f2173210416e86281c1de8789e7cdab66dd57
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Wed, 15 Nov 2023 18:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Tristan Cottam <tristan <at> cott.am>, 67200 <at> debbugs.gnu.org
Cc: 宋文武 <iyzsong <at> envs.net>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Wed, 15 Nov 2023 19:39:06 +0100
Am Mittwoch, dem 15.11.2023 um 12:53 +0100 schrieb Tristan Cottam:
> * gnu/packages/minetest.scm (minetest-server): New variable.
> 
> Change-Id: I1125888b2944acc4063a19db4c602d33286a7e14
> ---
> 
> This package is a variant of minetest, with modified arguments and
> dropped
> inputs.
> 
> About the inputs, I'm having a hard time understanding why certain of
> them (i.e. pkg-config, coreutils, libxxf86vm, and ncurses) are
> specified for minetest in the first place; the docs make no mention
> of them, and the package builds fine without them.
pkg-config is nice to have for dependency resolution, though I don't
know whether the current version of minetest makes use of it. 
Coreutils were at one point required to patch rm; I hope minetest now
uses system calls for that.  The other two I don't know.

>  gnu/packages/minetest.scm | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 
> diff --git a/gnu/packages/minetest.scm b/gnu/packages/minetest.scm
> index bf0df314a7..4d658f9e03 100644
> --- a/gnu/packages/minetest.scm
> +++ b/gnu/packages/minetest.scm
> @@ -44,6 +44,7 @@ (define-module (gnu packages minetest)
>    #:use-module (guix packages)
>    #:use-module (guix gexp)
>    #:use-module (guix git-download)
> +  #:use-module (guix utils)
>    #:use-module (guix build-system cmake)
>    #:use-module (guix build-system copy)
>    #:use-module (guix build-system minetest)
> @@ -154,6 +155,41 @@ (define-public minetest
>      (home-page "https://www.minetest.net/")
>      (license license:lgpl2.1+)))
>  
> +(define-public minetest-server
> +  (package
> +    (inherit minetest)
> +    (name "minetest-server")
> +    (arguments
> +     (substitute-keyword-arguments (package-arguments minetest)
> +       ((#:configure-flags configure-flags)
> +        #~(cons* "-DBUILD_CLIENT=FALSE"
> +                 "-DBUILD_SERVER=TRUE"
> +                 #$configure-flags))
> +       ((#:phases phases)
> +        #~(modify-phases #$phases
> +            (replace 'check
> +              (lambda* (#:key tests? #:allow-other-keys)
> +                (when tests?
> +                  (setenv "HOME" "/tmp")
> +                  (invoke "src/minetestserver" "--run-
> unittests"))))))))
> +    (inputs
> +     (modify-inputs (package-inputs minetest)
> +       (delete "libjpeg-turbo"
> +               "libpng"
> +               "libogg"
> +               "libvorbis"
> +               "libxxf86vm"
> +               "mesa"
> +               "openal")))
> +    (synopsis "Infinite-world block sandbox game (server)")
> +    (description
> +     "Minetest is a sandbox construction game.  Players can create
> and destroy
> +various types of blocks in a three-dimensional open world.  This
> allows
> +forming structures in every possible creation, on multiplayer
> servers or as a
> +single player.  Mods and texture packs allow players to personalize
> the game
> +in different ways.  This package provides @command{minetestserver}
> to run a
> +Minetest server.")))
> +
>  (define minetest-data
>    (package
>      (name "minetest-data")
> 
> base-commit: bd0f2173210416e86281c1de8789e7cdab66dd57
LGTM, assuming CI lights green.

Cheers




Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Wed, 15 Nov 2023 21:32:01 GMT) Full text and rfc822 format available.

Message #11 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Tristan Cottam <tristan <at> cott.am>
To: 67200 <at> debbugs.gnu.org, 宋文武 <iyzsong <at> envs.net>,
 Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Wed, 15 Nov 2023 21:31:02 +0000
> LGTM, assuming CI lights green.

How can I check?




Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Wed, 15 Nov 2023 21:50:02 GMT) Full text and rfc822 format available.

Message #14 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Tristan Cottam <tristan <at> cott.am>, 67200 <at> debbugs.gnu.org, 
 宋文武 <iyzsong <at> envs.net>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Wed, 15 Nov 2023 22:49:04 +0100
Am Mittwoch, dem 15.11.2023 um 21:31 +0000 schrieb Tristan Cottam:
> > LGTM, assuming CI lights green.
> 
> How can I check?
Wait for https://qa.guix.gnu.org/issue/67200 to process the revision :)




Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Wed, 22 Nov 2023 20:45:02 GMT) Full text and rfc822 format available.

Message #17 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Tristan Cottam <tristan <at> cott.am>
To: 67200 <at> debbugs.gnu.org
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Wed, 22 Nov 2023 20:43:30 +0000
I see the QA is failing. What should I do?




Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Thu, 23 Nov 2023 11:16:02 GMT) Full text and rfc822 format available.

Message #20 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Tristan Cottam <tristan <at> cott.am>, 67200 <at> debbugs.gnu.org
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Thu, 23 Nov 2023 12:15:28 +0100
Am Mittwoch, dem 22.11.2023 um 20:43 +0000 schrieb Tristan Cottam:
> I see the QA is failing. What should I do?
You can try figuring out why

======== Testing module TestLua
Test assertion failed: did_destruct
    at test_lua.cpp:100

fails (probably also affects minetest itself).  That being said, this
is an armhf failure, that's not even worked for minetest, so from my
perspective, the package looks good.

Cheers




Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Thu, 23 Nov 2023 12:30:02 GMT) Full text and rfc822 format available.

Message #23 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Tristan Cottam <tristan <at> cott.am>
To: "67200 <at> debbugs.gnu.org" <67200 <at> debbugs.gnu.org>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Thu, 23 Nov 2023 12:28:53 +0000
> > I see the QA is failing. What should I do?
> 
> You can try figuring out why
> 
> ======== Testing module TestLua
> Test assertion failed: did_destruct
> at test_lua.cpp:100
> 
> fails (probably also affects minetest itself).

I saw that error in the logs, I checked out the original file, but I'm unsure
how to proceed from there, apart from filing an issue to Minetest.

> That being said, this is an armhf failure, that's not even worked for
> minetest, so from my perspective, the package looks good.

Awesome, cheers!





Information forwarded to guix-patches <at> gnu.org:
bug#67200; Package guix-patches. (Fri, 01 Dec 2023 17:48:02 GMT) Full text and rfc822 format available.

Message #26 received at 67200 <at> debbugs.gnu.org (full text, mbox):

From: Tristan Cottam <tristan <at> cott.am>
To: "67200 <at> debbugs.gnu.org" <67200 <at> debbugs.gnu.org>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Fri, 01 Dec 2023 17:47:13 +0000
What does this package still need to be merged upstream? Is further review required?




Reply sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
You have taken responsibility. (Sun, 14 Jan 2024 12:08:02 GMT) Full text and rfc822 format available.

Notification sent to Tristan Cottam <tristan <at> cott.am>:
bug acknowledged by developer. (Sun, 14 Jan 2024 12:08:02 GMT) Full text and rfc822 format available.

Message #31 received at 67200-done <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Tristan Cottam <tristan <at> cott.am>, 67200-done <at> debbugs.gnu.org
Cc: 宋文武 <iyzsong <at> envs.net>
Subject: Re: [bug#67200] [PATCH] gnu: Add minetest-server.
Date: Sun, 14 Jan 2024 13:07:48 +0100
Am Mittwoch, dem 15.11.2023 um 12:53 +0100 schrieb Tristan Cottam:
> * gnu/packages/minetest.scm (minetest-server): New variable.
> 
> Change-Id: I1125888b2944acc4063a19db4c602d33286a7e14
Applied at last.

Cheers




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Feb 2024 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.