Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ricompilazione dell'intero sistema
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
lorenzococchi
n00b
n00b


Joined: 17 Jan 2007
Posts: 3

PostPosted: Wed Jan 17, 2007 11:21 am    Post subject: Ricompilazione dell'intero sistema Reply with quote

Sono un nuovo utente "gentoo" e mi scuso per eventuali imprecisioni. Nel caso di nuove flags o aggiornamento del compilatore per ricompilare l'intero sistema sono questi i comandi da eseguire?
Code:
emerge -eav system
Code:
emerge -eav world
Grazie.
_________________
Lorenzo Cocchi
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Jan 17, 2007 11:31 am    Post subject: Reply with quote

c'è chi dice di utilizzare un
Code:
emerge -uDN world
che è sufficiente e chi per sicurezza utilizza un'
Code:
emerge -e system
emerge -e world

che aggiornamento hai fatto al compilatore? se è una minor release ti basta l'emerge -uDN world.
Back to top
View user's profile Send private message
lorenzococchi
n00b
n00b


Joined: 17 Jan 2007
Posts: 3

PostPosted: Wed Jan 17, 2007 11:41 am    Post subject: Reply with quote

Non ho fatto nessun aggiornamento e' solo voglia di capire. Il comando
Code:
emerge -uDN world
non dovrebbe funzionare solo nel caso di nuove USE e ricompilare il "solo" programma con le nuove USE e le sue dipendenze? Grazie.
_________________
Lorenzo Cocchi
Back to top
View user's profile Send private message
skypjack
l33t
l33t


Joined: 05 Aug 2006
Posts: 884
Location: Italia - Firenze

PostPosted: Wed Jan 17, 2007 12:08 pm    Post subject: Reply with quote

Anticipo i moderatori, così te lo dico bene e non trattandoti come una pezza: leggi la documentazione gentoo.
A buon intenditor...
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Jan 17, 2007 12:26 pm    Post subject: Reply with quote

se l'upgrade del compilatore è "importante" ( tipo 3.3.x -> 3.4.x o 3.4.x -> 4.x.y ) allora la soluzione più prudente (anche se più laboriosa) è la ricompilazione di tutti i pacchetti. Quindi
Code:
# emerge -e world
Solo quello in quanto così è compreso anche il system.

In caso di cambio di flags relative alla compilazione ( CFLAGS, CXXFLAGS, LDFLAGS ) logicamente se vuoi che vengano applicate ai pacchetti installati li devi ricompilare, quindi anche qui dovresti ricompilare il mondo. In genere, però, io preferisco aspettare che i pacchetti si ricompilino "da soli" durante i periodici aggiornamenti.

Se cambi le USE flags o altre variabili simili (LINGUAS VIDEO_CARDS...) basta un semplice
Code:
# emerge -DuNav world


Chiaro?

Byez

p.s. una letta alle doc, comunque, te la consiglio.
p.p.s. benvenuto!
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Wed Jan 17, 2007 12:40 pm    Post subject: Reply with quote

:twisted:
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:


Last edited by djinnZ on Mon Feb 23, 2009 9:18 pm; edited 3 times in total
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Jan 17, 2007 12:48 pm    Post subject: Reply with quote

lorenzococchi wrote:
Non ho fatto nessun aggiornamento e' solo voglia di capire. Il comando
Code:
emerge -uDN world
non dovrebbe funzionare solo nel caso di nuove USE e ricompilare il "solo" programma con le nuove USE e le sue dipendenze? Grazie.

allora: specifica cosa intendi con flags, le flag use o le cflags cxxflags?
il cambio di compilatore? da che versione a che versione?
nel caso delle flag use come ti ho detto basta ricompilare utilizzando la N i soli pacchetti che utilizzano la flag use in questione, nel caso tu stia parlando delle cflags segui quanto detto da Onip.

per quanto riguarda il compilatore credo che tu non debba effettuare nessuna ricompilazione del world. se hai appena installato hai utilizzato la 2006.1 che di default utilizza gcc 4.x il passaggio di minor release non comporta nessun problema e può essere fatto in tutta sicurezza. l'unica eccezione storica è stato il passaggio dal 3.3 al 3.4.
Back to top
View user's profile Send private message
lorenzococchi
n00b
n00b


Joined: 17 Jan 2007
Posts: 3

PostPosted: Wed Jan 17, 2007 1:42 pm    Post subject: [risolto] Reply with quote

Ringrazio tutti con la promessa di rileggere con attenzione la documentazione!
_________________
Lorenzo Cocchi
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed Jan 17, 2007 1:54 pm    Post subject: Reply with quote

djinnZ wrote:
-u implica -N

Non è assolutamente vero ...
Code:
USE="-*" emerge -uDpv world
infatti non mostra nessun pacchetto da ricompilare (se il sistema è già stato aggiornato)
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Jan 17, 2007 2:01 pm    Post subject: Reply with quote

Ic3M4n wrote:
e chi per sicurezza utilizza un'
Code:
emerge -e system
emerge -e world



io uso questo approccio in caso di modifiche massive:
cambio delle CFLAGS o passaggio a nuovo compilatore (major release):
Code:
emerge --oneshot -av libtool
emerge -eav system
emerge -eav world


in tal modo i pacchetti in system vengono emersi 2 volte, però il processo di
aggiornamento in tal modo non è mai fallito, anche su macchine poco aggiornate
o in pessime condizioni
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2495
Location: イタリアのロディで

PostPosted: Wed Jan 17, 2007 2:14 pm    Post subject: Reply with quote

djinnZ wrote:
ricompilare il "solo" programma con le nuove USE è -DN con u aggiorna il sistema.
-u implica -N ma non viceversa se è quello che non ti era chiaro.

Sei sicuro?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Jan 17, 2007 2:23 pm    Post subject: Reply with quote

djinnZ wrote:
-u implica -N ma non viceversa se è quello che non ti era chiaro.

In realtà è proprio il contrario :wink: ...
Code:
Hal9000 ~ # emerge -Npv world
>>> --newuse implies --update... adding --update to options.

These are the packages that would be merged, in order:
[cut]


Byez
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Wed Jan 17, 2007 3:24 pm    Post subject: Reply with quote

:twisted:
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:


Last edited by djinnZ on Mon Feb 23, 2009 9:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed Jan 17, 2007 3:27 pm    Post subject: Reply with quote

djinnZ wrote:
chiedo venia. Ongi tanto anche chi è perfetto può sbagliare... :lol:
perseverare est diabolicum

Non è vero nemmeno questo, io non sbaglio mai :lol:
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Jan 17, 2007 3:30 pm    Post subject: Reply with quote

Kernel78 wrote:
djinnZ wrote:
chiedo venia. Ongi tanto anche chi è perfetto può sbagliare... :lol:
perseverare est diabolicum

Non è vero nemmeno questo, io non sbaglio mai :lol:

lol
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2495
Location: イタリアのロディで

PostPosted: Wed Jan 17, 2007 5:11 pm    Post subject: Reply with quote

Kernel78 wrote:
djinnZ wrote:
chiedo venia. Ongi tanto anche chi è perfetto può sbagliare... :lol:
perseverare est diabolicum

Non è vero nemmeno questo, io non sbaglio mai :lol:


L'hai copiata da Coda! :lol:
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum