Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] Python_targets
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)
View previous topic :: View next topic  
Author Message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 477
Location: 09xxx

PostPosted: Wed Jun 05, 2024 8:11 pm    Post subject: [gelöst] Python_targets Reply with quote

Hallo,

wo holt sich emerge bzw. portage die Python-Targets her? Ich hab die nirgendwo drin stehen, trotzdem:

Code:

!!! The ebuild selected to satisfy "dev-libs/libbytesize" has unmet requirements.
- dev-libs/libbytesize-2.10::gentoo USE="tools -doc -python -test" ABI_X86="(64)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"


und das ist nur 1 Beispiel, ich rudere hier schon eine Weile rum. Wie gesagt, wo stehen die denn noch drin? Bei mir weder in der make.conf noch in package.use/*
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux


Last edited by michael_w on Fri Jun 07, 2024 12:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4644
Location: Germany

PostPosted: Wed Jun 05, 2024 10:56 pm    Post subject: Reply with quote

Hallo,
die PYTHON_TARGETS und PYTHON_SINGLE_TARGET defaults werden vom Profil gesetzt, siehe https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/base/make.defaults#n130

Aber, dein emerge-output Auszug-Auszug hat damit wenig zu tun.
Der komplette Auszug schaut wahrscheinlich etwa so aus:
Code:
!!! The ebuild selected to satisfy "dev-libs/libbytesize" has unmet requirements.
- dev-libs/libbytesize-2.10::gentoo USE="tools -doc -python -test" ABI_X86="(64)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    tools? ( python )

  The above constraints are a subset of the following complete expression:
    python? ( any-of ( python_targets_python3_10 python_targets_python3_11 python_targets_python3_12 ) ) tools? ( python )
Im ersten Abschnitt wird gezeigt wie aktuell gebaut werden würde.
Im zweiten Abschnitt wird gezeigt was nicht passt, was gefordert wird.
Im dritten Abschnitt werden die möglichen, geforderten Kombinationen aufgelistet.

Mit tools? ( python )
ist gemeint: Wenn das useflag tools gesetzt ist (was bei dir der Fall ist), dann muss auch das useflag python gesetzt sein, was bei dir nicht der Fall ist.
Sprich, setze zu dem tools Flag auch das python Flag - dann sollte es passen. Oder disable das tools Flag.

Schau dazu zb auch im https://wiki.gentoo.org/wiki/Handbook:Parts/Working/USE/en#Satisfying_REQUIRED_USE_conditions
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 477
Location: 09xxx

PostPosted: Thu Jun 06, 2024 5:36 am    Post subject: Reply with quote

Danke für die Erklärung. Sobald ich python setze, spuckt er das aus:

Code:

!!! The ebuild selected to satisfy "app-pda/libimobiledevice" has unmet requirements.
- app-pda/libimobiledevice-1.3.0-r4::gentoo USE="python -doc -gnutls -static-libs" ABI_X86="(64)" PYTHON_TARGETS="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( any-of ( python_targets_python3_10 python_targets_python3_11 ) )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Das heisst, ich muss eines der beiden targets in der make.conf setzen!? Eigentlich sollte man das doch nicht mehr!?
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1659
Location: Germany

PostPosted: Thu Jun 06, 2024 5:45 am    Post subject: Reply with quote

Zeige bitte was du in der make.conf gesetzt hast und auch mal den Output von emerge --info
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 477
Location: 09xxx

PostPosted: Thu Jun 06, 2024 5:55 am    Post subject: Reply with quote

Banana wrote:
Zeige bitte was du in der make.conf gesetzt hast und auch mal den Output von emerge --info


Code:

ryzen ~ # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

# safe flags -> https://wiki.gentoo.org/wiki/Ryzen
# CFLAGS="-march=bdver4 -O2 -pipe -mno-fma4 -mno-tbm -mno-xop -mno-lwp"
# CFLAGS="-O2 -march=znver1"

CFLAGS="-O2 -march=znver2"

# experimental flags
# CFLAGS="-march=bdver4 -O2 -pipe -mno-fma4 -mno-tbm -mno-xop -mno-lwp -mclzero -madx -mrdseed -mmwaitx -msha -mxsavec -mxsaves -mclflushopt -mpopcnt"

CXXFLAGS="${CFLAGS}"

# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.

USE="kde qt5 plasma X amd64 alsa display-manager gtk samba ssl threads\
     mp3 gui gimpprint usb jpeg gimp mplayer xorg ffmpeg syslog lm_sensors\
     x264 64bit cups dbus evdev pm-utils tools elogind\
     udev hwdb kmod avformat dvi2tty graphics png truetype gphoto2 heif\
     dri webstart vorbis vpx matroska theora bluetooth deprecated\
     vdpau pulseaudio marble opengl geolocation python"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
# MAKEOPTS="-j1"
MAKEOPTS="-j10"

GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"

#GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/"

INPUT_DEVICES="evdev"
#VIDEO_CARDS="nouveau"
#VIDEO_CARDS="nvidia"
VIDEO_CARDS="amdgpu radeonsi"

LINGUAS="de"
L10N="de"

SYMLINK_LIB=no
LIBDIR_x86=lib

PORTAGE_NICENESS="20"

DARKELF_FEATURES="postmerge_distclean"

# layman
source /var/lib/layman/make.conf
#for some local ebuilds to test, have to be after line for layman above!
PORTDIR_OVERLAY="/usr/local/portage/ ${PORTDIR_OVERLAY}"

# https://wiki.gentoo.org/wiki/GRUB2_Quick_Start/de
# Standard PC (BIOS)
GRUB_PLATFORMS="pc"


Code:

ryzen ~ # emerge --info
Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r6, 6.6.30-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.30-gentoo-dist-x86_64-AMD_Ryzen_7_PRO_4750G_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    28617080 total,   3082136 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Wed, 05 Jun 2024 17:30:00 +0000
Head commit of repository gentoo: 2a3e271c2d62f4bd2795509a3c00a200c08f2ac0
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

DuPol
    location: /var/lib/layman/DuPol
    masters: gentoo
    priority: 50
    volatile: True

megacoffee
    location: /var/lib/layman/megacoffee
    masters: gentoo
    priority: 50
    volatile: True

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver2"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="64bit X a52 aac acl acpi activities alsa amd64 avformat bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative deprecated display-manager dri dts dvd dvdr dvi2tty elogind encode evdev exif ffmpeg flac gdbm geolocation gif gimp gimpprint gphoto2 gpm graphics gtk gui heif hwdb iconv icu ipv6 jpeg kde kmod kwallet lcms libnotify libtirpc lm_sensors mad marble matroska mng mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma pm-utils png policykit ppds pulseaudio python qml qt5 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg syslog test-rust theora threads tiff tools truetype udev udisks unicode upower usb vdpau vorbis vpx vulkan wayland webstart widgets wxwidgets x264 xattr xcb xft xml xorg xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5281

PostPosted: Thu Jun 06, 2024 6:13 am    Post subject: Reply with quote

michael_w wrote:
Danke für die Erklärung. Sobald ich python setze, spuckt er das aus:

Code:

!!! The ebuild selected to satisfy "app-pda/libimobiledevice" has unmet requirements.
- app-pda/libimobiledevice-1.3.0-r4::gentoo USE="python -doc -gnutls -static-libs" ABI_X86="(64)" PYTHON_TARGETS="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( any-of ( python_targets_python3_10 python_targets_python3_11 ) )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Das heisst, ich muss eines der beiden targets in der make.conf setzen!? Eigentlich sollte man das doch nicht mehr!?


Das ist ein anderer Fehler da ein anderes paket. app-pda/libimobiledevice in der version 1.3.0 hat kein support für python 3.12.
brauchst du die python bindings von diesem paket überhaupt?
Du hast in der make.conf die USE zeile um das python useflag erweitert. Da das python useflag für das paket app-pda/libimobiledevice nicht default aktiv ist, war das der falsche weg.
Es hätte gereicht es nur für das paket dev-libs/libbytesize das python useflag zu aktivieren. (via /etc/portage/package.use)
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4644
Location: Germany

PostPosted: Thu Jun 06, 2024 7:06 am    Post subject: Reply with quote

Auch das tools useflag für dev-libs/libbytesize setze am besten nicht global in der make.conf
setze sowas besser nur für Pakete bei denen du es brauchst, passend pro Paket in der package.use
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 477
Location: 09xxx

PostPosted: Fri Jun 07, 2024 12:51 pm    Post subject: Reply with quote

Danke Euch für die hilfreichen Erklärungen.
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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