From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E0B61382C5 for ; Fri, 12 Feb 2021 20:55:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DDD4E0872; Fri, 12 Feb 2021 20:55:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1EDDEE0870 for ; Fri, 12 Feb 2021 20:55:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A38AA3408A6 for ; Fri, 12 Feb 2021 20:55:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30050495 for ; Fri, 12 Feb 2021 20:55:49 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1613163339.117c55dda3e55d36d869c69f9abb4290b7368500.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kde-gtk-config/files/, kde-plasma/kde-gtk-config/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/kde-gtk-config/files/kde-gtk-config-5.20.5-window-decorations-reloaded.patch kde-plasma/kde-gtk-config/kde-gtk-config-5.20.5-r1.ebuild X-VCS-Directories: kde-plasma/kde-gtk-config/ kde-plasma/kde-gtk-config/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 117c55dda3e55d36d869c69f9abb4290b7368500 X-VCS-Branch: master Date: Fri, 12 Feb 2021 20:55:49 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f14eb867-cc7e-402f-b7cc-480e481d8914 X-Archives-Hash: e9e4da1074934d8fdc4d0163423b409c commit: 117c55dda3e55d36d869c69f9abb4290b7368500 Author: Michal Privoznik redhat com> AuthorDate: Thu Feb 11 16:29:19 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Feb 12 20:55:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=117c55dd kde-plasma/kde-gtk-config: Don't print debug message I've noticed that whenever a GTK application is started the stdout is polluted with the following message: WINDOW DECORATIONS RELOADED After some research I came across KDE bug: https://bugs.kde.org/show_bug.cgi?id=431365 which says the message is a debug message and could be dropped. In the upstream repository, the following commit was merged which does exactly that: https://invent.kde.org/plasma/kde-gtk-config/-/commit/62e272df848d6848482ceb534d14bf36c9fde241.patch Backport the commit until the version of kde-gtk-config is bumped. Closes: https://bugs.gentoo.org/770097 Signed-off-by: Michal Privoznik redhat.com> Closes: https://github.com/gentoo/gentoo/pull/19415 Signed-off-by: Andreas Sturmlechner gentoo.org> ...config-5.20.5-window-decorations-reloaded.patch | 24 +++++++++ .../kde-gtk-config/kde-gtk-config-5.20.5-r1.ebuild | 59 ++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.20.5-window-decorations-reloaded.patch b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.20.5-window-decorations-reloaded.patch new file mode 100644 index 00000000000..9b790a03dd1 --- /dev/null +++ b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.20.5-window-decorations-reloaded.patch @@ -0,0 +1,24 @@ +From 62e272df848d6848482ceb534d14bf36c9fde241 Mon Sep 17 00:00:00 2001 +From: Weng Xuetian +Date: Sat, 9 Jan 2021 19:07:24 -0800 +Subject: [PATCH] Remove debug message to avoid polute to stdout. + +This would break application like zenity which output to stdout. +--- + window-decorations-reload-module/reloader.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/window-decorations-reload-module/reloader.c b/window-decorations-reload-module/reloader.c +index 9e367dc..606bb1f 100644 +--- a/window-decorations-reload-module/reloader.c ++++ b/window-decorations-reload-module/reloader.c +@@ -55,7 +55,6 @@ void manage_css_provider(GFileMonitor *monitor, GFile *file, GFile *other_file, + + void reload_css_provider() + { +- printf("WINDOW DECORATIONS RELOADED\n"); + if (css_provider != NULL) { + remove_css_provider(); + } +-- +GitLab diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-5.20.5-r1.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-5.20.5-r1.ebuild new file mode 100644 index 00000000000..10b6fa2e627 --- /dev/null +++ b/kde-plasma/kde-gtk-config/kde-gtk-config-5.20.5-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KFMIN=5.74.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.15.1 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org + +DESCRIPTION="GTK2 and GTK3 configurator for KDE Plasma" +HOMEPAGE="https://invent.kde.org/plasma/kde-gtk-config" + +LICENSE="GPL-3" +SLOT="5" +KEYWORDS="amd64 ~arm arm64 ~ppc64 x86" +IUSE="" + +BDEPEND=" + dev-lang/sassc +" +DEPEND=" + dev-cpp/glibmm:2 + dev-libs/glib:2 + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + gnome-base/gsettings-desktop-schemas + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/kguiaddons-${KFMIN}:5 + >=kde-plasma/kdecoration-${PVCUT}:5 + x11-libs/gtk+:2 + x11-libs/gtk+:3 +" +RDEPEND="${DEPEND} + >=kde-plasma/kde-cli-tools-${PVCUT}:5 + x11-misc/xsettingsd +" + +PATCHES=( "${FILESDIR}/${PN}-5.20.5-window-decorations-reloaded.patch" ) + +src_configure() { + local mycmakeargs=( + -DDATA_INSTALL_DIR="${EPREFIX}/usr/share" + ) + + ecm_src_configure +} + +pkg_postinst() { + ecm_pkg_postinst + elog "If you notice missing icons in your GTK applications, you may have to install" + elog "the corresponding themes for GTK. A good guess would be x11-themes/oxygen-gtk" + elog "for example." +}