"poudriere distclean" complains about /etc/make.conf
Victor Sudakov
vas at mpeks.tomsk.su
Thu Feb 19 18:06:37 UTC 2015
Kimmo Paasiala wrote:
> On Thu, Feb 19, 2015 at 5:47 PM, Victor Sudakov <vas at mpeks.tomsk.su> wrote:
> > Mathieu Arnold wrote:
> >
> > [dd]
> >
> >> |> Ah, yes, HOST is not defined, it's why it fails, you need to add:
> >> |>
> >> |> HOST?=
> >> |
> >> | Mathieu, what makes you think that HOST is not defined? It's defined
> >> | in the environment and should be available to make:
> >> |
> >> | [sudakov at relay ~] make -V HOST
> >> | relay.sibptus.ru
> >> | [sudakov at relay ~]
> >>
> >> It's not defined in my environment, so I'd say it's specific to your setup,
> >> so, it's not defined when poudriere runs make, so it fails.
> >
> > Dear Mathieu, you are right. The definition of "HOST?=" fixes the
> > problem. Probably poudriere cleans the environment.
> >
>
> You're probably exporting (setenv in tcsh(1) and the like) HOST
> somewhere in your shell init files. Poudriere uses the plain sh(1)
> shell that does not create a HOST local variable, other shells like
> tcsh(1) and zsh(1) do create it though.
>
The HOST variable is already available in my login shell and
"make -V HOST" confirms this. The question is why "poudriere
distclean" does not inherit it from my login shell when I run
poudriere from the shell prompt. The plain sh(1) does inherit it, look:
[sudakov at admin ~] echo $SHELL ; echo $HOST
/bin/tcsh
admin.sibptus.tomsk.ru
[sudakov at admin ~] sh
$ echo $HOST
admin.sibptus.tomsk.ru
$ make -V HOST
admin.sibptus.tomsk.ru
$
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru
More information about the freebsd-pkg
mailing list