public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tobias Hommel <gentoo@zum-news-lesen.genoetigt.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] pre- und post-merge skripte..?
Date: Wed, 28 May 2014 21:54:37 +0200	[thread overview]
Message-ID: <20140528195437.GA32153@shell> (raw)
In-Reply-To: <53861667.40609@gentoo.org>

Hey,

On Wed, May 28, 2014 at 07:01:27PM +0200, Johann Schmitz (ercpe) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 28.05.2014 18:52, Christian Bricart wrote:
> > es gab doch mal irgendwo eine Doku, wie man etwas innerhalb von
> > Portage triggern kann aufgrund von Paketnamen, oder..?
> 
> Das einzige was ich da kenne ist ein eigenes Environment pro Paket:
> http://wiki.gentoo.org/wiki//etc/portage/env

Ja, und da ist's dann genauer eine entsprechende bashrc. Geraten waere jetzt,
dass Du in /etc/portage/env/net-libs/webkit-gtk die folgende Funktionen
eintragen musst:
pre_pkg_setup() {
	eselect opengl set xorg-x11
}

post_pkg_postinst() {
	eselect opengl set nvidia
}

Evtl. noch ein bisschen mit den verschiedenen ebuild phases rumprobieren
(http://devmanual.gentoo.org/ebuild-writing/functions/index.html).

Dokumentiert ist dieses bashrc feature nicht besonders gut, ich glaube das
einzige bisschen ist unter
http://dev.gentoo.org/~zmedico/portage/doc/portage.html#config-bashrc
zu finden.

> 
> > Also will ich irgendwo unter /etc/portage/.. etwas eintragen, dass
> > vor jedem [r]emerge von "net-libs/webkit-gtk" ein "eselect opengl
> > set xorg-x11" und danach ein "eselect opengl set nvidia"
> > automagisch ausführt.. (ich vergess das bei einem
> > World-Update/-Remerge einfach immer und es bleibt wie im Bug
> > dokumentiert natürlich dort hängen...)
> 
> 
> Hier kenne ich nur postsync.d, was dir aber nicht weiter hilft.

Gruss
Tobi

-- 
This message may contain confidential and/or privileged information (although it
is not encrypted).
If you are not the addressee, you must not use, copy, disclose or take any
action based on this message or any information herein (just because you are a
nice person and mean no harm).
If you have received this message in error, please advise the sender
immediately by reply e-mail (to give other nice guys the opportunity to not do
anything bad with the information) and delete this message.


      reply	other threads:[~2014-05-28 19:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 16:52 [gentoo-user-de] pre- und post-merge skripte..? Christian Bricart
2014-05-28 17:01 ` Johann Schmitz (ercpe)
2014-05-28 19:54   ` Tobias Hommel [this message]

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=20140528195437.GA32153@shell \
    --to=gentoo@zum-news-lesen.genoetigt.de \
    --cc=gentoo-user-de@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