Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/krdc/files/, kde-apps/krdc/
Date: Tue, 03 Feb 2015 12:26:17
Message-Id: 1422966304.f2ef9126c35223ef7383bbc529a5b445215c912b.kensington@gentoo
1 commit: f2ef9126c35223ef7383bbc529a5b445215c912b
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 3 12:25:04 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 3 12:25:04 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=f2ef9126
7
8 [kde-apps/krdc] Remove patch merged upstream.
9
10 Upstream commit: a9e514b29b5611e01c2c024157d36eaf416e0c5a
11
12 Package-Manager: portage-2.2.14
13
14 ---
15 kde-apps/krdc/files/krdc-4.13.1-freerdp.patch | 184 --------------------------
16 kde-apps/krdc/krdc-9999.ebuild | 2 -
17 2 files changed, 186 deletions(-)
18
19 diff --git a/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch b/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch
20 deleted file mode 100644
21 index 75b5146..0000000
22 --- a/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch
23 +++ /dev/null
24 @@ -1,184 +0,0 @@
25 -Support >=free-rdp-1.1.0.
26 -
27 -https://git.reviewboard.kde.org/r/115059/
28 -
29 -diff --git a/rdp/rdpview.cpp b/rdp/rdpview.cpp
30 -index 0d14e04691549e084b58501cd10ca2382ef25c63..9062ba5fa060284a679f0c9bc211ab7dd6972c0a 100644
31 ---- a/rdp/rdpview.cpp
32 -+++ b/rdp/rdpview.cpp
33 -@@ -158,71 +158,58 @@ bool RdpView::start()
34 - width = this->parentWidget()->size().width();
35 - height = this->parentWidget()->size().height();
36 - }
37 -- arguments << "-g" << QString::number(width) + 'x' + QString::number(height);
38 -+ arguments << "-decorations"; // put this option first so we can detect xfreerdp < 1.1
39 -+ arguments << "/w:" + QString::number(width);
40 -+ arguments << "/h:" + QString::number(height);
41 -
42 -- arguments << "-k" << keymapToXfreerdp(m_hostPreferences->keyboardLayout());
43 -+ arguments << "/kbd:" + keymapToXfreerdp(m_hostPreferences->keyboardLayout());
44 -
45 - if (!m_url.userName().isEmpty()) {
46 - // if username contains a domain, it needs to be set with another parameter
47 - if (m_url.userName().contains('\\')) {
48 - const QStringList splittedName = m_url.userName().split('\\');
49 -- arguments << "-d" << splittedName.at(0);
50 -- arguments << "-u" << splittedName.at(1);
51 -+ arguments << "/d:" + splittedName.at(0);
52 -+ arguments << "/u:" + splittedName.at(1);
53 - } else {
54 -- arguments << "-u" << m_url.userName();
55 -+ arguments << "/u:" + m_url.userName();
56 - }
57 - } else {
58 -- arguments << "-u" << "";
59 -+ arguments << "-u:";
60 - }
61 -
62 -- if (!m_url.password().isNull())
63 -- arguments << "-p" << m_url.password();
64 --
65 -- arguments << "-D"; // request the window has no decorations
66 -- arguments << "-X" << QString::number(m_container->winId());
67 -- arguments << "-a" << QString::number((m_hostPreferences->colorDepth() + 1) * 8);
68 --
69 -- switch (m_hostPreferences->sound()) {
70 -- case 1:
71 -- arguments << "-o";
72 -- break;
73 -- case 0:
74 -- arguments << "--plugin" << "rdpsnd";
75 -- break;
76 -- case 2:
77 -- default:
78 -- break;
79 -- }
80 -+ arguments << "/parent-window:" + QString::number(m_container->winId());
81 -+ arguments << "/bpp:" + QString::number((m_hostPreferences->colorDepth() + 1) * 8);
82 -+ arguments << "/audio-mode:" + m_hostPreferences->sound();
83 -
84 - if (!m_hostPreferences->shareMedia().isEmpty()) {
85 - QStringList shareMedia;
86 -- shareMedia << "--plugin" << "rdpdr" << "--data" << "disk:media:" + m_hostPreferences->shareMedia() << "--";
87 -+ shareMedia << "/drive:media," + m_hostPreferences->shareMedia();
88 - arguments += shareMedia;
89 - }
90 -
91 - QString performance;
92 - switch (m_hostPreferences->performance()) {
93 - case 0:
94 -- performance = 'm';
95 -+ performance = "modem";
96 - break;
97 - case 1:
98 -- performance = 'b';
99 -+ performance = "broadband";
100 - break;
101 - case 2:
102 -- performance = 'l';
103 -+ performance = "lan";
104 - break;
105 - default:
106 - break;
107 - }
108 -
109 -- arguments << "-x" << performance;
110 -+ arguments << "/network:" + performance;
111 -
112 - if (m_hostPreferences->console()) {
113 -- arguments << "-0";
114 -+ arguments << "/admin";
115 - }
116 -
117 - if (m_hostPreferences->remoteFX()) {
118 -- arguments << "--rfx";
119 -+ arguments << "/rfx";
120 - }
121 -
122 - if (!m_hostPreferences->extraOptions().isEmpty()) {
123 -@@ -233,16 +220,21 @@ bool RdpView::start()
124 - // krdc has no support for certificate management yet; it would not be possbile to connect to any host:
125 - // "The host key for example.com has changed" ...
126 - // "Add correct host key in ~/.freerdp/known_hosts to get rid of this message."
127 -- arguments << "--ignore-certificate";
128 -+ arguments << "/cert-ignore";
129 -
130 - // clipboard sharing is activated in KRDC; user can disable it at runtime
131 -- arguments << "--plugin" << "cliprdr";
132 -+ arguments << "/clipboard";
133 -
134 -- arguments << "-t" << QString::number(m_port);
135 -- arguments << m_host;
136 -+ arguments << "/port:" + QString::number(m_port);
137 -+ arguments << "/v:" + m_host;
138 -
139 - kDebug(5012) << "Starting xfreerdp with arguments:" << arguments;
140 -
141 -+ //avoid printing the password in debug
142 -+ if (!m_url.password().isNull()) {
143 -+ arguments << "/p:" + m_url.password();
144 -+ }
145 -+
146 - setStatus(Connecting);
147 -
148 - connect(m_process, SIGNAL(error(QProcess::ProcessError)), SLOT(processError(QProcess::ProcessError)));
149 -@@ -302,7 +294,7 @@ void RdpView::connectionError()
150 -
151 - void RdpView::processError(QProcess::ProcessError error)
152 - {
153 -- kDebug(5012) << "processError:" << error;
154 -+ kDebug(5012) << error;
155 - if (m_quitFlag) // do not try to show error messages while quitting (prevent crashes)
156 - return;
157 -
158 -@@ -319,33 +311,13 @@ void RdpView::processError(QProcess::ProcessError error)
159 - void RdpView::receivedStandardError()
160 - {
161 - const QString output(m_process->readAllStandardError());
162 -- kDebug(5012) << "receivedStandardError:" << output;
163 -- QString line;
164 -- int i = 0;
165 -- while (!(line = output.section('\n', i, i)).isEmpty()) {
166 --
167 -- // the following error is issued by freerdp because of a bug in freerdp 1.0.1 and below;
168 -- // see: https://github.com/FreeRDP/FreeRDP/pull/576
169 -- //"X Error of failed request: BadWindow (invalid Window parameter)
170 -- // Major opcode of failed request: 7 (X_ReparentWindow)
171 -- // Resource id in failed request: 0x71303348
172 -- // Serial number of failed request: 36
173 -- // Current serial number in output stream: 36"
174 -- if (line.contains(QLatin1String("X_ReparentWindow"))) {
175 -- KMessageBox::error(0, i18n("The version of \"xfreerdp\" you are using is too old.\n"
176 -- "xfreerdp 1.0.2 or greater is required."),
177 -- i18n("RDP Failure"));
178 -- connectionError();
179 -- return;
180 -- }
181 -- i++;
182 -- }
183 -+ kDebug(5012) << output;
184 - }
185 -
186 - void RdpView::receivedStandardOutput()
187 - {
188 - const QString output(m_process->readAllStandardOutput());
189 -- kDebug(5012) << "receivedStandardOutput:" << output;
190 -+ kDebug(5012) << output;
191 - QString line;
192 - int i = 0;
193 - while (!(line = output.section('\n', i, i)).isEmpty()) {
194 -@@ -373,6 +345,14 @@ void RdpView::receivedStandardOutput()
195 - return;
196 - }
197 -
198 -+ // we no longer support freerdp < 1.1, we only support versions with the new interface
199 -+ if (line.contains(QLatin1String("invalid option: -decorations"))) {
200 -+ KMessageBox::error(0, i18n("The version of \"xfreerdp\" you are using is too old.\n"
201 -+ "xfreerdp 1.1 or greater is required."),
202 -+ i18n("RDP Failure"));
203 -+ connectionError();
204 -+ return;
205 -+ }
206 - i++;
207 - }
208 - }
209
210 diff --git a/kde-apps/krdc/krdc-9999.ebuild b/kde-apps/krdc/krdc-9999.ebuild
211 index 9e0c72e..f6b9780 100644
212 --- a/kde-apps/krdc/krdc-9999.ebuild
213 +++ b/kde-apps/krdc/krdc-9999.ebuild
214 @@ -24,8 +24,6 @@ RDEPEND="${DEPEND}
215 rdesktop? ( >=net-misc/freerdp-1.1.0_beta1[X] )
216 "
217
218 -PATCHES=( "${FILESDIR}/${PN}-4.13.1-freerdp.patch" )
219 -
220 src_configure() {
221 local mycmakeargs=(
222 $(cmake-utils_use_with jpeg)