From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from parrot.gentoo.org (lists.gentoo.org [156.56.111.196]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j2EGjp4J023955 for ; Mon, 14 Mar 2005 16:45:52 GMT Received: (qmail 16011 invoked by uid 89); 14 Mar 2005 16:45:46 +0000 Received: (qmail 6434 invoked from network); 14 Mar 2005 16:45:46 +0000 Received: from unknown (HELO masterh2.rle.ru) (217.16.27.128) by lists.gentoo.org with AES256-SHA encrypted SMTP; 14 Mar 2005 16:45:46 +0000 Received: from shwonder.rle.ru ([217.170.94.130]) by masterh2.rle.ru (8.12.8/8.12.8) with ESMTP id j2EGgWEa032306 for ; Mon, 14 Mar 2005 19:42:33 +0300 Received: from postman.rle.ru ([217.170.90.5]) by shwonder.rle.ru (8.13.1/8.13.1) with ESMTP id j2EGjg7p071125 for ; Mon, 14 Mar 2005 19:45:42 +0300 (MSK) (envelope-from im@rle.ru) Received: from [217.170.90.95] (im.rle.ru [217.170.90.95]) (authenticated bits=0) by postman.rle.ru (8.13.1/8.13.1) with ESMTP id j2EGkRA4001842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Mar 2005 19:46:32 +0300 Message-ID: <4235BFB0.70907@rle.ru> Date: Mon, 14 Mar 2005 19:45:36 +0300 From: Vitaly Ivanov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041224 X-Accept-Language: ru, en-us, en, de Precedence: bulk List-Post: , , List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-To: gentoo-dev@gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] CONFIG_PROTECT and ROOT!='/' X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archives-Salt: b09a41c6-cd83-4e9c-8a3c-475cb7947541 X-Archives-Hash: c92695f17006fb7f5361877a544bae99 Hello all "To protect or not to protect..." emerge tool overwrite files in CONFIG_PROTECT if ROOT != '/' for example: CONFIG_PROTECT="/etc /opt/gentoos/hostname/root/etc" ROOT="/opt/gentoos/hostname/root/" emerge something overwrite files in /opt/gentoos/hostname/root/etc I found the comments of Nicholas Jones in bug http://bugs.gentoo.org/show_bug.cgi?id=52415 >> Portage makes the assumption that if you're installing >> into a new root, then you're building a system and >> shouldn't bother with config protection. It's not >> documented either way, so it's undefined behavior. But if I really want to overwrite those files I can do it by CONFIG_PROTECT="-*" ROOT="/opt/gentoos/hostname/root/" emerge something I can't chroot to /opt/gentoos/hostname/root and emerge there, because it is cross compilation and I can't protect those files in any way now. May be protect *all* files in CONFIG_PROTECT even if ROOT != '/' This behavior can be easy override by CONFIG_PROTECT="-*" in command line if needed. Thanks. -- Vitaly Ivanov email: va@mail.ru icq uin: 15918498 -- gentoo-dev@gentoo.org mailing list