diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2016-03-13 17:52:10 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-15 00:26:15 +0700 |
commit | 697a9c54995d281145a24123409c78bded6c3487 (patch) | |
tree | 4381936a74b152cea1c57a8975822378653d8f3c /libraries | |
parent | 6cdee3b56c583a8226e8333e42fef7968e134ff0 (diff) |
libraries/libdbus-c++: Fix bug concerning nested variant maps.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libdbus-c++/libdbus-c++.SlackBuild | 8 | ||||
-rw-r--r-- | libraries/libdbus-c++/nested_variant_map.patch | 11 |
2 files changed, 17 insertions, 2 deletions
diff --git a/libraries/libdbus-c++/libdbus-c++.SlackBuild b/libraries/libdbus-c++/libdbus-c++.SlackBuild index ec529a9e2ff5..391ed3ec4211 100644 --- a/libraries/libdbus-c++/libdbus-c++.SlackBuild +++ b/libraries/libdbus-c++/libdbus-c++.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libdbus-c++ -# Copyright 2013 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2013-2016 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=libdbus-c++ VERSION=0.9.0 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,8 +69,12 @@ 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 compiling with newer gcc versions patch -p0 -i $CWD/gcc47.patch +# Fix https://sourceforge.net/p/dbus-cplusplus/bugs/5/ +patch -p1 -i $CWD/nested_variant_map.patch + LDFLAGS="-lpthread" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/libraries/libdbus-c++/nested_variant_map.patch b/libraries/libdbus-c++/nested_variant_map.patch new file mode 100644 index 000000000000..8b41ed3a3a72 --- /dev/null +++ b/libraries/libdbus-c++/nested_variant_map.patch @@ -0,0 +1,11 @@ +--- libdbus-c++-0.9.0/src/message.cpp 2016-02-20 12:15:52.069704535 +0100 ++++ libdbus-c++-0.9.0-patch/src/message.cpp 2016-02-20 12:31:34.159854472 +0100 +@@ -347,6 +347,7 @@ + ( + (DBusMessageIter *) & (to._iter), + from.type(), +- from.type() == DBUS_TYPE_VARIANT ? NULL : sig, ++ from.type() == DBUS_TYPE_DICT_ENTRY || ++ from.type() == DBUS_TYPE_STRUCT ? NULL : sig, + (DBusMessageIter *) & (to_container._iter) + ); |