View previous topic :: View next topic |
Author |
Message |
Kill-Bill n00b
Joined: 08 Apr 2006 Posts: 19
|
Posted: Fri May 19, 2006 12:15 pm Post subject: emerge world e pacchetti instabili |
|
|
scusate se non sono preciso come tanti di voi più esperti di me...
ho installato qualche pacchetto instabile (ad esempio la nuova versione di amsn) quindi quando vado a fare l' "emerge world" ho una decina di pacchetti che risultano tipo questo:
[ebuild UD] net-im/amsn-0.94 [0.95-r2]
c'è un modo per fare l'emerging dicendogli di non emergere i pacchetti con la "D" ? (apparte mascherare i pacchetti naturalmente)
grazie a tutti |
|
Back to top |
|
|
Onip Advocate
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Fri May 19, 2006 12:26 pm Post subject: |
|
|
probabilmente li hai installati nel modo deprecato
Code: | # ACCEPT_KEYWORDS="~x86" emerge amsn |
vero?
La soluzione è inserire una riga per ogni pacchetto nel file /etc/portage/package.keywords. Questo è il procedimento corretto per smascherare i pacchetti. In quanto alla sintassi di quel file ti rimando al man di portage oppure alla documentazione online...
Byez _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
|
Kill-Bill n00b
Joined: 08 Apr 2006 Posts: 19
|
Posted: Fri May 19, 2006 12:31 pm Post subject: |
|
|
Onip wrote: | probabilmente li hai installati nel modo deprecato
Code: | # ACCEPT_KEYWORDS="~x86" emerge amsn |
vero?
La soluzione è inserire una riga per ogni pacchetto nel file /etc/portage/package.keywords. Questo è il procedimento corretto per smascherare i pacchetti. In quanto alla sintassi di quel file ti rimando al man di portage oppure alla documentazione online...
Byez |
si esatto ho fatto così
però visto che non è solo amsn ma sono diversi pacchetti
e visto che cmq linux riconosce i pacchetti perchè li contrassegna con una "D" accanto alla "U" di update volevo sapere se esisteva un metodo per dirgli "quelli con la D non li emergere" |
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Fri May 19, 2006 12:38 pm Post subject: |
|
|
tutti i "pacchetti con la D" li devi aggiungere in package.keywords per non fargli fare il downgrade. Prova questo comando che dovrebbe farlo in un sol colpo:
Code: | emerge -puD world|grep UD|awk '{print $4; }' >> /etc/portage/package.keywords |
non l'ho provato bene ma dovrebbe andare, al limite prima lancialo senza la redirezione dell'output per vedere se ha filtrato correttamente i pacchetti. _________________ Running Fast! |
|
Back to top |
|
|
Kill-Bill n00b
Joined: 08 Apr 2006 Posts: 19
|
Posted: Mon May 29, 2006 3:19 pm Post subject: |
|
|
la soluzione era facilissima
bastava fare "emerge -U world" invece che "emerge -u world"
|
|
Back to top |
|
|
Onip Advocate
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Mon May 29, 2006 3:24 pm Post subject: |
|
|
in realtà -U è deprecato... _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Mon May 29, 2006 4:05 pm Post subject: |
|
|
io ho un problema con questo dopo aver provato ad installar xgl:
Code: | AsusA6V ~ # emerge --info
Portage 2.1_rc3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.0
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups dba dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imlib ipv6 isdnlog jpeg kde kernel_linux lcms libg++ libwww mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png posix pppd python qt quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vorbis x86 xml xml2 xmms xorg xsl xv zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
|
questo se non sbaglio è il consiglio:
Code: | AsusA6V ~ # cat /etc/portage/package.keywords
x11-drivers/xf86-video-intel ~x86
bs/glitz
media-libs/mesa
x11-apps/mesa-progs
sys-apps/man
x11-base/xgl
x11-libs/cairo
x11-libs/qt
x11-misc/util-macros
x11-proto/glproto
x11-wm/compiz-quinnstorm
x11-wm/compiz-vanilla
x11-libs/libwnck
x11-misc/xwinwrap #movies/openGL screensaver on desktop as in Novel video: optional
virtual/xft
|
ma alla fine:
Code: | AsusA6V ~ # emerge -upD world
These are the packages that would be merged, in order:
Calculating world dependencies -
!!! All ebuilds that could satisfy "x11-drivers/xf86-video-intel" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-drivers/xf86-video-intel-1.6.0_alpha20060413 (masked by: missing keyword)
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "x11-base/xorg-x11-7.0-r1" [ebuild])
!!! Problem resolving dependencies for x11-base/xorg-x11
!!! Depgraph creation failed.
AsusA6V ~ # emerge -UD world -p
!!! Error: -U is an invalid short action or option.
|
dovw sbaglio? |
|
Back to top |
|
|
knefas l33t
Joined: 21 Dec 2003 Posts: 828
|
Posted: Mon May 29, 2006 5:16 pm Post subject: |
|
|
Due cose.
1) -U e' deprecato e' non va mai usato. Non esiste, e' morto. RIP
2) x11-drivers/xf86-video-intel-1.6.0_alpha20060413 (masked by: missing keyword) dice che l'ebuild non ha nessuna keyword. Ora, siccome non e' nel portage xf86-video-intel, suppongo che sia in un tuo overlay. Devi editarlo e mettergli una keyword. Lo editi, e ci metti KEYWORDS="~x86". O la tua arch. |
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Mon May 29, 2006 5:43 pm Post subject: |
|
|
Kill-Bill wrote: |
la soluzione era facilissima
bastava fare "emerge -U world" invece che "emerge -u world"
|
usare -U ti porterà ben presto alla corruzione del sistema. _________________ Running Fast! |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Tue May 30, 2006 12:09 am Post subject: |
|
|
al posto di editare l'ebuild puoi mettere -* nel package.keywords al posto di ~x86 |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Tue May 30, 2006 7:57 am Post subject: |
|
|
Ic3M4n wrote: | al posto di editare l'ebuild puoi mettere -* nel package.keywords al posto di ~x86 |
Beh, dato che si tratta di un overlay mi sa che é meglio se modifica l'ebuild. Giusto per lasciare "pulite" le cose di portage
Per il resto... non posso che confermare:
- ACCEPT_KEYWORDS é deprecato, usare /etc/portage/package.keywords
- -U é deprecato e da non usare, usare /etc/portage/package.keywords
- Non si editano gli ebuild ufficiali, usare i files in /etc/portage/
_________________ Ciao da me! |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue May 30, 2006 9:09 am Post subject: |
|
|
il dilembo non ha ancora fine
Code: | AsusA6V Desktop # uname -a
Linux AsusA6V 2.6.16-gentoo-r8 #4 PREEMPT Sun May 28 13:56:54 CEST 2006 i686 Intel(R) Pentium(R) M processor 1.73GHz GNU/Linux
AsusA6V Desktop # cat /etc/portage/package.keywords
x11-drivers/xf86-video-intel -*
bs/glitz
media-libs/mesa
x11-apps/mesa-progs
sys-apps/man
x11-base/xgl
x11-libs/cairo
x11-libs/qt
x11-misc/util-macros
x11-proto/glproto
x11-wm/compiz-quinnstorm
x11-wm/compiz-vanilla
x11-libs/libwnck
x11-misc/xwinwrap #movies/openGL screensaver on desktop as in Novel video: optional
virtual/xft
AsusA6V Desktop # emerge -uD world --pretend
These are the packages that would be merged, in order:
Calculating world dependencies... done!
[blocks B ] x11-drivers/xf86-video-i810 (is blocking x11-drivers/xf86-video-intel-1.6.0_alpha20060413)
[ebuild U ] app-admin/perl-cleaner-1.04 [1.03]
[ebuild U ] x11-misc/util-macros-1.0.2 [1.0.1]
[ebuild U ] media-libs/alsa-lib-1.0.11-r1 [1.0.11]
[ebuild U ] media-libs/jpeg-6b-r7 [6b-r6]
[ebuild U ] x11-libs/libdrm-2.1_alpha20060313 [2.0.1]
[ebuild U ] media-libs/mesa-6.5.1_alpha20060524 [6.5.1_alpha20060515]
[ebuild U ] dev-libs/glib-2.10.3 [2.10.2]
[ebuild U ] x11-libs/gtk+-2.8.18 [2.8.17]
[ebuild U ] media-libs/libsdl-1.2.10 [1.2.9-r1]
[ebuild U ] dev-libs/libksba-0.9.14 [0.9.13]
[ebuild U ] x11-wm/metacity-2.15.3 [2.14.3] USE="-compositor%"
[ebuild N ] gnome-base/gnome-mount-0.4-r3 USE="-debug"
[ebuild N ] gnome-base/gnome-volume-manager-1.5.15-r1 USE="crypt -debug -doc"
[ebuild U ] app-editors/vim-core-7.0.17 [7.0-r2]
[ebuild U ] app-editors/vim-7.0.17 [7.0-r2]
[ebuild N ] app-text/rcs-5.7-r3
[ebuild N ] dev-util/git-1.3.3 USE="X -curl -doc -emacs -mozsha1 -webdav"
[ebuild N ] x11-drivers/xf86-video-intel-1.6.0_alpha20060413 USE="dri -debug"
[ebuild U ] dev-python/pysqlite-2.2.2-r1 [2.2.2]
AsusA6V Desktop #
|
come risolvo, qualcuno può aiutarmi? |
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Tue May 30, 2006 9:11 am Post subject: |
|
|
dovresti eliminare il pacchetto che blocca, ovvero questo:
Code: | [blocks B ] x11-drivers/xf86-video-i810 (is blocking x11-drivers/xf86-video-intel-1.6.0_alpha20060413) |
_________________ Running Fast! |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Tue May 30, 2006 9:45 am Post subject: |
|
|
randomaze wrote: | Ic3M4n wrote: | al posto di editare l'ebuild puoi mettere -* nel package.keywords al posto di ~x86 |
Beh, dato che si tratta di un overlay mi sa che � meglio se modifica l'ebuild. Giusto per lasciare "pulite" le cose di portage
Per il resto... non posso che confermare:
- ACCEPT_KEYWORDS � deprecato, usare /etc/portage/package.keywords
- -U � deprecato e da non usare, usare /etc/portage/package.keywords
- Non si editano gli ebuild ufficiali, usare i files in /etc/portage/
|
è la stessa identica cosa. non cambia assolutamente nulla nel fare una cosa o l'altra. non si aggiungono o rimuovono dipendenze di alcun tipo. solo che può essere più comodo gestire un pacchetto (o molti) che voglio mettere da overlay marcati con missing keywords smascherandoli con portage che editando ll'ebuild per il semplice motivo che se in un futuro decidessi di tornare sui miei passi potrei farlo semplicemente rimuovendo le righe interessate dal package.keywords senza dover editare ogni singolo ebuild. |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue May 30, 2006 10:31 am Post subject: |
|
|
randomaze wrote: |
ACCEPT_KEYWORDS é deprecato, usare /etc/portage/package.keywords |
penso di aver capito abbastanza bene come si utilizza /etc/portage/package.keywords, ora mi piacerebbe togliere Accept_keywords dal mio /etc/make.conf,ma penso che non basti rimuovere la suddetta riga e poi package.keywords si aggiorna da solo
Immagino poi che sia molti i pacchetti che sono stati installati
nel mio sistema in questo modo, esite qualche modo per riconoscerli tutti abbastanza velovemente per poi aggiornare a dovere package.keywords? |
|
Back to top |
|
|
u238 Guru
Joined: 04 Mar 2005 Posts: 373
|
Posted: Tue May 30, 2006 10:53 am Post subject: |
|
|
mi sa che ti aspetta 1 pò di lavoro..
..prova a togliere "ACCEPT_KEYWORDS" dal make.conf, e prova a dare un emerge -DNupv world, e vedi quali pacchetti vuole downgradarti (la flag D), prendi quelli e li metti in package.keywords.. poi riprovi a dare l'emerge e dovrebbe non volerti + downgradarti niente.. io farei così, magari poi c'è sicuramente 1 modo migliore |
|
Back to top |
|
|
Onip Advocate
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Tue May 30, 2006 11:05 am Post subject: |
|
|
un momento, ACCEPT_KEYWORDS non è deprecato all'interno di /etc/make.conf. E' deprecato il suo uso a linea di comando quando si emerge qualcosa. es
Code: | ACCEPT_KEYWORDS="~x86" emerge abcde |
Questo non va fatto, ma bisogna editare il file /etc/portage/package.keywords. Nel make.conf ci vuole, eccome: serve a specificare la keyword che si vuole accettare di default per gli ebuild _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Tue May 30, 2006 11:06 am Post subject: |
|
|
lucapost wrote: | penso di aver capito abbastanza bene come si utilizza /etc/portage/package.keywords, ora mi piacerebbe togliere Accept_keywords dal mio /etc/make.conf,ma penso che non basti rimuovere la suddetta riga e poi package.keywords si aggiorna da solo
Immagino poi che sia molti i pacchetti che sono stati installati
nel mio sistema in questo modo, esite qualche modo per riconoscerli tutti abbastanza velovemente per poi aggiornare a dovere package.keywords? |
lavorando sull'output di emerge con sed, awk e via dicendo credo che si può automatizzare la cosa. _________________ Running Fast! |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Tue May 30, 2006 12:53 pm Post subject: |
|
|
Kill-Bill wrote: | bastava fare "emerge -U world" invece che "emerge -u world" |
Leggi bene la documentazione. Se continuando ad usare cose deprecate riscontri problemi accertati di riuscire poi a risolverteli da solo _________________ 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 |
|
|
Kill-Bill n00b
Joined: 08 Apr 2006 Posts: 19
|
Posted: Tue May 30, 2006 6:10 pm Post subject: |
|
|
Cazzantonio wrote: | Kill-Bill wrote: | bastava fare "emerge -U world" invece che "emerge -u world" |
Leggi bene la documentazione. Se continuando ad usare cose deprecate riscontri problemi accertati di riuscire poi a risolverteli da solo |
si Cazzantò, io chiedevo solamente... poi se qualcuno mi vuole rispondere bene, altrimenti pazienza, mi arrangio da solo. già è tanto che Gentoo mette a disposizione un Sistema Operativo gratuito e così ben supportato.
però se qualcuno mi può dare una mano, se si può....
cmq non capisco una cosa, se faccio "emerge -Up world" mi dice che ci sono 3 pacchetti da emergere
se invece faccio "emerge -up world" prima di quei tre pacchetti me ne mette altri tre che sono:
nvidia-kernel-1.0.6629-r5
nvidia-glx-1.0.6629-r7
amsn-0.94
non capisco perchè dite che non devo fare "emerge -U world" visto che mi elimina dalla lista dell'emerge i pacchetti che non voglio emergere e che ora mi vanno benissimo |
|
Back to top |
|
|
knefas l33t
Joined: 21 Dec 2003 Posts: 828
|
Posted: Tue May 30, 2006 7:08 pm Post subject: |
|
|
Kill-Bill wrote: | non capisco perchè dite che non devo fare "emerge -U world" visto che mi elimina dalla lista dell'emerge i pacchetti che non voglio emergere e che ora mi vanno benissimo |
Allora emerge -U world e' uno sfortunatissimo comando. Non dovrebbe esistere e infatti nelle nuove versioni di portage non esiste piu'. Ci sono varie ragioni per non usarlo, comunque in generale, se portage vuole downgradare qualcosa (cioe' emergere una versione precedente) e' perche' qualcosa con la versione installata non va. Ci sono degli errori, e' stata mascherata, ci sono dei problemi. Mi pare di ricordare che ci fosse stato ad un certo punto un problema con module-init-tools. E' stato prontamente masched, ma se non lo si downgradava...beh, avevi il sistema **uto.
Questo e' un post inglese che spiega la decisione, se cerchi nel forum ce ne sono parecchi.
L'altra ragione e' che non serve. Leggi bene, non serve. Usando per bene package.keywords e package.masked non c'e' ragione per usare -U. |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue May 30, 2006 7:42 pm Post subject: |
|
|
ciao, ritorno al problema con
x11-drivers/xf86-video-intel-1.6.0_alpha20060413
e
x11-drivers/xf86-video-i810
la situazione aggiornata e la seguente: Code: | AsusA6V ~ # cat /etc/portage/package.keywords
x11-drivers/xf86-video-intel -*
bs/glitz
media-libs/mesa
x11-apps/mesa-progs
sys-apps/man
x11-base/xgl
x11-libs/cairo
x11-libs/qt
x11-misc/util-macros
x11-proto/glproto
x11-wm/compiz-quinnstorm
x11-wm/compiz-vanilla
x11-libs/libwnck
x11-misc/xwinwrap #movies/openGL screensaver on desktop as in Novel video: optional
virtual/xft
|
ma emerge -uD world mi da ancora:
Code: | AsusA6V home # emerge -uD world --pretend
These are the packages that would be merged, in order:
Calculating world dependencies... done!
[blocks B ] x11-drivers/xf86-video-i810 (is blocking x11-drivers/xf86-video-intel-1.6.0_alpha20060413)
[ebuild UD] dev-db/sqlite-3.2.7-r1 [3.3.5-r1]
|
ma cosa c'è che non va?
ps: ho dato un'occhiata qua: http://www.gentoo.org/doc/it/handbook/handbook-x86.xml?part=3&chap=3, e ho trovato questa riga: "Una cosa da tenere bene in mente è che se si aggiorna il sistema in uso alla branca di test non c'è un modo semplice per tornare alla branca stabile (eccetto l'uso di backup naturalmente)."
Non è grave vero? |
|
Back to top |
|
|
knefas l33t
Joined: 21 Dec 2003 Posts: 828
|
Posted: Tue May 30, 2006 7:46 pm Post subject: |
|
|
La soluzione e' stata proposta un po' di post piu' in alto, e cioe' cosi':
Luca89 wrote: | dovresti eliminare il pacchetto che blocca, ovvero questo:
Code: | [blocks B ] x11-drivers/xf86-video-i810 (is blocking x11-drivers/xf86-video-intel-1.6.0_alpha20060413) |
|
hai provato a farlo? |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Tue May 30, 2006 7:53 pm Post subject: |
|
|
mi son scordato di dire che l'avevo eliminato, ma emerge -uD world me la rimesso dentro prima di xf86-video-intel, ma non penso sia un problema di prima o dopo, è che mi sa che non li piace proprio stare insieme!
|
|
Back to top |
|
|
knefas l33t
Joined: 21 Dec 2003 Posts: 828
|
Posted: Tue May 30, 2006 8:11 pm Post subject: |
|
|
Mi sa che forniscono la stessa cosa, e per questo non vanno d'accordo. Elimina quello che non vuoi e mettilo in package.provided (man portage) cosi' non te lo aggiorna piu'. Ma ti prendi tu tutte le responsabilita' che il pacchetto nuovo fornisca le giuste dipendenze... |
|
Back to top |
|
|
|