tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Supporting ChromeOS as a Linux variant



* On 2017-10-29 at 10:20 GMT, Benny Siegert wrote:

> I am currently toying with using pkgsrc as the package collection on a
> Chromebook in Dev Mode. ChromeOS (and the opensource Chromium OS) are
> based on Gentoo Linux, however they are special in a few ways, such as
> missing components that some software takes for granted on Linux (such
> as ACL support, multilib, etc.)
> 
> Rather than maintain a set of local patches, I would like to add
> support for ChromeOS as some sort of operating system variant in
> pkgsrc itself.
> 
> I noticed that SunOS derivatives have OS_VARIANT, and that some
> package Makefiles change stuff based on that. The Linux platform file
> has logic to recognize distros and set LOWER_VENDOR.
> 
> Any advice which of the two I should be using? Thoughts?

LOWER_VENDOR is primarily for GNU config.guess, OS_VARIANT is the best
choice to be consistent with other OS.  Add a new match for ChromeOS,
add OS_VARIANT=${LOWER_VENDOR} to the Linux section, then start using
it.

Cheers,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index