Subject: bug#51952: closed (Re: [bug#51952] Irrlicht: fix build on core-updates-frozen)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 18 Nov 2021 19:17:02 +0000

Your bug report

#51952: Irrlicht: fix build on core-updates-frozen

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
51952: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51952
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#51952] Irrlicht: fix build on core-updates-frozen
From: Efraim Flashner <[email-masked]>
To: Vivien Kraus <[email-masked]>
Cc: [email-masked]
Date: Thu, 18 Nov 2021 21:16:01 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks! Patch pushed.

-- 
Efraim Flashner   <[email-masked]>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: Irrlicht: fix build on core-updates-frozen
From: Vivien Kraus <[email-masked]>
To: [email-masked]
Date: Thu, 18 Nov 2021 17:18:20 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Dear guix,

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

Best regards,

Vivien

From 86ad5ee8278ffa3bd2cc461c9536a33afccecb9a Mon Sep 17 00:00:00 2001
From: Vivien Kraus <[email-masked]>
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