Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge ignora USE
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
acidcrash
n00b
n00b


Joined: 01 Apr 2003
Posts: 36

PostPosted: Tue Apr 01, 2003 9:40 am    Post subject: emerge ignora USE Reply with quote

Salve a tutti.
Ho da poco installato Gentoo Linux 1.4.2.8 e devo dire che non ho avuto grossi problemi, anche grazie alla mia esperienza su Slackware e OpenBSD. Tuttavia ho qualche perplessità sul sistema emerge; quando cerco di installare alcuni pacchetti [per esempio mod_php e nmap] la variabile USE è come se venisse ignorata. Es:

zyon portage # cat /etc/gentoo-release
Gentoo Base System version 1.4.2.8
zyon portage # USE="-X" emerge --pretend nmap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild N ] dev-util/intltool-0.25
[ebuild U ] media-libs/freetype-2.1.3-r2 [1.3.1-r3]
[ebuild N ] media-libs/fontconfig-2.1
[ebuild N ] x11-base/opengl-update-1.5
[ebuild N ] app-arch/unzip-5.50-r1
[ebuild N ] x11-misc/ttmkfdir-3.0.9
[ebuild N ] app-arch/cabextract-0.6
[ebuild N ] x11-base/xfree-4.2.1-r2
[ebuild N ] x11-libs/gtk+-1.2.10-r10
[ebuild N ] net-analyzer/nmap-3.20

zyon portage #

Come potete vedere, sebbene abbia settato la variabile USE a "-X" e sebbene la suddetta variabile sia ugualmente settata anche in make.conf per non utilizzare X, un --pretend mi richiede anche l'installazione del server X e di altri componenti a me inutili.
Lo stesso effetto lo ottengo per php_mod o altre cosette che cerco di installare.

zyon portage # cat /etc/make.conf | grep USE
# The USE variable is used to enable optional build-time functionality. For
# very extensive set of USE variables described in our USE variable HOWTO at
USE="-X ssl tcpd pam"

questo è parte del mio make.conf

Se avete qualche idea in merito, vi prego di rispondermi.

Saluti
AcidCrash :D
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Apr 01, 2003 9:48 am    Post subject: Reply with quote

Al momento non ho sotto mano una macchina Gentoo, ma puoi usare l'opzione -v per vedere quali flag vengono applicate:
Code:
# emerge -vp [pacchetto]

Occhio che le USE disabilitano solo supporto opzionale, se per qualche ragione all'interno dell'ebuild X è settato come dipendenza non opzionale, viene installato USE o no.

Se X viene effettivamente installato come dipendenza necessaria (non controllata dalle USE) e ritieni non sia giusto, puoi riportare la cosa in [url=https://bugs.gentoo.org]bugzilla[/code].
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
acidcrash
n00b
n00b


Joined: 01 Apr 2003
Posts: 36

PostPosted: Tue Apr 01, 2003 9:59 am    Post subject: Reply with quote

beh mi sembra un po' strano che nmap richieda per forza X, dato che è nato come tool da linea di comando e il frontend grafico esiste da molto poco e pure in maniera instabile. Cmq sbirciando dentro *.ebuild in net-analyzers/nmap ho visto che è settata la flag IUSE="gtk gnome".
Questo è l'output di
USE="-X" emerge -vp net analyzer/nmap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild N ] dev-util/intltool-0.25
[ebuild U ] media-libs/freetype-2.1.3-r2 [1.3.1-r3] -doc
[ebuild N ] media-libs/fontconfig-2.1
[ebuild N ] x11-base/opengl-update-1.5
[ebuild N ] app-arch/unzip-5.50-r1
[ebuild N ] x11-misc/ttmkfdir-3.0.9
[ebuild N ] app-arch/cabextract-0.6
[ebuild N ] x11-base/xfree-4.2.1-r2 -sse +nls +mmx +truetype +3dnow -3dfx
[ebuild N ] x11-libs/gtk+-1.2.10-r10 +nls
[ebuild N ] net-analyzer/nmap-3.20 +-X

Saluti
AcidCrash
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Tue Apr 01, 2003 10:12 am    Post subject: Reply with quote

USE="-X -gnome -gtk" emerge nmap
Prova così e dimmi
Back to top
View user's profile Send private message
acidcrash
n00b
n00b


Joined: 01 Apr 2003
Posts: 36

PostPosted: Tue Apr 01, 2003 10:19 am    Post subject: Reply with quote

Che scemo! :>
Non avevo pensato che ovviamente gnome "pretende" X e gtk :P
Ora funziona benissimo, grazie dell'aiuto! Mi devo ancora abituare un attimo all'elasticità di questo pkt manager :)Peccato che ho già installato mod_php con un sacco di skifezze che non mi servivano... non c'e' un modo per disinstallare tutto quello che è stato installato con un pacchetto?

AcidCrash
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Tue Apr 01, 2003 10:30 am    Post subject: Reply with quote

Ho Gentoo da non più di 5 giorni, logicamente non so usare ancora bene il suo gestore di pacchetti... Credo sia
emerge unmerge pacchetto
In ogni caso man emerge
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Apr 01, 2003 11:27 am    Post subject: Reply with quote

Dani Tsevech wrote:
USE="-X -gnome -gtk" emerge nmap
Prova così e dimmi

Oops... non avevo notato la dipendenza gtk... :roll:

Comunque se usi l'opzione -v dovresti poter vedere tutte le flag che influiscono sul pacchetto e scartare quelle che non ti convincono. Se quando pretendi un pacchetto vedi che vuole installare cose strane un controllo con -v protrebbe essere fruttuoso.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Dani Tsevech
Apprentice
Apprentice


Joined: 23 Mar 2003
Posts: 284

PostPosted: Tue Apr 01, 2003 12:27 pm    Post subject: Reply with quote

Di norma uso -pvd :)
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Apr 01, 2003 2:42 pm    Post subject: Reply with quote

Dani Tsevech wrote:
Di norma uso -pvd :)

Pure -d? :)
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
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