Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Compilare offline
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)
View previous topic :: View next topic  
Author Message
gentoo_is_better
n00b
n00b


Joined: 07 Jun 2006
Posts: 2

PostPosted: Wed Jun 07, 2006 11:57 pm    Post subject: [Risolto] Compilare offline Reply with quote

Buonasera,

sono nuovo di gentoo e avrei un piccolo problema.
A casa ho fastweb (fibra ottica) e la connessione si disattiva automaticamente dopo mezz'ora di inattività di rete.

Oggi ho provato a emergere xorg ma poichè la compilazione di alcuni di questi pacchetti è molto lunga ho "sforato" la mezz'ora di inattività e la connessione è caduta, impedendomi di emergere gli ultimi 2 pacchetti :roll:

La mia domanda è: esiste un metodo per emergere prima tutto e poi compilarlo "offline"?

Ho cercato sull'handbook ma non ho trovato soluzione..... sorry! :oops:

Grazie a chi vorrà aiutarmi!


Last edited by gentoo_is_better on Mon Jun 12, 2006 8:53 am; edited 1 time in total
Back to top
View user's profile Send private message
stefanonafets
l33t
l33t


Joined: 10 Feb 2003
Posts: 644

PostPosted: Thu Jun 08, 2006 1:06 am    Post subject: Reply with quote

Code:
# man emerge
...
       --fetchonly (-f)
              Instead of doing any package building, just perform fetches  for
              all packages (the main package as well as all dependencies).


rtfm :twisted:
_________________
registered Linux user number #411324
sed 's/ke/che/g'

<The Deployment Slave is initializing>
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Thu Jun 08, 2006 1:15 am    Post subject: Reply with quote

dai cattivone! è così che si da il benvenuto ai nuovi arrivati? :evil:

gentoo_is_better: da parte mia un caloroso benvenuto. spero che qui ti troverai bene, dopotutto siamo tutti amiconi e spinti da una passione in comune.
vorrei aggiungere una cosa a quanto già spiegato da stefanonafets con molte poche parole, io solitamente in fase di download prolungati preferisco portarmi avanti e fare due cose contemporaneamente, cosa che da qualche versione di portage è fattibile.
solitamente io lancio un emerge -f nomepacchetto su una console e nel frattempo su di un'altra inizio la compilazione con emerge nomepacchetto. questo ha un pregio nel momento in cui mi ritrovo con (faccio un'esempio) 3° 4° pacchetto openoffice o comunque devo scaricare sopra i 100 mega di sorgenti in quanto riesco ad ottimizzare maggiormente l'aggiornamento riducendo i tempi morti.
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Thu Jun 08, 2006 9:37 am    Post subject: Reply with quote

dovrebbero aggiungere una feature che lo faccia in automatico, questa cosa la faccio pure io, e non penso che si sia soli.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Thu Jun 08, 2006 11:28 am    Post subject: Reply with quote

In portage-2.1 c'è una nuova FEATURE, "parallelfetch", che dovrebbe svolgere questo compito (ovvero mentre viene compilato un pacchetto, scarica eventualmente i sorgenti degli altri da compilare successivamente)

Se si ha installato portage-2.1* :
Code:

man make.conf

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Thu Jun 08, 2006 11:42 am    Post subject: Reply with quote

l'ho provato, ho portage in testing. devo dire che non mi soddisfa per niente e l'ho tolto.
il problema è abbastanza semplice e si riattacca a quanto detto sopra:
il parallel fetch esegue il download del sorgente del pacchetto successivo, quindi se hai un pacchetto di piccole dimensioni e dopo uno grande devi aspettare che finisca comunque il download con in più una pò di timore reverenziale nei confronti del messaggio che ti compare che suona tipo "waiting for lock file xYz " ovvero lo sta ancora scaricando ma non sai quanto manca, se non lo trova ed è fermo a scandire i mirror e cose del genere. alla fine sono tornato al mio doppio terminale.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Thu Jun 08, 2006 11:57 am    Post subject: Reply with quote

Oppure un
Code:

emerge -f <opzioni> <pacchetti> && emerge <opzioni> <pacchetti>

Così prima scarica tutto e poi emerge tutto.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Thu Jun 08, 2006 3:12 pm    Post subject: Reply with quote

beh... allora piuttosto do un
Code:
emerge -f <opzioni> <pacchetti> & emerge <opzioni> <pacchetti>

altrimenti ho sempre il problema di attendere la fine del download prima di iniziare a compilare le cose. ripeto: mantenere la cpu a 0% non è bello. :wink:
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Thu Jun 08, 2006 4:47 pm    Post subject: Reply with quote

Ic3M4n wrote:
beh... allora piuttosto do un
Code:
emerge -f <opzioni> <pacchetti> & emerge <opzioni> <pacchetti>

Così però rischi di avere due download contemporanei. Capita sicuramente con il primo pacchetto che installi in quanto sia il primo emerge che il secondo non trovano il file tra i distfiles e avviano il download. Almeno credo, non l'ho mai provato :wink:
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Fri Jun 09, 2006 12:30 am    Post subject: Reply with quote

no, il primo che avvii inizia a scaricare ed attiva il lock file. il secondo trova il file di lock e si ferma fino a quando non viene rimosso. le prime versioni di portage avevano il problema che dici tu, ormai sono circa due anni (vado a memoria) che è possibile effettuare questa operazione in maniera trasparente ed efficace.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jun 09, 2006 6:53 am    Post subject: Reply with quote

Ic3M4n wrote:
ormai sono circa due anni (vado a memoria) che è possibile effettuare questa operazione in maniera trasparente ed efficace.

Buono a sapersi! Appena ho tempo proverò anche io! 8)
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Fri Jun 09, 2006 8:27 am    Post subject: Reply with quote

Ic3M4n wrote:
no, il primo che avvii inizia a scaricare ed attiva il lock file.

Quindi posso avviare più emerge paralleli (compilazioni e non download) senza che si spu**ani qualcosa? Buono a sapersi :wink:
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Fri Jun 09, 2006 8:47 am    Post subject: Reply with quote

gli emerge paralleli sembrano funzionare. in ogni caso non è buona norma farli. i motivi principali sono:
non hai un'incremento di prestazioni ma anzi, potresti metterci più tempo perchè lo scheduler deve gestire due processi avidi di risorse contemporaneamente.
potresti avere uno scazzo nel calcolo delle dipendenze e quindi avere alcuni problemi.
non lo farei mai su un sistema in prodizione.

resta il fatto che quando l'ho fatto perchè magari durante un'aggiornamento mi serviva uno script o un programma che nulla centrasse con quanto già in compilazione mi sono azzardato a farlo senza subire nessun problema. ho anche notato che portage 2.1 mette un lock anche a env-update. cosa che le versioni precedenti non fanno. quello è il passo più rischioso, perchè entrambi i processi di emerge tentano di accedere allo stesso file contemporaneamente.
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Fri Jun 09, 2006 12:33 pm    Post subject: Reply with quote

Ic3M4n wrote:
gli emerge paralleli sembrano funzionare. in ogni caso non è buona norma farli.

Si, infatti la mia era una considerazione più teorica che pratica, fermo restando che per pacchetti completamente scorrelati potrebbe essere comodo :wink:
Back to top
View user's profile Send private message
gentoo_is_better
n00b
n00b


Joined: 07 Jun 2006
Posts: 2

PostPosted: Mon Jun 12, 2006 8:53 am    Post subject: Reply with quote

Ok ragazzi, grazie a tutti!

Ho risolto usando prima:
Code:
 emerge -f <nomepacchetto>

tanto non ci mette niente a scaricare i sorgenti e poi dando:
Code:
emerge <nomepacchetto>

e lo lascio a farsi i fatti suoi!

Metto il tag [Risolto].... a presto! :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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