From f7362d494f95fc83e2af0e0b5af5d60b024b43c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Mon, 17 Jun 2024 21:19:12 +0200 Subject: [PATCH] upgpkg: tuned 2.23.0-2: preserve empty config dirs * Fix tuned-gui crash by preserving empty directories in `/etc/tuned` --- tuned/.SRCINFO | 4 ++-- tuned/PKGBUILD | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tuned/.SRCINFO b/tuned/.SRCINFO index 09af01b..479c28b 100644 --- a/tuned/.SRCINFO +++ b/tuned/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = tuned pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system pkgver = 2.23.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/redhat-performance/tuned arch = any license = GPL @@ -17,7 +17,6 @@ pkgbase = tuned depends = python-linux-procfs depends = python-perf depends = python-pyudev - options = !emptydirs source = https://github.com/redhat-performance/tuned/archive/v2.23.0/tuned-2.23.0.tar.gz sha512sums = b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8 @@ -41,4 +40,5 @@ pkgname = tuned-ppd pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD) depends = tuned conflicts = power-profiles-daemon + options = !emptydirs backup = etc/tuned/ppd.conf diff --git a/tuned/PKGBUILD b/tuned/PKGBUILD index 07b5dd4..a0086a1 100644 --- a/tuned/PKGBUILD +++ b/tuned/PKGBUILD @@ -6,14 +6,13 @@ pkgbase=tuned pkgname=("${pkgbase}" "${pkgbase}-ppd") pkgver=2.23.0 -pkgrel=1 +pkgrel=2 pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system' arch=('any') url="https://github.com/redhat-performance/${pkgbase}" license=('GPL') depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev') makedepends=('desktop-file-utils') -options=('!emptydirs') source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz") sha512sums=('b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8') @@ -45,6 +44,7 @@ package_tuned() { cd "${pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install + rm -rv "${pkgdir}"/{run,var} python -m compileall -d /usr/lib "${pkgdir}/usr/lib" python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib" @@ -55,6 +55,7 @@ package_tuned-ppd() { depends=('tuned') conflicts=('power-profiles-daemon') backup=('etc/tuned/ppd.conf') + options=('!emptydirs') cd "${pkgbase}-${pkgver}"