Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PATCH 1/3] scripts/bootstrap-prefix: bugfix: do not arbitrarily overwrite EPREFIX
Date: Wed, 01 Dec 2021 19:26:51
Message-Id: YafMdPTMdb1UFSMI@gentoo.org
In Reply to: [gentoo-alt] [PATCH 1/3] scripts/bootstrap-prefix: bugfix: do not arbitrarily overwrite EPREFIX by Etienne Buira
1 On 31-10-2021 16:39:34 +0100, Etienne Buira wrote:
2 > EPREFIX is given anyway (as $ROOT) when calling bootstrap-prefix.sh with
3 > $1 and $2, and a (following) code sets a default value if empty.
4 > ---
5 > scripts/bootstrap-prefix.sh | 4 +---
6 > 1 file changed, 1 insertion(+), 3 deletions(-)
7 >
8 > diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
9 > index 0e21c83953..42b116b0e7 100755
10 > --- a/scripts/bootstrap-prefix.sh
11 > +++ b/scripts/bootstrap-prefix.sh
12 > @@ -2306,9 +2306,7 @@ EOF
13 > echo
14 > echo "It seems to me you are '${USER:-$(whoami 2> /dev/null)}' (${UID}), that looks cool to me."
15 >
16 > - # Expect noninteractive users to know what they do:
17 > - # Take EPREFIX from argv1 (=ROOT), not from env var.
18 > - [[ ${TODO} == 'noninteractive' ]] && EPREFIX=${ROOT}
19 > + [[ -z "${EPREFIX}" ]] && EPREFIX="${ROOT}"
20
21 can you move this one down to right before the while loop where EPREFIX
22 is determined (line 2783), and add a brief explanation (comment) before it?
23
24 While at it, can you please shorten the subject of the commit message to
25 fit within 80 chars?
26
27 Thanks,
28 Fabian
29 >
30 > echo
31 > echo "I'm going to check for some variables in your environment now:"
32 >
33
34 --
35 Fabian Groffen
36 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature