mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
academic/gelemental: Patch for the newer gcc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
fe05443af3
commit
7f03b23bf5
2 changed files with 15 additions and 0 deletions
12
academic/gelemental/gcc.patch
Normal file
12
academic/gelemental/gcc.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur gelemental-1.2.0.orig/src/dialogs.cc gelemental-1.2.0/src/dialogs.cc
|
||||
--- gelemental-1.2.0.orig/src/dialogs.cc 2007-09-25 06:49:33.000000000 +0200
|
||||
+++ gelemental-1.2.0/src/dialogs.cc 2017-07-27 21:45:34.356776770 +0200
|
||||
@@ -247,7 +247,7 @@
|
||||
const Gtk::TreePath& tpath, bool)
|
||||
{
|
||||
Gtk::TreeIter iter = store->get_iter (tpath);
|
||||
- return iter ? iter->get_value (cols.property) : false;
|
||||
+ return iter ? static_cast<bool>(iter->get_value (cols.property)) : false;
|
||||
}
|
||||
|
||||
|
|
@ -70,6 +70,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 for the newer gcc
|
||||
patch -p1 -i $CWD/gcc.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS -std=c++11" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue