Control: retitle -1 widelands FTBFS: SDL2 include dir not found

On Thu, 13 Feb 2020 19:02:17 +0100 Hans Joachim Desserud <deb...@desserud.org> 
wrote:
> Source: widelands
> Version: 1:20-1
> Severity: serious
> Justification: ftbfs
> Tags: ftbfs
> 
> Dear Maintainer,
> 
> Widelands currently fails to build in Sid with the following error 
> message:
> ...

I think the error is actually this (abridged):

-- SDL2_INCLUDE_DIR is SDL2_INCLUDE_DIR-NOTFOUND
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
/build/widelands-20/src/SDL2_INCLUDE_DIR
   used as include directory in directory /build/widelands-20/src
-- Configuring incomplete, errors occurred!

The trigger to breaking cmake/Modules/FindSDL2.cmake in widelands is
libsdl2 2.0.10+dfsg1-2, it seems. The attached patch fixes this FTBFS.

Markus, you have made team uploads of widelands before. I wonder if you
could make an upload that adds the patch?

--
yst. terv. / mvh / mfG
Juhani
Description: Find SDL.h in /usr/include/SDL2 or /usr/include/${ARCH}/SDL2
Author: Juhani Numminen <juhaninummin...@gmail.com>
Bug-Debian: https://bugs.debian.org/951281
Forwarded: no
Last-Update: 2020-02-15

--- a/cmake/Modules/FindSDL2.cmake
+++ b/cmake/Modules/FindSDL2.cmake
@@ -68,7 +68,7 @@
 FIND_PATH(SDL2_INCLUDE_DIR SDL.h
   HINTS
   $ENV{SDL2DIR}
-  PATH_SUFFIXES include/SDL2 include
+  PATH_SUFFIXES SDL2 include/SDL2 include
   PATHS
   ~/Library/Frameworks
   /Library/Frameworks

Reply via email to