pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc bootstrap fails on DilOS
Thank you. Then the logic for determine OS_VARIANT for DilOS is simple as this:
. elif exists(/etc/debian_version)
OS_VARIANT= DilOS
LOWER_VARIANT_VERSION= ${_UNAME_V}
Combined with my tools.DilOS.mk I previously sent you, please try if you could add DilOS support.
After that, we could have bootstrap working. But actually building packages is another story, because I still have no idea why it stucks at 'Generating post-install file lists'.
I don't have the knowledge needed to debug this.
To be honest, I feel I'm lost when reading make files and I'm learning thing very slowly.
Please check again if this logic is syntactically right. The logic is right, I'm sure. DilOS is easily distinguished because it has the file /etc/debian_version.
gh
---- On Wed, 06 Jan 2021 19:03:18 +0700 Jonathan Perkin <jperkin%joyent.com@localhost> wrote ----
> * On 2021-01-06 at 11:43 GMT, Hung Nguyen Gia wrote:
>
> > BTW, I found OS_VARIANT was defined as empty in bsd.prefs.mk and
> > there seemed to be no documents about how to use it.
>
> There is this section in bsd.prefs.mk:
>
> # OS_VARIANT is used to differentiate operating systems which have a common
> # basis but offer contrasting environments, for example Linux distributions
> # or illumos forks.
> OS_VARIANT?= # empty
>
> Later on it is set on a per-OS basis, for example if "uname -v"
> matches joyent_* then it's set to "SmartOS":
>
> . if !empty(_UNAME_V:Mjoyent_*)
> OS_VARIANT= SmartOS
>
> and can then be used for example in x11/xorg-cf-files/Makefile:
>
> # SmartOS puts compiler tools in /usr/bin and does not come with lex/yacc.
> .if ${OS_VARIANT} == "SmartOS"
> ...
>
> That's all there is to it.
>
> --
> Jonathan Perkin - Joyent, Inc. - www.joyent.com
>
Home |
Main Index |
Thread Index |
Old Index