Date: Fri, 20 Feb 2015 00:06:26 +0600 From: Victor Sudakov <vas@mpeks.tomsk.su> To: Kimmo Paasiala <kpaasial@gmail.com>, freebsd-pkg@freebsd.org Cc: freebsd-pkg@freebsd.org, Mathieu Arnold <mat@mat.cc> Subject: Re: "poudriere distclean" complains about /etc/make.conf Message-ID: <20150219180626.GA52751@admin.sibptus.tomsk.ru> In-Reply-To: <CA%2B7WWSf0JHR=xbdEqeWOHD9CZO_PRgnqMUbrxMDD%2BbuCB5a1sw@mail.gmail.com> References: <20150217043049.GA68755@admin.sibptus.tomsk.ru> <F8556CC1B58CDE1EE7646029@ogg.in.absolight.net> <20150218163739.GA24716@admin.sibptus.tomsk.ru> <D0B4CE058DA7FBAEB1615050@atuin.in.mat.cc> <20150219031446.GA32820@admin.sibptus.tomsk.ru> <C0C2840FF666978F32157E03@atuin.in.mat.cc> <20150219154718.GA51357@admin.sibptus.tomsk.ru> <CA%2B7WWSf0JHR=xbdEqeWOHD9CZO_PRgnqMUbrxMDD%2BbuCB5a1sw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Kimmo Paasiala wrote: > On Thu, Feb 19, 2015 at 5:47 PM, Victor Sudakov <vas@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@relay ~] make -V HOST > >> | relay.sibptus.ru > >> | [sudakov@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@admin ~] echo $SHELL ; echo $HOST /bin/tcsh admin.sibptus.tomsk.ru [sudakov@admin ~] sh $ echo $HOST admin.sibptus.tomsk.ru $ make -V HOST admin.sibptus.tomsk.ru $ -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150219180626.GA52751>