mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
office/referencer: Patch for the newer gcc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
ae2c27e585
commit
cd184e4314
2 changed files with 14 additions and 0 deletions
11
office/referencer/referencer-lib_path.patch
Normal file
11
office/referencer/referencer-lib_path.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- referencer-1.2.2/src/Document.C 2014-01-27 03:43:00.000000000 +0700
|
||||
+++ referencer-1.2.2_/src/Document.C 2016-11-03 16:25:00.698676538 +0700
|
||||
@@ -297,7 +297,7 @@
|
||||
|
||||
lib_path = lib_path->get_parent();
|
||||
up_dir_level += "../";
|
||||
- if (lib_path == 0) {
|
||||
+ if (!lib_path) {
|
||||
doc_is_relative_to_library = false;
|
||||
break;
|
||||
}
|
|
@ -69,6 +69,9 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Fix comparison with zero - thanks archlinux
|
||||
patch -p1 < $CWD/referencer-lib_path.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS -std=c++11" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue