Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Nikos Chantziaras <realnc@...>
Subject: Re: Trouble with package.env files
Date: Sun, 27 May 2012 23:33:13 +0300
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?



References:
Trouble with package.env files
-- Nikos Chantziaras
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Trouble with package.env files
Next by thread:
Re: Trouble with package.env files
Previous by date:
Trouble with package.env files
Next by date:
Re: Trouble with package.env files


Updated May 27, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.