View previous topic :: View next topic |
Author |
Message |
lorenzococchi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2007 Posts: 3
|
Posted: Wed Jan 17, 2007 11:21 am Post subject: Ricompilazione dell'intero sistema |
|
|
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? Grazie. _________________ Lorenzo Cocchi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ic3M4n Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/108089865444d4c570e38bb.gif)
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed Jan 17, 2007 11:31 am Post subject: |
|
|
c'è chi dice di utilizzare un 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 |
|
![](templates/gentoo/images/spacer.gif) |
lorenzococchi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2007 Posts: 3
|
Posted: Wed Jan 17, 2007 11:41 am Post subject: |
|
|
Non ho fatto nessun aggiornamento e' solo voglia di capire. Il comando 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 |
|
![](templates/gentoo/images/spacer.gif) |
skypjack l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/125299789148407c8d02083.jpg)
Joined: 05 Aug 2006 Posts: 884 Location: Italia - Firenze
|
Posted: Wed Jan 17, 2007 12:08 pm Post subject: |
|
|
Anticipo i moderatori, così te lo dico bene e non trattandoti come una pezza: leggi la documentazione gentoo.
A buon intenditor... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Wed Jan 17, 2007 12:26 pm Post subject: |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Wed Jan 17, 2007 12:40 pm Post subject: |
|
|
![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by djinnZ on Mon Feb 23, 2009 9:18 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ic3M4n Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/108089865444d4c570e38bb.gif)
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Wed Jan 17, 2007 12:48 pm Post subject: |
|
|
lorenzococchi wrote: | Non ho fatto nessun aggiornamento e' solo voglia di capire. Il comando 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 |
|
![](templates/gentoo/images/spacer.gif) |
lorenzococchi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2007 Posts: 3
|
Posted: Wed Jan 17, 2007 1:42 pm Post subject: [risolto] |
|
|
Ringrazio tutti con la promessa di rileggere con attenzione la documentazione! _________________ Lorenzo Cocchi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kernel78 Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Wed Jan 17, 2007 1:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed Jan 17, 2007 2:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Wed Jan 17, 2007 2:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Wed Jan 17, 2007 2:23 pm Post subject: |
|
|
djinnZ wrote: | -u implica -N ma non viceversa se è quello che non ti era chiaro. |
In realtà è proprio il contrario ...
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 |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Wed Jan 17, 2007 3:24 pm Post subject: |
|
|
![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by djinnZ on Mon Feb 23, 2009 9:18 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kernel78 Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Wed Jan 17, 2007 3:27 pm Post subject: |
|
|
djinnZ wrote: | chiedo venia. Ongi tanto anche chi è perfetto può sbagliare...
perseverare est diabolicum |
Non è vero nemmeno questo, io non sbaglio mai ![Laughing :lol:](images/smiles/icon_lol.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed Jan 17, 2007 3:30 pm Post subject: |
|
|
Kernel78 wrote: | djinnZ wrote: | chiedo venia. Ongi tanto anche chi è perfetto può sbagliare...
perseverare est diabolicum |
Non è vero nemmeno questo, io non sbaglio mai ![Laughing :lol:](images/smiles/icon_lol.gif) |
lol _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Wed Jan 17, 2007 5:11 pm Post subject: |
|
|
Kernel78 wrote: | djinnZ wrote: | chiedo venia. Ongi tanto anche chi è perfetto può sbagliare...
perseverare est diabolicum |
Non è vero nemmeno questo, io non sbaglio mai ![Laughing :lol:](images/smiles/icon_lol.gif) |
L'hai copiata da Coda! ![Laughing :lol:](images/smiles/icon_lol.gif) _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|