From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qc1F5-0002Ct-Bd for garchives@archives.gentoo.org; Wed, 29 Jun 2011 20:20:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD00D1C058; Wed, 29 Jun 2011 20:19:48 +0000 (UTC) Received: from hera.cwi.nl (hera.cwi.nl [192.16.191.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 63C0B1C058 for ; Wed, 29 Jun 2011 20:19:48 +0000 (UTC) Received: from gentoo.org (volund.ins.cwi.nl [192.16.196.166]) by hera.cwi.nl with ESMTP id p5T82fw4002079 for ; Wed, 29 Jun 2011 10:02:41 +0200 (CEST) Date: Wed, 29 Jun 2011 10:02:41 +0200 From: Fabian Groffen To: gentoo-soc@lists.gentoo.org Subject: Re: [gentoo-soc] Auto dependency builder progress report. Week 5. Message-ID: <20110629080241.GG11775@gentoo.org> References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (Darwin 9.8.0, VIM - Vi IMproved 7.3) Organization: Gentoo Foundation, Inc. Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5c6cc85277a753353087e577845a4fdc On 29-06-2011 13:28:45 +0600, =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0= =B4=D1=80 =D0=91=D0=B5=D1=80=D1=81=D0=B5=D0=BD=D0=B5=D0=B2 wrote: > Then I began to log all environment variables and find then someone > changes my LOG_SOCKET variable during "prerm" stage. I renamed it to > LOG_SOCKET_ in all sources hoping this is a > name-collision. But variable continues changing its value. The most > interesting fact: value was changing to another valid socket name, for > example from "/tmp/tmpFSDhf/socket_for_logging" to > "/tmp/tmpHDvJ5/socket_for_logging". But nobody listened > "/tmp/tmpHDvJ5/socket_for_logging". I started to believe in the higher > powers in this moment because last socket file was created five days > ago and notebook has been rebooted several times these days. >=20 > But the explanation was simple: portage system remembers all > environment variables while installing a package and restores them > while removing this package!! You can add your variable(s) to a white/blacklist in the code that saves the environment. Check save_ebuild_env() in isolated-functions.sh. --=20 Fabian Groffen Gentoo on a different level