GNU bug report logs - #30084
[PATCH] gnu: Add urho3d.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Oleg Pykhalov <go.wigust@HIDDEN>; Keywords: patch moreinfo; dated Fri, 12 Jan 2018 05:01:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Leo Famulari <leo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 30084 <at> debbugs.gnu.org:


Received: (at 30084) by debbugs.gnu.org; 23 Jan 2018 14:07:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 23 09:07:56 2018
Received: from localhost ([127.0.0.1]:39214 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1edzEy-00067N-6d
	for submit <at> debbugs.gnu.org; Tue, 23 Jan 2018 09:07:56 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:43098)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1edzEw-00067C-66
 for 30084 <at> debbugs.gnu.org; Tue, 23 Jan 2018 09:07:54 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id A6D3A10671;
 Tue, 23 Jan 2018 15:07:53 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id g8_jQ4tHEcvs; Tue, 23 Jan 2018 15:07:52 +0100 (CET)
Received: from ribbon (unknown [193.50.110.135])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id A42BB10610;
 Tue, 23 Jan 2018 15:07:52 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: [bug#30084] [PATCH] gnu: Add urho3d.
References: <87y3l5ic8f.fsf@HIDDEN> <87shbbqiq5.fsf@HIDDEN>
 <87r2qgput3.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Pluvi=C3=B4se?= an 226 de la =?utf-8?Q?R?=
 =?utf-8?Q?=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 23 Jan 2018 15:07:52 +0100
In-Reply-To: <87r2qgput3.fsf@HIDDEN> (Oleg Pykhalov's message of "Tue, 23
 Jan 2018 16:29:44 +0300")
Message-ID: <87vafs653b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 30084
Cc: 30084 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hello,

Oleg Pykhalov <go.wigust@HIDDEN> skribis:

> ludo@HIDDEN (Ludovic Court=C3=A8s) writes:
>
>> Hi Oleg,
>>
>> Oleg Pykhalov <go.wigust@HIDDEN> skribis:
>>
>>> From 186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001
>>> From: Oleg Pykhalov <go.wigust@HIDDEN>
>>> Date: Thu, 11 Jan 2018 01:14:41 +0300
>>> Subject: [PATCH] gnu: Add urho3d.
>>>
>>> * gnu/packages/game-development.scm (urho3d): New public variable.
>>
>> [...]
>>
>>> +           (lambda* (#:key inputs #:allow-other-keys)
>>> +             (substitute* (string-append "../build/Source/ThirdParty"
>>> +                                         "/SDL/include/generated/SDL_c=
onfig.h")
>>
>> IIUC there=E2=80=99s a bundled copy of SDL, right?  Can we instead build=
 against
>> our SDL?
>
> Yes, it's a bundled copy.  We probably can, but how?  The build system
> probably configured look for 'Source/ThirdParty/SDL'.  So should we make
> a symbolic link like 'Source/ThirdParty/SDL' -> '/gnu/store/=E2=80=A6-SDL=
'?

Rather, we should adjust CMakeLists.txt (if needed) so that it links
against our copy of SDL, like Fis Trivial did with =E2=80=98rct=E2=80=99 to=
day.

>> Ideally, to be safe from bundling, we should =E2=80=9Crm -rf ThirdParty=
=E2=80=9D in a
>> snippet.  Is that possible?
>
> Unfortunately no.  The contents of the 'Source/ThirdParty' has much more
> than just SDL.  It's too much work for now, but a good TODO.
>
> Source/ThirdParty/SDL
>
>     AngelScript Assimp boost Box2D Bullet Civetweb Detour DetourCrowd
>     DetourTileCache FreeType GLEW ik JO kNet LibCpuId LICENSES Lua
>     LuaJIT LZ4 MojoShader Mustache nanodbc PugiXml rapidjson Recast SDL
>     SQLite StanHull STB toluapp WebP

Ouch, that=E2=80=99s a lot of stuff!  We should at least remove boost, Free=
Type,
GLEW, Lua, LuaJIT, LZ4, SDL, and SQLite, for which we have packages.

> Actually I wonder will those libraries and the engine overall play nice
> with OUR SDL library?  Should we provide a Guix version and bundled
> libraries version?

We=E2=80=99ll have to try; hopefully they=E2=80=99re shipping an unmodified=
 SDL.

> From 5a906d8a8a9ff50ed46b5ffc33714b11517e23ca Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <go.wigust@HIDDEN>
> Date: Thu, 11 Jan 2018 01:14:41 +0300
> Subject: [PATCH] gnu: Add urho3d.
>
> * gnu/packages/game-development.scm (urho3d): New public variable.

Could you please try unbundling the things mentioned above, and add a
FIXME for those we=E2=80=99re not unbundling yet?  We should try and see how
difficult it is; for =E2=80=98rct=E2=80=99 it was OK.

Thank you!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#30084; Package guix-patches. Full text available.

Message received at 30084 <at> debbugs.gnu.org:


Received: (at 30084) by debbugs.gnu.org; 23 Jan 2018 13:30:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 23 08:30:05 2018
Received: from localhost ([127.0.0.1]:39190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1edyeJ-00057k-Pd
	for submit <at> debbugs.gnu.org; Tue, 23 Jan 2018 08:30:05 -0500
Received: from mail-lf0-f42.google.com ([209.85.215.42]:40241)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <go.wigust@HIDDEN>) id 1edyeH-00056i-8k
 for 30084 <at> debbugs.gnu.org; Tue, 23 Jan 2018 08:30:02 -0500
Received: by mail-lf0-f42.google.com with SMTP id h92so613144lfi.7
 for <30084 <at> debbugs.gnu.org>; Tue, 23 Jan 2018 05:30:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=LimDSZHwdWmR1i9hDkoz0yRfnqEoZHqwbRjWJ+6ctSM=;
 b=E551J4oFT3OG7oJqzOOPK+lOleRnHPLoi9rrx1K1oQyAtab6xp0ItrgTwcW2ZJwSyF
 kDAmIOOLTEaS5yHYPZOQIZlEB8FYn65bUQu+O1hnFeBwOCIIV83JPW5O8sCj88sJiA3j
 Q9aiJ1/A3qAPAXSKZntVrPQlDYhx1wUP75hursPa4eWGu1VkpUd/af7o0hUCVKWsnywc
 WbBevBiR+qEuzoKEmPWyEFmNxm8AmNaHs4xw0YgMZ/hiQzMgFHfKbFzI4GnF4jNdo7YB
 2YtzHsHXglZfsgEMF1iFdGrNY0XmP4UWHyCPjuNzZ58Zztah/HZOPfM1ZUPg2YJaRvkr
 fq1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=LimDSZHwdWmR1i9hDkoz0yRfnqEoZHqwbRjWJ+6ctSM=;
 b=DUj4PbhwHk79PR8oACQxs+W53Nrx9i5GsqIEb7XmOO+P20JBTjk+kgMuUBtVvpVHSv
 CbrdXO3dTirub0WwZQbpuJqJzeje0njGe+Zdq0zyS9p+Bzzbz3bckPwyclQW+pyR85Eq
 ILCNpRSq2NM4THw0CuwvgFin3vbMKxvmF0rpjRqVa1HNiDWPIwh/URRyXmKwORubkmQK
 5TkUJxJne/igVWh4uURpyREAv5QxiBm7HehF25oYUySeAw57i5mh+OgLF2KzfO96bXHr
 z3ErOZDLtKo7tt5f4IvCj2LNzVEuoUsT8cNXAU9ZRb2lcVbgNGk7woT7anZAHedXmlCr
 3nRQ==
X-Gm-Message-State: AKwxyteK6gGK+TUeyWLs2UuxjDQ2XxV6wqv8sIZunAf373ym4LHBsGrF
 huPmX+6nInG8duZ9ov9GaL7a4w==
X-Google-Smtp-Source: AH8x227KxyZU1LAznIAP23DnLOQGaGJVcF3Iqpb+GK9wQlVq1S2peKaI0UrfNRagc74+cVAxYHSr8A==
X-Received: by 10.46.115.22 with SMTP id o22mr1339082ljc.89.1516714194852;
 Tue, 23 Jan 2018 05:29:54 -0800 (PST)
Received: from magnolia (92-100-251-30.dynamic.avangarddsl.ru. [92.100.251.30])
 by smtp.gmail.com with ESMTPSA id q77sm58621lfd.17.2018.01.23.05.29.52
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 23 Jan 2018 05:29:53 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: [bug#30084] [PATCH] gnu: Add urho3d.
References: <87y3l5ic8f.fsf@HIDDEN> <87shbbqiq5.fsf@HIDDEN>
Date: Tue, 23 Jan 2018 16:29:44 +0300
In-Reply-To: <87shbbqiq5.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Fri, 12 Jan 2018 15:01:22 +0100")
Message-ID: <87r2qgput3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30084
Cc: 30084 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello Ludovic,

Thank you for review!

ludo@HIDDEN (Ludovic Court=C3=A8s) writes:

> Hi Oleg,
>
> Oleg Pykhalov <go.wigust@HIDDEN> skribis:
>
>> From 186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001
>> From: Oleg Pykhalov <go.wigust@HIDDEN>
>> Date: Thu, 11 Jan 2018 01:14:41 +0300
>> Subject: [PATCH] gnu: Add urho3d.
>>
>> * gnu/packages/game-development.scm (urho3d): New public variable.
>
> [...]
>
>> +           (lambda* (#:key inputs #:allow-other-keys)
>> +             (substitute* (string-append "../build/Source/ThirdParty"
>> +                                         "/SDL/include/generated/SDL_co=
nfig.h")
>
> IIUC there=E2=80=99s a bundled copy of SDL, right?  Can we instead build =
against
> our SDL?

Yes, it's a bundled copy.  We probably can, but how?  The build system
probably configured look for 'Source/ThirdParty/SDL'.  So should we make
a symbolic link like 'Source/ThirdParty/SDL' -> '/gnu/store/=E2=80=A6-SDL'?

I'll check this later.  Maybe it will search for a system first SDL and
if not find it use their own.  Also I have a question about SDL in the
following quote.

> Ideally, to be safe from bundling, we should =E2=80=9Crm -rf ThirdParty=
=E2=80=9D in a
> snippet.  Is that possible?

Unfortunately no.  The contents of the 'Source/ThirdParty' has much more
than just SDL.  It's too much work for now, but a good TODO.

Source/ThirdParty/SDL

    AngelScript Assimp boost Box2D Bullet Civetweb Detour DetourCrowd
    DetourTileCache FreeType GLEW ik JO kNet LibCpuId LICENSES Lua
    LuaJIT LZ4 MojoShader Mustache nanodbc PugiXml rapidjson Recast SDL
    SQLite StanHull STB toluapp WebP

Actually I wonder will those libraries and the engine overall play nice
with OUR SDL library?  Should we provide a Guix version and bundled
libraries version?

>> +               (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DY=
NAMIC"
>> +                                " \"libpulse-simple\\.so\\.0\""))
>> +                (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYN=
AMIC \""
>> +                               (assoc-ref inputs "pulseaudio")
>> +                               "/lib/libpulse-simple.so.0"
>> +                               "\"")))
>
> Please use a literal string in the =E2=80=98substitute*=E2=80=99 pattern =
(you can use
> backslashes to split it on several lines.)

OK.  Thanks for notice!

>> +    (description "Lightweight, cross-platform 2D and 3D game engine
>> +implemented in C++.  Inspired by OGRE and Horde3D.")
>
> Full sentences please!  :-)
>
>   https://www.gnu.org/software/guix/manual/html_node/Synopses-and-Descrip=
tions.html

Oh, thanks!

> Could you send an updated path?


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=0001-gnu-Add-urho3d.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: [PATCH] gnu: Add urho3d.

From=205a906d8a8a9ff50ed46b5ffc33714b11517e23ca Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@HIDDEN>
Date: Thu, 11 Jan 2018 01:14:41 +0300
Subject: [PATCH] gnu: Add urho3d.

* gnu/packages/game-development.scm (urho3d): New public variable.
=2D--
 gnu/packages/game-development.scm | 51 +++++++++++++++++++++++++++++++++++=
++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm=
ent.scm
index 0b08b04f5..3c5eae5cd 100644
=2D-- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1206,3 +1206,54 @@ related games such as Heretic and Hexen.  It comes w=
ith a 3d preview mode and
 a 2D editor view.")
     (home-page "http://eureka-editor.sourceforge.net/")
     (license license:gpl2+)))
+
+(define-public urho3d
+  (package
+    (name "urho3d")
+    (version "1.7")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/urho3d/Urho3D"
+                                  "/archive/" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1im63n9rx8qq1ks6aq6jrl5ikxg87hqhsy06miqc317hpm1iyav5"))))
+    (build-system cmake-build-system)
+    (inputs `(("libx11" ,libx11)
+              ("libxcursor" ,libxcursor)
+              ("libxext" ,libxext)
+              ("libxi" ,libxi)
+              ("libxinerama" ,libxinerama)
+              ("libxrandr" ,libxrandr)
+              ("libxrender" ,libxrender)
+              ("libxscrnsaver" ,libxscrnsaver)
+              ("mesa" ,mesa)
+              ("alsa-lib" ,alsa-lib)
+              ("pulseaudio" ,pulseaudio)))
+    (arguments
+     '(#:tests?
+       #f ; There are no tests
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'configure 'use-full-library-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "../build/Source/ThirdParty\
+/SDL/include/generated/SDL_config.h"
+               (("#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"libasound\\.so\\=
.2\"")
+                (string-append "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \""
+                               (assoc-ref inputs "alsa-lib")
+                               "/lib/libasound.so.2"
+                               "\""))
+               (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAM=
IC"
+                                " \"libpulse-simple\\.so\\.0\""))
+                (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMI=
C \""
+                               (assoc-ref inputs "pulseaudio")
+                               "/lib/libpulse-simple.so.0"
+                               "\"")))
+             #t)))))
+    (home-page "https://urho3d.github.io/")
+    (synopsis "Cross-platform 2D and 3D game engine")
+    (description "This package provides a lightweight, cross-platform 2D a=
nd
+3D game engine implemented in C++.  Inspired by OGRE and Horde3D.")
+    (license license:expat)))
=2D-=20
2.15.1


--=-=-=
Content-Type: text/plain



Oleg.

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIyBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlpnOMgACgkQckbhHGm3
lWmCxw/1HLkVSGoMFS/t6k1tBn24gSZqf/sWR31i8TjkFumpKiCGBRKhtqsgT1Cb
G1RJ8lbGcBtMRT6AErHsb39ZS/yrwaaExKxa11GUbqG3IGnwAClGGcgGmLoLubdH
zkGfDvWQ8QP3xWqPq3hD4slz0VVabEsk88c/CL9no/QjROjZMtftaRs50pdy98LQ
mKUbDFx1iVIn9feyNuChfQtZiiHD/JGJaOmF2mOmX5Fef66O+BEg9cQkSPMR6ab5
gTZD390JgbNGVjQowwSRk4ljYLKFO+HKePgm1cNzaXAQPe1/pSWtO28HJakxY5Ab
U6b4Nj1l0J3yC615zj0m4Diz/Qtm6Juy3fgaSz6jmRdPisJUZkqoklBGqz76Q5X0
PuXNG1RYX0A7HpbN/2LxQcXeic6XWnuJf05bl03lo8InHvYfEVGgPxFjj/8ad4/S
VTIZNpgbQegn/EEckykF4FB5Q8Yu2hsuyrT1V9aRJm+Oa3aa5DBxX7bAHRoWhnw7
n/Irgv5GX1wAQeR9y3R62gudqQWuZd1xfIvXe+hz2YxaDX/cVGcbhmBDvfP4SV44
0dmXZ/1XSW1owjaV1nNx2T/YYc0c2+eSBHk4ieHRHft0PsdMljy2ffiGvopmFvRE
0fyxNl71D7ZRP4MfOhCYaQJqBsBcQlifqIkwnJg7byvWdNcXUA==
=svEF
-----END PGP SIGNATURE-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#30084; Package guix-patches. Full text available.

Message received at 30084 <at> debbugs.gnu.org:


Received: (at 30084) by debbugs.gnu.org; 12 Jan 2018 14:01:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 09:01:27 2018
Received: from localhost ([127.0.0.1]:53024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eZztf-0006xC-Io
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2018 09:01:27 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:41594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1eZztd-0006x4-Uq
 for 30084 <at> debbugs.gnu.org; Fri, 12 Jan 2018 09:01:26 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id E3C7210A06;
 Fri, 12 Jan 2018 15:01:24 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id r3-r46vkRqgB; Fri, 12 Jan 2018 15:01:23 +0100 (CET)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 2702A10A04;
 Fri, 12 Jan 2018 15:01:23 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: [bug#30084] [PATCH] gnu: Add urho3d.
References: <87y3l5ic8f.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 23 =?utf-8?Q?Niv=C3=B4se?= an 226 de la =?utf-8?Q?R?=
 =?utf-8?Q?=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 12 Jan 2018 15:01:22 +0100
In-Reply-To: <87y3l5ic8f.fsf@HIDDEN> (Oleg Pykhalov's message of "Thu, 11
 Jan 2018 01:24:16 +0300")
Message-ID: <87shbbqiq5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 30084
Cc: 30084 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hi Oleg,

Oleg Pykhalov <go.wigust@HIDDEN> skribis:

> From 186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <go.wigust@HIDDEN>
> Date: Thu, 11 Jan 2018 01:14:41 +0300
> Subject: [PATCH] gnu: Add urho3d.
>
> * gnu/packages/game-development.scm (urho3d): New public variable.

[...]

> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (substitute* (string-append "../build/Source/ThirdParty"
> +                                         "/SDL/include/generated/SDL_con=
fig.h")

IIUC there=E2=80=99s a bundled copy of SDL, right?  Can we instead build ag=
ainst
our SDL?

Ideally, to be safe from bundling, we should =E2=80=9Crm -rf ThirdParty=E2=
=80=9D in a
snippet.  Is that possible?

> +               (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYN=
AMIC"
> +                                " \"libpulse-simple\\.so\\.0\""))
> +                (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNA=
MIC \""
> +                               (assoc-ref inputs "pulseaudio")
> +                               "/lib/libpulse-simple.so.0"
> +                               "\"")))

Please use a literal string in the =E2=80=98substitute*=E2=80=99 pattern (y=
ou can use
backslashes to split it on several lines.)

> +    (description "Lightweight, cross-platform 2D and 3D game engine
> +implemented in C++.  Inspired by OGRE and Horde3D.")

Full sentences please!  :-)

  https://www.gnu.org/software/guix/manual/html_node/Synopses-and-Descripti=
ons.html

Could you send an updated path?

Thank you,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#30084; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jan 2018 05:00:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 00:00:30 2018
Received: from localhost ([127.0.0.1]:52792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eZrSA-00088X-0P
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2018 00:00:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34850)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <go.wigust@HIDDEN>) id 1eZrS8-00088J-BH
 for submit <at> debbugs.gnu.org; Fri, 12 Jan 2018 00:00:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eZrS1-0005B2-J7
 for submit <at> debbugs.gnu.org; Fri, 12 Jan 2018 00:00:22 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_50,DATE_IN_PAST_24_48,
 FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60440)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1eZrS1-0005An-BO
 for submit <at> debbugs.gnu.org; Fri, 12 Jan 2018 00:00:21 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54025)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eZrRw-0004tc-BZ
 for guix-patches@HIDDEN; Fri, 12 Jan 2018 00:00:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eZrRt-0004xQ-7Y
 for guix-patches@HIDDEN; Fri, 12 Jan 2018 00:00:16 -0500
Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:35182)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1eZrRs-0004tv-OU
 for guix-patches@HIDDEN; Fri, 12 Jan 2018 00:00:13 -0500
Received: by mail-lf0-x22a.google.com with SMTP id h5so4613367lfj.2
 for <guix-patches@HIDDEN>; Thu, 11 Jan 2018 21:00:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=p3cyoOGc+dDczF+4AKOf79HhcFSL3WCMq8izzM6q0bA=;
 b=sEbGNiT4ClcRDaWEjhCYU4/nshTw1RWfW/dah/rS027J1fbHpmFewT+3JI7V0xNCzZ
 b4Y5a4sB1kjwmDQW29ObdPaZicyh0MpyTIuB7nQ6xNCrPfBRb0SSbXpaZm7js4G0z1kU
 24hxx6gjXIvl77BEMcM1/gFOaNuh7Ab35xKbk7/TIqGiJQH1jk+/tAgoAZWZKQ3Szqov
 44lYHtS5smSU/O1yxK2JQ45toP/CSZTI2R4NQ4KtW4wNOeLnw9XHagaXKnYJwkFQtXsJ
 DI4NBWzErMeW5EklJg7meE6P+jpkeQ/eYU+FKOStT+F56RQGFAsfSU1rzrCQXaAfd5kE
 Istw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=p3cyoOGc+dDczF+4AKOf79HhcFSL3WCMq8izzM6q0bA=;
 b=d9Kkn6k9404l7wosyvBOKhmS1sAeRGiexChnZcKt0hx+CMAoIaSlJYmG1ljUio/Kgd
 8jE83LPSYtwqw3ekX3jGse3MhKHVRiGLoE4IYNi+skDMsy0SKMQPR5cls6nByhPkAYkF
 0XqybPZnutNVckx4p5chSl1ikWQE3VAibgMuMf7djH/6rC/qVtXAeKs2TmVciaeFAtv4
 R7InzB8ptJZ9bhZRMPIEpbFdmIAKbMj7tRqo62zWDrlfMs1wwW+p+G1svkdkigSy7UWW
 Pi6hvzUF+nmcOg02md+cnbxifzO0EKR+D96mhgeBsEnPgoEaVqVYddV2DODrS9yz5cUP
 xb0A==
X-Gm-Message-State: AKwxytdHFGgIQQZoxBfUO0RCtzflXFXw+vWAQm5B/LSrB0ZE6jDnS6gP
 i3mE/hoqpNfwIKvD0eMxrmg2+XB4
X-Google-Smtp-Source: ACJfBotBesY01dkxerJg5Sx3/f5TpSnnSrUClHwq8lEXsd4Shz5tAnkrg8YUBfYTdi4ZGQdYpGbuaQ==
X-Received: by 10.25.83.4 with SMTP id h4mr8905465lfb.121.1515733210441;
 Thu, 11 Jan 2018 21:00:10 -0800 (PST)
Received: from magnolia (ppp91-122-120-78.pppoe.avangarddsl.ru.
 [91.122.120.78])
 by smtp.gmail.com with ESMTPSA id h11sm3553349lfd.35.2018.01.11.21.00.08
 for <guix-patches@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 11 Jan 2018 21:00:09 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add urho3d.
Date: Thu, 11 Jan 2018 01:24:16 +0300
Message-ID: <87y3l5ic8f.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.6 (---)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain

Hello Guix,

This patch adds a 3D game engine.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=0001-gnu-Add-urho3d.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: [PATCH] gnu: Add urho3d.

From=20186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@HIDDEN>
Date: Thu, 11 Jan 2018 01:14:41 +0300
Subject: [PATCH] gnu: Add urho3d.

* gnu/packages/game-development.scm (urho3d): New public variable.
=2D--
 gnu/packages/game-development.scm | 51 +++++++++++++++++++++++++++++++++++=
++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm=
ent.scm
index 363d9a253..69045cf9c 100644
=2D-- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1150,3 +1150,54 @@ features design tools such as a visual editor, can i=
mport 3D models and
 provide high-quality 3D rendering, it contains an animation editor, and ca=
n be
 scripted in a Python-like language.")
     (license license:expat)))
+
+(define-public urho3d
+  (package
+    (name "urho3d")
+    (version "1.7")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/urho3d/Urho3D"
+                                  "/archive/" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1im63n9rx8qq1ks6aq6jrl5ikxg87hqhsy06miqc317hpm1iyav5"))))
+    (build-system cmake-build-system)
+    (inputs `(("libx11" ,libx11)
+              ("libxcursor" ,libxcursor)
+              ("libxext" ,libxext)
+              ("libxi" ,libxi)
+              ("libxinerama" ,libxinerama)
+              ("libxrandr" ,libxrandr)
+              ("libxrender" ,libxrender)
+              ("libxscrnsaver" ,libxscrnsaver)
+              ("mesa" ,mesa)
+              ("alsa-lib" ,alsa-lib)
+              ("pulseaudio" ,pulseaudio)))
+    (arguments
+     '(#:tests?
+       #f ; There are no tests
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'configure 'use-full-library-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* (string-append "../build/Source/ThirdParty"
+                                         "/SDL/include/generated/SDL_confi=
g.h")
+               (("#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"libasound\\.so\\=
.2\"")
+                (string-append "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \""
+                               (assoc-ref inputs "alsa-lib")
+                               "/lib/libasound.so.2"
+                               "\""))
+               (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAM=
IC"
+                                " \"libpulse-simple\\.so\\.0\""))
+                (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMI=
C \""
+                               (assoc-ref inputs "pulseaudio")
+                               "/lib/libpulse-simple.so.0"
+                               "\"")))
+             #t)))))
+    (home-page "https://urho3d.github.io/")
+    (synopsis "Cross-platform 2D and 3D game engine")
+    (description "Lightweight, cross-platform 2D and 3D game engine
+implemented in C++.  Inspired by OGRE and Horde3D.")
+    (license license:expat)))
=2D-=20
2.15.1


--=-=-=
Content-Type: text/plain


Also the latest version of engine could be build with:

--8<---------------cut here---------------start------------->8---
(define-public urho3d-checkout
  (let ((commit "4af4148048a6443154c6f0498d32626d10f1e86b")
        (revision "1"))
    (package
      (inherit urho3d)
      (name "urho3d-checkout")
      (version (string-append (package-version urho3d) "-" revision "."
                              (string-take commit 7)))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://github.com/urho3d/Urho3D")
                      (commit commit)))
                (file-name (string-append name "-" version "-checkout"))
                (sha256
                 (base32
                  "1nchxswrkfgzsxghi6c55b27zy9127ni7yvnb4xw2xdddyfm1wl0")))))))--8<---------------cut here---------------end--------------->8---

Thanks,
Oleg.

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlpWkpAACgkQckbhHGm3
lWm/BRAAzts0nCH+6yQfDertSyeaO34uGRegQuSoAsAd9l7vl9sSto2gdvScnUe8
QjQtKP2DtKRFf8dZsISlDKqkJLU4dz05t86M51j2zXoQY3gLIi/50DmfBH1zMCRD
3N8nRhw+GetWW4o0ikWW4uXghPPZU/8yihqz5sPbz6fCDi0Z3cuP5q5KPN+lFnHo
gE6E2keYH9iJkzTvsEzlM7TBDl1S5rPwr6Qb8nC28MA0YA15dPLPHEpkUuP3+9Ic
WXn3FuCe+dj2tZ1V4vG9XY5e7FuY7nPZO+Ef59JGEaiDOlLJdwT5fiqwNipSiQx0
+9h+x596P5lXDSbe+XZEISHmPgtLcFGMh+T3A5K1xtrFz9nCRtQfRfxxd7+4/Z5A
ddsHtIvHQGDrrGTswxt8N+xxcPPwiUNatsacchw1Yaff4DikQaBNkvs7ogEGtbae
9tT6VyOdUsnOPRmn6apsCDhSEOTXpJIyl8/FVhDbZfq/UqkzmzIjxv5GFML0AS2f
jVUxLm2BemPvga3wEok+ordfYb+SCgIPOXsYL5jrhq0m24DgOq5QBFhZ8vbWGV7f
NpG/vo5o2zJQqBJEnl75nQKcTxu+cQMEyt/CqY+aAutVgplxJVeK99i4cyq0oeac
sq63M65RsTOpxDzVKOry+LJTaXl25XWN27rDYzWJ5TI8dw6Bfks=
=qpid
-----END PGP SIGNATURE-----
--==-=-=--




Acknowledgement sent to Oleg Pykhalov <go.wigust@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#30084; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 13 Feb 2019 00:15:01 UTC

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