Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] acct-user.eclass: die explicitly if HOME is missing in preinst
Date: Thu, 15 Aug 2019 19:01:20
Message-Id: dcd541f7-4674-08f2-ce58-7d78a68fd540@gentoo.org
In Reply to: [gentoo-dev] [PATCH] acct-user.eclass: die explicitly if HOME is missing in preinst by Mike Gilbert
1 On 8/15/19 11:43 AM, Mike Gilbert wrote:
2 >
3 > + # Path might be missing due to INSTALL_MASK, etc.
4 > + # https://bugs.gentoo.org/691478
5 > + if [[ ! -e "${ED}/${ACCT_USER_HOME#/}" ]]; then
6 > + eerror "Home directory is missing from the installation image:"
7 > + eerror " ${ACCT_USER_HOME}"
8 > + eerror "Check INSTALL_MASK for entries that would cause this."
9 > + die "${ACCT_USER_HOME} does not exist"
10 > + fi
11
12 This suggests that the problem is with the user's INSTALL_MASK, and not
13 with the package that crashed. I would rather they file a bug than
14 change their mask entry. But, I guess it's pretty easy these days to
15 grep the whole acct-user category for issues like this that I missed on
16 the mailing list.

Replies