Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Interpretation USE-FLAGS
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Lixos
n00b
n00b


Joined: 04 Apr 2015
Posts: 19

PostPosted: Sat Apr 04, 2015 6:53 am    Post subject: [SOLVED] Interpretation USE-FLAGS Reply with quote

Hallo Community,

ich habe eine Frage zur Interpretation der USE-FLAGS im folgenden, konkreten Fall:

Quote:

emerge -pv net-wireless/wpa_supplicant

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

Calculating dependencies... done!
[ebuild N ] net-wireless/wireless-regdb-20150313 15 KiB
[ebuild N ] dev-lang/swig-2.0.9 USE="-ccache -doc -pcre" 5.183 KiB
[ebuild N ] dev-libs/libnl-3.2.25:3 USE="-python -static-libs -utils" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="-python2_7 -python3_3 -python3_4" 814 KiB
[ebuild N ] dev-libs/libtommath-0.42.0-r1 USE="-doc -examples -static-libs" 1.692 KiB
[ebuild N ] dev-python/setuptools-12.0.1 USE="{-test}" PYTHON_TARGETS="python2_7 (-pypy) (-pypy3) -python3_3 -python3_4" 613 KiB
[ebuild N ] dev-python/m2crypto-0.21.1-r2 USE="-doc -examples" PYTHON_TARGETS="python2_7" 404 KiB
[ebuild N ] net-wireless/crda-1.1.3-r1 38 KiB
[ebuild N ] net-wireless/wpa_supplicant-2.2-r1 USE="-ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -readline (-selinux) -smartcard -ssl -wimax -wps" 2.327 KiB

Total: 8 packages (8 new), Size of downloads: 11.083 KiB

The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by net-wireless/crda-1.1.3-r1
# required by net-wireless/wpa_supplicant-2.2-r1
# required by net-wireless/wpa_supplicant (argument)
=dev-python/m2crypto-0.21.1-r2 python_targets_python2_7
# required by dev-python/m2crypto-0.21.1-r2
# required by net-wireless/crda-1.1.3-r1
# required by net-wireless/wpa_supplicant-2.2-r1
# required by net-wireless/wpa_supplicant (argument)
=dev-python/setuptools-12.0.1 python_targets_python2_7


Wie muss ich die USE-Flags, welche in () geschrieben sind interpretieren?
...und wie muss ich die Python-Targets interpretieren?

Auf meinem System verwalte ich die USE-Flags selbst über package.use, so dass ich in der make.conf
bei USE folgende Optionen ergänzt habe:

Quote:

USE="*- python"


Wie oben beschrieben versuche ich für mein W-LAN das Paket wpa_supplicant zu intallieren und
muss nun wissen, wie ich obiges Problem bei der Installation lösen kann.

Schon mal vielen Dank für Eure Unterstützung vorab.


Beste Grüße
Lixos


Last edited by Lixos on Tue Apr 21, 2015 11:13 am; edited 1 time in total
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Sat Apr 04, 2015 12:04 pm    Post subject: Reply with quote

Dein Problem ist, dass du Gentoo ohne Python versuchst, das klappt nicht. ;)

USE-Flags in Klammern sind maskiert.

Die sind aber nicht dein Problem.

Dein Problem ist wohl:

Code:
-*python


Bitte setze nur

Code:
.USE=python


Das sorgt dafür das optionale Python Abhängigkeiten nicht installiert werden.

Du brauchst aber mindestens ein Python Target für Software die Python benötigt, z.B. portage, wenn du es minimal haben willst setze:

Code:
PYTHON_TARGETS=python2.7


Bye
Py
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Sat Apr 04, 2015 12:21 pm    Post subject: Reply with quote

Ich würde von den PYTHON_TARGETS komplett die Finger lassen, wenn ich nicht weiß was ich tue.
Ansonsten ein ordentliches profile auswählen und nur wirklich das ändern wovon ich auch weiß was es tut. Du scheinst ja wirklich ALLES deaktiviert zu haben. Versuchst du ein absolut minimales System zu bekommen? Warum deaktivierst du dann auch das minimal USE-Flag? ;)
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4521
Location: Germany

PostPosted: Sat Apr 04, 2015 12:31 pm    Post subject: Reply with quote

Ja, die PYTHON_TARGETS aus dem Profil komplett zu deaktivieren halte ich auch für keine gute Idee
Default aus dem base-Profil (welches für alle Profile gilt) ist aktuell PYTHON_TARGETS="python2_7 python3_3"
sprich die sind generel schon von Profil gesetzt, sofern man sie nicht explizit deaktiviert, oder anders setzt.

Lixos wrote:
Wie muss ich die USE-Flags, welche in () geschrieben sind interpretieren?

Im "man emerge" steht als Erklärung dazu
() circumfix forced, masked, or removed
Back to top
View user's profile Send private message
Lixos
n00b
n00b


Joined: 04 Apr 2015
Posts: 19

PostPosted: Sat Apr 04, 2015 8:08 pm    Post subject: Reply with quote

Hallo,

vielen lieben Dank für Eure schnellen Antworten zu meinem Thema.
Da ich in Richtung Gentoo noch relativ neu bin, muss ich mich hier erst mal ein wenig reindenken... und habe nun sicherlich eine vorerst annehmbare Lösung meines
Problems gefunden.

Generell stellt in Gentoo jede Python - Version einen eigenen Interpreter dar.
In Gentoo sind aktuell drei mögliche Interpreter gesetzt:

eselect python list --python2
eselect python list --python3

und der Allgemeine mit

eselect python list


Wie schon richtig geschrieben, habe ich durch die Angabe USE="-*" wohl die Einstellungen der Profile deaktiviert.

Quote:

gemäß Gentoo Wiki:

Precedence

Of course there is a certain precedence on what setting has priority over the USE setting. The precedence for the USE setting is, ordered by priority (first has lowest priority):
1. Default USE setting declared in the make.defaults files part of your profile
2. User-defined USE setting in /etc/portage/make.conf
3. User-defined USE setting in /etc/portage/package.use
4. User-defined USE setting as environment variable



Denn im Base - Profil der make.defaults sind bereits die richtigen Einträge vorhanden.
diese lauten:

PYTHON_TARGETS="python2_7 python3_3" (für die allgemein zu verwendenden Interpreter)
PYTHON_SINGLE_TARGET="python2_7" (für den zu bevorzugenden Interpreter)


Diese beiden Zeilen könnte man nun in der make.conf eintragen und alles wäre wieder perfekt...
oder aber ich würde die Profile wieder aktivieren und alles wäre automatisch gesetzt.

Die einzige Frage, die sich nun stellt, wozu benötigt man verschiedene Interpreter im System, wenn
man letztlich doch einen bevorzugten einstellt, den man hauptsächlich nutzt???


Gruß Lixos
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Sat Apr 04, 2015 8:23 pm    Post subject: Reply with quote

Das Eintragen der Zeilen dürfte nichts ändern.

Aber -* in USE ist _immer_ eine schlechte Idee.

Es gibt mehrere Python Versionen, weil nicht jedes Programm mit jeder Version kann.

Bye
Py
Back to top
View user's profile Send private message
Lixos
n00b
n00b


Joined: 04 Apr 2015
Posts: 19

PostPosted: Sat Apr 04, 2015 9:53 pm    Post subject: Reply with quote

Habe es soeben in meiner make.conf geändert und es bringt den gewünschten Effekt.
Äquivalent zur Portage-Beschreibung, in welcher bei -* in USE die make.defaults des gewählten Profiles
ignoriert werden.

Es ist vermutlich keine so gute Idee, da bei einem Update der Profile die Einträge in der make.conf unberührt blieben.
Ansonsten könnten notwendige Einträge aus den make.defaults der Profile relativ simple in die make.conf übertragen werden.

Anbei noch der Screen, nach Hinzufügen der im obigen Post genannten beiden Einträge in die make.conf:

Quote:

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

Calculating dependencies... done!
[ebuild N ] dev-lang/swig-2.0.9 USE="-ccache -doc -pcre" 5.183 KiB
[ebuild N ] net-wireless/wireless-regdb-20150313 15 KiB
[ebuild N ] dev-libs/libnl-3.2.25:3 USE="python -static-libs -utils" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_3 -python3_4" 814 KiB
[ebuild N ] dev-libs/libtommath-0.42.0-r1 USE="-doc -examples -static-libs" 1.692 KiB
[ebuild N ] dev-python/setuptools-12.0.1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_3 (-pypy) (-pypy3) -python3_4" 613 KiB
[ebuild N ] dev-python/m2crypto-0.21.1-r2 USE="-doc -examples" PYTHON_TARGETS="python2_7" 404 KiB
[ebuild N ] net-wireless/crda-1.1.3-r1 38 KiB
[ebuild N ] net-wireless/wpa_supplicant-2.2-r1 USE="-ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -readline (-selinux) -smartcard -ssl -wimax -wps" 2.327 KiB




Gruß Lixos
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum 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