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 <gentoo-devhelp+bounces-166-garchives=archives.gentoo.org@lists.gentoo.org>) id 1SYkAK-0006Xy-1f for garchives@archives.gentoo.org; Sun, 27 May 2012 20:34:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07AABE0587; Sun, 27 May 2012 20:34:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C56FDE0587 for <gentoo-devhelp@lists.gentoo.org>; Sun, 27 May 2012 20:34:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5C8541B4023 for <gentoo-devhelp@lists.gentoo.org>; Sun, 27 May 2012 20:34:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.207 X-Spam-Level: X-Spam-Status: No, score=-1.207 tagged_above=-999 required=5.5 tests=[AWL=-0.197, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1qMQQVCfCxHi for <gentoo-devhelp@lists.gentoo.org>; Sun, 27 May 2012 20:34:01 +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 smtp.gentoo.org (Postfix) with ESMTPS id 5348A1B4031 for <gentoo-devhelp@gentoo.org>; Sun, 27 May 2012 20:34:00 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from <glgd-gentoo-devhelp@m.gmane.org>) id 1SYk9z-0000EW-Ro for gentoo-devhelp@gentoo.org; Sun, 27 May 2012 22:33:55 +0200 Received: from athedsl-356186.home.otenet.gr ([85.72.246.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-devhelp@gentoo.org>; Sun, 27 May 2012 22:33:55 +0200 Received: from realnc by athedsl-356186.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-devhelp@gentoo.org>; Sun, 27 May 2012 22:33:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-devhelp@lists.gentoo.org From: Nikos Chantziaras <realnc@gmail.com> Subject: [gentoo-devhelp] Re: Trouble with package.env files Date: Sun, 27 May 2012 23:33:13 +0300 Organization: Lucas Barks Message-ID: <jpu33b$v9$1@dough.gmane.org> References: <jpu2dd$sgo$1@dough.gmane.org> Precedence: bulk List-Post: <mailto:gentoo-devhelp@lists.gentoo.org> List-Help: <mailto:gentoo-devhelp+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-devhelp+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-devhelp+subscribe@lists.gentoo.org> List-Id: Gentoo Development-related help <gentoo-devhelp.gentoo.org> X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org Reply-To: gentoo-devhelp@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-356186.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120525 Thunderbird/12.0.1 In-Reply-To: <jpu2dd$sgo$1@dough.gmane.org> X-Archives-Salt: 099f0b66-9f61-42ba-b762-1265e9173c4a X-Archives-Hash: b04b577e887f66f36b53170b17ff8278 As always, I found the answer 5 minutes after hitting the "send" button :-P It turns out the Gentoo docs are wrong. You can't do this with package.env. The solution is something not mentioned in the docs. Putting this: post_src_prepare() { rm -rf "${S}"/usr/lib32/jack || die rm -f $(find "${S}" -name 'libjack*') || die } in "/etc/portage/env/app-emulation/emul-linux-x86-soundlibs" works. On 27/05/12 23:21, Nikos Chantziaras wrote: > I have this in /etc/portage/package.env: > > app-emulation/emul-linux-x86-soundlibs soundlibs-delete-jack.conf > > and this in /etc/portage/env/soundlibs-delete-jack.conf: > > if [ "${EBUILD_PHASE}" == "src_prepare"] ; > then > rm -rf "${S}"/usr/lib32/jack > rm -f $(find "${S}" -name 'libjack*') > fi > > As per documentation: > > http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=6#doc_chap3 > > > However, it doesn't work. What do I do? > > !!! Problem in 'app-emulation/emul-linux-x86-soundlibs' dependencies. > !!! "/etc/portage/env/soundlibs-delete-jack.conf", line 1: Invalid token > '[' (not '=') portage.exception > ... done! > "/etc/portage/env/soundlibs-delete-jack.conf", line 1: Invalid token '[' > (not '=') > > > PS: > What I'd really want is to define my own custom post_src_prepare() > function. Possible?