From owner-freebsd-pkg@FreeBSD.ORG Thu Feb 19 18:06:37 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82EF8751 for ; Thu, 19 Feb 2015 18:06:37 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id D6C86A88 for ; Thu, 19 Feb 2015 18:06:35 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38250815; Fri, 20 Feb 2015 00:06:33 +0600 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t1JI6QQw052913; Fri, 20 Feb 2015 00:06:28 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.9/8.14.7/Submit) id t1JI6Qp8052912; Fri, 20 Feb 2015 00:06:26 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 20 Feb 2015 00:06:26 +0600 From: Victor Sudakov To: Kimmo Paasiala , freebsd-pkg@freebsd.org Subject: Re: "poudriere distclean" complains about /etc/make.conf Message-ID: <20150219180626.GA52751@admin.sibptus.tomsk.ru> References: <20150217043049.GA68755@admin.sibptus.tomsk.ru> <20150218163739.GA24716@admin.sibptus.tomsk.ru> <20150219031446.GA32820@admin.sibptus.tomsk.ru> <20150219154718.GA51357@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-pkg@freebsd.org, Mathieu Arnold X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 18:06:37 -0000 Kimmo Paasiala wrote: > On Thu, Feb 19, 2015 at 5:47 PM, Victor Sudakov 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