gnucash: fix cmake configure phase, missing "include(CheckSymbolExists)" (#68026)

This commit is contained in:
Aristid Breitkreuz 2019-09-03 22:31:50 +02:00 committed by GitHub
parent 1f49035aca
commit bafe56c685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Index: gnucash-3.6/gnucash/register/register-gnome/CMakeLists.txt
===================================================================
--- gnucash-3.6.orig/gnucash/register/register-gnome/CMakeLists.txt
+++ gnucash-3.6/gnucash/register/register-gnome/CMakeLists.txt
@@ -1,6 +1,7 @@
add_subdirectory(test)
#GTK before 3.14 didn't have GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK
+include(CheckSymbolExists)
check_symbol_exists(GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK gdk/gdktypes.h have_mod_mask)
if (NOT have_mod_mask)
if (MAC_INTEGRATION)

View file

@ -47,6 +47,8 @@ stdenv.mkDerivation rec {
# Should probably be removed next version bump
CXXFLAGS = [ "-Wno-deprecated-declarations" ];
patches = [ ./cmake_check_symbol_exists.patch ];
postPatch = ''
patchShebangs .
'';