Hello community, here is the log from the commit of package kde-cli-tools5 for openSUSE:Factory checked in at 2014-12-21 11:59:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kde-cli-tools5 (Old) and /work/SRC/openSUSE:Factory/.kde-cli-tools5.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kde-cli-tools5" Changes: -------- --- /work/SRC/openSUSE:Factory/kde-cli-tools5/kde-cli-tools5.changes 2014-11-13 09:21:48.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.kde-cli-tools5.new/kde-cli-tools5.changes 2014-12-21 11:59:36.000000000 +0100 @@ -1,0 +2,16 @@ +Thu Dec 11 17:59:46 UTC 2014 - [email protected] + +- Update to 5.1.2: + * Bugfix release + * Use QFile::decodeName for command in KDEsuDialog to fix encoding + * Port away from Q_WS_X11 + * For more details please see: + https://www.kde.org/announcements/plasma-5.1.2.php + +------------------------------------------------------------------- +Fri Nov 21 18:42:23 UTC 2014 - [email protected] + +- Forward port kdesu-add-some-i18n-love.patch from kdebase4-runtime, + boo#852256 + +------------------------------------------------------------------- Old: ---- kde-cli-tools-5.1.1.tar.xz New: ---- kde-cli-tools-5.1.2.tar.xz kdesu-add-some-i18n-love.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kde-cli-tools5.spec ++++++ --- /var/tmp/diff_new_pack.t9NqPO/_old 2014-12-21 11:59:37.000000000 +0100 +++ /var/tmp/diff_new_pack.t9NqPO/_new 2014-12-21 11:59:37.000000000 +0100 @@ -17,7 +17,7 @@ Name: kde-cli-tools5 -Version: 5.1.1 +Version: 5.1.2 Release: 0 Summary: Additional CLI tools for KDE applications License: GPL-2.0+ @@ -25,6 +25,8 @@ Url: http://www.kde.org Source: kde-cli-tools-%{version}.tar.xz Source99: %{name}-rpmlintrc +# PATCH-FIX-OPENSUSE kdesu-add-some-i18n-love.patch -- boo#852256 +Patch0: kdesu-add-some-i18n-love.patch BuildRequires: kcmutils-devel BuildRequires: kconfig-devel BuildRequires: kdelibs4support-devel @@ -53,6 +55,7 @@ %lang_package %prep %setup -q -n kde-cli-tools-%{version} +%patch0 -p1 %build %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 ++++++ kde-cli-tools-5.1.1.tar.xz -> kde-cli-tools-5.1.2.tar.xz ++++++ ++++ 14286 lines of diff (skipped) ++++++ kdesu-add-some-i18n-love.patch ++++++ >From abee9c239f74f60a77c0931be23ad1d8670feda6 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan <[email protected]> Date: Tue, 3 Dec 2013 19:31:13 +0100 Subject: [PATCH 1/1] kdesu Add some love From/toUTF8 in practice covers more ground than 8bit. Furthermore, make the kdesu 'command' translatable, it's used in openSUSE with dolphin and konsole 'Start as root' BUG: boo#852256 --- kdesu/kdesu.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kdesu/kdesu.cpp b/kdesu/kdesu.cpp index 9e7f173..f553422 100644 --- a/kdesu/kdesu.cpp +++ b/kdesu/kdesu.cpp @@ -140,7 +140,7 @@ int main(int argc, char *argv[]) if (result == 127) { - KMessageBox::sorry(0, i18n("Cannot execute command '%1'.", QString::fromLocal8Bit(command))); + KMessageBox::sorry(0, i18n("Cannot execute command '%1'.", QString::fromUtf8(command))); } return result; @@ -175,7 +175,7 @@ static int startApp(QCommandLineParser& p) prompt = false; // Get target uid - QByteArray user = p.value("u").toLocal8Bit(); + QByteArray user = p.value("u").toUtf8(); QByteArray auth_user = user; struct passwd *pw = getpwnam(user); if (pw == 0L) @@ -235,7 +235,7 @@ static int startApp(QCommandLineParser& p) // Get command if (p.isSet("c")) { - command = p.value("c").toLocal8Bit(); + command = p.value("c").toUtf8(); // Accepting additional arguments here is somewhat weird, // but one can conceive use cases: have a complex command with // redirections and additional file names which need to be quoted @@ -323,7 +323,7 @@ static int startApp(QCommandLineParser& p) // } KUser u; - env << (QByteArray) ("KDESU_USER=" + u.loginName().toLocal8Bit()); + env << (QByteArray) ("KDESU_USER=" + u.loginName().toUtf8()); if (keep && !terminal && !just_started) { @@ -429,7 +429,7 @@ static int startApp(QCommandLineParser& p) } else if (keep && have_daemon) { - client.setPass(password.toLocal8Bit(), timeout); + client.setPass(password.toUtf8(), timeout); client.setPriority(priority); client.setScheduler(scheduler); int result = client.exec(command, user, options, env); @@ -448,7 +448,7 @@ static int startApp(QCommandLineParser& p) proc.setPriority(priority); proc.setScheduler(scheduler); proc.setCommand(command); - int result = proc.exec(password.toLocal8Bit()); + int result = proc.exec(password.toUtf8()); return result; } return -1; -- 1.8.4.4 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
