From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-150554-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 62B521381F3 for <garchives@archives.gentoo.org>; Tue, 10 Sep 2013 21:05:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97556E0BD0; Tue, 10 Sep 2013 21:05:52 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FC8CE0AD5 for <gentoo-user@lists.gentoo.org>; Tue, 10 Sep 2013 21:05:51 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id cb5so1319438wib.4 for <gentoo-user@lists.gentoo.org>; Tue, 10 Sep 2013 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=wwxeSeWzJ0KpO6QanabWQG5Gz/OOQDJ7tQJBjQ+p/yw=; b=dBdFBDaRxLADn9/nZgdfIDPGWcibTZieV212jzfLflgjyqDOzJYrouzWSIoeIDJhfl L5B9oYiaRI9GfZEJoiM/OcqlTfIO4LOtNWhw5vGXeYb4MOvXiNr0ytB5qMzaB4JF0ZjB uji9W9aJHhO1T/bqK2/KsjwAyJrZIHJ3j8nPrsblIizlZ6mVKb2dkEok96D+UKehPAqO 5a4IAGxFdHZeQXxE79BulADjq76yZim1WU1sa6tKs5wO3wQRGU6XuB/BEgGEaGfy8ckX te/ndJtLnZlVEBzKB3dl1jDCvevdAl1uh5v28Y0tyITcJzhkkpFytDEisyGFc7Ywzg0N 5awQ== X-Received: by 10.194.201.225 with SMTP id kd1mr7945995wjc.35.1378847150103; Tue, 10 Sep 2013 14:05:50 -0700 (PDT) Received: from [172.20.0.41] (196-210-126-42.dynamic.isadsl.co.za. [196.210.126.42]) by mx.google.com with ESMTPSA id l9sm6162077wif.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 14:05:49 -0700 (PDT) Message-ID: <522F88BF.7020002@gmail.com> Date: Tue, 10 Sep 2013 23:01:51 +0200 From: Alan McKinnon <alan.mckinnon@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130809 Thunderbird/17.0.8 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18 References: <522F7CE5.8010801@taydin.org> In-Reply-To: <522F7CE5.8010801@taydin.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 16831dd9-ba4f-4618-8ca6-6b0bdc5fd7b0 X-Archives-Hash: 58e75e2c267546f7ef87a9b46d0074a9 On 10/09/2013 22:11, Timur Aydin wrote: > Today I had quite a bit of issues while creating a local overlay to > modify samba. Got through all of them, but there were the following > issues which I wanted to bring up, because I am not sure whether I have > done anything wrong: > > - I had created the overlay under "/root/overlay", but this is causing > "permission denied" errors from ebuild when creating the Manifest file: Do you have userpriv set in FEATURES? That makes emerge run as portage which cannot read /root. Putting things like code, data and configs in /root is universally a bad idea. Do not do this. Put such things in the usual places, protected by orthodox permissions, just like every other package on your system. Your local overlay is no different to the tree and does not require special handling. [snip] > After trying many different things without luck, I tried using > /usr/local/portage as the overlay folder and the problem went away! So > my first question is, does ebuild have a special security feature which > prevents it from processing overlays under /root ? No, you just had the overlay in a highly unusual place. > > - The second issue is eclass related. After I moved net-fs/samba under > /usr/local/portage, I got the following error during Manifest creation: > > ====================================================================== > bonsai samba # ebuild samba-3.6.18.ebuild manifest > * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase): > * pam.eclass could not be found by inherit() [snip] > To resolve this, I just copied /usr/portage/eclass to > /usr/local/portage/eclass. Is this a proper solution? No, that copies ALL the eclasses and is likely to really mess things up. In fact, you should not have had to do anything with eclasses at all. I suspect your make.conf is faulty. What is the contents of make.conf? what is ls -al $PORTDIR/eclass/pam.eclass -- Alan McKinnon alan.mckinnon@gmail.com