From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CF97D13888F for ; Tue, 20 Oct 2015 16:40:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACDB821C03E; Tue, 20 Oct 2015 16:40:07 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8069321C011 for ; Tue, 20 Oct 2015 16:40:06 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZoZxD-0003w3-Ol for gentoo-user@lists.gentoo.org; Tue, 20 Oct 2015 18:40:03 +0200 Received: from athedsl-354632.home.otenet.gr ([85.72.240.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 18:40:03 +0200 Received: from realnc by athedsl-354632.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 18:40:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: How is /etc/portage/env supposed to work? Date: Tue, 20 Oct 2015 19:35:36 +0300 Message-ID: References: <56264F13.90301@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-354632.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <56264F13.90301@gentoo.org> X-Archives-Salt: 5cd30558-317c-4b68-8206-acee926a8fc3 X-Archives-Hash: 8f99569d1ea2a7e03390e2df08290d6c On 20/10/15 17:26, Michael Orlitzky wrote: > On 10/20/2015 10:04 AM, Nikos Chantziaras wrote: >> I'm following the documentation here: >> >> https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/Advanced#Using_.2Fetc.2Fportage.2Fenv >> >> to hook into the postinst phase of an ebuild. > > Deja vu: > > http://comments.gmane.org/gmane.linux.gentoo.devhelp/151 > > https://bugs.gentoo.org/show_bug.cgi?id=388781 > > There's two separate uses for /etc/portage/env -- one of them will get > you the make.conf parser (when you list the file in > /etc/portage/package.env) and the other that will get you the bash > parser (when you put the file at /etc/portage/env/${CATEGORY}/${PN}). > > The whole thing is confusing. If you ever get it working please put a > decent example on the wiki because I remember spending hours trying to > do the same thing. As suggested by Neil, putting the code in /etc/portage/env/app-misc/mc worked. Will later write an example in the Wiki.