Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[SOLVED] Gentoo broken in a lot of ways for no reason

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
42 posts
  • Previous
  • 1
  • 2
Author
Message
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 6:11 pm

Tony0945 wrote:I notice this from March 2021 on the web:
https://dev.gentoo.org/~zmedico/portage ... rge.1.html
PORTAGE_CONFIGROOT = [path]
Use PORTAGE_CONFIGROOT to specify the location for various portage configuration files (see FILES for a detailed list of configuration files). This variable can be set via the --config-root option. However, it is now superseded by the SYSROOT variable and can only be given if its value matches SYSROOT or if ROOT=/.
Defaults to /.
So I searched for that instead:

Code: Select all

~ $ sudo grep SYSROOT -r /etc/*
/etc/portage/savedconfig/sys-apps/busybox-1.23.1-r1:CONFIG_SYSROOT=""
/etc/portage/savedconfig/sys-apps/busybox-1.32.1-r1:CONFIG_SYSROOT=""
For what it's worth, if anything.
Still no results
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 6:24 pm

NeddySeagoon wrote:Ari_archer,

There are no hits in /etc/portage, nor are there any permission denied problems in /etc/portage

That tells that CONFIG_ROOT is not set by anything that we would expect to influence portage.
It must be in the environment before emerge is started.

As your normal user, try

Code: Select all

grep CONFIG_ROOT -r ~/
As the root user,

Code: Select all

grep CONFIG_ROOT -r /root
~ is short for /home/<user_name/>
grep CONFIG_ROOT -r ~/:

Code: Select all

/bin/grep: /home/ari/.local/lib/python3.9/site-packages/opencv_python.libs/libxkbcommon-71ae2972.so.0.0.0: binary file matches
/bin/grep: /home/ari/.mozilla/firefox/qvtx0u0z.default-esr/sessionstore-backups/recovery.baklz4: binary file matches
/bin/grep: /home/ari/.mozilla/firefox/qvtx0u0z.default-esr/sessionstore-backups/recovery.jsonlz4: binary file matches
grep CONFIG_ROOT -r /root didn't return anything

grep PORTAGE_CONFIGROOT -r /root returned nothing

grep PORTAGE_CONFIGROOT -r ~/:

Code: Select all

/home/ari/.local/lib/python3.9/site-packages/_emerge/actions.py:                        "PORTAGE_CONFIGROOT"
/home/ari/.local/lib/python3.9/site-packages/_emerge/actions.py:        settings["PORTAGE_CONFIGROOT"], BINREPOS_CONF_FILE
/home/ari/.local/lib/python3.9/site-packages/_emerge/actions.py:        ("config_root", "PORTAGE_CONFIGROOT"),
/home/ari/.local/lib/python3.9/site-packages/_emerge/depgraph.py:                    settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH
/home/ari/.local/lib/python3.9/site-packages/_emerge/depgraph.py:                settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH
/home/ari/.local/lib/python3.9/site-packages/_emerge/depgraph.py:                    settings["PORTAGE_CONFIGROOT"],
/home/ari/.local/lib/python3.9/site-packages/_emerge/depgraph.py:                    settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH
/home/ari/.local/lib/python3.9/site-packages/_emerge/main.py:        os.environ["PORTAGE_CONFIGROOT"] = myopts["--config-root"]
/home/ari/.local/lib/python3.9/site-packages/_emerge/post_emerge.py:        settings["PORTAGE_CONFIGROOT"], portage.USER_CONFIG_PATH, "bin", "post_emerge"
/home/ari/.local/lib/python3.9/site-packages/portage/_legacy_globals.py:        ("config_root", "PORTAGE_CONFIGROOT"),
/home/ari/.local/lib/python3.9/site-packages/portage/_legacy_globals.py:    profiledir = os.path.join(settings["PORTAGE_CONFIGROOT"], PROFILE_PATH)
/home/ari/.local/lib/python3.9/site-packages/portage/const.py:# The first, config_root (PORTAGE_CONFIGROOT), can be a path somewhere,
/home/ari/.local/lib/python3.9/site-packages/portage/_sets/__init__.py:                "PORTAGE_CONFIGROOT": settings["PORTAGE_CONFIGROOT"],
/home/ari/.local/lib/python3.9/site-packages/portage/_sets/__init__.py:        parser.set("usersets", "directory", "%(PORTAGE_CONFIGROOT)setc/portage/sets")
/home/ari/.local/lib/python3.9/site-packages/portage/_sets/__init__.py:            settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH, "sets.conf"
/home/ari/.local/lib/python3.9/site-packages/portage/_sets/files.py:            os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH, "sets"),
/home/ari/.local/lib/python3.9/site-packages/portage/_sets/files.py:            "directory", os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH)
/home/ari/.local/lib/python3.9/site-packages/portage/binrepo/config.py:            "PORTAGE_CONFIGROOT": settings["PORTAGE_CONFIGROOT"],
/home/ari/.local/lib/python3.9/site-packages/portage/dbapi/bintree.py:                    self.settings["PORTAGE_CONFIGROOT"], BINREPOS_CONF_FILE
/home/ari/.local/lib/python3.9/site-packages/portage/dbapi/bintree.py:                            % (mycpv, self.settings["PORTAGE_CONFIGROOT"]),
/home/ari/.local/lib/python3.9/site-packages/portage/dbapi/porttree.py:                % (mycp, self.settings["PORTAGE_CONFIGROOT"]),
/home/ari/.local/lib/python3.9/site-packages/portage/elog/mod_mail_summary.py:    config_root = mysettings["PORTAGE_CONFIGROOT"]
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:    parent profiles as well as from ROOT/PORTAGE_CONFIGROOT/* for user specified
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:        @param config_root: path to read local config from (defaults to "/", see PORTAGE_CONFIGROOT)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:            expand_map["PORTAGE_CONFIGROOT"] = config_root
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:            self["PORTAGE_CONFIGROOT"] = config_root
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:            self["PORTAGE_CONFIGROOT"] = config_root
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:            self.backup_changes("PORTAGE_CONFIGROOT")
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:            portage.output._init(config_root=self["PORTAGE_CONFIGROOT"])
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:                x = os.path.join(self["PORTAGE_CONFIGROOT"], x)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:                    self["PORTAGE_CONFIGROOT"], PROFILE_PATH
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:        abs_user_virtuals = os.path.join(self["PORTAGE_CONFIGROOT"], USER_VIRTUALS_FILE)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:                os.path.join(self["PORTAGE_CONFIGROOT"], PROFILE_PATH)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/config.py:        abs_user_config = os.path.join(self["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/deprecated_profile_check.py:        config_root = settings["PORTAGE_CONFIGROOT"]
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/doebuild.py:        mysettings["PORTAGE_CONFIGROOT"], EBUILD_SH_ENV_FILE
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/doebuild.py:        mysettings["PORTAGE_CONFIGROOT"], EBUILD_SH_ENV_DIR
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/fetch.py:        os.path.join(mysettings["PORTAGE_CONFIGROOT"], CUSTOM_MIRRORS_FILE), recursive=1
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/getmaskingreason.py:    locations.append(os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH))
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/_config/LocationsManager.py:        self._check_var_directory("PORTAGE_CONFIGROOT", self.config_root)
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/_config/special_env_vars.py:        "PORTAGE_CONFIGROOT",
/home/ari/.local/lib/python3.9/site-packages/portage/package/ebuild/_config/special_env_vars.py:    "PORTAGE_CONFIGROOT",
/home/ari/.local/lib/python3.9/site-packages/portage/repository/config.py:            "PORTAGE_CONFIGROOT": settings["PORTAGE_CONFIGROOT"],
/home/ari/.local/lib/python3.9/site-packages/portage/repository/config.py:            os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH, "repos.conf")
/home/ari/.local/lib/python3.9/site-packages/portage/sync/controller.py:            hooks = get_hooks_from_dir(_dir, prefix=self.settings["PORTAGE_CONFIGROOT"])
/home/ari/.local/lib/python3.9/site-packages/portage/tests/emerge/test_simple.py:                "PORTAGE_CONFIGROOT",
/home/ari/.local/lib/portage/bin/emerge-webrsync:	PORTAGE_BIN_PATH PORTAGE_CONFIGROOT PORTAGE_GPG_DIR \
/home/ari/.local/lib/portage/bin/emerge-webrsync:	local post_sync=${PORTAGE_CONFIGROOT}etc/portage/bin/post_sync
/home/ari/.local/lib/portage/bin/etc-update:		"${PORTAGE_CONFIGROOT}"etc/etc-update.conf)
/home/ari/.local/lib/portage/bin/etc-update:	local special="${PORTAGE_CONFIGROOT}etc/etc-update.special"
/home/ari/.local/lib/portage/bin/etc-update:	PORTAGE_CONFIGROOT='/'
/home/ari/.local/lib/portage/bin/etc-update:	PORTAGE_CONFIGROOT='/'
/home/ari/.local/lib/portage/bin/etc-update:	PORTAGE_CONFIGROOT
/home/ari/.local/lib/portage/bin/misc-functions.sh:		sfconf=${PORTAGE_CONFIGROOT}etc/portage/suidctl.conf
/home/ari/.local/lib/portage/bin/misc-functions.sh:	local hooks_dir="${PORTAGE_CONFIGROOT}etc/portage/hooks/install"
/home/ari/.local/lib/portage/bin/phase-functions.sh:	PORTAGE_BZIP2_COMMAND PORTAGE_COLORMAP PORTAGE_CONFIGROOT \
/home/ari/.local/lib/portage/bin/phase-helpers.sh:		local basedir=${PORTAGE_CONFIGROOT%/}/etc/portage/patches
/home/ari/.local/lib/portage/bin/portageq:			os.environ["PORTAGE_CONFIGROOT"] = eroot
/home/ari/.local/share/man/man1/egencache.1:.BR "\-\-config\-root=PORTAGE_CONFIGROOT"
/home/ari/.local/share/man/man1/emerge.1:Set the \fBPORTAGE_CONFIGROOT\fR environment variable.
/home/ari/.local/share/man/man1/emerge.1:\fBPORTAGE_CONFIGROOT\fR = \fI[path]\fR
/home/ari/.local/share/man/man1/emerge.1:Use \fBPORTAGE_CONFIGROOT\fR to specify the location for various portage
/home/ari/.local/share/man/man1/etc-update.1:\fIetc\-update\fR respects the normal \fIPORTAGE_CONFIGROOT\fR and
/home/ari/.local/share/man/man1/ru/etc-update.1:\fIetc\-update\fR учитывает переменные \fIPORTAGE_CONFIGROOT\fR
/home/ari/.local/share/man/man5/portage.5:directory =  %(PORTAGE_CONFIGROOT)setc/portage/sets
/home/ari/.local/share/portage/config/sets/portage.conf:directory =  %(PORTAGE_CONFIGROOT)setc/portage/sets
/home/ari/.local/share/portage/doc/RELEASE-NOTES:      override PORTAGE_CONFIGROOT
/home/ari/.local/share/portage/doc/RELEASE-NOTES:    - Bug 511806 make.conf: expand PORTAGE_CONFIGROOT
/home/ari/.local/share/portage/doc/RELEASE-NOTES:                 PORTAGE_CONFIGROOT
/home/ari/Ari/coding/html_css_js_/website_terminal/data/sosupebujo:PORTAGE_CONFIGROOT="/usr/"
and yeah hehe, i know what ~ is ;D
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56087
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 6:55 pm

Ari_archer,

Code: Select all

/home/ari/Ari/coding/html_css_js_/website_terminal/data/sosupebujo:PORTAGE_CONFIGROOT="/usr/" 
What is that for?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dbtx
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Mon Jan 20, 2020 5:31 am
Contact:
Contact dbtx
Website

  • Quote

Post by dbtx » Sun Oct 03, 2021 7:04 pm

NeddySeagoon wrote:What is that for?
That's the copy from the non-working pastebin re-posted yesterday.

Ari_archer, would you revisit /etc again with the other string, as in, grep PORTAGE_CONFIGROOT -r /etc? It seems the only time we've seen it absent from /etc/portage/make.conf is in that GitHub repo, where it was last modified two days before this problem appeared.

edit: have you considered backing up the current /etc/portage and restoring that old copy? It's a backup, after all... but the current version could also be sourcing another file such as /var/lib/layman/make.conf so it would help if you simply paste its contents. And I can only wonder how that whole copy of portage installed into ~/.local fits into all of this.
Last edited by dbtx on Sun Oct 03, 2021 7:22 pm, edited 3 times in total.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Oct 03, 2021 7:07 pm

Just a wild guess 8O were you previously trying install portage without root privilege? or another guess did you try to use crossdev at some point in past?

I am guessing your emerge command is not gentoo standard as we assume in /usr/bin/emerge so what is output

Code: Select all

type -P emerge
And if above output is /usr/bin/emerge, can you tell is it a symbolic link to ../lib/python-exec/python-exec2 or it point to something else?
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 8:29 pm

NeddySeagoon wrote:Ari_archer,

Code: Select all

/home/ari/Ari/coding/html_css_js_/website_terminal/data/sosupebujo:PORTAGE_CONFIGROOT="/usr/" 
What is that for?
my website's source code - it shows up as I put some of the logs there because pastebin was dead
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 8:33 pm

dbtx wrote:
NeddySeagoon wrote:What is that for?
That's the copy from the non-working pastebin re-posted yesterday.

Ari_archer, would you revisit /etc again with the other string, as in, grep PORTAGE_CONFIGROOT -r /etc? It seems the only time we've seen it absent from /etc/portage/make.conf is in that GitHub repo, where it was last modified two days before this problem appeared.

edit: have you considered backing up the current /etc/portage and restoring that old copy? It's a backup, after all... but the current version could also be sourcing another file such as /var/lib/layman/make.conf so it would help if you simply paste its contents. And I can only wonder how that whole copy of portage installed into ~/.local fits into all of this.
grep PORTAGE_CONFIGROOT -r /etc:

Code: Select all

/bin/grep: /etc/ssl/private: Permission denied
/bin/grep: /etc/shadow: Permission denied
/bin/grep: /etc/gshadow-: Permission denied
/bin/grep: /etc/ssh/ssh_host_dsa_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_ed25519_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_rsa_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_ecdsa_key: Permission denied
/bin/grep: /etc/ssh/sshd_config: Permission denied
/bin/grep: /etc/shadow-: Permission denied
/bin/grep: /etc/default/useradd: Permission denied
/bin/grep: /etc/.pwd.lock: Permission denied
/bin/grep: /etc/cups/cupsd.conf: Permission denied
/bin/grep: /etc/cups/snmp.conf.default: Permission denied
/bin/grep: /etc/cups/cups-files.conf: Permission denied
/bin/grep: /etc/cups/snmp.conf: Permission denied
/bin/grep: /etc/cups/cups-files.conf.default: Permission denied
/bin/grep: /etc/skel/.ssh: Permission denied
/bin/grep: /etc/gshadow: Permission denied
/bin/grep: /etc/sudoers.d: Permission denied
/bin/grep: /etc/sudoers.dist: Permission denied
/bin/grep: /etc/sudoers: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcpv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-other-rarp-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-ipv4.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-mac-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcpv6-server.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ip-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/qemu-announce-self-rarp.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-ipv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ip-multicast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-ip-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-mac-broadcast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ipv6-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/clean-traffic-gateway.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcp.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcp-server.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/qemu-announce-self.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-mac-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/clean-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ipv6-multicast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-other-l2-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-incoming-ipv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-incoming-ipv4.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-arp.xml: Permission denied
/bin/grep: /etc/libvirt/qemu/networks/default.xml: Permission denied
/bin/grep: /etc/libvirt/secrets: Permission denied
/bin/grep: /etc/nullmailer/remotes: Permission denied
make.conf is there, just doesn't have PORTAGE_CONFIGROOT set

I don't have a backup sadly, but I tried just resetting /etc/portage and it didn't work

nope, i checked everything in /etc/portage and I never used layman - i use eselect-repository to manage my overlays
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 8:35 pm

pingtoo wrote:Just a wild guess 8O were you previously trying install portage without root privilege? or another guess did you try to use crossdev at some point in past?

I am guessing your emerge command is not gentoo standard as we assume in /usr/bin/emerge so what is output

Code: Select all

type -P emerge
And if above output is /usr/bin/emerge, can you tell is it a symbolic link to ../lib/python-exec/python-exec2 or it point to something else?

Code: Select all

ari@ari-gentoo ~ % type -P emerge
/usr/bin/emerge

ari@ari-gentoo ~ % la /usr/bin/emerge
lrwxrwxrwx root root 31 B Sun Oct  3 12:49:17 2021   emerge@ ⇒ ../lib/python-exec/python-exec2

ari@ari-gentoo ~ % la /usr/lib/python-exec/python-exec2
.rwxr-xr-x root root 2.8 KB Fri Aug 27 17:17:28 2021   python-exec2*
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56087
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 8:45 pm

Ari_archer,

Code: Select all

/home/ari/Ari/coding/html_css_js_/website_terminal/data/sosupebujo:PORTAGE_CONFIGROOT="/usr/" 
If that got into portages environment. it would make a mess of things.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 8:52 pm

NeddySeagoon wrote:Ari_archer,

Code: Select all

/home/ari/Ari/coding/html_css_js_/website_terminal/data/sosupebujo:PORTAGE_CONFIGROOT="/usr/" 
If that got into portages environment. it would make a mess of things.
https://ari-web.netlify.app/data/sosupebujo

it's not in make.conf, portage is not even sourcing my make.conf
Best regards,
Arija A.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Oct 03, 2021 9:00 pm

Ari_archer wrote:
pingtoo wrote:Just a wild guess 8O were you previously trying install portage without root privilege? or another guess did you try to use crossdev at some point in past?

I am guessing your emerge command is not gentoo standard as we assume in /usr/bin/emerge so what is output

Code: Select all

type -P emerge
And if above output is /usr/bin/emerge, can you tell is it a symbolic link to ../lib/python-exec/python-exec2 or it point to something else?

Code: Select all

ari@ari-gentoo ~ % type -P emerge
/usr/bin/emerge

ari@ari-gentoo ~ % la /usr/bin/emerge
lrwxrwxrwx root root 31 B Sun Oct  3 12:49:17 2021   emerge@ ⇒ ../lib/python-exec/python-exec2

ari@ari-gentoo ~ % la /usr/lib/python-exec/python-exec2
.rwxr-xr-x root root 2.8 KB Fri Aug 27 17:17:28 2021   python-exec2*
The reason I think your system is in abnormal condition is because in your previous post the emerge was looking in to your home directory's "~/.local/lib/python" or when under root privilege it look in "~root/.local/lib/python". This is not a normal gentoo emerge behavior. Also from your previous port of declear -p; emerge --info output it show your PATH variable include ~ari/.local/bin all these indicate there was a decision to direct python use alternative/non-system setting. Do you recall what lead to such setting? maybe try share with us with output of

Code: Select all

python
>>> import sys
>>> print (sys.path)
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 9:03 pm

pingtoo wrote:
Ari_archer wrote:
pingtoo wrote:Just a wild guess 8O were you previously trying install portage without root privilege? or another guess did you try to use crossdev at some point in past?

I am guessing your emerge command is not gentoo standard as we assume in /usr/bin/emerge so what is output

Code: Select all

type -P emerge
And if above output is /usr/bin/emerge, can you tell is it a symbolic link to ../lib/python-exec/python-exec2 or it point to something else?

Code: Select all

ari@ari-gentoo ~ % type -P emerge
/usr/bin/emerge

ari@ari-gentoo ~ % la /usr/bin/emerge
lrwxrwxrwx root root 31 B Sun Oct  3 12:49:17 2021   emerge@ ⇒ ../lib/python-exec/python-exec2

ari@ari-gentoo ~ % la /usr/lib/python-exec/python-exec2
.rwxr-xr-x root root 2.8 KB Fri Aug 27 17:17:28 2021   python-exec2*
The reason I think your system is in abnormal condition is because in your previous post the emerge was looking in to your home directory's "~/.local/lib/python" or when under root privilege it look in "~root/.local/lib/python". This is not a normal gentoo emerge behavior. Also from your previous port of declear -p; emerge --info output it show your PATH variable include ~ari/.local/bin all these indicate there was a decision to direct python use alternative/non-system setting. Do you recall what lead to such setting? maybe try share with us with output of

Code: Select all

python
>>> import sys
>>> print (sys.path)

I have added .local/bin to my $PATH because I run some stuff like bpython as a python module.

Code: Select all

ari@ari-gentoo ~ % python3
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

Code: Select all

ari@ari-gentoo ~ % python
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

removing it from PATH and rebooting did not help, but it worked fine before with that setting so i don't know why it's broken
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56087
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 9:26 pm

Ari_archer,

If that was in the environment when emerge was run, it would have the same effect as setting it in make.conf.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Oct 03, 2021 9:40 pm

Ari_archer wrote:
pingtoo wrote:
Ari_archer wrote:

Code: Select all

ari@ari-gentoo ~ % type -P emerge
/usr/bin/emerge

ari@ari-gentoo ~ % la /usr/bin/emerge
lrwxrwxrwx root root 31 B Sun Oct  3 12:49:17 2021   emerge@ ⇒ ../lib/python-exec/python-exec2

ari@ari-gentoo ~ % la /usr/lib/python-exec/python-exec2
.rwxr-xr-x root root 2.8 KB Fri Aug 27 17:17:28 2021   python-exec2*
The reason I think your system is in abnormal condition is because in your previous post the emerge was looking in to your home directory's "~/.local/lib/python" or when under root privilege it look in "~root/.local/lib/python". This is not a normal gentoo emerge behavior. Also from your previous port of declear -p; emerge --info output it show your PATH variable include ~ari/.local/bin all these indicate there was a decision to direct python use alternative/non-system setting. Do you recall what lead to such setting? maybe try share with us with output of

Code: Select all

python
>>> import sys
>>> print (sys.path)

I have added .local/bin to my $PATH because I run some stuff like bpython as a python module.

Code: Select all

ari@ari-gentoo ~ % python3
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

Code: Select all

ari@ari-gentoo ~ % python
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

removing it from PATH and rebooting did not help, but it worked fine before with that setting so i don't know why it's broken
Thank you for clarify why :)

I am sure we can agree "computer does not perform magic, all setting must be done somehow". So the "PORTAGE_CONFIGROOT" must be set by a prior act somehow. We also know that "PORTAGE_CONFIGROOT=/usr" is the reason you currently experiencing abnormal behavior so my immediate thoughts is to correct it by
  • set PORTAGE_CONFIGROOT=/ in /etc/make.conf
  • remove ~ari/.local/lib/python3.9/site-packages/portage/ directory
The reason to set PORTGE_CONFIGROOT=/ in /etc/make.conf is to overwrite PORTAGE_CONFIGROOT=/usr so at least we have somewhat standard gentoo portage behavior.

The reason to remove ~ari/.local/lib/python3.9/site-packages/portage/ directory is to ensure portage is not using a outdated/misconfigred code

After you make these change you can try emerge --info again to see if the PORTAGE_CONFIGROOT got overwrite as expected. You shouldn't need to reboot because those changes should not be overwrite by system boot sequence.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 9:41 pm

pingtoo wrote:
Ari_archer wrote:
pingtoo wrote: The reason I think your system is in abnormal condition is because in your previous post the emerge was looking in to your home directory's "~/.local/lib/python" or when under root privilege it look in "~root/.local/lib/python". This is not a normal gentoo emerge behavior. Also from your previous port of declear -p; emerge --info output it show your PATH variable include ~ari/.local/bin all these indicate there was a decision to direct python use alternative/non-system setting. Do you recall what lead to such setting? maybe try share with us with output of

Code: Select all

python
>>> import sys
>>> print (sys.path)

I have added .local/bin to my $PATH because I run some stuff like bpython as a python module.

Code: Select all

ari@ari-gentoo ~ % python3
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

Code: Select all

ari@ari-gentoo ~ % python
Python 3.9.6 (default, Sep  8 2021, 15:10:02)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/ari/.local/lib/python3.9/site-packages', '/usr/lib/python3.9/site-packages']

removing it from PATH and rebooting did not help, but it worked fine before with that setting so i don't know why it's broken
Thank you for clarify why :)

I am sure we can agree "computer does not perform magic, all setting must be done somehow". So the "PORTAGE_CONFIGROOT" must be set by a prior act somehow. We also know that "PORTAGE_CONFIGROOT=/usr" is the reason you currently experiencing abnormal behavior so my immediate thoughts is to correct it by
  • set PORTAGE_CONFIGROOT=/ in /etc/make.conf
  • remove ~ari/.local/lib/python3.9/site-packages/portage/ directory
The reason to set PORTGE_CONFIGROOT=/ in /etc/make.conf is to overwrite PORTAGE_CONFIGROOT=/usr so at least we have somewhat standard gentoo portage behavior.

The reason to remove ~ari/.local/lib/python3.9/site-packages/portage/ directory is to ensure portage is not using a outdated/misconfigred code

After you make these change you can try emerge --info again to see if the PORTAGE_CONFIGROOT got overwrite as expected. You shouldn't need to reboot because those changes should not be overwrite by system boot sequence.

THANK YOU!!!!!!!!!!!!!!!!
Just removing the portage dir worked! thanks ;)
Best regards,
Arija A.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Oct 03, 2021 9:56 pm

Ari_archer wrote: THANK YOU!!!!!!!!!!!!!!!!
Just removing the portage dir worked! thanks ;)
Wonderful :) Glad it help. Thank you very mush for the feed back.

Admitting I don't understand why remove portage dir work.

Just a quick reminder, I recall in your previous post you seems also run emerge under root, and you may also want to remove the portage dir under ~root/.local/....
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 11:40 pm

pingtoo wrote:
Ari_archer wrote: THANK YOU!!!!!!!!!!!!!!!!
Just removing the portage dir worked! thanks ;)
Wonderful :) Glad it help. Thank you very mush for the feed back.

Admitting I don't understand why remove portage dir work.

Just a quick reminder, I recall in your previous post you seems also run emerge under root, and you may also want to remove the portage dir under ~root/.local/....
/root has some symlinks to my ~ :):

Code: Select all

.rw------- root root  7.8 KB Sun Oct  3 21:22:12 2021   .bash_history
lrwxrwxrwx root root   23 B  Sat Aug 28 19:03:27 2021   .bash_profile ⇒ /home/ari/.bash_profile
lrwxrwxrwx root root   17 B  Sat Aug 28 19:04:02 2021   .bashrc ⇒ /home/ari/.bashrc
drwxr-xr-x root root    4 KB Sun Sep 26 17:05:39 2021   .cache
lrwxrwxrwx root root   17 B  Sat Aug 28 19:04:06 2021   .config ⇒ /home/ari/.config
drwx------ root root    4 KB Sat Aug 28 16:32:10 2021   .dbus
lrwxrwxrwx root root   20 B  Sat Aug 28 19:04:32 2021   .gitconfig ⇒ /home/ari/.gitconfig
lrwxrwxrwx root root   20 B  Sat Aug 28 19:04:40 2021   .gtkrc-2.0 ⇒ /home/ari/.gtkrc-2.0
lrwxrwxrwx root root   16 B  Sat Aug 28 19:04:45 2021   .icons ⇒ /home/ari/.icons
.rw-r--r-- root root    0 B  Thu Jul  1 02:19:00 2021   .keep
.rw------- root root   84 B  Wed Sep 15 19:33:09 2021   .lesshst
lrwxrwxrwx root root   16 B  Sat Aug 28 19:04:54 2021   .local ⇒ /home/ari/.local
lrwxrwxrwx root root   18 B  Sat Aug 28 19:04:59 2021   .mozilla ⇒ /home/ari/.mozilla
lrwxrwxrwx root root   17 B  Sat Aug 28 19:05:04 2021   .ngrok2 ⇒ /home/ari/.ngrok2
drwxr-xr-x root root    4 KB Wed Sep 29 02:58:42 2021   .npm
lrwxrwxrwx root root   15 B  Sat Aug 28 19:05:18 2021   .nvim ⇒ /home/ari/.nvim
lrwxrwxrwx root root   20 B  Sat Aug 28 19:05:22 2021   .oh-my-zsh ⇒ /home/ari/.oh-my-zsh
lrwxrwxrwx root root   18 B  Sat Aug 28 19:05:30 2021   .profile ⇒ /home/ari/.profile
lrwxrwxrwx root root   18 B  Sat Aug 28 19:05:39 2021   .scripts ⇒ /home/ari/.scripts
lrwxrwxrwx root root   14 B  Sat Aug 28 19:05:43 2021   .ssh ⇒ /home/ari/.ssh
lrwxrwxrwx root root   22 B  Sat Aug 28 19:05:47 2021   .thunderbird ⇒ /home/ari/.thunderbird
lrwxrwxrwx root root   22 B  Sat Aug 28 19:05:51 2021   .tor-browser ⇒ /home/ari/.tor-browser
lrwxrwxrwx root root   14 B  Sat Aug 28 19:05:54 2021   .vim ⇒ /home/ari/.vim
.rw------- root root 18.3 KB Mon Oct  4 01:51:23 2021   .viminfo
lrwxrwxrwx root root   16 B  Sat Aug 28 19:06:07 2021   .vimrc ⇒ /home/ari/.vimrc
.rw-r--r-- root root  221 B  Sat Sep 11 20:24:45 2021   .wget-hsts
.rw------- root root    0 B  Sat Aug 28 17:31:29 2021   .Xauthority
.rw-r--r-- root root   38 B  Sat Aug 28 17:31:25 2021   .xinitrc
lrwxrwxrwx root root   21 B  Sat Aug 28 19:06:16 2021   .zsh_userrc ⇒ /home/ari/.zsh_userrc
lrwxrwxrwx root root   16 B  Sat Aug 28 19:06:13 2021   .zshrc ⇒ /home/ari/.zshrc
drwxr-xr-x root root    4 KB Sat Sep  4 15:53:54 2021   go
Best regards,
Arija A.
Top
Post Reply

42 posts
  • Previous
  • 1
  • 2

Return to “Other Things Gentoo”

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