xfce-extra/xfce4-screensaver: Backport memory management fix

Closes: https://bugs.gentoo.org/901781
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-03-17 19:28:14 +01:00
parent 2de042ee3e
commit dae12a3b8f
2 changed files with 17 additions and 5 deletions
+1
View File
@@ -1 +1,2 @@
DIST xfce4-screensaver-4.16.0-mem.patch 3265 BLAKE2B 38436c7c2047453109702fd54aee874dfb489819024e61899b807ea98686bdd491e578b65be89dfbd53ee89976bb215790df4fce6559f7ee4f5ff92b449374fe SHA512 dc9e289aa91ea4a5b65d2381bfabdbb48a6b07c67782afc53b003ffd2a07c0d225f4bb2ea48bcd478f14ab4c29a2521a0436085b40589e5a059e5561f7bcb42d
DIST xfce4-screensaver-4.16.0.tar.bz2 687978 BLAKE2B 1656027af61a50ab97fd3d5744f0ab5f1a81353c64a2fd935a6113dbe2fce5c4b2a22c5f81f15d06d09c3b292f82afa95ce34a07facb5fffef7e6fef712cae63 SHA512 5fa0381395b48fdfb5bdd9b4cafe1ec625d0b7fb9600d59c22c42fe0248fb4b99dd18a94045df3ecdc77635f7271676329c658f25003a9d8d6f9a9a66739dbe9
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -10,7 +10,11 @@ HOMEPAGE="
https://docs.xfce.org/apps/screensaver/start
https://gitlab.xfce.org/apps/xfce4-screensaver/
"
SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
SRC_URI="
https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2
https://gitlab.xfce.org/apps/xfce4-screensaver/-/commit/7aeced1f6fb39fd8887fc441b4ff491ba5bfcf35.patch
-> ${P}-mem.patch
"
LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
@@ -18,7 +22,7 @@ KEYWORDS="~alpha amd64 arm ~arm64 ~loong ppc ~ppc64 ~riscv x86"
IUSE="elogind +locking opengl pam systemd"
# Xrandr: optional but automagic
RDEPEND="
DEPEND="
>=dev-libs/dbus-glib-0.30
>=dev-libs/glib-2.50:2
>=x11-libs/gtk+-3.22:3
@@ -41,12 +45,19 @@ RDEPEND="
opengl? ( virtual/opengl )
systemd? ( sys-apps/systemd:= )
"
DEPEND="${RDEPEND}"
RDEPEND="
${DEPEND}
"
BDEPEND="
dev-util/glib-utils
dev-util/intltool
sys-apps/dbus
virtual/pkgconfig"
virtual/pkgconfig
"
PATCHES=(
"${DISTDIR}/${P}-mem.patch"
)
src_configure() {
local myconf=(