Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script per "unmaskare" ebuilds
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
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Sun Mar 23, 2003 3:58 pm    Post subject: Script per "unmaskare" ebuilds Reply with quote

Scusate il subject decisamente inappropriato, ma io ho questo problema: mi capita di voler installare qualche versione aggiornata di un qualche programma, che però nel portage risulta ancora masked (~). Quindi edito il file .ebuild, tolgo la tilde da "~x86" e il gioco è fatto. Ma quando successivamente faccio "emerge rsync", i file vengono sovrascritti dagli originali.

Ho risolto il problema in questo modo: ho creato un file (~/portage) con questa semplice sintassi:
Code:

app-emulation/xmame/xmame-0.62.2-r1
dev-java/blackdown-jre/blackdown-jre-1.4.1
media-libs/freetype/freetype-2.1.3-r2
net-irc/kvirc/kvirc-3.0.0_beta2
net-p2p/lopster/lopster-1.2.0
net-www/mozilla/mozilla-1.3-r1

dove scrivo l'ebuild che voglio usare, ed uno script in bash fatto così:
Code:

#!/bin/bash
for i in $( cat /home/matteo/portage ); do
   if [ -e "/usr/portage/$i.ebuild" ]
      then
         sed '/KEYWORDS/s/~x86/x86/g' /usr/portage/$i.ebuild > /usr/portage/$i.temp
         mv /usr/portage/$i.temp /usr/portage/$i.ebuild
         echo $i.ebuild UNMASKED
      else
         echo /usr/portage/$i.ebuild NON ESISTE
   fi
done

che, lanciato dopo ogni "emerge rsync", sistema tutto.

Spero possa servire a qualcuno :)
Saluti
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sun Mar 23, 2003 4:36 pm    Post subject: Reply with quote

Scusa ma se aggiungi la sequente riga al tuo /etc/make.conf

ACCEPT_KEYWORDS="~x86"

non fai prima ?

Joe
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Sun Mar 23, 2003 5:46 pm    Post subject: Reply with quote

Io non voglio poter installare e avere nel world TUTTE le ebuilds masked... solo quelle che desidero!
Back to top
View user's profile Send private message
whitenoise
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2002
Posts: 88
Location: Genoa , Italy

PostPosted: Sun Mar 23, 2003 7:30 pm    Post subject: Reply with quote

Credo che sia possibile utilizzare
Code:

   ACCEPT_KEYWORDS="~x86" emerge nome_pacchetto

_________________
Gentoo Linux running on TyanMPX, 2* 1600+ AthlonMP, 4*256 Mb Crucial Registered DDR, Adaptec 29160, 2*18GB Fujitsu SCSI 10krpm, Nvidia geforce, SB Live!, 3com905TX, Zyxel 645R.
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Sun Mar 23, 2003 7:39 pm    Post subject: Reply with quote

Si ma il problema è sempre lo stesso... al prossimo
Code:

emerge rsync && emerge -up world

il pacchetto che abbiamo installato con ACCEPT_KEYWORDS="~x86" verrà downgradato (bleah) alla versione unmasked... :)
Back to top
View user's profile Send private message
IgaRyu
Guru
Guru


Joined: 23 Jan 2003
Posts: 302
Location: Verona

PostPosted: Sun Mar 23, 2003 8:24 pm    Post subject: Reply with quote

Sicuro che faccia il down-grade se nel make file c'e' quella variabile settata ?
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Sun Mar 23, 2003 8:35 pm    Post subject: Reply with quote

Code:
emerge -upU world

e non fa il downgrade
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Sun Mar 23, 2003 9:43 pm    Post subject: Reply with quote

AZZ xlyz hai distrutto l'utilità del mio primo bash script... :cry:

Vabbè lo terrò per ricordo :?
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