Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs.
Date: Sun, 24 Mar 2013 20:19:02
Message-Id: 514F5FAF.50503@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs. by "Michał Górny"
1 On 03/24/2013 07:13 AM, Michał Górny wrote:
2 > Oh, I didn't reply to use of userland. I thought about using that but
3 > that would mean that I'd have to check all the userlands we support.
4
5 BSD and GNU should be the only relevant USERLAND values (no others are
6 listed in profiles/desc/userland.desc). In portage code, I always do the
7 USERLAND conditionals like this:
8
9 if [[ ${USERLAND} == BSD ]] ; then
10 # bsd stuff
11 else
12 # gnu stuff
13 fi
14
15 That way, if USERLAND happens to be unset for whatever reason, it
16 defaults to the GNU case. GNU seems like a reasonable default, since for
17 prefix portage we use a GNU userland even for *BSD kernels.
18 --
19 Thanks,
20 Zac