Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RIS] Solo versione stable di un pacchetto su gentoo testing
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
doom555
n00b
n00b


Joined: 29 Oct 2012
Posts: 57

PostPosted: Mon Oct 29, 2012 7:09 pm    Post subject: [RIS] Solo versione stable di un pacchetto su gentoo testing Reply with quote

Salve a tutti, forse la richiesta è banale, ma non riesco a trovare soluzione:
Ho un istallazione di Gentoo testing, avrei bisogno di permettere l'istallazione di un determinato pacchetto solo in versione stabile. (Non voglio di certo mascherare e smascherare di volta in volta i pacchetti).

Leggendo l'handbook dice come permettere il contrario, ovvero come in un installazione stable permettere un pacchetto testing:
http://www.gentoo.org/doc/it/handbook/handbook-x86.xml?part=3&chap=3


Last edited by doom555 on Tue Oct 30, 2012 2:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Mon Oct 29, 2012 10:19 pm    Post subject: Reply with quote

prova a creare /etc/portage/env/categoria/pacchetto ove pacchetto è un file di testo che conterrà ACCEPT_KEYWORDS="amd64" e env/categoria sono cartelle.
Back to top
View user's profile Send private message
doom555
n00b
n00b


Joined: 29 Oct 2012
Posts: 57

PostPosted: Tue Oct 30, 2012 12:35 am    Post subject: Reply with quote

ago wrote:
prova a creare /etc/portage/env/categoria/pacchetto ove pacchetto è un file di testo che conterrà ACCEPT_KEYWORDS="amd64" e env/categoria sono cartelle.


Purtroppo non funziona! :cry:

Ad esempio:
Code:
# cat /etc/portage/env/net-misc/tor
ACCEPT_KEYWORDS="x86"
# emerge --pretend tor

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

Calculating dependencies... done!
[ebuild     U  ] net-misc/tor-0.2.4.5_alpha [0.2.2.39] USE="bufferevents%* -nat-pmp% -stats% -upnp% -web%"

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
# eix net-misc/tor
[U] net-misc/tor
     Available versions:  0.2.2.38 0.2.2.39 (~)0.2.3.23_rc (~)0.2.3.24_rc (~)0.2.4.4_alpha (~)0.2.4.5_alpha {{+bufferevents nat-pmp selinux stats threads tor-hardening (+)transparent-proxy upnp web}}
     Installed versions:  0.2.2.39(20:22:20 29/10/2012)(threads tor-hardening transparent-proxy -selinux)
     Homepage:            http://www.torproject.org/
     Description:         Anonymizing overlay network for TCP
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Tue Oct 30, 2012 9:26 am    Post subject: Reply with quote

doom555 wrote:
Code:
 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Anche se non riguarda il tuo problema, ti consiglio comunque di leggere le news di Portage come suggerito:
Code:
eselect news read new
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


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

PostPosted: Tue Oct 30, 2012 9:32 am    Post subject: Reply with quote

anche io credevo che il sistema /etc/portage/env funzionasse al modo che ti ha suggerito ago, ma credo che, da qualche versione di portage a questa parte, sia cambiato. (purtroppo non ho tempo di cercarti documentazione, vedi se si trova in giro qualcosa).

prova così:
  • in /etc/portage/package.env
    Code:
    cat-egoria/pacchetto <file_env>

  • in /etc/portage/env/<file_env> metti i tuoi override per le variabili di ambiente di portage, in questo caso
    Code:
    ACCEPT_KEYWORDS="x86"



In ogni caso sul mio github trovi come lo sto attualmente utilizzando e ti assicuro che funziona. C'è anche la "sintassi" vecchia, ma quella non credo funzioni più.

Se nemmeno così funziona ti consiglio di aprire un bug report come "feature request" e di sentire cose ne dicono i developer di portage.
_________________
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
doom555
n00b
n00b


Joined: 29 Oct 2012
Posts: 57

PostPosted: Tue Oct 30, 2012 10:54 am    Post subject: Reply with quote

fturco wrote:
doom555 wrote:
Code:
 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Anche se non riguarda il tuo problema, ti consiglio comunque di leggere le news di Portage come suggerito:
Code:
eselect news read new

Si è vero, da un po che non le leggevo, l'avviso mi passa inosservato! Infatti mi ero perso lo spostamento di make.conf e di make.profile...

Onip wrote:
anche io credevo che il sistema /etc/portage/env funzionasse al modo che ti ha suggerito ago, ma credo che, da qualche versione di portage a questa parte, sia cambiato. (purtroppo non ho tempo di cercarti documentazione, vedi se si trova in giro qualcosa).

prova così:
  • in /etc/portage/package.env
    Code:
    cat-egoria/pacchetto <file_env>

  • in /etc/portage/env/<file_env> metti i tuoi override per le variabili di ambiente di portage, in questo caso
    Code:
    ACCEPT_KEYWORDS="x86"



In ogni caso sul mio github trovi come lo sto attualmente utilizzando e ti assicuro che funziona. C'è anche la "sintassi" vecchia, ma quella non credo funzioni più.

Se nemmeno così funziona ti consiglio di aprire un bug report come "feature request" e di sentire cose ne dicono i developer di portage.

Neanche come mi hai descritto funziona, la documentazione di quel metodo è qui!

Il problema è che non funziona neache passando la variabile direttamente, ad esempio:
Code:
# ACCEPT_KEYWORDS="x86" emerge --pretend tor

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

Calculating dependencies... done!
[ebuild     U  ] net-misc/tor-0.2.4.5_alpha [0.2.2.39] USE="bufferevents%* -nat-pmp% -stats% -upnp% -web%"


Riguardo il tuo github mi pare di capire che utilizzi stable e pemetti solo alcuni pacchetti testing tramite package.accept_keywords... sarebbe troppo laborioso invertire il funzionamento!

EDIT: Aperto il bug report: https://bugs.gentoo.org/show_bug.cgi?id=440252
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


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

PostPosted: Tue Oct 30, 2012 11:45 am    Post subject: Reply with quote

doom555 wrote:

Riguardo il tuo github mi pare di capire che utilizzi stable e pemetti solo alcuni pacchetti testing tramite package.accept_keywords... sarebbe troppo laborioso invertire il funzionamento!

sicuramente, infatti volevo solo farti vedere l'utilizzo dell'override delle variabili d'ambiente.

seguirò la questione su bugzilla perchè mi incuriosisce.
_________________
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
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Tue Oct 30, 2012 12:53 pm    Post subject: Reply with quote

Basta mettere in /etc/portage/package.keywords
Code:

categoria/pacchetto -~amd64
Back to top
View user's profile Send private message
doom555
n00b
n00b


Joined: 29 Oct 2012
Posts: 57

PostPosted: Tue Oct 30, 2012 2:11 pm    Post subject: Reply with quote

publiosulpicio wrote:
Basta mettere in /etc/portage/package.keywords
Code:

categoria/pacchetto -~amd64

Esatto, era questa la soluzione, la stessa che mi hanno segnalato anche su bugs.gentoo.org... Purtroppo ignoravo la possibilità di utilizzo dell'operatore - per poter escludere una keyword! :oops:

Quindi nell'esempio di prima:
Code:
# grep tor /etc/portage/package.accept_keywords
net-misc/tor -~x86
# emerge --pretend tor

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

Calculating dependencies... done!
[ebuild   R    ] net-misc/tor-0.2.2.39
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


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

PostPosted: Tue Oct 30, 2012 2:51 pm    Post subject: Reply with quote

tante seghe mentali e poi era la più semplice. meglio così :lol:
_________________
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
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