Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proposta miglioramento emerge ( --scripted-update)
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
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Wed Sep 27, 2006 5:38 pm    Post subject: proposta miglioramento emerge ( --scripted-update) Reply with quote

I have a dream, a world where man emerge says:
Code:
--scripted-update: Tells emerge to exclude from update list those packages wich have a new config file format incompatible with the current installed one.
Comes handy when you make scripted updates, to be shure new installed sofware will work (sometimes updated packages require manual changes to the (old) configuration file, or even a totally new one).
Maybe it does something cool for a scripted update too.

This could be set in the ebuild of the new version.

https://forums.gentoo.org/viewtopic-p-3641888.html

Essendo questo il forum italiano mi pare doveroso tradurre per i non anglofoni:

Code:
--scripted-update: dice a emerge di escludere dalla lista degli aggiornamenti quei pacchetti che hanno un nuovo formato del file di configurazione incompatibile con quello attualmente installato.
E' utile quando fai degli aggiornamenti scriptati, per essere sicuto che il nuovo software installato funzioni. (a volte i pacchetti aggiornati richiedono cambiamenti manuali ai file di configurazione, o  addirittura un nuovo file).
Potrebbe anche fare altre cose carine per un update scriptato.


Questa cosa dovrebbe essere scritta nell'ebuild della nuova versione.


Last edited by =DvD= on Thu Oct 12, 2006 8:43 pm; edited 5 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 Sep 27, 2006 5:46 pm    Post subject: Reply with quote

ma scusa... se devi cambiare il file di configurazione in ogni caso dubito che potrebbe andare bene quello di default. quindi il problema non si porrebbe perchè in ogni caso dovresti modificarlo.

oppure non ho ben capito quello che intendi, se la mia osservazione non centra nulla prova a spiegare meglio la cosa.
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Wed Sep 27, 2006 5:50 pm    Post subject: Reply with quote

Semplicemente un flag che non ti aggiorna i programmi se si sa che non funzioneranno con i files di configurazione presenti (che rimanfono quelli della versione vecchia).
Spiegato? :D
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Wed Sep 27, 2006 6:08 pm    Post subject: Reply with quote

adesso si, grazie.
non avevo capito una bega.
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Thu Sep 28, 2006 7:33 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
Quote:

// edit Oh [censura] ho sbagliato forum!

no problem :wink:
_________________
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
View user's profile Send private message
X-Drum
Advocate
Advocate


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

PostPosted: Thu Sep 28, 2006 11:03 am    Post subject: Reply with quote

questa è una delle features che vorrei vedere implementate...

ma piuttosto che delegare il compito a portage via useflag
non sarebbe meglio migliorare etc-update?
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Sep 28, 2006 12:18 pm    Post subject: Reply with quote

Secondo me va bene un semplice warning quando si da "emerge --pretend etc etc", poi è l'utente a decidere se vuole continuare o aggiungere il pacchetto in package.mask
_________________
Running Fast!
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Thu Sep 28, 2006 2:43 pm    Post subject: Reply with quote

Supponi questo caso: il pacchetto XYZ usa questo file di configurazione:
Code:
Opzione 1
Opzione 2
#Opzione 3

L'opzione 3 è incompatibile con la nuova versione, però io non la sto usando nella mia configurazione (è commentata). Cosa succede? Si blocca lo stesso oppure "capisce" che la configurazione è "safe"? Nel primo caso sarebbe fattibile nel senso che basta un flag nell'ebuild che indica che il pacchetto "potrebbe" essere incompatibile con configurazioni di versioni precedenti, la qual cosa però potrebbe avvenire un po' troppo spesso. Il secondo caso secondo me invece è impraticabile.

Spero di essermi spiegato bene :wink:
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Fri Sep 29, 2006 10:21 am    Post subject: Reply with quote

X-Drum wrote:
ma piuttosto che delegare il compito a portage via useflag
non sarebbe meglio migliorare etc-update?


Non dovrebbe essere una use flag, dovrebbe essere un parametro, come -u -D -p :)
E non dovrebbe riguardare etc-update, semplicemente se specifichi il parametro in questione emerge non ti aggiorna programmi che con la nuova versione avrebbero bisogno di un nuovo file di configurazione.
Sarebbe utile per gli aggiornamenti che si fanno per esempio su un server con cron, senza avere paura di sorprese.

Basterebbe che i manteiners di un ebuild a fronte di un cambiamento di file di configurazione lo segnalassero nell'ebuild. (e che emerge fosse capace di vedere questa segnalazione)

emix wrote:
Supponi questo caso: il pacchetto XYZ usa questo file di configurazione:
Code:
Opzione 1
Opzione 2
#Opzione 3

L'opzione 3 è incompatibile con la nuova versione, però io non la sto usando...

Ovviamente si blocca.
Quando farai un aggiornamento che potrai seguire a mano, andrai a vedere che l'opzione non la usi, e allora aggiorni con tranquillita'.

Questa cosa sarebbe per fare aggiornamenti in automatico, senza dover stare dietro a cosa succede/potrebbe succedere (penso a macchine remote, serverini non critici ma cmq dove si spippola ecc ecc)

Luca89 wrote:
Secondo me va bene un semplice warning quando si da "emerge --pretend etc etc", poi è l'utente a decidere se vuole continuare o aggiungere il pacchetto in package.mask


Ma se aggiorni con cron lo warning mica lo vedi :)
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Fri Sep 29, 2006 10:49 am    Post subject: Reply with quote

/me che appoggia la proposta del =Dvd=
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Fri Sep 29, 2006 7:00 pm    Post subject: Reply with quote

Quindi che fareste?
Post nel forum anglofono?
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4811
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Fri Sep 29, 2006 7:22 pm    Post subject: Reply with quote

più che ad una use, mi sembra che si tratti di una feature.

a meno di problemi tecnici che, francamente, non saprei prevedere, questa feature potrebbe anticipare l'installazione dei file di configurazione nella prima fase di compilazione e chiedere all'utente se vuole lanciare etc-update o stoppare emerge.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Fri Sep 29, 2006 7:27 pm    Post subject: Reply with quote

cloc3 wrote:
a meno di problemi tecnici che, francamente, non saprei prevedere, questa feature potrebbe anticipare l'installazione dei file di configurazione nella prima fase di compilazione e chiedere all'utente se vuole lanciare etc-update o stoppare emerge.


Non credo che tutti i pacchetti supportino di installare i file di configurazione prima della compilazione. Quello vuole implementato Dvd, credo si possa fare così: negli ebuild che vogliono configurazioni nuove rispetto alla vecchia version si inserisce un qualcosa del genere:

Code:
STRICT="confchange <category/pacchetto-versione"


Poi emerge si fa il calcolo e scarta i pacchetti che hanno quella variabile nell'ebuild.
_________________
Running Fast!
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Fri Sep 29, 2006 9:36 pm    Post subject: Reply with quote

Luca89 wrote:
[...] Quello vuole implementato Dvd, credo si possa fare così: negli ebuild che vogliono configurazioni nuove rispetto alla vecchia version si inserisce un qualcosa del genere:

Code:
STRICT="confchange <category/pacchetto-versione"


Poi emerge si fa il calcolo e scarta i pacchetti che hanno quella variabile nell'ebuild.


Esattamente
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Thu Oct 12, 2006 8:02 pm    Post subject: Reply with quote

Tiro su' perche' cerco visibilita' ma non ho molto tempo ora :)
Vorrei fare il post sul forum inglese, mi date una mano? (non tanto, ma anche, per l'inglese, quanto per fare un discorso chiaro e breve... :) )?

Code:
--scripted-update: Tells emerge to exclude from update list those packages wich have a new config file format incompatible with the current installed one.
Comes handy when you make scripted updates, to be shure new installed sofware will work (sometimes updated packages require manual changes to the (old) configuration file, or even a totally new one.
Maybe it does something cool for a scripted update too.

This could be set in the ebuild of the new version.


Questo per ora e' ilmeglio che mi viene :)


Last edited by =DvD= on Thu Oct 12, 2006 8:14 pm; edited 4 times in total
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: Thu Oct 12, 2006 8:03 pm    Post subject: Reply with quote

bon, proviamo!!
ci becchiamo su irc?
perche non rigirare direttamente la domanda ai devel?

EDIT: ne abbiamo discusso un po su IM
_________________
"...There are two sort of lies, lies and benchmarks..."


Last edited by X-Drum on Thu Oct 12, 2006 8:36 pm; edited 1 time in total
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: Thu Oct 12, 2006 8:35 pm    Post subject: Reply with quote

sostenete la proposta a spada tratta (if you like it):
https://forums.gentoo.org/viewtopic-p-3641888.html
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Oct 12, 2006 9:07 pm    Post subject: Reply with quote

Vi segnalo inoltre che sarebbe anche utile aprire un bug su bugzilla, come prodotto Portage e come Componente "Conceptual/Abstract ideas", link
_________________
Running Fast!
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: Thu Oct 12, 2006 9:09 pm    Post subject: Reply with quote

Luca89 wrote:
Vi segnalo inoltre che sarebbe anche utile aprire un bug su bugzilla, come prodotto Portage e come Componente "Conceptual/Abstract ideas", link

si prima di aprirlo o contattare i developers, con i mezzi ufficiali
=DVD= pensava di sottoporre la cosa agli utenti per sondare le varie opinioni
(sperando che ce ne siano)
_________________
"...There are two sort of lies, lies and benchmarks..."
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