View previous topic :: View next topic |
Author |
Message |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Sat Dec 25, 2004 6:00 pm Post subject: [portage] Lista inherited use flags |
|
|
Scusate per la domanda, probabilmente scontata, ma volevo sapere se è possibile ottenere una lista delle use flag "ereditate", ovvero quelle che vengono imposte al sistema dopo l'emersione di particolari programmi
Un tempo sapevo come fare (in make.profile c'era un file che conteneva la lista dei pacchetti che generavano tali use flags), ora però non ci riesco più...
Qualcuno ha idea di come fare?
Ho dato una scorsa alla documentazione e al forum ma, forse per colpa della fretta o della sbadataggine, non ho trovato niente... quindi non esitate ad appiopparmi un bel RTFM nel caso ce ne fosse bisogno (magari ditemi anche qual'è il fottuto manuale da leggere però ) _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Mon Dec 27, 2004 4:08 pm Post subject: |
|
|
up?
Nessuno che sappia come fare?
un modo poco elegante potrebbe essere un diff fra l'output di emerge info |grep USE e le use flags nel make.conf, tuttavia bisognerebbe mettere anche quelle nel profilo che sono lunghe da raccattare visto che bisogna discendere tutto il "cascading profile"... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31461 Location: here
|
Posted: Mon Dec 27, 2004 5:58 pm Post subject: |
|
|
Ma intendi le USE che sono settate dal sistema? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Tue Dec 28, 2004 12:00 pm Post subject: |
|
|
Hai presente quando emergi un programma come mysql e ti ritrovi la use "mysql" settata di default anche se te non l'avevi messa in make.conf (e prima di emergere quel programma non c'era nemmeno nell'output di emerge info)
Mi pare che si chiamano "inherited use flags" ma non ne sono sicuro... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Tue Dec 28, 2004 12:52 pm Post subject: |
|
|
Cazzantonio wrote: | Mi pare che si chiamano "inherited use flags" ma non ne sono sicuro... |
Oibò é vero, /etc/make.profile/use-defaults non c'é più.
Comunque, con l'aiuto di un comodo:
Code: | strace -o emlog.txt emerge -pv php && grep use\.defaults emlog.txt |
si può ricostruire la seguente sequenza di ricerca:
Code: | /usr/portage/profiles/base/use.defaults
/usr/portage/profiles/default-linux/use.defaults
/usr/portage/profiles/default-linux/x86/use.defaults
/usr/portage/profiles/default-linux/x86/2004.0/use.defaults
//etc/portage/profile/use.defaults |
A occhio direi che l'ultimo serve se vuoi personalizzare la cosa, mentre gli altri usano il meccanismo dell'ereditarietà: dal più generico al più specifico, e il più specifico sovrascrive il generico.
Inoltre direi che non é vero che /etc/make.profile/use.defaults é sparito... semplicemnte non lo hanno messo perché sarebbe stato vuoto, ma se ci fosse stato sarebbe stato considerato ![Wink ;-)](images/smiles/icon_wink.gif) _________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Tue Dec 28, 2004 2:56 pm Post subject: |
|
|
buono a sapersi, thanks! ![Smile :)](images/smiles/icon_smile.gif) _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|