public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: <ilovecountrymusic483@gmail.com>
To: <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] emerge fails with syntax error from     stage3-amd64-openrc-20250216T164837Z.tar.xz
Date: Sat, 22 Feb 2025 16:35:03 -0500	[thread overview]
Message-ID: <002d01db8571$a26135c0$e723a140$@gmail.com> (raw)
In-Reply-To: <20250222011341.78bcdcca.lembark@wrkhors.com>



-----Original Message-----
From: Steven Lembark <lembark@wrkhors.com> 
Sent: Saturday, February 22, 2025 1:14 AM
To: gentoo-user@lists.gentoo.org
Cc: lembark@wrkhors.com
Subject: [gentoo-user] emerge fails with syntax error from
stage3-amd64-openrc-20250216T164837Z.tar.xz


Done this enough times before: Boot the minimal install, create a vm, create
the baseline LV's, mount them along with the slaves (e.g., dev), chroot to
the new system, do the emerges.

Checking the duck didn't get me anywhere; not sure if this is something
well-known or not; if so any pointers to known workarounds would be
appreciated.

Thanks

Hi,  I have tried this before and found for what ever reason that my
compiler doesn't work along with a few other issues.  I have a current vm
which works just fine and is currently updating as I write.


Using:

    install-amd64-minimal-20250216T164837Z.iso
    stage3-amd64-openrc-20250216T164837Z.tar.xz

Mount the filesytems then:

cd /mnt/gentoo;
xzcat < stage3-amd64-openrc-20250216T164837Z.tar.xz | tar xf -;

mount --bind for dev, sys, proc, run...
chroot /mnt/gentoo /bin/bash --login;

Simple sanity check: Does emerge run at all:

# ls -l $( which emerge );
lrwxrwxrwx 1 root root 31 Feb 16 17:23 /bin/emerge ->
../lib/python-exec/python-exec2

whatever python-exec might be...

# emerge --version;

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/emerge", line 51, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 25, in
<module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/usr/lib/python3.12/site-packages/portage/sync/__init__.py", line
24, in <module>
    module_controller = Modules(path=path, namepath="portage.sync.modules")
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/module.py", line 101, in
__init__
    self._modules = self._get_all_modules()
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/module.py", line 134, in
_get_all_modules
    new_module = Module(entry, self._namepath)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/module.py", line 33, in
__init__
    self.initialized = self._initialize()
                       ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/portage/module.py", line 43, in
_initialize
    self._module = __import__(mod_name, [], [], ["not empty"])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/usr/lib/python3.12/site-packages/portage/sync/modules/PaxHeaders/__init__.
py", line 1
    20 atime=1726641191
       ^^^^^
SyntaxError: invalid syntax


--
Steven Lembark
Workhorse Computing
lembark@wrkhors.com
+1 888 359 3508




      parent reply	other threads:[~2025-02-22 21:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-22  6:13 [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz Steven Lembark
2025-02-22  8:29 ` Dale
2025-02-22 21:35 ` ilovecountrymusic483 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002d01db8571$a26135c0$e723a140$@gmail.com' \
    --to=ilovecountrymusic483@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox