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 A08921382C5 for ; Fri, 12 Feb 2021 21:48:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B38E1E079E; Fri, 12 Feb 2021 21:48:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8EC7EE079E for ; Fri, 12 Feb 2021 21:48:46 +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 95F98335C9F for ; Fri, 12 Feb 2021 21:48:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4F562495 for ; Fri, 12 Feb 2021 21:48:44 +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: <1613166509.76fbe81975afdff600e155569bca6a5b522c915b.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kio/, kde-frameworks/kio/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-1.patch kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-2.patch kde-frameworks/kio/kio-5.77.0-r2.ebuild kde-frameworks/kio/kio-5.78.0-r2.ebuild X-VCS-Directories: kde-frameworks/kio/ kde-frameworks/kio/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 76fbe81975afdff600e155569bca6a5b522c915b X-VCS-Branch: master Date: Fri, 12 Feb 2021 21:48:44 +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: 1bc59582-ec14-4139-868b-c340623aa26c X-Archives-Hash: 69337cdc6eaabc0adbb5b42bc5bbd510 commit: 76fbe81975afdff600e155569bca6a5b522c915b Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Feb 12 21:47:18 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Feb 12 21:48:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76fbe819 kde-frameworks/kio: Fix default codec being set to US-ASCII in apps KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=432406 Reported-by: Stefan Radermacher zaister.de> Closes: https://bugs.gentoo.org/765430 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> ...io-5.77.0-fix-default-codec-not-usascii-1.patch | 36 ++++++++ ...io-5.77.0-fix-default-codec-not-usascii-2.patch | 100 +++++++++++++++++++++ kde-frameworks/kio/kio-5.77.0-r2.ebuild | 100 +++++++++++++++++++++ kde-frameworks/kio/kio-5.78.0-r2.ebuild | 100 +++++++++++++++++++++ 4 files changed, 336 insertions(+) diff --git a/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-1.patch b/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-1.patch new file mode 100644 index 00000000000..8f589b796aa --- /dev/null +++ b/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-1.patch @@ -0,0 +1,36 @@ +From 0a13e0a3e830be2b2b2e5c2c6cf8cef25bd68bd8 Mon Sep 17 00:00:00 2001 +From: Tusooa Zhu +Date: Thu, 4 Feb 2021 08:36:26 -0500 +Subject: [PATCH] Fix default codec being set to "US-ASCII" in KIO apps + +From https://doc.qt.io/qt-5/qloggingcategory.html#Q_LOGGING_CATEGORY-1 : +"The implicitly-defined QLoggingCategory object is created on first use, +in a thread-safe manner." + +The original way to explicitly define a static QLoggingCategory will lead +to a call to ucnv_getDefaultName() before QApplication constructor (where +setlocale() is called), thus making QTextCodec::codecForLocale() misbehave. +Here we replace the explicit definition with the Q_LOGGING_CATEGORY macro, +and thus avoid this problem. + +BUG: 432406 +--- + src/widgets/kdirmodel.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/widgets/kdirmodel.cpp b/src/widgets/kdirmodel.cpp +index a48ab462..aa049e3d 100644 +--- a/src/widgets/kdirmodel.cpp ++++ b/src/widgets/kdirmodel.cpp +@@ -36,7 +36,7 @@ + #include + #endif + +-static QLoggingCategory category("kf.kio.widgets.kdirmodel", QtInfoMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.widgets.kdirmodel", QtInfoMsg) + + class KDirModelNode; + class KDirModelDirNode; +-- +GitLab + diff --git a/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-2.patch b/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-2.patch new file mode 100644 index 00000000000..90f4bb5b0a9 --- /dev/null +++ b/kde-frameworks/kio/files/kio-5.77.0-fix-default-codec-not-usascii-2.patch @@ -0,0 +1,100 @@ +From 423bea37e4bb06b9c04a62a9a91b720ec5d5e3d5 Mon Sep 17 00:00:00 2001 +From: Tusooa Zhu +Date: Thu, 4 Feb 2021 18:06:23 -0500 +Subject: [PATCH] Use Q_LOGGING_CATEGORY macro instead of explicit + QLoggingCategory + +Explicitly defining a QLoggingCategory will make QTextCodec::codecForLocale() +misbehave, so we change it to Q_LOGGING_CATEGORY macro. + +CCBUG: 432406 +--- + src/kpasswdserver/kpasswdserver.cpp | 2 +- + src/urifilters/ikws/kuriikwsfilter.cpp | 2 +- + src/urifilters/ikws/kuriikwsfiltereng.cpp | 2 +- + src/urifilters/ikws/kurisearchfilter.cpp | 2 +- + src/urifilters/localdomain/localdomainurifilter.cpp | 2 +- + src/urifilters/shorturi/kshorturifilter.cpp | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/src/kpasswdserver/kpasswdserver.cpp b/src/kpasswdserver/kpasswdserver.cpp +index 4ed73085..a832a0ab 100644 +--- a/src/kpasswdserver/kpasswdserver.cpp ++++ b/src/kpasswdserver/kpasswdserver.cpp +@@ -28,7 +28,7 @@ + #include + #include + +-static QLoggingCategory category("kf.kio.kpasswdserver", QtInfoMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.kpasswdserver", QtInfoMsg) + + #define AUTHINFO_EXTRAFIELD_DOMAIN QStringLiteral("domain") + #define AUTHINFO_EXTRAFIELD_ANONYMOUS QStringLiteral("anonymous") +diff --git a/src/urifilters/ikws/kuriikwsfilter.cpp b/src/urifilters/ikws/kuriikwsfilter.cpp +index 3a516fd8..bbc17678 100644 +--- a/src/urifilters/ikws/kuriikwsfilter.cpp ++++ b/src/urifilters/ikws/kuriikwsfilter.cpp +@@ -22,7 +22,7 @@ + #define QL1C(x) QLatin1Char(x) + + namespace { +-QLoggingCategory category("kf.kio.urifilters.ikws", QtWarningMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.urifilters.ikws", QtWarningMsg) + } + + /** +diff --git a/src/urifilters/ikws/kuriikwsfiltereng.cpp b/src/urifilters/ikws/kuriikwsfiltereng.cpp +index 5b1bbc48..29647e3e 100644 +--- a/src/urifilters/ikws/kuriikwsfiltereng.cpp ++++ b/src/urifilters/ikws/kuriikwsfiltereng.cpp +@@ -22,7 +22,7 @@ + #include + + namespace { +-QLoggingCategory category("kf.kio.urifilters.ikws", QtWarningMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.urifilters.ikws", QtWarningMsg) + } + + #define PDVAR(n, v) qCDebug(category) << n << " = '" << v << "'" +diff --git a/src/urifilters/ikws/kurisearchfilter.cpp b/src/urifilters/ikws/kurisearchfilter.cpp +index a12a9f59..669246c1 100644 +--- a/src/urifilters/ikws/kurisearchfilter.cpp ++++ b/src/urifilters/ikws/kurisearchfilter.cpp +@@ -26,7 +26,7 @@ + K_PLUGIN_CLASS_WITH_JSON(KUriSearchFilter, "kurisearchfilter.json") + + namespace { +-QLoggingCategory category("kf.kio.urifilters.ikws", QtWarningMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.urifilters.ikws", QtWarningMsg) + } + + KUriSearchFilter::KUriSearchFilter(QObject *parent, const QVariantList &) +diff --git a/src/urifilters/localdomain/localdomainurifilter.cpp b/src/urifilters/localdomain/localdomainurifilter.cpp +index 862419a7..94a53606 100644 +--- a/src/urifilters/localdomain/localdomainurifilter.cpp ++++ b/src/urifilters/localdomain/localdomainurifilter.cpp +@@ -20,7 +20,7 @@ + #define QL1S(x) QLatin1String(x) + + namespace { +-QLoggingCategory category("kf.kio.urifilters.localdomain", QtWarningMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.urifilters.localdomain", QtWarningMsg) + } + + /** +diff --git a/src/urifilters/shorturi/kshorturifilter.cpp b/src/urifilters/shorturi/kshorturifilter.cpp +index dc866e6c..62d810c4 100644 +--- a/src/urifilters/shorturi/kshorturifilter.cpp ++++ b/src/urifilters/shorturi/kshorturifilter.cpp +@@ -27,7 +27,7 @@ + #include + + namespace { +-QLoggingCategory category("kf.kio.urifilters.shorturi", QtWarningMsg); ++Q_LOGGING_CATEGORY(category, "kf.kio.urifilters.shorturi", QtWarningMsg) + } + + /** +-- +GitLab + diff --git a/kde-frameworks/kio/kio-5.77.0-r2.ebuild b/kde-frameworks/kio/kio-5.77.0-r2.ebuild new file mode 100644 index 00000000000..641fae6d8a5 --- /dev/null +++ b/kde-frameworks/kio/kio-5.77.0-r2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_DESIGNERPLUGIN="true" +ECM_TEST="forceoptional" +PVCUT=$(ver_cut 1-2) +QTMIN=5.15.1 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org xdg-utils + +DESCRIPTION="Framework providing transparent file and data management" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="acl +handbook kerberos +kwallet X" + +# tests hang +RESTRICT+=" test" + +RDEPEND=" + dev-libs/libxml2 + dev-libs/libxslt + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5[ssl] + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + =kde-frameworks/kauth-${PVCUT}*:5 + =kde-frameworks/karchive-${PVCUT}*:5 + =kde-frameworks/kbookmarks-${PVCUT}*:5 + =kde-frameworks/kcodecs-${PVCUT}*:5 + =kde-frameworks/kcompletion-${PVCUT}*:5 + =kde-frameworks/kconfig-${PVCUT}*:5 + =kde-frameworks/kconfigwidgets-${PVCUT}*:5 + =kde-frameworks/kcoreaddons-${PVCUT}*:5 + =kde-frameworks/kcrash-${PVCUT}*:5 + =kde-frameworks/kdbusaddons-${PVCUT}*:5 + =kde-frameworks/ki18n-${PVCUT}*:5 + =kde-frameworks/kiconthemes-${PVCUT}*:5 + =kde-frameworks/kitemviews-${PVCUT}*:5 + =kde-frameworks/kjobwidgets-${PVCUT}*:5 + =kde-frameworks/knotifications-${PVCUT}*:5 + =kde-frameworks/kservice-${PVCUT}*:5 + =kde-frameworks/ktextwidgets-${PVCUT}*:5 + =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 + =kde-frameworks/kwindowsystem-${PVCUT}*:5 + =kde-frameworks/kxmlgui-${PVCUT}*:5 + =kde-frameworks/solid-${PVCUT}*:5 + acl? ( + sys-apps/attr + virtual/acl + ) + handbook? ( =kde-frameworks/kdoctools-${PVCUT}*:5 ) + kerberos? ( virtual/krb5 ) + kwallet? ( =kde-frameworks/kwallet-${PVCUT}*:5 ) + X? ( >=dev-qt/qtx11extras-${QTMIN}:5 ) +" +DEPEND="${RDEPEND} + >=dev-qt/qtconcurrent-${QTMIN}:5 + test? ( sys-libs/zlib ) + X? ( + x11-base/xorg-proto + x11-libs/libX11 + x11-libs/libXrender + ) +" +PDEPEND=" + >=kde-frameworks/kded-${PVCUT}:5 +" + +PATCHES=( + "${FILESDIR}"/${P}-crashfix.patch + "${FILESDIR}"/${P}-gcc11.patch # bug 766480 + "${FILESDIR}"/${P}-fix-default-codec-not-usascii-{1,2}.patch # bug 765430 +) + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package acl ACL) + $(cmake_use_find_package handbook KF5DocTools) + $(cmake_use_find_package kerberos GSSAPI) + $(cmake_use_find_package kwallet KF5Wallet) + $(cmake_use_find_package X X11) + ) + + ecm_src_configure +} + +pkg_postinst() { + ecm_pkg_postinst + xdg_desktop_database_update +} + +pkg_postrm() { + ecm_pkg_postrm + xdg_desktop_database_update +} diff --git a/kde-frameworks/kio/kio-5.78.0-r2.ebuild b/kde-frameworks/kio/kio-5.78.0-r2.ebuild new file mode 100644 index 00000000000..c7be32d59f4 --- /dev/null +++ b/kde-frameworks/kio/kio-5.78.0-r2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_DESIGNERPLUGIN="true" +ECM_TEST="forceoptional" +PVCUT=$(ver_cut 1-2) +QTMIN=5.15.1 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org xdg-utils + +DESCRIPTION="Framework providing transparent file and data management" + +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="acl +handbook kerberos +kwallet X" + +# tests hang +RESTRICT+=" test" + +RDEPEND=" + dev-libs/libxml2 + dev-libs/libxslt + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5[ssl] + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + =kde-frameworks/kauth-${PVCUT}*:5 + =kde-frameworks/karchive-${PVCUT}*:5 + =kde-frameworks/kbookmarks-${PVCUT}*:5 + =kde-frameworks/kcodecs-${PVCUT}*:5 + =kde-frameworks/kcompletion-${PVCUT}*:5 + =kde-frameworks/kconfig-${PVCUT}*:5 + =kde-frameworks/kconfigwidgets-${PVCUT}*:5 + =kde-frameworks/kcoreaddons-${PVCUT}*:5 + =kde-frameworks/kcrash-${PVCUT}*:5 + =kde-frameworks/kdbusaddons-${PVCUT}*:5 + =kde-frameworks/ki18n-${PVCUT}*:5 + =kde-frameworks/kiconthemes-${PVCUT}*:5 + =kde-frameworks/kitemviews-${PVCUT}*:5 + =kde-frameworks/kjobwidgets-${PVCUT}*:5 + =kde-frameworks/knotifications-${PVCUT}*:5 + =kde-frameworks/kservice-${PVCUT}*:5 + =kde-frameworks/ktextwidgets-${PVCUT}*:5 + =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 + =kde-frameworks/kwindowsystem-${PVCUT}*:5 + =kde-frameworks/kxmlgui-${PVCUT}*:5 + =kde-frameworks/solid-${PVCUT}*:5 + acl? ( + sys-apps/attr + virtual/acl + ) + handbook? ( =kde-frameworks/kdoctools-${PVCUT}*:5 ) + kerberos? ( virtual/krb5 ) + kwallet? ( =kde-frameworks/kwallet-${PVCUT}*:5 ) + X? ( >=dev-qt/qtx11extras-${QTMIN}:5 ) +" +DEPEND="${RDEPEND} + >=dev-qt/qtconcurrent-${QTMIN}:5 + test? ( sys-libs/zlib ) + X? ( + x11-base/xorg-proto + x11-libs/libX11 + x11-libs/libXrender + ) +" +PDEPEND=" + >=kde-frameworks/kded-${PVCUT}:5 +" + +PATCHES=( + "${FILESDIR}"/${PN}-5.77.0-gcc11.patch # bug 766480 + "${FILESDIR}"/${P}-copyjob-crash.patch # KDE-Bug 431731 + "${FILESDIR}"/${PN}-5.77.0-fix-default-codec-not-usascii-{1,2}.patch # bug 765430 +) + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package acl ACL) + $(cmake_use_find_package handbook KF5DocTools) + $(cmake_use_find_package kerberos GSSAPI) + $(cmake_use_find_package kwallet KF5Wallet) + $(cmake_use_find_package X X11) + ) + + ecm_src_configure +} + +pkg_postinst() { + ecm_pkg_postinst + xdg_desktop_database_update +} + +pkg_postrm() { + ecm_pkg_postrm + xdg_desktop_database_update +}