Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/vacuum/, net-im/vacuum/files/
Date: Sun, 16 Apr 2017 18:57:59
Message-Id: 1492369045.d760f1ee4069d1773c62d8aca2ce71e1abb0b668.soap@gentoo
1 commit: d760f1ee4069d1773c62d8aca2ce71e1abb0b668
2 Author: Peter-Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 28 02:57:43 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 18:57:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d760f1ee
7
8 net-im/vacuum: Fix building with GCC-6 (bug #614084)
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4309
12
13 .../vacuum-1.2.4-gcc6-not-string-literals.patch | 51 ++++++++++++++++++++++
14 net-im/vacuum/vacuum-1.2.4.ebuild | 4 +-
15 2 files changed, 54 insertions(+), 1 deletion(-)
16
17 diff --git a/net-im/vacuum/files/vacuum-1.2.4-gcc6-not-string-literals.patch b/net-im/vacuum/files/vacuum-1.2.4-gcc6-not-string-literals.patch
18 new file mode 100644
19 index 00000000000..d936c76e61e
20 --- /dev/null
21 +++ b/net-im/vacuum/files/vacuum-1.2.4-gcc6-not-string-literals.patch
22 @@ -0,0 +1,51 @@
23 +diff -Naur vacuum-1.2.4.old/src/plugins/messagearchiver/messagearchiver.cpp vacuum-1.2.4/src/plugins/messagearchiver/messagearchiver.cpp
24 +--- vacuum-1.2.4.old/src/plugins/messagearchiver/messagearchiver.cpp 2017-03-27 22:36:48.177650414 -0400
25 ++++ vacuum-1.2.4/src/plugins/messagearchiver/messagearchiver.cpp 2017-03-27 22:37:22.198212428 -0400
26 +@@ -9,8 +9,8 @@
27 + #define SESSIONS_FILE_NAME "sessions.xml"
28 +
29 + #define SHC_MESSAGE_BODY "/message/body"
30 +-#define SHC_PREFS "/iq[@type='set']/pref[@xmlns="NS_ARCHIVE"]"
31 +-#define SHC_PREFS_OLD "/iq[@type='set']/pref[@xmlns="NS_ARCHIVE_OLD"]"
32 ++#define SHC_PREFS "/iq[@type='set']/pref[@xmlns=" NS_ARCHIVE "]"
33 ++#define SHC_PREFS_OLD "/iq[@type='set']/pref[@xmlns=" NS_ARCHIVE_OLD "]"
34 +
35 + #define ADR_STREAM_JID Action::DR_StreamJid
36 + #define ADR_CONTACT_JID Action::DR_Parametr1
37 +diff -Naur vacuum-1.2.4.old/src/plugins/privacylists/privacylists.cpp vacuum-1.2.4/src/plugins/privacylists/privacylists.cpp
38 +--- vacuum-1.2.4.old/src/plugins/privacylists/privacylists.cpp 2017-03-27 22:36:48.175650440 -0400
39 ++++ vacuum-1.2.4/src/plugins/privacylists/privacylists.cpp 2017-03-27 22:37:48.508882851 -0400
40 +@@ -1,7 +1,7 @@
41 + #include "privacylists.h"
42 +
43 +-#define SHC_PRIVACY "/iq[@type='set']/query[@xmlns='"NS_JABBER_PRIVACY"']"
44 +-#define SHC_ROSTER "/iq/query[@xmlns='"NS_JABBER_ROSTER"']"
45 ++#define SHC_PRIVACY "/iq[@type='set']/query[@xmlns='" NS_JABBER_PRIVACY "']"
46 ++#define SHC_ROSTER "/iq/query[@xmlns='" NS_JABBER_ROSTER "']"
47 +
48 + #define PRIVACY_TIMEOUT 60000
49 + #define AUTO_LISTS_TIMEOUT 2000
50 +diff -Naur vacuum-1.2.4.old/src/plugins/sessionnegotiation/sessionnegotiation.cpp vacuum-1.2.4/src/plugins/sessionnegotiation/sessionnegotiation.cpp
51 +--- vacuum-1.2.4.old/src/plugins/sessionnegotiation/sessionnegotiation.cpp 2017-03-27 22:36:48.174650453 -0400
52 ++++ vacuum-1.2.4/src/plugins/sessionnegotiation/sessionnegotiation.cpp 2017-03-27 22:38:07.340651610 -0400
53 +@@ -4,7 +4,7 @@
54 + #include <QTextDocument>
55 + #include <QCryptographicHash>
56 +
57 +-#define SHC_STANZA_SESSION "/message/feature[@xmlns='"NS_FEATURENEG"']"
58 ++#define SHC_STANZA_SESSION "/message/feature[@xmlns='" NS_FEATURENEG "']"
59 +
60 + #define SFP_DISCLOSURE "disclosure"
61 + #define SFP_MULTISESSION "multisession"
62 +diff -Naur vacuum-1.2.4.old/src/plugins/simplemessagestyle/simplemessagestyle.cpp vacuum-1.2.4/src/plugins/simplemessagestyle/simplemessagestyle.cpp
63 +--- vacuum-1.2.4.old/src/plugins/simplemessagestyle/simplemessagestyle.cpp 2017-03-27 22:36:48.173650466 -0400
64 ++++ vacuum-1.2.4/src/plugins/simplemessagestyle/simplemessagestyle.cpp 2017-03-27 22:38:33.557335864 -0400
65 +@@ -15,7 +15,7 @@
66 + #include <utils/options.h>
67 +
68 + #define SCROLL_TIMEOUT 100
69 +-#define SHARED_STYLE_PATH RESOURCES_DIR"/"RSR_STORAGE_SIMPLEMESSAGESTYLES"/"STORAGE_SHARED_DIR
70 ++#define SHARED_STYLE_PATH RESOURCES_DIR "/" RSR_STORAGE_SIMPLEMESSAGESTYLES "/" STORAGE_SHARED_DIR
71 +
72 + static const char *SenderColors[] = {
73 + "blue", "blueviolet", "brown", "cadetblue", "chocolate", "coral", "cornflowerblue", "crimson",
74
75 diff --git a/net-im/vacuum/vacuum-1.2.4.ebuild b/net-im/vacuum/vacuum-1.2.4.ebuild
76 index 83b92ebdfad..1c63b62b85e 100644
77 --- a/net-im/vacuum/vacuum-1.2.4.ebuild
78 +++ b/net-im/vacuum/vacuum-1.2.4.ebuild
79 @@ -1,4 +1,4 @@
80 -# Copyright 1999-2015 Gentoo Foundation
81 +# Copyright 1999-2017 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83
84 EAPI="5"
85 @@ -52,6 +52,8 @@ DEPEND="${RDEPEND}"
86 DOCS="AUTHORS CHANGELOG README TRANSLATORS"
87
88 src_prepare() {
89 + epatch "${FILESDIR}"/${P}-gcc6-not-string-literals.patch
90 +
91 # Force usage of system libraries
92 rm -rf src/thirdparty/{idn,minizip,zlib}
93 }