On 03/24/2013 07:13 AM, Michał Górny wrote: > Oh, I didn't reply to use of userland. I thought about using that but > that would mean that I'd have to check all the userlands we support.
BSD and GNU should be the only relevant USERLAND values (no others are listed in profiles/desc/userland.desc). In portage code, I always do the USERLAND conditionals like this: if [[ ${USERLAND} == BSD ]] ; then # bsd stuff else # gnu stuff fi That way, if USERLAND happens to be unset for whatever reason, it defaults to the GNU case. GNU seems like a reasonable default, since for prefix portage we use a GNU userland even for *BSD kernels. -- Thanks, Zac