public inbox for gentoo-devhelp@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nikos Chantziaras <realnc@gmail.com>
To: gentoo-devhelp@lists.gentoo.org
Subject: [gentoo-devhelp] Re: Trouble with package.env files
Date: Sun, 27 May 2012 23:33:13 +0300	[thread overview]
Message-ID: <jpu33b$v9$1@dough.gmane.org> (raw)
In-Reply-To: <jpu2dd$sgo$1@dough.gmane.org>

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?




  reply	other threads:[~2012-05-27 20:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27 20:21 [gentoo-devhelp] Trouble with package.env files Nikos Chantziaras
2012-05-27 20:33 ` Nikos Chantziaras [this message]
2012-05-27 20:46 ` Dan Douglas
2012-05-28 16:25 ` Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jpu33b$v9$1@dough.gmane.org' \
    --to=realnc@gmail.com \
    --cc=gentoo-devhelp@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox