public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] acct-user.eclass: handle missing path in preinst
@ 2019-08-14 21:14 Mike Gilbert
  2019-08-14 21:26 ` Michał Górny
  2019-08-14 21:29 ` Michael Orlitzky
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Gilbert @ 2019-08-14 21:14 UTC (permalink / raw
  To: gentoo-dev

Closes: https://bugs.gentoo.org/691478
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
 eclass/acct-user.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index 60009643c144..cec5d0506879 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -334,6 +334,11 @@ acct-user_pkg_preinst() {
 		if [[ -z ${ACCT_USER_HOME_OWNER} ]]; then
 			ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${ACCT_USER_GROUPS[0]}
 		fi
+		# Path might be missing due to INSTALL_MASK, etc.
+		# https://bugs.gentoo.org/691478
+		if [[ ! -e "${ED}/${ACCT_USER_HOME#/}" ]]; then
+			keepdir "${ACCT_USER_HOME}"
+		fi
 		fowners "${ACCT_USER_HOME_OWNER}" "${ACCT_USER_HOME}"
 		fperms "${ACCT_USER_HOME_PERMS}" "${ACCT_USER_HOME}"
 	fi
-- 
2.23.0.rc1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-15 15:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-14 21:14 [gentoo-dev] [PATCH] acct-user.eclass: handle missing path in preinst Mike Gilbert
2019-08-14 21:26 ` Michał Górny
2019-08-14 21:38   ` Mike Gilbert
2019-08-14 21:29 ` Michael Orlitzky
2019-08-14 21:41   ` Mike Gilbert
2019-08-15 12:32     ` Michael Orlitzky
2019-08-15 15:00       ` Mike Gilbert
2019-08-15 15:33         ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox