mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
misc/zinnia: Added a patch for gcc >= 6.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
5f0d977fa3
commit
2e53631cbf
2 changed files with 25 additions and 0 deletions
22
misc/zinnia/zinnia-fixes-gcc6-compile.patch
Normal file
22
misc/zinnia/zinnia-fixes-gcc6-compile.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
Index: zinnia-0.06/trainer.cpp
|
||||
===================================================================
|
||||
--- zinnia-0.06.orig/trainer.cpp
|
||||
+++ zinnia-0.06/trainer.cpp
|
||||
@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer {
|
||||
|
||||
public:
|
||||
bool add(const Character &character) {
|
||||
- const std::string y = character.value();
|
||||
+ std::string y = character.value();
|
||||
CHECK_FALSE(!y.empty()) << "input character is empty";
|
||||
Features features;
|
||||
CHECK_FALSE(features.read(character)) << "cannot read character: " << y;
|
||||
@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
|
||||
if (!fn) {
|
||||
return false;
|
||||
}
|
||||
- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
|
||||
+ x_.push_back(std::make_pair(y, fn));
|
||||
return true;
|
||||
}
|
||||
|
|
@ -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 {} \;
|
||||
|
||||
# Thanks to fedora for this patch
|
||||
patch -p1 < $CWD/zinnia-fixes-gcc6-compile.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue