Date: Thursday, January 5, 2023 @ 20:46:24
Author: arojas
Revision: 1378386
archrelease: copy trunk to community-testing-x86_64
Added:
ukui-control-center/repos/community-testing-x86_64/
ukui-control-center/repos/community-testing-x86_64/6.patch
(from rev 1378385, ukui-control-center/trunk/6.patch)
ukui-control-center/repos/community-testing-x86_64/PKGBUILD
(from rev 1378385, ukui-control-center/trunk/PKGBUILD)
----------+
6.patch | 23 +++++++++++++++++++++++
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+)
Copied: ukui-control-center/repos/community-testing-x86_64/6.patch (from rev
1378385, ukui-control-center/trunk/6.patch)
===================================================================
--- community-testing-x86_64/6.patch (rev 0)
+++ community-testing-x86_64/6.patch 2023-01-05 20:46:24 UTC (rev 1378386)
@@ -0,0 +1,23 @@
+From d827d4850e405f098ed0967f02ef3034dbddd661 Mon Sep 17 00:00:00 2001
+From: Xeonacid <[email protected]>
+Date: Wed, 19 Jan 2022 23:19:35 +0800
+Subject: [PATCH] fix(changeUserPwd/run-passwd.cpp): format security
+
+Add "%s" format to g_error_new, to fix the format string security issue.
+---
+ changeUserPwd/run-passwd.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/changeUserPwd/run-passwd.cpp b/changeUserPwd/run-passwd.cpp
+index 59a76501..aca032f1 100644
+--- a/changeUserPwd/run-passwd.cpp
++++ b/changeUserPwd/run-passwd.cpp
+@@ -377,7 +377,7 @@ static gboolean io_watch_stdout (GIOChannel *source,
GIOCondition condition, Pas
+ "Your password has been changed
after you verify!");
+ } */else {
+ error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_UNKNOWN,
+- str->str);
++ "%s", str->str);
+ }
+
+ /* At this point, passwd might have exited, in which case
Copied: ukui-control-center/repos/community-testing-x86_64/PKGBUILD (from rev
1378385, ukui-control-center/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-01-05 20:46:24 UTC (rev 1378386)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ukui-control-center
+pkgver=3.0.4
+pkgrel=4
+pkgdesc="Utilities to configure the UKUI desktop"
+arch=('x86_64')
+license=('GPL')
+url="https://github.com/ukui/ukui-control-center"
+groups=('ukui')
+depends=('bluez-qt' 'boost-libs' 'ddcutil' 'kconfig' 'kconfigwidgets' 'ki18n'
'kscreen'
+ 'kwidgetsaddons' 'libpwquality' 'lsb-release' 'peony'
'qt5-quickcontrols' 'ukui-interface'
+ 'ukui-panel' 'ukui-media' 'ukui-menus' 'ukui-power-manager'
'ukui-screensaver'
+ 'ukui-settings-daemon' 'upower' 'libcanberra')
+makedepends=('boost' 'qt5-tools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ukui/ukui-control-center/archive/v$pkgver.tar.gz"
+ 6.patch)
+sha512sums=('f751502d66a36d8a6fe0199ec4408c3c371923c9a9b1e722f75bff66090f3b6eac18df2c8fd5b7c4d223a7938f491e4b89a91636cf15944574ecdeb43b995f4c'
+
'b15fc2f32fac0fbae3bf30d9cc19c78375bd50c35815d540c79ac9a7ba561b52ca599c0385826529603146f7a368045f1a861b5173f2538b226376e9f4cd9129')
+
+prepare() {
+ cd ukui-control-center-$pkgver
+
+ # Fix format-security
+ # https://github.com/ukui/ukui-control-center/pull/6
+ patch -Np1 -i ../6.patch
+
+ # QSysInfo::productVersion() returns "unknown" on Arch
+ #TODO: sed -i 's/productVersion/prettyProductName/'
plugins/messages-task/about/about.cpp
+
+ sed -i 's|systemd_service.path = /lib/systemd/system|systemd_service.path =
/usr/lib/systemd/system|' group-manager-server/group-manager-server.pro
+ sed -i 's|gio-unix-2.0|glib-2.0|' plugins/account/userinfo/giodbus.cpp
+}
+
+build() {
+ cd ukui-control-center-$pkgver
+ qmake-qt5 PREFIX=/usr
+ make
+}
+
+package() {
+ cd ukui-control-center-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -Dm644 registeredQDbus/conf/com.control.center.qt.systemdbus.service
-t "$pkgdir"/usr/share/dbus-1/system-services/
+ install -Dm644 registeredQDbus/conf/com.control.center.qt.systemdbus.conf -t
"$pkgdir"/usr/share/dbus-1/system.d/
+}