Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PYTHON_SINGLE_TARGET woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Tue Jun 11, 2024 8:28 pm    Post subject: PYTHON_SINGLE_TARGET woes Reply with quote

I updated my obsolete profile and I read the python migrate news message but "-*" is no longer valid in PYTHON_SINGLE_TARGET in make.conf so I can't perform the manual migration. I'm now stuck at the emerge world step of updating the profile because I keep getting errors like this:

Code:
!!! The ebuild selected to satisfy "app-text/pastebinit" has unmet requirements.
- app-text/pastebinit-1.5.1-r1::gentoo USE="-man" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 )


or

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 ) )


These errors seem to stop further processing (or output) of emerge world so this becomes a bit of a slog.

grep -i tells me there are no references to python_targets or python_single_target in the files under /etc/portage/.

Code:
emerge --info app-text/pastebinit
Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r6, 6.6.30-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.30-gentoo-dist-x86_64-AMD_Ryzen_5_PRO_4650G_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    65153884 total,  24715368 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Tue, 11 Jun 2024 09:00:01 +0000
Head commit of repository gentoo: 92abfc4fe9cf87e2edc9d559527888b0acae265b
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:           2.7.18_p16-r2::gentoo, 3.10.14_p1::gentoo, 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-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL googleearth AdobeFlash-10.1 AdobeFlash-11.x AdobeFlash-10.3 Oracle-BCLA-JavaSE google-chrome MakeMKV-EULA FraunhoferFDK Coherent-Graphics ms-teams-pre"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/share/config /usr/share/gnupg/qualified.txt /usr/src"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/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="http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
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="3dnow 3dnowext X a52 aac aacs acpi alsa amarok amd64 bash-completion bdplus bluetooth bluray branding bzip2 cairo cdda cddb cdparanoia cdr cet cjk crypt cups dbus djvu dri dts dvd dvdnav dvdr dvdread elogind emovix encode exif fbcon fbcondecor ffmpeg firefox flac gdbm gif glitz gmp gpm gtk gui iconv icu id3 ieee1394 imagemagick ipv6 java jpeg kpathsea lcms libnotify libtirpc libwww lm_sensors logitech-mouse lz4 lzma mad mmx mmxext mng mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nsplugin objc ogg opengl openmp pam pango pcre pdf plotutils png policykit ppds python qt5 quicktime readline real ruby sdl seccomp sockets sound spell split-usr sse sse2 ssl startup-notification svg tcltk test-rust tetex tidy tiff tk truetype udev udisks unicode upower usb vdpau vim-pager vim-syntax vorbis vulkan wxwidgets x264 xattr xcb xcomposite xetex xft xine xinerama xml xmp xv xvid xz zlib" ABI_X86="64 32" ADA_TARGET="gcc_12" ALSA_CARDS="hda-intel" 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="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="efi-64 pc efi-32 coreboot" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads quadmath" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp" 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

=================================================================
                        Package Settings
=================================================================

app-text/pastebinit-1.5.1-r1::gentoo was built with the following:
USE="-man" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1024
Location: Somewhere in Denmark

PostPosted: Tue Jun 11, 2024 9:12 pm    Post subject: Re: PYTHON_SINGLE_TARGET woes Reply with quote

BitJam wrote:
I updated my obsolete profile and I read the python migrate news message but "-*" is no longer valid in PYTHON_SINGLE_TARGET in make.conf so I can't perform the manual migration.

PYTHON_TARGETS/PYTHON_SINGLE_TARGET has been discouraged in make.conf for quite a while - the manual safe migeration in the news item is assuming migration via package.use
Code:
If you have PYTHON_TARGETS or PYTHON_SINGLE_TARGET declared
in make.conf, please remove these declarations as they will interfere
with the package.use samples provided below.  Using make.conf for Python
targets is discouraged as it prevents package defaults from applying
when necessary.  This news item assumes using /etc/portage/package.use
or your package manager's equivalent file for configuration.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Tue Jun 11, 2024 10:09 pm    Post subject: Reply with quote

Thanks for the quick reply. Unfortunately, as I said, emerge world stops after the first such error encountered. Are there 10 packages I will need to add lines for in package.use? Are there 100?

Also, the news message about Python migration said to use PYTHON_TARGETS and PYTHON_SINGLE_TARGET in make.conf to perform the migration manually. I can't do that now because "-*" is no longer legal in these variables.

In addition to me not knowing which packages I need to add to package.use, I don't know the syntax to fix a single package. For example:

Code:
app-text/pastebinit python_single_target3_12
app-text/pastebinit PYTHON_SINGLE_TARGET=python3_12
app-text/pastebinit PYTHON_SINGLE_TARGET="-* python3_12"


IMO the manual migration suggested in the news message would have been relatively quick and painless. I would use the PYTHON_ variables in make.conf to perform the migration then remove them. But since "-*" is now no longer allowed (perhaps because of the profile update) I can't perform the manual migration.

On top of that, even if I try to use package.use instead of make.conf, I don't know how to get around the errors above even for a single package.

Thanks.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4644
Location: Germany

PostPosted: Tue Jun 11, 2024 10:30 pm    Post subject: Reply with quote

Hi,

for
Code:
!!! The ebuild selected to satisfy "app-text/pastebinit" has unmet requirements.
- app-text/pastebinit-1.5.1-r1::gentoo USE="-man" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 )
here is already a newer pastebinit-1.6.2 version with py3.12 support available, but is currently not stable marked.
I think test the new version with
package.accept_keywords entry:
~app-text/pastebinit-1.6.2
should be fine.

For
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 ) )
You really wants the app-pda/libimobiledevice package with USE=python enabled? (this is not default enabled)
You have set USE=python global in make.conf (i think it is not a good idea enable it global for all packages), better set it per package basis in package.use
I think without USE=python in make.conf it should work.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22447

PostPosted: Tue Jun 11, 2024 11:13 pm    Post subject: Reply with quote

BitJam wrote:
Also, the news message about Python migration said to use PYTHON_TARGETS and PYTHON_SINGLE_TARGET in make.conf to perform the migration manually.
Where exactly did it say that? As I read the news item, it explicitly tells you not to put these in make.conf, and instead directs you to use package.use.
BitJam wrote:
In addition to me not knowing which packages I need to add to package.use, I don't know the syntax to fix a single package. For example:
Code:
app-text/pastebinit python_single_target3_12
app-text/pastebinit PYTHON_SINGLE_TARGET=python3_12
app-text/pastebinit PYTHON_SINGLE_TARGET="-* python3_12"
The news item gives a sample for matching all packages. You could replace the */* in the sample with a specific package name.
BitJam wrote:
IMO the manual migration suggested in the news message would have been relatively quick and painless. I would use the PYTHON_ variables in make.conf to perform the migration then remove them. But since "-*" is now no longer allowed (perhaps because of the profile update) I can't perform the manual migration.
It is not valid because the definition in make.conf is not incremental. I doubt -* was ever valid for a non-incremental value in make.conf. Using -* is intended to clear out all prior values, which the non-incremental form does implicitly. However, I suggest you follow the path described in the news item, using package.use.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Jun 12, 2024 1:27 am    Post subject: Reply with quote

Thanks Hu. I tried using a file under /etc/portage/package.use/. I created a file called python3_12-upgrade and added these two lines:

Code:
*/* PYTHON_TARGETS: -* python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_12


This seemed to have no effect on the situation. For example:
Code:
emerge virtualbox

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

Calculating dependencies |

!!! Problem resolving dependencies for app-emulation/virtualbox
... done!
Dependency resolution took 1.46 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "virtualbox" has unmet requirements.
- app-emulation/virtualbox-7.0.18-r1::gentoo USE="alsa dbus gui java nls opengl pam python sdk sdl udev vmmraw -debug -doc -dtrace -lvm (-pch) -pulseaudio -vboxwebsrv -vde -vnc" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 ) )

  The above constraints are a subset of the following complete expression:
    java? ( sdk ) python? ( sdk exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 ) ) vboxwebsrv? ( java )


I tried adding the line:
Code:
app-emulation/virtualbox python_single_target3_11


but again this had no effect. Part of the problem seems to be that I do not know how to affect the PYTHON_SINGLE_TARGET variable used by emerge. Is a /etc/portage/package.use/ directory still allowed?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2232

PostPosted: Wed Jun 12, 2024 8:48 am    Post subject: Reply with quote

BitJam wrote:


I tried adding the line:
Code:
app-emulation/virtualbox python_single_target3_11


but again this had no effect.


That cannot be correct. The error message should have changed. Single target means the package can only be compiled against a singe version of python and it's reverse dependencies need to follow that rule too. So the message must be for another package, perhaps a different message.

Please post the full command you're running along with its output. Do not say "I added" implying we know where you added it. You should be specific, in part because sometimes you think you've done one thing but have made a mistake and have done another thing. Being specific gives both you and us the opportunity to spot a mistake.

Best Regards,
Georgi
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 12, 2024 9:10 am    Post subject: Reply with quote

python_single_target_python3_11
vs
python_single_target3_11
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2232

PostPosted: Wed Jun 12, 2024 9:43 am    Post subject: Reply with quote

Josef.95 wrote:
python_single_target_python3_11
vs
python_single_target3_11


Nicely spotted!

Best Regards,
Georgi
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 574

PostPosted: Wed Jun 12, 2024 12:36 pm    Post subject: Reply with quote

BitJam wrote:
I tried adding the line:
Code:
app-emulation/virtualbox python_single_target3_11


but again this had no effect.


Change it for app-emulation/virtualbox PYTHON_SINGLE_TARGET: -* python3_11 or you are adding a cumulative use flag, effectively telling portage you want both (the usually mutually exclusive) python_single_target_python3_11 and python_single_target_python3_12

I suppose
Code:
app-emulation/virtualbox -python_single_target_python3_12 python_single_target_python3_11
should work too

BitJam wrote:
emerge world stops after the first such error encountered. Are there 10 packages I will need to add lines for in package.use? Are there 100?

eix is your best friend here
Code:
eix --stable --only-names --installed --installed-with-use python_single_target_python3_11 --not --use python_single_target_python3_12

This should produce a list of packages installed with python_single_target_python3_11, for which no stable package exists that supports python_single_target_python3_12
You might need some extra eix-foo if you use ~arch a lot, but it really is a marvellous piece of software and probably has you covered.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Fri Jun 14, 2024 7:39 am    Post subject: Reply with quote

Thanks all!

Adding the 2nd "python" to the use flags helped unblock the log jam. I made a lot of progress and these are the package.use lines I added:

Code:
app-text/pastebinit        python_single_target_python3_11
app-emulation/virtualbox   python_single_target_python3_11
app-office/libreoffice-bin python_single_target_python3_11
app-vim/vim-latex          python_single_target_python3_11
media-libs/libffado        python_single_target_python3_11
app-pda/libimobiledevice   python_targets_python3_11
app-pda/libplist           python_targets_python3_11


In addition, emerge added 14 python_targets* use flags to 13 dev-python packages. It also added:

Code:
# required by app-vim/vim-latex-1.10.0-r2::gentoo
# required by @selected
# required by @world (argument)
>=app-editors/vim-9.1.0366 python_single_target_python3_11

and now I am having trouble emerging vim:

Code:
emerge -av vim

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

Calculating dependencies -

!!! Problem resolving dependencies for app-editors/vim
... done!
Dependency resolution took 1.55 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "vim" has unmet requirements.
- app-editors/vim-9.1.0366::gentoo USE="X crypt gpm nls python ruby sound vim-pager -acl -cscope -debug -lua -minimal -perl -racket (-selinux) -tcl -terminal" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit" PYTHON_SINGLE_TARGET="python3_11 python3_12 -python3_10"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 ) )

  The above constraints are a subset of the following complete expression:
    lua? ( exactly-one-of ( lua_single_target_luajit lua_single_target_lua5-1 lua_single_target_lua5-3 lua_single_target_lua5-4 ) ) python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 ) ) vim-pager? ( !minimal )


FWIW: grep vim /etc/portage/package.use/* returns:

Code:
/etc/portage/package.use/python3_12-upgrade:app-vim/vim-latex          python_single_target_python3_11
/etc/portage/package.use/zz-autounmask:# required by app-vim/vim-latex-1.10.0-r2::gentoo
/etc/portage/package.use/zz-autounmask:>=app-editors/vim-9.1.0366 python_single_target_python3_11


When this odyssey started a few days ago I was able to manual emerge vim (somehow) but now I'm stuck again.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2232

PostPosted: Fri Jun 14, 2024 9:42 am    Post subject: Reply with quote

File a bug for vimlatex python 3.12 support.

If you're too much in a hurry, comment all python related stuff from package.use and add these lines:

Code:
*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_11


When the bug is resolved, try commenting those lines and see if the upgrade can go through. You might need to restore some fo the old lines, but not the ones related to vim.

Also zz_autounmask smells like problems.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22447

PostPosted: Fri Jun 14, 2024 2:11 pm    Post subject: Reply with quote

Although the title could be better, app-vim/vim-latex: won't emerge after upgrade to python12 appears to request that vim-latex add python3.12 support.

As to the problem with vim, BitJam enabled python_single_target_python3_11, and did not disable the inherited (from profile) python_single_target_python3_12. Either disable 3_11 (and likely break vim-latex, for now) or disable 3_12.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Fri Jun 14, 2024 11:30 pm    Post subject: Reply with quote

Thanks again everyone!

My least painful path forward seemed to be to remove the vim-latex package for now. After I did that and after running emerge world many times I was finally able to actually emerge world.

Emerge added python3_11/10 use flags to 19 packages:
Code:
>=dev-python/setuptools-70.0.0 python_targets_python3_11 python_targets_python3_10
>=dev-python/jaraco-text-3.12.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/more-itertools-10.2.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/ordered-set-4.1.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/packaging-24.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/platformdirs-4.2.2 python_targets_python3_10 python_targets_python3_11
>=dev-python/wheel-0.43.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/setuptools-scm-8.1.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/gpep517-16 python_targets_python3_10 python_targets_python3_11
>=dev-python/flit-core-3.9.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/jaraco-context-5.3.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/jaraco-functools-4.0.1 python_targets_python3_10 python_targets_python3_11
>=dev-python/installer-0.7.0 python_targets_python3_10 python_targets_python3_11
>=dev-python/dbus-python-1.3.2 python_targets_python3_11
>=dev-python/PyQt5-5.15.10-r1 python_targets_python3_11
>=dev-python/PyQt5-sip-12.13.0-r1 python_targets_python3_11
>=dev-python/PyQt-builder-1.16.2 python_targets_python3_11
>=dev-python/sip-6.8.3 python_targets_python3_11
>=dev-python/six-1.16.0-r1 python_targets_python3_11


This was in addition to the 7 lines I added manually:
Code:
app-text/pastebinit        python_single_target_python3_11
app-emulation/virtualbox   python_single_target_python3_11
app-office/libreoffice-bin python_single_target_python3_11
app-vim/vim-latex          python_single_target_python3_11
media-libs/libffado        python_single_target_python3_11
app-pda/libimobiledevice   python_targets_python3_11
app-pda/libplist           python_targets_python3_11


IMO the transition to Python 3.12 was a bit bumpy. I don't know if this was related to being forced to update my profile.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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