diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-12 03:31:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-12 03:31:11 +0000 |
commit | 3a9a4f8b478ff62e3c752e20305edb2c7d91959f (patch) | |
tree | af2b80e575254ddcdc57ea6b2ae02607bb0a7824 /sys-auth/polkit-qt | |
parent | 7236d0a40beeff3f6f0fcede52d54dfb81880faa (diff) |
gentoo auto-resync : 12:11:2022 - 03:31:11
Diffstat (limited to 'sys-auth/polkit-qt')
-rw-r--r-- | sys-auth/polkit-qt/Manifest | 2 | ||||
-rw-r--r-- | sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch | 36 | ||||
-rw-r--r-- | sys-auth/polkit-qt/polkit-qt-0.114.0-r2.ebuild | 46 |
3 files changed, 84 insertions, 0 deletions
diff --git a/sys-auth/polkit-qt/Manifest b/sys-auth/polkit-qt/Manifest index 9c063ae8b808..75df686ef2d1 100644 --- a/sys-auth/polkit-qt/Manifest +++ b/sys-auth/polkit-qt/Manifest @@ -1,5 +1,7 @@ AUX polkit-qt-0.114.0-cmake.patch 14143 BLAKE2B 53417ff3b0f95f713781d94eeb0c18f6a880b492b97fed8ec1dcfdec1940a2ae970f016772326f454d7f40b5be41936ac7614162a1d1406acb7e3a3bf009b31f SHA512 1677c3c0c18898d7972eb5b28c18611cab787fb6f9c0fb411e7ee0cf5bad0182777382957095c4b38f6a933272c5d262b543618f0283f77469e453aa73bbd683 +AUX polkit-qt-0.114.0-fix-memory-leak.patch 967 BLAKE2B 3927d9cf99c5e0dc122d8fe19762762ab0038c8d1f251e05791dfd59e0ed0f5cc1a2b07d201b70746751e3f8a6abed23415cc46443b9cfeddbe1d32d3e416c50 SHA512 a33c6cf52e7c53d8818a9e6a7bf62cb85cc06cb1fe77683aba9df3cd5a797509533b085973021204d0fd499c970784c7ff7f6cbf23a1301b0d36591ce318f5f4 AUX polkit-qt-0.114.0-glib-2.36.patch 6739 BLAKE2B b771febcdac3786331c28776f3db9317cab2413ad7abea194890e7419abdbec695859dd8d41cc0c4d6c9fb76dd46cab421a271c10354cfbbf6c349cd7ecaefb1 SHA512 bd5c7a742b8abc199ef9b54a6667a27b5f31e4cb66444bdae5d071e195b63356e7eeedcc51b966036f099d185a9576d88ac5ac6187cf739e3bb067a83d0474df DIST polkit-qt-1-0.114.0.tar.xz 58384 BLAKE2B e788198e386797ba9b4c228a451dde703f83e79c81eacaf805e431a3f60c0832adc3faef4616e3008dfaa816d7dc5a7a80aaf02936ea232373e78e0d008724ca SHA512 4a16d9428d5ccc0107dcbd67c29ecba196424e555dc43d55cf2b6e0e7b72c99f894e9c994eaed85a9536010d67a19f20fe74f792c0d6b9ca0e05ce85f655f9a8 EBUILD polkit-qt-0.114.0-r1.ebuild 904 BLAKE2B 927e7afb6add0d87d897273107fe87295bad5e05a65224a8b0cb0f41313a5637d9a126fc5ce717556b794bd33818e4ea051626d8abeaf46ddcb1e978e0b118b7 SHA512 1a2117e9c8c7b81d0bb88d9ccaa55326d9168b25cdc25dfe0d68814c66909ab69552d2e00b0ef6206092f95e2e0d2dbd0719b05c3e1cb47c71166a1d047ac3ce +EBUILD polkit-qt-0.114.0-r2.ebuild 949 BLAKE2B 4de9677b20b273d211300193937d36567ea8f5b315ab67b45ce71c6020aa270795284e21d928188999f01624fb079e1a67bfd6ea39c55c8a741dc24ec05d1e7b SHA512 526ff63c53b352d3b0af36eb6e4bb965e9284d8116844d63f785d0bd77f9f6774258a6b17923edf4f186ff071e4d934fae3bdc7081837c98240987c724f5750f MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6 diff --git a/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch b/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch new file mode 100644 index 000000000000..02f830cbf531 --- /dev/null +++ b/sys-auth/polkit-qt/files/polkit-qt-0.114.0-fix-memory-leak.patch @@ -0,0 +1,36 @@ +From e6a3603b1f07cd85dbd84377afeda0777d6535e8 Mon Sep 17 00:00:00 2001 +From: Zhang Dingyuan <justforlxz@gmail.com> +Date: Tue, 14 Jun 2022 11:37:40 +0800 +Subject: [PATCH] fix: memory leak + +agent listener does not reclaim private memory after destructing. +Use `QScopedPointer` to protect private pointers from being copied and to +reclaim memory properly. +--- + agent/polkitqt1-agent-listener.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/agent/polkitqt1-agent-listener.h b/agent/polkitqt1-agent-listener.h +index 07fe03a..a40ff41 100644 +--- a/agent/polkitqt1-agent-listener.h ++++ b/agent/polkitqt1-agent-listener.h +@@ -9,6 +9,7 @@ + #define POLKITQT1_AGENT_LISTENER_H + + #include <QObject> ++#include <QScopedPointer> + + #include "polkitqt1-agent-session.h" + +@@ -137,7 +138,7 @@ public Q_SLOTS: + virtual void cancelAuthentication() = 0; + + private: +- ListenerPrivate * const d; ++ QScopedPointer<ListenerPrivate> d; + }; + } + +-- +GitLab + diff --git a/sys-auth/polkit-qt/polkit-qt-0.114.0-r2.ebuild b/sys-auth/polkit-qt/polkit-qt-0.114.0-r2.ebuild new file mode 100644 index 000000000000..0bb9a6530f9b --- /dev/null +++ b/sys-auth/polkit-qt/polkit-qt-0.114.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KDE_ORG_CATEGORY="libraries" +KDE_ORG_NAME="polkit-qt-1" +inherit cmake kde.org + +DESCRIPTION="Qt wrapper around polkit-1 client libraries" +HOMEPAGE="https://api.kde.org/polkit-qt-1/html/" + +if [[ ${KDE_BUILD_TYPE} = release ]]; then + SRC_URI="mirror://kde/stable/${KDE_ORG_NAME}/${KDE_ORG_NAME}-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="LGPL-2" +SLOT="0" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + >=sys-auth/polkit-0.103 +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( AUTHORS README README.porting TODO ) + +PATCHES=( + "${FILESDIR}/${P}-cmake.patch" + "${FILESDIR}/${P}-glib-2.36.patch" + "${FILESDIR}/${P}-fix-memory-leak.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES=OFF + ) + cmake_src_configure +} |