GNU bug report logs - #30406
[PATCH 0/2] gnu: tome4: Add fix to getself.c.

Previous Next

Package: guix-patches;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Fri, 9 Feb 2018 21:23:02 UTC

Severity: normal

Tags: patch

Done: Sarah Morgensen <iskarian <at> mgsn.dev>

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 30406 in the body.
You can then email your comments to 30406 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 guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Fri, 09 Feb 2018 21:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Oleg Pykhalov <go.wigust <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 09 Feb 2018 21:23:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Oleg Pykhalov <go.wigust <at> gmail.com>
Subject: [PATCH 0/2] gnu: tome4: Add fix to getself.c.
Date: Sat, 10 Feb 2018 00:21:45 +0300
Hello Guix,

I've noticed tome4 sometimes failes:

  - https://hydra.gnu.org/build/2488652
  - https://hydra.gnu.org/build/2329898

First patch is an attempt to fix a getself.c error.
Second patch replaces 'system*' with 'invoke' Guile functions.

Oleg Pykhalov (2):
  gnu: tome4: Add fix to getself.c.
  gnu: tome4: Replace system* with invoke.

 gnu/local.mk                                       |  1 +
 gnu/packages/games.scm                             | 14 ++++++-------
 .../patches/tome4-patch-src-getself-c.patch        | 24 ++++++++++++++++++++++
 3 files changed, 32 insertions(+), 7 deletions(-)
 create mode 100644 gnu/packages/patches/tome4-patch-src-getself-c.patch

-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Fri, 09 Feb 2018 21:24:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: 30406 <at> debbugs.gnu.org
Cc: Oleg Pykhalov <go.wigust <at> gmail.com>
Subject: [PATCH 1/2] gnu: tome4: Add fix to getself.c.
Date: Sat, 10 Feb 2018 00:23:30 +0300
* gnu/local.mk (dist_patch_DATA): Add this.
* gnu/packages/games.scm (tome4)[source]: Add fix to getself.c.
* gnu/packages/patches/tome4-patch-src-getself-c.patch: New file.
---
 gnu/local.mk                                       |  1 +
 gnu/packages/games.scm                             |  1 +
 .../patches/tome4-patch-src-getself-c.patch        | 24 ++++++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 gnu/packages/patches/tome4-patch-src-getself-c.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 925057dc7..24b0bf1e0 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1118,6 +1118,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/tk-find-library.patch			\
   %D%/packages/patches/ttf2eot-cstddef.patch			\
   %D%/packages/patches/ttfautohint-source-date-epoch.patch	\
+  %D%/packages/patches/tome4-patch-src-getself-c.patch		\
   %D%/packages/patches/tophat-build-with-later-seqan.patch	\
   %D%/packages/patches/totem-meson-easy-codec.patch		\
   %D%/packages/patches/tuxpaint-stamps-path.patch		\
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 286d0feef..a5804a87b 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5208,6 +5208,7 @@ Crowther & Woods, its original authors, in 1995.  It has been known as
        (sha256
         (base32
          "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03"))
+       (patches (search-patches "tome4-patch-src-getself-c.patch"))
        (modules '((guix build utils)))
        (snippet
         '(substitute* '("src/music.h" "src/tSDL.h")
diff --git a/gnu/packages/patches/tome4-patch-src-getself-c.patch b/gnu/packages/patches/tome4-patch-src-getself-c.patch
new file mode 100644
index 000000000..ce4795662
--- /dev/null
+++ b/gnu/packages/patches/tome4-patch-src-getself-c.patch
@@ -0,0 +1,24 @@
+Copied from OpenBSD.
+
+Fixes: ../src/getself.c:40:1: fatal error: opening dependency file
+../obj/Release/TEngine/getself.d: No such file or directory
+
+$OpenBSD: patch-src_getself_c,v 1.3 2017/11/11 11:24:42 kirby Exp $
+
+--- a/src/getself.c
++++ b/src/getself.c
+@@ -47,13 +47,7 @@ int get_number_cpus()
+ const char *get_self_executable(int argc, char **argv)
+ {
+ 	static char res[PATH_MAX];
+-	int mib[4];
+-	mib[0] = CTL_KERN;
+-	mib[1] = KERN_PROC;
+-	mib[2] = KERN_PROC_PATHNAME;
+-	mib[3] = -1;
+-	size_t cb = sizeof(res);
+-	sysctl(mib,4,res,&cb,NULL,0);
++	realpath("${GAMEDIR}/", res);
+ 	return res;
+ }
+ 
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Fri, 09 Feb 2018 21:24:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: 30406 <at> debbugs.gnu.org
Cc: Oleg Pykhalov <go.wigust <at> gmail.com>
Subject: [PATCH 2/2] gnu: tome4: Replace system* with invoke.
Date: Sat, 10 Feb 2018 00:23:31 +0300
* gnu/packages/games.scm (tome4)[arguments]: Replace 'system*' with 'invoke'.
---
 gnu/packages/games.scm | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a5804a87b..e327dbc2f 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5230,8 +5230,7 @@ Crowther & Woods, its original authors, in 1995.  It has been known as
        #:phases (modify-phases %standard-phases
                   (replace 'configure
                     (lambda _
-                      (zero? (system* "premake4" "gmake"))
-                      #t))
+                      (invoke "premake4" "gmake")))
                   (add-after 'set-paths 'set-sdl-paths
                     (lambda* (#:key inputs #:allow-other-keys)
                       (setenv "CPATH"
@@ -5257,11 +5256,11 @@ Crowther & Woods, its original authors, in 1995.  It has been known as
                              (wrapper (string-append bin "/" ,name)))
                         ;; icon
                         (mkdir-p pixmaps)
-                        (system* unzip "-j"
-                                 (string-append
-                                  "game/engines/te4-" ,version ".teae")
-                                 (string-append
-                                  "data/gfx/" icon) "-d" pixmaps)
+                        (invoke unzip "-j"
+                                (string-append "game/engines/te4-"
+                                               ,version ".teae")
+                                (string-append "data/gfx/" icon)
+                                "-d" pixmaps)
                         ;; game executable
                         (install-file "t-engine" data)
                         (mkdir-p bin)
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Mon, 23 Apr 2018 13:00:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 30406 <at> debbugs.gnu.org
Subject: Re: [bug#30406] [PATCH 1/2] gnu: tome4: Add fix to getself.c.
Date: Mon, 23 Apr 2018 14:59:02 +0200
Hello,

Oleg Pykhalov <go.wigust <at> gmail.com> skribis:

> * gnu/local.mk (dist_patch_DATA): Add this.
> * gnu/packages/games.scm (tome4)[source]: Add fix to getself.c.
> * gnu/packages/patches/tome4-patch-src-getself-c.patch: New file.

As noted in HACKING, please feel free to go ahead if this patch fixes
something for you.

Thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Mon, 23 Apr 2018 13:00:04 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 30406 <at> debbugs.gnu.org
Subject: Re: [bug#30406] [PATCH 2/2] gnu: tome4: Replace system* with invoke.
Date: Mon, 23 Apr 2018 14:59:29 +0200
Oleg Pykhalov <go.wigust <at> gmail.com> skribis:

> * gnu/packages/games.scm (tome4)[arguments]: Replace 'system*' with 'invoke'.

Unless this has already been done in core-updates, you can definitely
push this one.

Ludo'.




Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Fri, 22 Jun 2018 19:36:01 GMT) Full text and rfc822 format available.

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

From: Gábor Boskovits <boskovits <at> gmail.com>
To: 30406 <at> debbugs.gnu.org
Cc: go.wigust <at> gmail.com
Subject: gnu: tome4: Add fix to getself.c.
Date: Fri, 22 Jun 2018 21:34:45 +0200
[Message part 1 (text/plain, inline)]
I'm reviewing patches before guix 0.15.0. This patchset looks like a good
candidate for inclusion, but patches do not apply cleanly on current
master. Ludo already said that these are ok to push. Can you create updated
patches, and push them, or submit them?
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#30406; Package guix-patches. (Sat, 23 Jun 2018 02:07:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Gábor Boskovits <boskovits <at> gmail.com>
Cc: 30406 <at> debbugs.gnu.org
Subject: Re: [bug#30406] gnu: tome4: Add fix to getself.c.
Date: Sat, 23 Jun 2018 05:06:37 +0300
[Message part 1 (text/plain, inline)]
Hello Gábor,

Gábor Boskovits <boskovits <at> gmail.com> writes:

> I'm reviewing patches before guix 0.15.0. This patchset looks like a good
> candidate for inclusion, but patches do not apply cleanly on current
> master. Ludo already said that these are ok to push. 

Thank you for taking your time on it.

> Can you create updated patches, and push them, or submit them?

I've updated tome4 to 1.5.10 in 972b87b14ae54bacf2457a4d538c5495bec37176
and I'm not sure whether the patch is necessary now.  I've found failed
built of the previous version on Hydra, so maybe I'll spot a failure for
the new version, too.

Oleg.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Sarah Morgensen <iskarian <at> mgsn.dev>:
You have taken responsibility. (Mon, 13 Sep 2021 00:08:02 GMT) Full text and rfc822 format available.

Notification sent to Oleg Pykhalov <go.wigust <at> gmail.com>:
bug acknowledged by developer. (Mon, 13 Sep 2021 00:08:02 GMT) Full text and rfc822 format available.

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

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: Gábor Boskovits <boskovits <at> gmail.com>,
 30406-done <at> debbugs.gnu.org
Subject: Re: [bug#30406] gnu: tome4: Add fix to getself.c.
Date: Sun, 12 Sep 2021 17:07:09 -0700
Hello,

I found this old bug.  It looks like it's been building consistently for
some time now, so I'm closing it.  Feel free to reopen if necessary.

Oleg Pykhalov <go.wigust <at> gmail.com> writes:

> I've updated tome4 to 1.5.10 in 972b87b14ae54bacf2457a4d538c5495bec37176
> and I'm not sure whether the patch is necessary now.  I've found failed
> built of the previous version on Hydra, so maybe I'll spot a failure for
> the new version, too.
>
> Oleg.

--
Sarah




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Oct 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 191 days ago.

Previous Next


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