libraries/libdbus-c++: Fix bug concerning nested variant maps.

Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2016-03-13 17:52:10 +01:00 committed by Willy Sudiarto Raharjo
parent 6cdee3b56c
commit 697a9c5499
2 changed files with 17 additions and 2 deletions

View File

@ -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" \

View File

@ -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)
);