GNU bug report logs -
#63126
[PATCH 0/2] Fix building OpenMW after the core-updates merge.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63126 in the body.
You can then email your comments to 63126 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#63126
; Package
guix-patches
.
(Thu, 27 Apr 2023 17:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kaelyn Takata <kaelyn.alexi <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 27 Apr 2023 17:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
This pair of patches fixes building OpenMW and its dependency recastnavigation
on master after the merge of core-updates. For both packages, the build
failures were due to SIGSTKSZ no longer being a constant in glibc 2.34 and
newer. recastnavigation is fixed by updating the package to the latest commit
(as of this writing). OpenMW has also been fixed upstream since the 0.47
release, but building using the openmw-48-rc9 tag results in OpenMW crashing
for me while loading the main menu.
I have tested this patch set in conjunction with the updated
openmw-openscenegraph in https://issues.guix.gnu.org/62728 and have
successfully loaded a saved game with the I Heart Vanilla modlist
(https://modding-openmw.com/lists/i-heart-vanilla/) installed and walked
around the starting town a bit, including talking to people.
Cheers,
Kaelyn
Kaelyn Takata (2):
gnu: recastnavigation: Update to commit 6d1f971.
gnu: openmw: Fix build on glibc 2.34 and newer.
gnu/local.mk | 1 +
gnu/packages/game-development.scm | 9 +++--
.../openmw-assume-nonconst-SIGSTKSZ.patch | 39 +++++++++++++++++++
3 files changed, 45 insertions(+), 4 deletions(-)
create mode 100644 gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch
base-commit: 297805b1f83aa58ba9fc775c203373338aafd5ac
--
2.39.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63126
; Package
guix-patches
.
(Thu, 27 Apr 2023 17:40:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 63126 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/game-development.scm (recastnavigation): Update to commit 6d1f971.
---
gnu/packages/game-development.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 844ce935ae..a3a331c290 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2803,8 +2803,8 @@ (define-public tesseract-engine
(define-public recastnavigation
;; We follow master since there hasn't been a release since 1.5.1 in 2016.
- (let ((commit "c5cbd53024c8a9d8d097a4371215e3342d2fdc87")
- (revision "1"))
+ (let ((commit "6d1f9711b3b71f28c2c1c0742d76e0ef8766cf91")
+ (revision "2"))
(package
(name "recastnavigation")
(version (git-version "1.5.1" revision commit))
@@ -2816,7 +2816,7 @@ (define-public recastnavigation
(file-name (git-file-name name version))
(sha256
(base32
- "034bm47gc3r285w1pnvkhmm74zz99d204b1r865gisaiq4qfbza0"))))
+ "0cqp0sbm0ixqnxqz6gf2gybh5l4az91mdsd8b5bgxs1wpl2jmnga"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON"
--
2.39.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63126
; Package
guix-patches
.
(Thu, 27 Apr 2023 17:40:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 63126 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it here.
* gnu/packages/game-development.scm (openmw)[source]<patches>: Use it here.
---
gnu/local.mk | 1 +
gnu/packages/game-development.scm | 3 +-
.../openmw-assume-nonconst-SIGSTKSZ.patch | 39 +++++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index c0a5c721fc..448c9d8139 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1640,6 +1640,7 @@ dist_patch_DATA = \
%D%/packages/patches/openjdk-10-setsignalhandler.patch \
%D%/packages/patches/openjdk-15-xcursor-no-dynamic.patch \
%D%/packages/patches/openmpi-mtl-priorities.patch \
+ %D%/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch \
%D%/packages/patches/openssh-hurd.patch \
%D%/packages/patches/openssh-trust-guix-store-directory.patch \
%D%/packages/patches/openresolv-restartcmd-guix.patch \
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index a3a331c290..c22b33e177 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1775,7 +1775,8 @@ (define-public openmw
(file-name (git-file-name name version))
(sha256
(base32
- "19mcbnjl4279qalb97msf965bjax48mx1r1qczyvwhn28h6n3bsy"))))
+ "19mcbnjl4279qalb97msf965bjax48mx1r1qczyvwhn28h6n3bsy"))
+ (patches (search-patches "openmw-assume-nonconst-SIGSTKSZ.patch"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No test target
diff --git a/gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch b/gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch
new file mode 100644
index 0000000000..ff0080e28a
--- /dev/null
+++ b/gnu/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch
@@ -0,0 +1,39 @@
+From 98a7d90ee258ceef9c70b0b2955d0458ec46f048 Mon Sep 17 00:00:00 2001
+From: elsid <elsid.mail <at> gmail.com>
+Date: Fri, 24 Sep 2021 19:40:29 +0200
+Subject: [PATCH] Assume SIGSTKSZ is not a constant
+
+SIGSTKSZ is not defined as constant since glibc 2.34:
+https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53
+---
+ components/crashcatcher/crashcatcher.cpp | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/components/crashcatcher/crashcatcher.cpp b/components/crashcatcher/crashcatcher.cpp
+index 86571e1e3a..c828e1ca81 100644
+--- a/components/crashcatcher/crashcatcher.cpp
++++ b/components/crashcatcher/crashcatcher.cpp
+@@ -56,8 +56,6 @@ static const char exec_err[] = "!!! Failed to exec debug process\n";
+
+ static char argv0[PATH_MAX];
+
+-static char altstack[SIGSTKSZ];
+-
+
+ static struct {
+ int signum;
+@@ -475,9 +473,10 @@ int crashCatcherInstallHandlers(int argc, char **argv, int num_signals, int *sig
+
+ /* Set an alternate signal stack so SIGSEGVs caused by stack overflows
+ * still run */
++ static char* altstack = new char [SIGSTKSZ];
+ altss.ss_sp = altstack;
+ altss.ss_flags = 0;
+- altss.ss_size = sizeof(altstack);
++ altss.ss_size = SIGSTKSZ;
+ sigaltstack(&altss, nullptr);
+
+ memset(&sa, 0, sizeof(sa));
+--
+GitLab
+
--
2.39.2
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Fri, 19 May 2023 14:32:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kaelyn Takata <kaelyn.alexi <at> protonmail.com>
:
bug acknowledged by developer.
(Fri, 19 May 2023 14:32:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 63126-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Kaelyn Takata <kaelyn.alexi <at> protonmail.com> skribis:
> gnu: recastnavigation: Update to commit 6d1f971.
> gnu: openmw: Fix build on glibc 2.34 and newer.
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 17 Jun 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.