Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Aiuto con bug 267310
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
scolpi
n00b
n00b


Joined: 15 Jun 2009
Posts: 35

PostPosted: Wed Sep 23, 2009 1:56 pm    Post subject: [Risolto] Aiuto con bug 267310 Reply with quote

Sono nuovo del mondo gentoo, uso un sistema amd64 e spesso sono alle prese con bug da risolvere.

Nel caso in questione, voglio installare sulla mia macchina virtualbox, ma mi imbatto nel seguwnte probleam:

Quote:
simone simone # emerge -av app-emulation/virtualbox-ose

* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild N ] app-emulation/virtualbox-modules-1.6.6-r1 0 kB
[ebuild N ] net-misc/bridge-utils-1.4 0 kB
[ebuild N ] sys-apps/usermode-utilities-20070815 0 kB
[ebuild N ] dev-util/cvs-1.12.12-r6 USE="crypt nls pam -doc -kerberos -server" 0 kB
[ebuild N ] net-libs/libasyncns-0.3 USE="-debug -doc" 0 kB
[ebuild N ] gnome-extra/gnome-audio-2.22.2 USE="-debug" 0 kB
[ebuild N ] media-sound/pulseaudio-0.9.15-r2 USE="X alsa asyncns bluetooth caps dbus glib hal tcpd -avahi -gnome -jack -libsamplerate -lirc -oss -test" 0 kB
[ebuild N ] dev-util/kbuild-0.1.4 0 kB
[ebuild N ] app-emulation/virtualbox-ose-1.6.6 USE="alsa headless pulseaudio qt3 sdk -additions" 0 kB

Total: 9 packages (9 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] Y


accetto e in fase di compilazione ottengo il seguente errore:

Quote:
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6-r1/work/vboxdrv/linux/SUPDrv-linux.c:772: error: 'struct task_struct' has no member named 'euid'
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6-r1/work/vboxdrv/linux/SUPDrv-linux.c:773: error: 'struct task_struct' has no member named 'egid'
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6-r1/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6-r1/work/vboxdrv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r4'
make: *** [vboxdrv] Error 2


chi risulta essere un bug risolto qua:

https://bugs.gentoo.org/show_bug.cgi?id=267310

chiedo a voi, pur essendo spiegato come risolvere, di spiegarmelo perchè non c'ho capito nulla, ripeto sono nuovo del mondo gentoo.

Grazie in anticipo
Simone


Last edited by scolpi on Fri Sep 25, 2009 7:24 pm; edited 1 time 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 23, 2009 3:02 pm    Post subject: Reply with quote

beh... semplicemente il pacchetto stabile (l'1.6.6) è abbastanza vecchio e non va molto daccordo con i nuovi kernel (2.6.29 3 2.6.30)
le alternative che puoi seguire sono 3
o modifichi i sorgenti come spiegato nel thread (apri a manina i file e cambi i valori segnati con il meno con quelli con il +) o impari ad usare patch (man patch)
fai il downgrade del kernel e ne installi uno leggermente pià vecchiotto. emerge =gentoo-sources-versionechevuoi
installi il pacchetto in testing di virtualbox (che compila correttamente) crei la dir /etc/portage/package.keywords e dentro ci crei un file chiamato tipo virtualbox contenente
Code:
app-emulation/virtualbox-modules
app-emulation/virtualbox-bin
più quello che ti dice emerge che vuole dei pacchetti in testing.

una cosa: la dir potrebbe anche essere un file, io semplicemente creo la directory perchè mi permette di tener separate le cose in testing che uso in differenti file. man portage man emerge e similari ti danno una mano nel capire come funziona il tutto.
Back to top
View user's profile Send private message
scolpi
n00b
n00b


Joined: 15 Jun 2009
Posts: 35

PostPosted: Wed Sep 23, 2009 5:29 pm    Post subject: Reply with quote

Grazie per la velocità della risposta.

Una domanda ancora, l'installazione di virtualbox dai sorgenti comporta qualche problema? Visto che sul sito risulta la versione 3.0.6 decisamente + aggiornati.
Back to top
View user's profile Send private message
ago
Developer
Developer


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

PostPosted: Wed Sep 23, 2009 5:45 pm    Post subject: Reply with quote

Ic3M4n wrote:

installi il pacchetto in testing di virtualbox (che compila correttamente) crei la dir /etc/portage/package.keywords e dentro ci crei un file chiamato tipo virtualbox

quoto,
forse è la soluzione più comoda per te che sei appena arrivato :)
Back to top
View user's profile Send private message
scolpi
n00b
n00b


Joined: 15 Jun 2009
Posts: 35

PostPosted: Wed Sep 23, 2009 6:15 pm    Post subject: Reply with quote

ago88 wrote:
Ic3M4n wrote:

installi il pacchetto in testing di virtualbox (che compila correttamente) crei la dir /etc/portage/package.keywords e dentro ci crei un file chiamato tipo virtualbox

quoto,
forse è la soluzione più comoda per te che sei appena arrivato :)


Mi vergogno un po', visto che su ubuntu di norma sono io a dare aiuti ... , ma la versione di testing quale sarebbe, o meglio dove la trovo?

da

Code:
emeerge -s virtualbox


Quote:
* app-emulation/virtualbox-bin
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 42,307 kB
Homepage: http://www.virtualbox.org/
Description: Family of powerful x86 virtualization products for enterprise as well as home use
License: PUEL

* app-emulation/virtualbox-guest-additions
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 34,652 kB
Homepage: http://www.virtualbox.org/
Description: VirtualBox kernel modules and user-space tools for Linux guests
License: GPL-2

* app-emulation/virtualbox-modules
Latest version available: 1.6.6-r1
Latest version installed: [ Not Installed ]
Size of files: 192 kB
Homepage: http://www.virtualbox.org/
Description: Kernel Modules for Virtualbox
License: GPL-2

* app-emulation/virtualbox-ose
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 34,652 kB
Homepage: http://www.virtualbox.org/
Description: Softwarefamily of powerful x86 virtualization
License: GPL-2

* app-emulation/virtualbox-ose-additions
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 9,858 kB
Homepage: http://www.virtualbox.org/
Description: Guest additions for VirtualBox
License: PUEL

* x11-drivers/xf86-input-virtualbox
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 34,652 kB
Homepage: http://www.virtualbox.org/
Description: VirtualBox input driver
License: GPL-2

* x11-drivers/xf86-video-virtualbox
Latest version available: 1.6.6
Latest version installed: [ Not Installed ]
Size of files: 34,652 kB
Homepage: http://www.virtualbox.org/
Description: VirtualBox video driver
License: GPL-2


non capisco qual' è sempre se si trova qua.

Sono proprio messo male è? :oops:
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


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

PostPosted: Wed Sep 23, 2009 7:08 pm    Post subject: Reply with quote

@scolpi
installa eix
Code:
# emerge app-portage/eix

aggiornane il database (da fare dopo ogni sync)
Code:
# eix-update

e poi ricerca
Code:
# eix virtualbox

(nel man ci sono molte altre belle opzioni)

le versioni "testing" sono quelle di colore arancione e con la ~ davanti.
_________________
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
Ic3M4n
Advocate
Advocate


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

PostPosted: Wed Sep 23, 2009 9:41 pm    Post subject: Reply with quote

in gentoo rispetto ad ubuntu hai la possibilità di impostare in maniera molto fine quello che vuoi stabile e quello che vuoi in testing. alcuni pacchetti addirittura hanno anche una decina di versioni differenti installabili più o meno contemporaneamente, esempio gentoo-sources, sources del kernel in generale, drivers nvidia etc etc.
se ti leggi la documentazione di portage, un po' criptica in effetti all'inizio... scoprirai che tramite il file /etc/portage/package.keywords che puoi creare anche come directory per una separazione dei singoli pacchetti, molto più comoda secondo me che la uso in maniera massiccia, puoi selezionare i singoli pacchetti non ancora definiti stabili dagli sviluppatori gentoo. La sintassi del file è importante e ti permette di "smascherare" un singolo pacchetto con una determinata versione o tutte le versioni.
per esempio:
app-emulation/virtualbox-bin ~amd64 definisce ti utilizzare tutte le versioni in testing del pacchetto virtualbox-bin su architettura amd64, con ~x86 lo fai per sistemi a 32 bit.
>app-emulation/virtualbox-bin-3 ~amd64 definisci tutti i pacchetti dell'eventuale versione 3. quindi se venisse reso disponibile un pacchetto 4.0.0 non lo vedresti come installabile.
=app-emulation/virtualbox-bin-3.0.6 ~amd64 stabilisci che il solo pacchetto con quella determinata versione è installabile
=app-emulation/virtualbox-bin-3.0.6* ~amd64 tutti quelli della versione 3.0.6, quindi anche la -r1 attualmente disponibile.
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


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

PostPosted: Thu Sep 24, 2009 7:21 am    Post subject: Reply with quote

Ic3M4n wrote:

>app-emulation/virtualbox-bin-3 ~amd64 definisci tutti i pacchetti dell'eventuale versione 3. quindi se venisse reso disponibile un pacchetto 4.0.0 non lo vedresti come installabile.

Invece sì, 4 è > 3. Se tu mettessi
Code:
=app-emulation/virtualbox-bin-3*
Allora sarebbe come dice Ic3M4n.
Ic3M4n wrote:

=app-emulation/virtualbox-bin-3.0.6* ~amd64 tutti quelli della versione 3.0.6, quindi anche la -r1 attualmente disponibile.

In questo caso c'è anche l'opzione
Code:
~app-emulation/virtualbox-bin-3.0.6

che smaschera la tal versione e tutte le eventuali -rX
La soluzione di Ic3M4n smaschererebbe anche un'evenuale -3.0.6.1

Infine, in caso di pacchetti slotted ( cioè di cui si possono avere più versioni in contemporanea nel sistema ), è possibile la seguente sintassi
Code:
cat-egoria/pacchetto:SLOT

_________________
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
armaoin
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2006
Posts: 110

PostPosted: Thu Sep 24, 2009 9:15 am    Post subject: Reply with quote

Ti conviene fare come ho fatto io:
Code:

echo app-emulation/virtualbox-bin ~amd64 >> /etc/portage/package.keywords
echo app-emulation/virtualbox-modules ~amd64 >> /etc/portage/package.keywords
emerge virtualbox-bin


Ovviamente questo vale per la versione precompilata e su sistemi amd64, ma cmq rende l'idea di cosa devi fare.
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Thu Sep 24, 2009 1:18 pm    Post subject: Reply with quote

Onip wrote:
Ic3M4n wrote:

>app-emulation/virtualbox-bin-3 ~amd64 definisci tutti i pacchetti dell'eventuale versione 3. quindi se venisse reso disponibile un pacchetto 4.0.0 non lo vedresti come installabile.

Invece sì, 4 è > 3. Se tu mettessi
Code:
=app-emulation/virtualbox-bin-3*
Allora sarebbe come dice Ic3M4n.

oops scusa... typo. ho pensato una cosa e scritta un altra.
Back to top
View user's profile Send private message
scolpi
n00b
n00b


Joined: 15 Jun 2009
Posts: 35

PostPosted: Fri Sep 25, 2009 10:55 am    Post subject: Reply with quote

grazie a tutti per l'aiuto, ho installato la versione 3.0.6, ora alcuni aspetti di gentoo mi sono + chiari.
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


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

PostPosted: Fri Sep 25, 2009 7:15 pm    Post subject: Reply with quote

figurati. per favore... metti il tag "risolto" al titolo. puoi farlo editanto il primo post.
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