1 |
Hey, |
2 |
|
3 |
On Wed, May 28, 2014 at 07:01:27PM +0200, Johann Schmitz (ercpe) wrote: |
4 |
> -----BEGIN PGP SIGNED MESSAGE----- |
5 |
> Hash: SHA1 |
6 |
> |
7 |
> On 28.05.2014 18:52, Christian Bricart wrote: |
8 |
> > es gab doch mal irgendwo eine Doku, wie man etwas innerhalb von |
9 |
> > Portage triggern kann aufgrund von Paketnamen, oder..? |
10 |
> |
11 |
> Das einzige was ich da kenne ist ein eigenes Environment pro Paket: |
12 |
> http://wiki.gentoo.org/wiki//etc/portage/env |
13 |
|
14 |
Ja, und da ist's dann genauer eine entsprechende bashrc. Geraten waere jetzt, |
15 |
dass Du in /etc/portage/env/net-libs/webkit-gtk die folgende Funktionen |
16 |
eintragen musst: |
17 |
pre_pkg_setup() { |
18 |
eselect opengl set xorg-x11 |
19 |
} |
20 |
|
21 |
post_pkg_postinst() { |
22 |
eselect opengl set nvidia |
23 |
} |
24 |
|
25 |
Evtl. noch ein bisschen mit den verschiedenen ebuild phases rumprobieren |
26 |
(http://devmanual.gentoo.org/ebuild-writing/functions/index.html). |
27 |
|
28 |
Dokumentiert ist dieses bashrc feature nicht besonders gut, ich glaube das |
29 |
einzige bisschen ist unter |
30 |
http://dev.gentoo.org/~zmedico/portage/doc/portage.html#config-bashrc |
31 |
zu finden. |
32 |
|
33 |
> |
34 |
> > Also will ich irgendwo unter /etc/portage/.. etwas eintragen, dass |
35 |
> > vor jedem [r]emerge von "net-libs/webkit-gtk" ein "eselect opengl |
36 |
> > set xorg-x11" und danach ein "eselect opengl set nvidia" |
37 |
> > automagisch ausführt.. (ich vergess das bei einem |
38 |
> > World-Update/-Remerge einfach immer und es bleibt wie im Bug |
39 |
> > dokumentiert natürlich dort hängen...) |
40 |
> |
41 |
> |
42 |
> Hier kenne ich nur postsync.d, was dir aber nicht weiter hilft. |
43 |
|
44 |
Gruss |
45 |
Tobi |
46 |
|
47 |
-- |
48 |
This message may contain confidential and/or privileged information (although it |
49 |
is not encrypted). |
50 |
If you are not the addressee, you must not use, copy, disclose or take any |
51 |
action based on this message or any information herein (just because you are a |
52 |
nice person and mean no harm). |
53 |
If you have received this message in error, please advise the sender |
54 |
immediately by reply e-mail (to give other nice guys the opportunity to not do |
55 |
anything bad with the information) and delete this message. |