View previous topic :: View next topic |
Author |
Message |
tuxer Guru
Joined: 10 May 2004 Posts: 328
|
Posted: Wed May 04, 2005 10:07 am Post subject: due domandine su portage... |
|
|
Visto che non trovo chiedo qui, e ne approfitto per essere veramente IN
E' possibile dire a portage di installare un pacchetto SEMPRE in una root diversa da / e automaticamente??
Cioè da man make.conf ho visto che ROOT c'è come variabile, però è possibile settare in un file questa impostazione?
tipo sys-apps/kernel ROOT=/mnt/kernel
In man portage non ho trovato nulla, ma magari qualche trucco nascosto lo permette... |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed May 04, 2005 10:13 am Post subject: |
|
|
credo che il man sia aitoesplicativo:
Quote: | ROOT = [path]
Use ROOT to specify the target root filesystem to be used for
merging packages or ebuilds. Typically, you should set this
setting in the environment rather than in /etc/make.conf itself.
It's typically used for creating new build images.
Defaults to /.
|
il problema è che attuvando questa opzione TUTTI i pacchetti nuovi che emergi ci finiscono, quindi "tipicamente" non viene usata.
se la imposti emergi il pacchetto che ti serve e la togli non vedo che problemi possano esserci. a parte questo... a che ti serve? nel senso è una cosa molto particolare se uno ne sente la necessità qualcosa "bolle in pentola!" |
|
Back to top |
|
|
tuxer Guru
Joined: 10 May 2004 Posts: 328
|
Posted: Wed May 04, 2005 10:16 am Post subject: |
|
|
Non serve a me anche se comunque mi interessava...
Naturalmente non la metterei in make.conf, mi domandavo solo se era possibile mettere dei settaggi locali per i pacchetti oltre che per le use e le keywords anche per altre opzioni, non è proprio possibile? |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed May 04, 2005 10:24 am Post subject: |
|
|
che io sappia no anche perchè il make.conf è in pratica un file make che racoglie tutti i makefile di ogni pacchetto. se vuoi modificare la destinazione di un singolo pacchetto credo che tu debba editare a mano il makefile in questione. oppure ti puoi fare un piccolo script che inserisce nel make.conf la linea da te richiesta se il nome del pacchetto da emergere è contenuto in un file... che ne so una cosa tipo /etc/portage/packages.keywords
questa (che ho scritto) secondo me è tutta fantainformatica. non saprei andare oltre perchè le mie conoscenze non sono un granchè soprattutto a livello di scripting. |
|
Back to top |
|
|
|