unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51952] Irrlicht: fix build on core-updates-frozen
@ 2021-11-18 16:18 Vivien Kraus via Guix-patches via
  2021-11-18 19:16 ` bug#51952: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Vivien Kraus via Guix-patches via @ 2021-11-18 16:18 UTC (permalink / raw)
  To: 51952


[-- Attachment #1.1: Type: text/plain, Size: 135 bytes --]


Dear guix,

irrlicht includes <sys/sysctl.h>, but it doesn’t use it, so it’s safe to
remove it.

Best regards,

Vivien


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: Remove a bad include in irrlicht --]
[-- Type: text/x-patch, Size: 1129 bytes --]

From 86ad5ee8278ffa3bd2cc461c9536a33afccecb9a Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 18 Nov 2021 17:16:04 +0100
Subject: [PATCH] gnu: irrlicht: Fix build.

* gnu/packages/games.scm (irrlicht) [phase remove-<sys/systctl.h>]:
<sys/sysctl.h> has been removed from glibc, and it is not used, so remove it.
---
 gnu/packages/games.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e01ad3c8d2..c80335a1ea 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3568,6 +3568,10 @@ (define-public irrlicht
              ;; The actual source is buried a few directories deep.
              (chdir "source/Irrlicht/")
              #t))
+         (add-after 'chdir-to-source 'remove-<sys/sysctl.h>
+           (lambda _
+             (substitute* "COSOperator.cpp"
+               (("#include <sys/sysctl.h>") ""))))
          (add-after 'chdir-to-source 'fix-build-env
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
-- 
2.34.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-18 19:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-18 16:18 [bug#51952] Irrlicht: fix build on core-updates-frozen Vivien Kraus via Guix-patches via
2021-11-18 19:16 ` bug#51952: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).