From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 001571381FA for ; Wed, 28 May 2014 19:54:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62CFBE08EF; Wed, 28 May 2014 19:54:43 +0000 (UTC) Received: from mail.keksbude.net (mail.keksbude.net [217.11.58.100]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA507E08D0 for ; Wed, 28 May 2014 19:54:42 +0000 (UTC) Received: from localhost (shell.keksbude.net [217.11.58.103]) by mail.keksbude.net (Postfix) with ESMTP id C9CAC1084172 for ; Wed, 28 May 2014 21:54:37 +0200 (CEST) Date: Wed, 28 May 2014 21:54:37 +0200 From: Tobias Hommel To: gentoo-user-de@lists.gentoo.org Subject: Re: [gentoo-user-de] pre- und post-merge skripte..? Message-ID: <20140528195437.GA32153@shell> References: <5386143A.3090102@bricart.de> <53861667.40609@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-de@lists.gentoo.org Reply-to: gentoo-user-de@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53861667.40609@gentoo.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: f06fdc58-37f3-4f4a-9eee-7a579c3edca4 X-Archives-Hash: 48299a6efdc7e0aa8e10b04b00b6481d 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.