From d1e4dc10d99e8adcd96464129f3393d3518d4e33 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 30 Jul 2021 23:54:53 +0100 Subject: [PATCH] app-misc/screen: [QA] call tmpfiles_process in pkg_postinst This is needed to actually apply the tmpfiles configuration we've installed in the ebuild. See tmpfiles.eclass documentation. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sam James --- app-misc/screen/screen-4.8.0-r3.ebuild | 15 ++------------- app-misc/screen/screen-9999.ebuild | 15 ++------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/app-misc/screen/screen-4.8.0-r3.ebuild b/app-misc/screen/screen-4.8.0-r3.ebuild index 565bb0f58b8a9..dd1d7780d6932 100644 --- a/app-misc/screen/screen-4.8.0-r3.ebuild +++ b/app-misc/screen/screen-4.8.0-r3.ebuild @@ -143,18 +143,7 @@ pkg_postinst() { elog "applications. Please check /etc/screenrc for information on these changes." fi - # Add /tmp/screen in case it doesn't exist yet. This should solve - # problems like bug #508634 where tmpfiles.d isn't in effect. - local rundir="${EROOT}/tmp/${PN}" - if [[ ! -d ${rundir} ]] ; then - if use multiuser || use prefix ; then - tmpfiles_group="root" - else - tmpfiles_group="utmp" - fi - mkdir -m 0775 "${rundir}" - chgrp ${tmpfiles_group} "${rundir}" - fi + tmpfiles_process screen.conf - ewarn "This revision changes the screen socket location to ${rundir}" + ewarn "This revision changes the screen socket location to ${EROOT}/tmp/${PN}" } diff --git a/app-misc/screen/screen-9999.ebuild b/app-misc/screen/screen-9999.ebuild index dad214f37c40f..e41146f416bff 100644 --- a/app-misc/screen/screen-9999.ebuild +++ b/app-misc/screen/screen-9999.ebuild @@ -145,18 +145,7 @@ pkg_postinst() { elog "applications. Please check /etc/screenrc for information on these changes." fi - # Add /tmp/screen in case it doesn't exist yet. This should solve - # problems like bug #508634 where tmpfiles.d isn't in effect. - local rundir="${EROOT}/tmp/${PN}" - if [[ ! -d ${rundir} ]] ; then - if use multiuser || use prefix ; then - tmpfiles_group="root" - else - tmpfiles_group="utmp" - fi - mkdir -m 0775 "${rundir}" - chgrp ${tmpfiles_group} "${rundir}" - fi + tmpfiles_process screen.conf - ewarn "This revision changes the screen socket location to ${rundir}" + ewarn "This revision changes the screen socket location to ${EROOT}/tmp/${PN}" }