From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4A524138A1A for ; Tue, 3 Feb 2015 12:26:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75F87E095A; Tue, 3 Feb 2015 12:26:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08E23E095A for ; Tue, 3 Feb 2015 12:26:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D96BC33BE9D for ; Tue, 3 Feb 2015 12:26:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64A0110F69 for ; Tue, 3 Feb 2015 12:26:12 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1422966304.f2ef9126c35223ef7383bbc529a5b445215c912b.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/krdc/files/, kde-apps/krdc/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/krdc/files/krdc-4.13.1-freerdp.patch kde-apps/krdc/krdc-9999.ebuild X-VCS-Directories: kde-apps/krdc/files/ kde-apps/krdc/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: f2ef9126c35223ef7383bbc529a5b445215c912b X-VCS-Branch: master Date: Tue, 3 Feb 2015 12:26:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2e5bbfd3-863c-4d41-b061-1083e75e0395 X-Archives-Hash: 164c4ee8b6ea818530563aac44e92e1c commit: f2ef9126c35223ef7383bbc529a5b445215c912b Author: Michael Palimaka gentoo org> AuthorDate: Tue Feb 3 12:25:04 2015 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Tue Feb 3 12:25:04 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=f2ef9126 [kde-apps/krdc] Remove patch merged upstream. Upstream commit: a9e514b29b5611e01c2c024157d36eaf416e0c5a Package-Manager: portage-2.2.14 --- kde-apps/krdc/files/krdc-4.13.1-freerdp.patch | 184 -------------------------- kde-apps/krdc/krdc-9999.ebuild | 2 - 2 files changed, 186 deletions(-) diff --git a/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch b/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch deleted file mode 100644 index 75b5146..0000000 --- a/kde-apps/krdc/files/krdc-4.13.1-freerdp.patch +++ /dev/null @@ -1,184 +0,0 @@ -Support >=free-rdp-1.1.0. - -https://git.reviewboard.kde.org/r/115059/ - -diff --git a/rdp/rdpview.cpp b/rdp/rdpview.cpp -index 0d14e04691549e084b58501cd10ca2382ef25c63..9062ba5fa060284a679f0c9bc211ab7dd6972c0a 100644 ---- a/rdp/rdpview.cpp -+++ b/rdp/rdpview.cpp -@@ -158,71 +158,58 @@ bool RdpView::start() - width = this->parentWidget()->size().width(); - height = this->parentWidget()->size().height(); - } -- arguments << "-g" << QString::number(width) + 'x' + QString::number(height); -+ arguments << "-decorations"; // put this option first so we can detect xfreerdp < 1.1 -+ arguments << "/w:" + QString::number(width); -+ arguments << "/h:" + QString::number(height); - -- arguments << "-k" << keymapToXfreerdp(m_hostPreferences->keyboardLayout()); -+ arguments << "/kbd:" + keymapToXfreerdp(m_hostPreferences->keyboardLayout()); - - if (!m_url.userName().isEmpty()) { - // if username contains a domain, it needs to be set with another parameter - if (m_url.userName().contains('\\')) { - const QStringList splittedName = m_url.userName().split('\\'); -- arguments << "-d" << splittedName.at(0); -- arguments << "-u" << splittedName.at(1); -+ arguments << "/d:" + splittedName.at(0); -+ arguments << "/u:" + splittedName.at(1); - } else { -- arguments << "-u" << m_url.userName(); -+ arguments << "/u:" + m_url.userName(); - } - } else { -- arguments << "-u" << ""; -+ arguments << "-u:"; - } - -- if (!m_url.password().isNull()) -- arguments << "-p" << m_url.password(); -- -- arguments << "-D"; // request the window has no decorations -- arguments << "-X" << QString::number(m_container->winId()); -- arguments << "-a" << QString::number((m_hostPreferences->colorDepth() + 1) * 8); -- -- switch (m_hostPreferences->sound()) { -- case 1: -- arguments << "-o"; -- break; -- case 0: -- arguments << "--plugin" << "rdpsnd"; -- break; -- case 2: -- default: -- break; -- } -+ arguments << "/parent-window:" + QString::number(m_container->winId()); -+ arguments << "/bpp:" + QString::number((m_hostPreferences->colorDepth() + 1) * 8); -+ arguments << "/audio-mode:" + m_hostPreferences->sound(); - - if (!m_hostPreferences->shareMedia().isEmpty()) { - QStringList shareMedia; -- shareMedia << "--plugin" << "rdpdr" << "--data" << "disk:media:" + m_hostPreferences->shareMedia() << "--"; -+ shareMedia << "/drive:media," + m_hostPreferences->shareMedia(); - arguments += shareMedia; - } - - QString performance; - switch (m_hostPreferences->performance()) { - case 0: -- performance = 'm'; -+ performance = "modem"; - break; - case 1: -- performance = 'b'; -+ performance = "broadband"; - break; - case 2: -- performance = 'l'; -+ performance = "lan"; - break; - default: - break; - } - -- arguments << "-x" << performance; -+ arguments << "/network:" + performance; - - if (m_hostPreferences->console()) { -- arguments << "-0"; -+ arguments << "/admin"; - } - - if (m_hostPreferences->remoteFX()) { -- arguments << "--rfx"; -+ arguments << "/rfx"; - } - - if (!m_hostPreferences->extraOptions().isEmpty()) { -@@ -233,16 +220,21 @@ bool RdpView::start() - // krdc has no support for certificate management yet; it would not be possbile to connect to any host: - // "The host key for example.com has changed" ... - // "Add correct host key in ~/.freerdp/known_hosts to get rid of this message." -- arguments << "--ignore-certificate"; -+ arguments << "/cert-ignore"; - - // clipboard sharing is activated in KRDC; user can disable it at runtime -- arguments << "--plugin" << "cliprdr"; -+ arguments << "/clipboard"; - -- arguments << "-t" << QString::number(m_port); -- arguments << m_host; -+ arguments << "/port:" + QString::number(m_port); -+ arguments << "/v:" + m_host; - - kDebug(5012) << "Starting xfreerdp with arguments:" << arguments; - -+ //avoid printing the password in debug -+ if (!m_url.password().isNull()) { -+ arguments << "/p:" + m_url.password(); -+ } -+ - setStatus(Connecting); - - connect(m_process, SIGNAL(error(QProcess::ProcessError)), SLOT(processError(QProcess::ProcessError))); -@@ -302,7 +294,7 @@ void RdpView::connectionError() - - void RdpView::processError(QProcess::ProcessError error) - { -- kDebug(5012) << "processError:" << error; -+ kDebug(5012) << error; - if (m_quitFlag) // do not try to show error messages while quitting (prevent crashes) - return; - -@@ -319,33 +311,13 @@ void RdpView::processError(QProcess::ProcessError error) - void RdpView::receivedStandardError() - { - const QString output(m_process->readAllStandardError()); -- kDebug(5012) << "receivedStandardError:" << output; -- QString line; -- int i = 0; -- while (!(line = output.section('\n', i, i)).isEmpty()) { -- -- // the following error is issued by freerdp because of a bug in freerdp 1.0.1 and below; -- // see: https://github.com/FreeRDP/FreeRDP/pull/576 -- //"X Error of failed request: BadWindow (invalid Window parameter) -- // Major opcode of failed request: 7 (X_ReparentWindow) -- // Resource id in failed request: 0x71303348 -- // Serial number of failed request: 36 -- // Current serial number in output stream: 36" -- if (line.contains(QLatin1String("X_ReparentWindow"))) { -- KMessageBox::error(0, i18n("The version of \"xfreerdp\" you are using is too old.\n" -- "xfreerdp 1.0.2 or greater is required."), -- i18n("RDP Failure")); -- connectionError(); -- return; -- } -- i++; -- } -+ kDebug(5012) << output; - } - - void RdpView::receivedStandardOutput() - { - const QString output(m_process->readAllStandardOutput()); -- kDebug(5012) << "receivedStandardOutput:" << output; -+ kDebug(5012) << output; - QString line; - int i = 0; - while (!(line = output.section('\n', i, i)).isEmpty()) { -@@ -373,6 +345,14 @@ void RdpView::receivedStandardOutput() - return; - } - -+ // we no longer support freerdp < 1.1, we only support versions with the new interface -+ if (line.contains(QLatin1String("invalid option: -decorations"))) { -+ KMessageBox::error(0, i18n("The version of \"xfreerdp\" you are using is too old.\n" -+ "xfreerdp 1.1 or greater is required."), -+ i18n("RDP Failure")); -+ connectionError(); -+ return; -+ } - i++; - } - } diff --git a/kde-apps/krdc/krdc-9999.ebuild b/kde-apps/krdc/krdc-9999.ebuild index 9e0c72e..f6b9780 100644 --- a/kde-apps/krdc/krdc-9999.ebuild +++ b/kde-apps/krdc/krdc-9999.ebuild @@ -24,8 +24,6 @@ RDEPEND="${DEPEND} rdesktop? ( >=net-misc/freerdp-1.1.0_beta1[X] ) " -PATCHES=( "${FILESDIR}/${PN}-4.13.1-freerdp.patch" ) - src_configure() { local mycmakeargs=( $(cmake-utils_use_with jpeg)