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 |