Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading from EAPI 7 to EAPI 8 fails miserably
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 8:02 am    Post subject: Upgrading from EAPI 7 to EAPI 8 fails miserably Reply with quote

I wrote a summary of the problem here: https://bugs.gentoo.org/949486

I am trying to upgrade portage from EAPI 7 to EAPI 8 an I am landing in Python dependency Hell.

I did this:
https://wiki.gentoo.org/wiki/Upgrading_Gentoo/de
and this:
https://wiki.gentoo.org/wiki/Fix_my_Gentoo

I managed to generate all the necessary binary packages according to above gudis. I rebooted into my system and now I do:

Code:
emerge --nodeps --oneshot --binpkg-changed-deps=n python-exec

This results in:

>>> Emerging binary (1 of 1) dev-lang/python-exec-2.4.10::gentoo
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 0.63, 0.51, 0.44================================================================================================

======== Traceback for invalid call to portage.package.ebuild.config.config.__getitem__ ========
  File "/usr/lib/python-exec/python3.7/emerge", line 51, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.7/site-packages/_emerge/main.py", line 1317, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.7/site-packages/_emerge/actions.py", line 3376, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib/python3.7/site-packages/_emerge/actions.py", line 560, in action_build
    retval = mergetask.merge()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1045, in merge
    rval = self._merge()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1461, in _merge
    self._main_loop()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1414, in _main_loop
    self._schedule()
  File "/usr/lib/python3.7/site-packages/_emerge/PollScheduler.py", line 152, in _schedule
    self._schedule_tasks()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1640, in _schedule_tasks
    if self._schedule_tasks_imp():
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1783, in _schedule_tasks_imp
    self._task_queues.jobs.add(task)
  File "/usr/lib/python3.7/site-packages/_emerge/SequentialTaskQueue.py", line 24, in add
    self.schedule()
  File "/usr/lib/python3.7/site-packages/_emerge/SequentialTaskQueue.py", line 46, in schedule
    task.start()
  File "/usr/lib/python3.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.7/site-packages/_emerge/MergeListItem.py", line 98, in _start
    self._start_task(binpkg, self._default_final_exit)
  File "/usr/lib/python3.7/site-packages/_emerge/CompositeTask.py", line 113, in _start_task
    task.start()
  File "/usr/lib/python3.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.7/site-packages/_emerge/Binpkg.py", line 59, in _start
    settings=self.settings, db=self._bintree.dbapi)
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/doebuild.py", line 360, in doebuild_environment
    mysettings["PORTDIR"] = os.path.realpath(mysettings["PORTDIR"])
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/config.py", line 2619, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/config.py", line 2680, in _getitem
    raise KeyError(mykey)
KeyError: 'PORTDIR'
================================================================================================

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/emerge", line 51, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.7/site-packages/_emerge/main.py", line 1317, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.7/site-packages/_emerge/actions.py", line 3376, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib/python3.7/site-packages/_emerge/actions.py", line 560, in action_build
    retval = mergetask.merge()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1045, in merge
    rval = self._merge()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1461, in _merge
    self._main_loop()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1414, in _main_loop
    self._schedule()
  File "/usr/lib/python3.7/site-packages/_emerge/PollScheduler.py", line 152, in _schedule
    self._schedule_tasks()
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1640, in _schedule_tasks
    if self._schedule_tasks_imp():
  File "/usr/lib/python3.7/site-packages/_emerge/Scheduler.py", line 1783, in _schedule_tasks_imp
    self._task_queues.jobs.add(task)
  File "/usr/lib/python3.7/site-packages/_emerge/SequentialTaskQueue.py", line 24, in add
    self.schedule()
  File "/usr/lib/python3.7/site-packages/_emerge/SequentialTaskQueue.py", line 46, in schedule
    task.start()
  File "/usr/lib/python3.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.7/site-packages/_emerge/MergeListItem.py", line 98, in _start
    self._start_task(binpkg, self._default_final_exit)
  File "/usr/lib/python3.7/site-packages/_emerge/CompositeTask.py", line 113, in _start_task
    task.start()
  File "/usr/lib/python3.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.7/site-packages/_emerge/Binpkg.py", line 59, in _start
    settings=self.settings, db=self._bintree.dbapi)
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/doebuild.py", line 360, in doebuild_environment
    mysettings["PORTDIR"] = os.path.realpath(mysettings["PORTDIR"])
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/config.py", line 2619, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.7/site-packages/portage/package/ebuild/config.py", line 2680, in _getitem
    raise KeyError(mykey)
KeyError: 'PORTDIR'


and this

Code:
emerge --nodeps --oneshot --binpkg-changed-deps=n portage

results in:

Code:
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/work/portage-3.0.66.1 ...

 * pypy3: running my_src_configure
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.
meson setup -Db_lto=false --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/temp/pypy3/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/temp/pypy3/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false -Dbuildtype=plain -Dcode-only=false -Deprefix= -Dportage-bindir=/usr/lib/portage/pypy3 -Ddocdir=/usr/share/doc/portage-3.0.66.1-r1 -Ddoc=false -Dapidoc=false -Dgentoo-dev=false -Dipc=true -Dxattr=true -Dnative-extensions=false -Drsync-verify=true /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/work/portage-3.0.66.1 /var/tmp/portage/sys-apps/portage-3.0.66.1-r1/work/portage-3.0.66.1-pypy3
meson: no python-exec wrapped executable found in /usr/lib/python-exec.
 * ERROR: sys-apps/portage-3.0.66.1-r1::gentoo failed (configure phase):

There really seems no easy way to upgrade your Gentoo System. ;(

Any hints are welcome.

Code:
Emerge --info:

Portage 3.0.14 (python 3.7.17-final-0, !../../var/db/repos/gentoo/profiles/default/linux/amd64/23.0/split-usr/no-multilib, gcc-12.3.0, glibc-2.33-r4, 6.13.0 x86_64)
=================================================================
System uname: Linux-6.13.0-x86_64-Intel-R-_Core-TM-_i7_CPU_960_@_3.20GHz-with-gentoo-2.2.1
KiB Mem:    49332940 total,  36849928 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 08 Feb 2025 15:15:00 +0000
Head commit of repository gentoo: c6cb0eba38cbbb7e7def07e5217059a268d60e24
Head commit of repository flatpak-overlay: 4bf9a7815ca9361f86459c8a8e9bc403e3721704

sh bash 5.2.37
ld GNU ld (Funtoo 2.40_p5 patchset: https://dev.gentoo.org/~dilfridge/distfiles/binutils-2.40-patches-5.tar.xz) 2.40.0
dev-lang/python:          2.7.18-r1::python-kit, 3.4.8-r1::python-kit, 3.7.17::python-kit, 3.9.21::python-kit, 3.11.11_p1::gentoo
sys-devel/autoconf:       2.72::core-kit
sys-devel/automake:       1.15.1-r2::core-kit, 1.16.5::core-kit
sys-devel/binutils:       2.40_p5-r1::core-kit, 2.44::gentoo
sys-kernel/linux-headers: 4.14::core-kit (virtual/os-headers)
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    sync-rsync-extra-opts:

flatpak-overlay
    location: /home/zeno/zgoverlay/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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="-O2 -pipe"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=8 --load-average=8"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cdn config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg 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"
GENTOO_MIRRORS="https://direct.funtoo.org"
PKGDIR="/var/cache/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_13" 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" 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="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_11 python3_9 python_targets_pypy3" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND

I also tried this, https://wiki.gentoo.org/wiki/Upgrading_Gentoo/de but it does not work.

Portage upgrade almost went through but then failed because you can only upgrade portage with Python 11 that supports "distfiles."

I am happy to test more, if you can give me a pointer how to get around the EAPI 7 to EAPI 8 boundaries.

This

https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage.

results in

This time it tells me after doing all the
Code:

  500  mkdir -p /tmp/portage && cd /tmp/portage
  501  wget https://gitweb.gentoo.org/proj/portage.git/snapshot/portage-3.0.52.tar.gz
  502  tar xvf portage-3.0.52.tar.gz -C /tmp/portage --strip-components=1
  503  export PYTHONPATH="/tmp/portage/lib${PYTHONPATH:+:}${PYTHONPATH}"
  504  export PATH="/tmp/portage/bin:${PATH}"
  505  bin/emerge --info

steps:

Code:
zenogentoo /tmp/portage # bin/emerge
  File "bin/emerge", line 61
    sys.stderr.write(f"Permission denied: '{str(e)}'\n")
                                                      ^
SyntaxError: invalid syntax

emerge --update --newuse --deep @world

I get:

Calculating dependencies... done!
Code:

!!! The following binary packages have been ignored due to non matching USE:

    =sys-apps/baselayout-2.17 -split-usr

NOTE: The --binpkg-respect-use=n option will prevent emerge
      from ignoring these binary packages if possible.
      Using --binpkg-respect-use=y will silence this warning.

!!! All ebuilds that could satisfy "app-alternatives/bzip2" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-alternatives/bzip2-1::gentoo (masked by: EAPI 8)
- app-alternatives/bzip2-1 (masked by: EAPI 8)

The current version of portage supports EAPI '7'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
(dependency required by "@system" [set])
(dependency required by "@world" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

Also this seems funky and undocumented:

Ok, I set my profile to:

eselect profile set 45

why is my EAPI Version in

cat /etc/portage/make.profile/eapi

showing

5 and not 8?

code tags added to preserve formatting -- NeddySeagoon
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 473

PostPosted: Sun Feb 09, 2025 8:43 am    Post subject: Reply with quote

Code:
man portage

Code:
eapi
    The first line of this file specifies the EAPI to which files in the same directory conform. See ebuild(5) for information about EAPI and related features. Beginning with EAPI 5, new USE configuration files are supported: use.stable.mask, use.stable.force, package.use.stable.mask and package.use.stable.force. These files behave similarly to previously supported USE configuration files, except that they only influence packages that are merged due to a stable keyword.

    If the eapi file does not exist, then the EAPI defaults to 0 unless the default has been overridden by a profile_eapi_when_unspecified setting inside metadata/layout.conf of the containing repository.

I am assuming that the contents of that file, eapi, refers to all the use configuration files in that directory (/etc/portage). The current portage configuration files that are supported were introduced in EAPI 5 and I would guess they have not changed much (if at all) since. The contents of that file are the same on my machine and I assume they are normal and have no bearing on your issues.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 468

PostPosted: Sun Feb 09, 2025 10:48 am    Post subject: Reply with quote

You've tried a lot of things, but it reads like you did not quite understand the consequences of some/all steps you took.
This leads to a very confusing state for anyone coming here to help you.

So let's take a few (dozens?) steps back and see where you are.
Your portage is 3.0.14, which is 4 years old: https://github.com/gentoo/gentoo/commit/b03adb22f0432ee992aab733ce5dfa13e9b6801a
Does that mean this is your first upgrade in 4 years? If so, you should have come here for advice before attempting anything.

zdavatz wrote:
Ok, I set my profile to:

eselect profile set 45

why is my EAPI Version in

cat /etc/portage/make.profile/eapi

showing

5 and not 8?


That file is just about the profile. It has nothing to do with ebuilds or /usr/bin/emerge.
You also shouldn't have touched profile 23.0 until you were completely up to date, so I have to ask.

How far did you get through the porfile 23.0 upgrade documentation before you got stuck again?

Judging from your traceback, you're trying to use python 3.7 portage. The last portage that supported python 3.7 was 3.0.24 and I'd be hesitant upgrading beyond that point. At least not in one go.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 12:40 pm    Post subject: Reply with quote

zdavatz,

We need to discover what you have done, possibly undo some/all of if then start the update again.
Do nothing else until we understand that.

Please put /var/log/emerge.log onto a pastebin.
Code:
wgetpaste /var/log/emerge.log
Will do that. You may need to install wgetpaste and play with the -s -S options.
We need the last 5 or 6 years worth of data if it won't all fit.

Its a log of every package installed and failures since the install began.

The older an install, the more your learn from doing the update. After 12 months without an update, it can get very educational :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9336

PostPosted: Sun Feb 09, 2025 2:40 pm    Post subject: Reply with quote

Quote:
There really seems no easy way to upgrade your Gentoo System. ;(

To make that very clear: It is *your* [whatever] system.

Even in the bug this user wants us to believe this is a Gentoo system, however:
Code:
ld GNU ld (Funtoo 2.40_p5 patchset: https://dev.gentoo.org/~dilfridge/distfiles/binutils-2.40-patches-5.tar.xz) 2.40.0
dev-lang/python:          2.7.18-r1::python-kit, 3.4.8-r1::python-kit, 3.7.17::python-kit, 3.9.21::python-kit, 3.11.11_p1::gentoo
sys-devel/autoconf:       2.72::core-kit
sys-devel/automake:       1.15.1-r2::core-kit, 1.16.5::core-kit
sys-devel/binutils:       2.40_p5-r1::core-kit, 2.44::gentoo
sys-kernel/linux-headers: 4.14::core-kit (virtual/os-headers)
[...]
GENTOO_MIRRORS="https://direct.funtoo.org"

Every line above shows clear signs of what this really is, as we established in the bug.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5381
Location: Bavaria

PostPosted: Sun Feb 09, 2025 2:47 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 4:40 pm    Post subject: Reply with quote

Attached is the emerge.log: https://1drv.ms/t/c/8db8718f73b2d606/EYctpm75_ZFOhRWc4uDeqJoBWwRMJPfvebQX1CZB4u41sg?e=JfdXqg
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 4:51 pm    Post subject: Reply with quote

bstaletic wrote:
You've tried a lot of things, but it reads like you did not quite understand the consequences of some/all steps you took.

How far did you get through the porfile 23.0 upgrade documentation before you got stuck again?



Problem is, that even the portage-3.0.66.1-r1-1.gpkg.tar I generated via the Rescue Boot will not install ;(.

I followed these instructions:

https://wiki.gentoo.org/wiki/Fix_my_Gentoo

I am happy to test some commands ;) so others can learn as well from the process.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 5:25 pm    Post subject: Reply with quote

zdavatz,


Good, that's your entire emerge history
Code:
Started emerge on: Jan 17, 2012 12:59:14


Don't ever use
Code:
 --autounmask
of any sort. It tells portage to guess what you want.
Sometimes it unmasks live ebuilds and make a real mess.
Use --autounmask options with --pretend if you want to see portages guess without doing any harm.
If you like it, you can always act on it.

It looks like you last successful @world update was
Code:
1474718347: Started emerge on: Sep 24, 2016 13:59:06
1474718347:  *** emerge --newuse --update --with-bdeps=y --deep @world


You have not used
Code:
--oneshot
when you should have, so your world fille is polluted with things that should be pulled in as dependencies of other things.
Portage then keeps all this junk around when it should be depcleaned.

We need to clean up your world file. Mk1 eyeball will do to start.
Please post /var/lib/portage/world
Not on OneDrive if you can help it. wgetpaste produces something much easier to use for your readers.

Also post the entire output of
Code:
cat /etc/portage/package.accept_keywords  /etc/portage/package.unmask  /etc/portage/package.use

They may be files or directories. We need every entry so that we can see what --autounmask has done. We may need to undo some or all of it

The plan of attack is to
1, Clean up your world world pollution
2. Try to fix what --autounmask has done. On your stable
Code:
ACCEPT_KEYWORDS="amd64"
system, nothing like that should ever be required.
3. Return to the /17.1/. I'm not sure what that involves yet.
4. Get a portage snapshot from Sep 24, 2016 or just after and try to replicate you success then.
6. Do approximately 6 month steps until we get to today.
7. Do the /17.1/ to /23.0/ profile update.

Its going to take time and be very educational. If you want to update, this is the way to go. A reinstall will be much faster.
You will not be able to use a BINHOST until we are nearly current. The packages won't be there.

-- edit --

Code:
1739117621:  >>> emerge (1 of 1) app-text/wgetpaste-2.28-r2 to /
1739117621:  === (1 of 1) Cleaning (app-text/wgetpaste-2.28-r2::/var/git/meta-repo/kits/core-kit/app-text/wgetpaste/wgetpaste-2.28-r2.ebuild)
1739117623:  === (1 of 1) Compiling/Merging (app-text/wgetpaste-2.28-r2::/var/git/meta-repo/kits/core-kit/app-text/wgetpaste/wgetpaste-2.28-r2.ebuild)
1739117627:  === (1 of 1) Merging (app-text/wgetpaste-2.28-r2::/var/git/meta-repo/kits/core-kit/app-text/wgetpaste/wgetpaste-2.28-r2.ebuild)
1739117630:  >>> AUTOCLEAN: app-text/wgetpaste:0
1739117633:  === (1 of 1) Updating world file (app-text/wgetpaste-2.28-r2)
1739117633:  === (1 of 1) Post-Build Cleaning (app-text/wgetpaste-2.28-r2::/var/git/meta-repo/kits/core-kit/app-text/wgetpaste/wgetpaste-2.28-r2.ebuild)
1739117633:  ::: completed emerge (1 of 1) app-text/wgetpaste-2.28-r2 to /
1739117633:  *** Finished. Cleaning up...
1739117635:  *** exiting successfully.
:)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 6:18 pm    Post subject: Reply with quote

[quote="NeddySeagoon"]zdavatz,

We need to clean up your world file. Mk1 eyeball will do to start.
Please post /var/lib/portage/world

https://dpaste.com/74SBPXMBV

Also post the entire output of
Code:
cat /etc/portage/package.accept_keywords  /etc/portage/package.unmask  /etc/portage/package.use


https://dpaste.com/F3J4YJN29
https://dpaste.com/7FLHZXEP9

~> ls /etc/portage/package.use
gentoolkit portage python_targets revdep-rebuild
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 6:28 pm    Post subject: Reply with quote

I am really curious why this is happening:

https://dpaste.com/C25VKVAC6

this is very confusing: meson-format-array: no python-exec wrapped executable found in /usr/lib/python-exec.

Also why is python 3.11 needed to emerge the latest portage version? Python3.11 uses distutils and Python 3.12 does not use it anymore.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 7:05 pm    Post subject: Reply with quote

zdavatz,

app-office/libreoffice-l10n is pulled in by app-office/libreoffice
app-portage/elt-patches is pulled in by portage
app-portage/layman is long dead. Use eselect repository
app-shells/bash is part of @system.
app-text/hunspell is a spell checker normally pulled in by a USE flay if its optional.
app-text/poppler is pulled in as a dependency of things that need it
dev-cpp/libxmlpp:2.6::gnome-kit died with Funtoo. We need to remove that as some time and replace in with the Gentoo equivalent, if there is one.
dev-java/oracle-jre-bin:1.7 is old and dead. Keep it if you need that version of Java
dev-lang/ghc is testing only in ::gentoo.
dev-lang/python is part of the @system set
dev-lang/python-exec is free with things that need it.
dev-lang/python:2.7 is gone from ::gentoo.

Code:
dev-libs/boost
dev-libs/dbus-glib
dev-libs/double-conversion
dev-libs/elfutils
dev-libs/fribidi
dev-libs/geoip
dev-libs/glib
dev-libs/gmp
dev-libs/gobject-introspection
dev-libs/icu
dev-libs/json-glib
dev-libs/jsoncpp
dev-libs/libIDL
dev-libs/libconfig
dev-libs/libee
dev-libs/libevdev
dev-libs/libevent
dev-libs/libffi
dev-libs/libgcrypt
dev-libs/libgpg-error
dev-libs/libgudev
dev-libs/libmaxminddb
dev-libs/libnl
dev-libs/libofx
dev-libs/libpcre
dev-libs/libpthread-stubs
dev-libs/libsigc++
dev-libs/libusb
dev-libs/libuv
dev-libs/libxml2
dev-libs/libxslt
dev-libs/log4cplus
dev-libs/mpfr
dev-libs/nettle
dev-libs/nspr
dev-libs/nss
dev-libs/opensc
dev-libs/openssl
dev-libs/ppl
dev-libs/protobuf
dev-libs/pugixml
dev-libs/qcustomplot
dev-libs/re2
dev-libs/wayland
The hint is in the dev-libs name. Things that need these libraries will depend on them.

dev-util/* are mostly dependencies or @system members. Leave them just now.

Code:
media-gfx/gimp
media-gfx/gimp:2
Thats going to make a mess when gimp-3 is unmasked. Remove media-gfx/gimp:2

media-libs/* are pulled in my whatever needs them and should not be in the world file.

net-im/teams was in ::gentoo for a while. Its gone now.

net-libs/* are libraries ...

net-misc/youtube-dl has gone.

net-vpn/wireguard-modules was merged into the kernel a while ago.

sys-apps/portage is part of @system

sys-boot/lilo is dead on its feet. It will not support UEFI and development has stopped. Keep using it if it works.
sys-boot/syslinux is another boot loader. You can only use one at a time.

sys-devel/binutils
sys-devel/gcc
are part of @system
Code:
sys-devel/gcc-config
sys-devel/gettext
sys-devel/llvm
are free with other things

sys-fs/eudev has gone.

sys-libs/* are libraries

sys-libs/readline:0::core-kit died with Funtoo
sys-libs/readline is part of @system

virtual/libgudev
virtual/libmysqlclient
virtual/libudev
virtual/mysql
virtual/opengl
virtual/python-pathlib

Virtuals should never be in world they are a trick to allow portage to choose between two or more options. If the virtual is not satisfied the first listed option will be installed.

www-client/google-chrome-beta::browser-kit ... Funtoo.

x11-base/xorg-drivers comes from your VIDEO_CARDS settings. It should not be in world.
Likewise x11-drivers is controlled by VIDEO_CARDS and INPUT_DEVICES.

x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
have both been removed, portage will fail trying to keep them.

x11-libs/* are libs ...

Code:
emerge --deselect
all the Funtoo remontants and all the things that should not be there.
We will be going back to the end of 2016. The things that have been removed my be around then, so don't forget about them as they will need to be removed sometime.

I'm bound to have missed some but the script that does the checking is very slow. It has a lot of dependencies to attempt to resolve.

I'll look at
Code:
cat /etc/portage/package.accept_keywords  /etc/portage/package.unmask  /etc/portage/package.use
next.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 7:24 pm    Post subject: Reply with quote

zdavatz,

Your /etc/portage/package.accept_keywords does not make sense.

Code:
x11-libs/libdrm
>=x11-libs/libdrm-2.4.30 libkms
>=dev-java/oracle-jre-bin-1.7.0.2 Oracle-BCLA-JavaSE
dev-lang/php apache2
>=media-libs/freetype-1.4_pre20080316-r2:1 kpathsea
>=dev-libs/libxml2-2.8.0-r1001 icu
>=app-text/cpdf-2.2.1_p20171122


You should not have USE flags or licences there. They have their own directories/files.

/etc/portage/package.unmask
Code:
=dev-lang/python-3.5.1-r2
Its safer to use the slot rather than version
Code:
dev-lang/python:3.5
allows any python-3.5 to be installed, so you get updates.

This file is for unmasking hard masked packages. They are often not keyworded either, so entries in two files are required to be able to use them.

Why are
Code:
=dev-lang/python-3.12*
=dev-lang/python-3.11*
=dev-lang/python-3.13*
=dev-build/meson-format-array-0
=sys-libs/glibc-2.41
listed?

Its harmless for now but I don't understand the intent of most of the entries.

Read about the files in /etc/portage/ in
Code:
man portage

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 7:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
zdavatz,

I'll look at
Code:
cat /etc/portage/package.accept_keywords  /etc/portage/package.unmask  /etc/portage/package.use
next.


Thank you!

You do not need to worry about Gimp, Inkscape, Gnucash, Libreoffice, et all, as I can install that easily using Flatpak.

The only things that matter are:

1. Portage
2. GCC
3. Cmake
4. Glibc

I am running the latest Kernel no problem. But above four should just be dead easy to upgrade.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 7:57 pm    Post subject: Reply with quote

zdavatz,

Not really.
They all depend on other things and those other things have dependences and so on.
Is possible to pull those packages out of a stage3 tarball ... but they won't work on your install because the dependencies will be wrong.

Its all complicated by being a Funtoo install too.

The way ahead is to regress the ::gentoo repo to the end of Sepember 2016 and run an
Code:
emerge -uDUav @world
that successfully updates a small number of packages.
That will involve moving back to the /17.1/ profile os the /23.0/ profile did not exist then.
If /17.1/ is missing when we regress, we can move forward to the earliest /17.1/ profile.

With your last world update being September 2016. I have my doubts about /17.0/ or /17.1/ profiles being in the ::gentoo repro.
I have my doubts about the upgrade steps ever being followed.
It will be interesting to see what profiles are available in ::gentoo at that date.

At 2016-09-30, its the /13.0/ profile in ::gentoo, so how did you upgrade past that?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 9:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
zdavatz,

With your last world update being September 2016. I have my doubts about /17.0/ or /17.1/ profiles being in the ::gentoo repro.
I have my doubts about the upgrade steps ever being followed.
It will be interesting to see what profiles are available in ::gentoo at that date.


Yes, that is why I am interested to now why my portage emerge fails, and why this can not go through:

https://dpaste.com/C25VKVAC6
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 9:08 pm    Post subject: Reply with quote

A lot seems to depend on this overly complicated setup, IMHO:

server-21.1.10/work/xorg-server-21.1.10 /var/tmp/portage/x11-base/xorg-server-21.1.10/work/xorg-server-21.1.10-build
meson: no python-exec wrapped executable found in /usr/lib/python-exec.
* ERROR: x11-base/xorg-server-21.1.10::core-gl-kit failed (configure phase):
* (no error message)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 9:09 pm    Post subject: Reply with quote

zdavatz,

There is no quick way to do this. Many have tried an failed.

We go back to September 2016 and do all the steps you missed in the last 9 years.
Its the only way to catch all the dependencies.

The other, much faster way, is to reinstall then maintain the install.

You choose.

xorg-server-21.1.10 is from Funtoo. Its gone.
Gentoo gives you 21.1.14 and 21.1.15 today.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Sun Feb 09, 2025 9:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
zdavatz
n00b
n00b


Joined: 20 Feb 2006
Posts: 25

PostPosted: Sun Feb 09, 2025 9:12 pm    Post subject: Reply with quote

Also, why does this not compile:

https://dpaste.com/BT47M3LXS

I mean, I can compile the latest Linux Kernel and boot into it no problem, so it should not be a problem to install an update of python exec ;/.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1492
Location: Richmond Hill, Canada

PostPosted: Sun Feb 09, 2025 9:13 pm    Post subject: Reply with quote

zdavatz wrote:
NeddySeagoon wrote:
zdavatz,

With your last world update being September 2016. I have my doubts about /17.0/ or /17.1/ profiles being in the ::gentoo repro.
I have my doubts about the upgrade steps ever being followed.
It will be interesting to see what profiles are available in ::gentoo at that date.


Yes, that is why I am interested to now why my portage emerge fails, and why this can not go through:

https://dpaste.com/C25VKVAC6


Please execute me for English is not my first language.

Are you trying to understand why the portage emerge fail as in what those error messages is about?
Or
You want to know to make it work? as in how to use emerge to perform portage update or how to bootstrap a working portage?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sun Feb 09, 2025 9:18 pm    Post subject: Reply with quote

zdavatz,

Code:
* Package:    dev-lang/python-exec-2.4.6-r2
 * Repository: core-kit

That's another Funtoo package.

The error says
Code:
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/python-exec-2.4.6-r2/work/python-exec-2.4.6/config.log


We cannot help with Funtoo. It no longer exists - stop trying to use it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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