diff options
author | 2017-06-01 18:12:48 +0200 | |
---|---|---|
committer | 2021-02-27 09:55:20 +0100 | |
commit | 8e3174c66ef10e67e3d0c8cd4605446673cce5f5 (patch) | |
tree | ac1c31bc5004dcef2f991382d2d9119d9b4fb991 | |
parent | 9aa1498acb0841d4ce656319a4de5cc157b4e2ed (diff) | |
download | slackbuilds-kbgoffice.tar.gz |
office/kbgoffice: Added patch for gcc >= 6.x.kbgoffice
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | office/kbgoffice/gcc6.patch | 17 | ||||
-rw-r--r-- | office/kbgoffice/kbgoffice.SlackBuild | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/office/kbgoffice/gcc6.patch b/office/kbgoffice/gcc6.patch new file mode 100644 index 0000000000..6e2d45e572 --- /dev/null +++ b/office/kbgoffice/gcc6.patch @@ -0,0 +1,17 @@ +diff -Naur kbgoffice-2.1.orig/src/translator_manager.cpp kbgoffice-2.1/src/translator_manager.cpp +--- kbgoffice-2.1.orig/src/translator_manager.cpp 2010-04-30 14:37:42.000000000 +0200 ++++ kbgoffice-2.1/src/translator_manager.cpp 2017-06-01 18:10:20.308920738 +0200 +@@ -141,11 +141,11 @@ + isDataOk = isDataOk && tr->init(tr->BG_EN, string(string(dataDir) + prop->getString("data")).c_str()); + } else { + cerr << "TranslatorManager::getTestDictionaryObject - Wrong description file: " << testDictionaries[index].file << "\n"; +- return false; ++ return NULL; + } + if (!isDataOk) { + cerr << "TranslatorManager::getTestDictionaryObject - Problem initialazing dictionary: " << testDictionaries[index].file << "\n"; +- return false; ++ return NULL; + } + char c[16]; + sprintf(c, "%d", level); diff --git a/office/kbgoffice/kbgoffice.SlackBuild b/office/kbgoffice/kbgoffice.SlackBuild index c4f4cbb1af..91069ba041 100644 --- a/office/kbgoffice/kbgoffice.SlackBuild +++ b/office/kbgoffice/kbgoffice.SlackBuild @@ -52,6 +52,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Thanks debian +patch -p1 < $CWD/gcc6.patch + cd src sed "s:/usr/local:/usr:" -i.orig $PRGNAM.pro sed "s:/usr/local:/usr:" -i.orig main.cpp |