Source: rbdoom3bfg
Version: 1.4.0+dfsg-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

rbdoom3bfg fails to cross build from source, because it fails to locate
../../imgui/imgui.h. This presumably is a side-effect from unvendoring
imgui and the parent directory specification should simply be dropped.
I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru rbdoom3bfg-1.4.0+dfsg/debian/changelog 
rbdoom3bfg-1.4.0+dfsg/debian/changelog
--- rbdoom3bfg-1.4.0+dfsg/debian/changelog      2022-03-28 11:15:37.000000000 
+0200
+++ rbdoom3bfg-1.4.0+dfsg/debian/changelog      2023-01-08 07:46:15.000000000 
+0100
@@ -1,3 +1,10 @@
+rbdoom3bfg (1.4.0+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Avoid including ../../imgui/imgui.h. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 08 Jan 2023 07:46:15 +0100
+
 rbdoom3bfg (1.4.0+dfsg-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru 
rbdoom3bfg-1.4.0+dfsg/debian/patches/20-use-debian-imgui.patch 
rbdoom3bfg-1.4.0+dfsg/debian/patches/20-use-debian-imgui.patch
--- rbdoom3bfg-1.4.0+dfsg/debian/patches/20-use-debian-imgui.patch      
2022-03-28 10:25:10.000000000 +0200
+++ rbdoom3bfg-1.4.0+dfsg/debian/patches/20-use-debian-imgui.patch      
2023-01-08 07:46:14.000000000 +0100
@@ -146,3 +146,14 @@
                g_haveNewFrame = false;
        }
  }
+--- rbdoom3bfg-1.4.0+dfsg.orig/neo/renderer/OpenGL/RenderBackend_GL.cpp
++++ rbdoom3bfg-1.4.0+dfsg/neo/renderer/OpenGL/RenderBackend_GL.cpp
+@@ -48,7 +48,7 @@
+ #include "../RenderBackend.h"
+ #include "../../framework/Common_local.h"
+ 
+-#include "../../imgui/imgui.h"
++#include "imgui/imgui.h"
+ 
+ idCVar r_drawFlickerBox( "r_drawFlickerBox", "0", CVAR_RENDERER | CVAR_BOOL, 
"visual test for dropping frames" );
+ idCVar stereoRender_warp( "stereoRender_warp", "0", CVAR_RENDERER | 
CVAR_ARCHIVE | CVAR_BOOL, "use the optical warping renderprog instead of 
stereoDeGhost" );

Reply via email to