From 6e57761e964730af7e5ffa104f588e4b9e92118e Mon Sep 17 00:00:00 2001 From: Hervy Qurrotul Ainur Rozi Date: Sun, 8 May 2022 04:38:03 +0700 Subject: [PATCH] coin3: disable check_cxx_source_compiles, fix freecad for wayland - fix FreeCAD for wayland (#14626). patch from: https://forum.freecadweb.org/viewtopic.php?p=354412&sid=85ff490ba28d18686795d961cf062754#p354412 - previously @paper42 using Gnome Wayland also had the same error. https://github.com/void-linux/void-packages/issues/30515#issuecomment-826906957 --- .../disable-check_cxx_source_compiles.patch | 20 +++++++++++++++++++ srcpkgs/coin3/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/coin3/patches/disable-check_cxx_source_compiles.patch diff --git a/srcpkgs/coin3/patches/disable-check_cxx_source_compiles.patch b/srcpkgs/coin3/patches/disable-check_cxx_source_compiles.patch new file mode 100644 index 000000000000..adb754d04cdd --- /dev/null +++ b/srcpkgs/coin3/patches/disable-check_cxx_source_compiles.patch @@ -0,0 +1,20 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -586,11 +586,11 @@ if(NOT (HAVE_WGL OR HAVE_AGL OR HAVE_CGL + list(APPEND COIN_TARGET_LINK_LIBRARIES OpenGL::GLX) + endif() + set(CMAKE_REQUIRED_LIBRARIES ${COIN_TARGET_LINK_LIBRARIES}) +- check_cxx_source_compiles(" +- #include +- #include +- int main() { (void)glXChooseVisual(0L, 0, 0L); glEnd(); return 0; } +- " HAVE_GLX) ++# check_cxx_source_compiles(" ++# #include ++# #include ++# int main() { (void)glXChooseVisual(0L, 0, 0L); glEnd(); return 0; } ++# " HAVE_GLX) + endif() + + # Checks specific OpenGL configurations + diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template index 2130c0b8b263..4a6ab27df272 100644 --- a/srcpkgs/coin3/template +++ b/srcpkgs/coin3/template @@ -1,7 +1,7 @@ # Template file for 'coin3' pkgname=coin3 version=4.0.0 -revision=2 +revision=3 wrksrc="coin-Coin-${version}" build_style=cmake configure_args="-DCMAKE_INSTALL_INCLUDEDIR=include/Coin3