Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

[SOLVED] Interpretation USE-FLAGS

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
Lixos
n00b
n00b
User avatar
Posts: 19
Joined: Sat Apr 04, 2015 6:44 am

[SOLVED] Interpretation USE-FLAGS

  • Quote

Post by Lixos » Sat Apr 04, 2015 6:53 am

Hallo Community,

ich habe eine Frage zur Interpretation der USE-FLAGS im folgenden, konkreten Fall:
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:
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.
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Sat Apr 04, 2015 12:04 pm

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: Select all

-*python
Bitte setze nur

Code: Select all

.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: Select all

PYTHON_TARGETS=python2.7
Bye
Py
Top
franzf
Advocate
Advocate
User avatar
Posts: 4565
Joined: Tue Mar 29, 2005 9:06 am

  • Quote

Post by franzf » Sat Apr 04, 2015 12:21 pm

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? ;)
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Sat Apr 04, 2015 12:31 pm

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
Top
Lixos
n00b
n00b
User avatar
Posts: 19
Joined: Sat Apr 04, 2015 6:44 am

  • Quote

Post by Lixos » Sat Apr 04, 2015 8:08 pm

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.
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
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Sat Apr 04, 2015 8:23 pm

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
Top
Lixos
n00b
n00b
User avatar
Posts: 19
Joined: Sat Apr 04, 2015 6:44 am

  • Quote

Post by Lixos » Sat Apr 04, 2015 9:53 pm

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:
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
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic