Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-lang/python-3.12.4 build issues
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
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Fri Jun 07, 2024 12:10 pm    Post subject: dev-lang/python-3.12.4 build issues Reply with quote

Hello,

dev-lang/python-3.12.4 package failed to build on my machine:

Code:

       Programs/_bootstrap_python.o Modules/getpath.o -ldl                         -lm
./_bootstrap_python ./Programs/_freeze_module.py abc ./Lib/abc.py Python/frozen_modules/abc.h
./_bootstrap_python ./Programs/_freeze_module.py codecs ./Lib/codecs.py Python/frozen_modules/codecs.h
./_bootstrap_python ./Programs/_freeze_module.py io ./Lib/io.py Python/frozen_modules/io.h
./_bootstrap_python ./Programs/_freeze_module.py _collections_abc ./Lib/_collections_abc.py Python/frozen_modules/_collections_abc.h
./_bootstrap_python ./Programs/_freeze_module.py _sitebuiltins ./Lib/_sitebuiltins.py Python/frozen_modules/_sitebuiltins.h
./_bootstrap_python ./Programs/_freeze_module.py genericpath ./Lib/genericpath.py Python/frozen_modules/genericpath.h
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140130044457648
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140018235011632
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140392463381168
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140485815530160
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140523040715312
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.139812303139376
./_bootstrap_python ./Programs/_freeze_module.py ntpath ./Lib/ntpath.py Python/frozen_modules/ntpath.h
./_bootstrap_python ./Programs/_freeze_module.py posixpath ./Lib/posixpath.py Python/frozen_modules/posixpath.h
./_bootstrap_python ./Programs/_freeze_module.py os ./Lib/os.py Python/frozen_modules/os.h
./_bootstrap_python ./Programs/_freeze_module.py site ./Lib/site.py Python/frozen_modules/site.h
./_bootstrap_python ./Programs/_freeze_module.py stat ./Lib/stat.py Python/frozen_modules/stat.h
./_bootstrap_python ./Programs/_freeze_module.py importlib.util ./Lib/importlib/util.py Python/frozen_modules/importlib.util.h
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140090918630320
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140157059101616
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140330944213936
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.139696871699376
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.139776897577904
./_bootstrap_python ./Programs/_freeze_module.py importlib.machinery ./Lib/importlib/machinery.py Python/frozen_modules/importlib.machinery.h
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140052427895728
./_bootstrap_python ./Programs/_freeze_module.py runpy ./Lib/runpy.py Python/frozen_modules/runpy.h
./_bootstrap_python ./Programs/_freeze_module.py __hello__ ./Lib/__hello__.py Python/frozen_modules/__hello__.h
./_bootstrap_python ./Programs/_freeze_module.py __phello__ ./Lib/__phello__/__init__.py Python/frozen_modules/__phello__.h
./_bootstrap_python ./Programs/_freeze_module.py __phello__.ham ./Lib/__phello__/ham/__init__.py Python/frozen_modules/__phello__.ham.h
./_bootstrap_python ./Programs/_freeze_module.py __phello__.ham.eggs ./Lib/__phello__/ham/eggs.py Python/frozen_modules/__phello__.ham.eggs.h
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.139831967708080
  * ACCESS DENIED:  open_wr:    *   ACCESS DENIED :  open_wr:             /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140568038175664
/usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140570378253232
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140470780982192
./_bootstrap_python ./Programs/_freeze_module.py __phello__.spam ./Lib/__phello__/spam.py Python/frozen_modules/__phello__.spam.h
./_bootstrap_python ./Programs/_freeze_module.py frozen_only ./Tools/freeze/flag.py Python/frozen_modules/frozen_only.h
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140086364468144
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140031647970224
 * ACCESS DENIED:   open_wr:         *  ACCESS DENIED:   open_wr:     /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140572194190256
   /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140227725489072

....

LD_LIBRARY_PATH=/tmp/portage/dev-lang/python-3.12.4/work/Python-3.12.4:/opt/usr/lib:/opt/tde/lib:/opt/apps/audacious/lib:/opt/apps/gimp/lib64:/opt/apps/evince/lib64 ./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
        echo "generate-posix-vars failed" ; \
        rm -f ./pybuilddir.txt ; \
        exit 1 ; \
fi
LD_LIBRARY_PATH=/tmp/portage/dev-lang/python-3.12.4/work/Python-3.12.4:/opt/usr/lib:/opt/tde/lib:/opt/apps/audacious/lib:/opt/apps/gimp/lib64:/opt/apps/evince/lib64 ./python -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.140623763097904
 * ACCESS DENIED:  open_wr:            /usr/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc.139836741306672
The following modules are *disabled* in configure script:
_tkinter              nis




Full build log: https://pastebin.com/4j4ReXux

Any advice?

Thx
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20485

PostPosted: Fri Jun 07, 2024 3:39 pm    Post subject: Reply with quote

Code:
>>> Source compiled.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/tmp/portage/dev-lang/python-3.12.4/temp/sandbox.log"
I'm guessing that might be helpful for anyone familiar with sandbox violation problems.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Fri Jun 07, 2024 3:52 pm    Post subject: Reply with quote

pjp wrote:
Code:
>>> Source compiled.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/tmp/portage/dev-lang/python-3.12.4/temp/sandbox.log"
I'm guessing that might be helpful for anyone familiar with sandbox violation problems.


log can be found here. hope this helps:

https://pastebin.com/SKEER3tR

btw. I still have python 3.11 on my system. NO PYTHON_* declared anywhere though. I also had several issues upgrading to 3.12 default. Maybe something is still borked?!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2416

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

Code:
Checked 111 modules (31 built-in, 77 shared, 1 n/a on linux-x86_64, 2 disabled, 0 missing, 0 failed on import)
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-lang/python-3.12.4

>>> Install dev-lang/python-3.12.4 into /var/tmp/portage/dev-lang/python-3.12.4/image


Not a proper install, only ebuild compile, but there's no reason it would differ from emerge python.

Show us your emerge --info.

Best Regards,
Georgi
Back to top
View user's profile Send private message
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Fri Jun 07, 2024 5:13 pm    Post subject: Reply with quote

logrusx wrote:
Code:
Checked 111 modules (31 built-in, 77 shared, 1 n/a on linux-x86_64, 2 disabled, 0 missing, 0 failed on import)
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-lang/python-3.12.4

>>> Install dev-lang/python-3.12.4 into /var/tmp/portage/dev-lang/python-3.12.4/image


Not a proper install, only ebuild compile, but there's no reason it would differ from emerge python.

Show us your emerge --info.

Best Regards,
Georgi



Sure thing:

Code:

n350tw ~ # emerge --info
Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.39-r7, 6.9.3 x86_64)
=================================================================
System uname: Linux-6.9.3-x86_64-Intel-R-_Core-TM-_i9-9900T_CPU_@_2.10GHz-with-glibc2.39
KiB Mem:    32726160 total,   1208192 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 07 Jun 2024 15:30:00 +0000
Head commit of repository gentoo: 061e54e4fcb9a1feff761225b183b7ab7cde689f
sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r6::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin:         1.78.0::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, 18.1.6::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/tmp/portage/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 binpkg-multi-instance 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://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j6"
PKGDIR="/tmp/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="/tmp"
PYTHONPATH="/root/.local"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cairo cet crypt cups dbus dri3 egl elogind gdbm glamor gnome-keyring gtk iconv ipv6 libtirpc multilib ncurses nls opengl openmp openvpn pam pcre policykit readline sdl2 seccomp split-usr ssl test-rust threads truetype udev unicode vaapi wifi x264 x265 xattr xinerama xorg zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" 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="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="intel" 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2416

PostPosted: Fri Jun 07, 2024 5:43 pm    Post subject: Reply with quote

How did you elevate to root?

Best Regards,
Georgi
Back to top
View user's profile Send private message
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Fri Jun 07, 2024 5:52 pm    Post subject: Reply with quote

logrusx wrote:
How did you elevate to root?

Best Regards,
Georgi


I'm not sure what you mean but I've executed all emerge command as root. And my system drive and /tmp also has plenty of diskspace

Code:

/dev/nvme0n1p2   16337788    5086488   10396056  33% /
tmpfs            10485760    2405624    8080136  23% /tmp


Directories look like this:

Code:

n350tw /usr/lib/python3.12/site-packages/_distutils_hack # ls -la
total 24
drwxr-xr-x   3 root root 4096 Jun  7 08:16 .
drwxr-xr-x 107 root root 4096 Jun  7 13:39 ..
-rw-r--r--   1 root root 6002 Jun  2 21:18 __init__.py
drwxr-xr-x   2 root root 4096 Jun  7 08:16 __pycache__
-rw-r--r--   1 root root   44 Jun  2 21:18 override.py


Here is my /etc/make.conf:

https://pastebin.com/gTCgcZiP

hope this helps.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2416

PostPosted: Fri Jun 07, 2024 6:26 pm    Post subject: Reply with quote

saski4711 wrote:
logrusx wrote:
How did you elevate to root?

Best Regards,
Georgi


I'm not sure what you mean but I've executed all emerge command as root. And my system drive and /tmp also has plenty of diskspace



Did you use su, sudo, doas et.c. to gain root privileges or did you simply login as root? If you used a command to gain privileges, what was the command?

Best Regards,
Georgi


Last edited by logrusx on Fri Jun 07, 2024 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
Veteran
Veteran


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

PostPosted: Fri Jun 07, 2024 6:27 pm    Post subject: Reply with quote

Is it even supposed to do stuff in /usr/lib/python.... before actually installing the finished ebuild?
Seems wrong to me - and sandbox is doing it stuff it seems.

You could try
Code:
FEATURES="-sandbox" emerge -va1 dev-lang/python:3.12


EDIT: Also found this - https://forums.gentoo.org/viewtopic-p-8773049.html


Last edited by freke on Fri Jun 07, 2024 6:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22645

PostPosted: Fri Jun 07, 2024 6:27 pm    Post subject: Reply with quote

logrusx wants to know how you started the root shell:
  • Log in as root on a text console / serial console
  • Log in as a user, then use /bin/su - to get a root shell with a clean environment
  • Log in as a user, then use /bin/su to get a root shell with parts of the user's environment inherited
  • sudo
  • Something else?
freke wrote:
Is it even supposed to do stuff in /usr/lib/python.... before actually installing the finished ebuild?
Seems wrong to me - and sandbox is doing it stuff it seems.

You could try
Code:
FEATURES="-sandbox" emerge -va1 dev-lang/python:3.12
Right, sandbox is correct to deny these accesses. They shouldn't even be attempted. Disabling sandbox is definitely the wrong solution.
Back to top
View user's profile Send private message
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Fri Jun 07, 2024 6:48 pm    Post subject: Reply with quote

Hu wrote:
logrusx wants to know how you started the root shell:
  • Log in as root on a text console / serial console
  • Log in as a user, then use /bin/su - to get a root shell with a clean environment
  • Log in as a user, then use /bin/su to get a root shell with parts of the user's environment inherited
  • sudo
  • Something else?
freke wrote:
Is it even supposed to do stuff in /usr/lib/python.... before actually installing the finished ebuild?
Seems wrong to me - and sandbox is doing it stuff it seems.

You could try
Code:
FEATURES="-sandbox" emerge -va1 dev-lang/python:3.12
Right, sandbox is correct to deny these accesses. They shouldn't even be attempted. Disabling sandbox is definitely the wrong solution.


Ah okay, I logged in as root on the text console no X or anything fancy. No su or anything else. No changes in my configuration. Never saw anything like this.
I've also masked dev-lang/python-3.12.4 and reinstalled the previous version and the same thing happens. So I guess something is off on my system. 8O

This is my .bash_profile

Code:

# ~/.profile: executed by Bourne-compatible login shells.

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

#echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
#echo "off" > /sys/devices/system/cpu/smt/control
echo "1" > /sys/kernel/debug/dri/0/i915_params/enable_psr

export MESA_NO_ERROR=1
export LIBVA_DRIVER_NAME=iHD
export MENUCONFIG_COLOR=blackbg

export XCURSOR_THEME=oxy-neon
export GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc
export GTK_THEME=Adwaita:dark

export TMPDIR=/tmp

export TDEDIR=/opt/tde
export TDEDIRS=$TDEDIR

export XDG_CACHE_HOME="/tmp/xdg/.cache"
export XDG_CONFIG_HOME=~/.config

export JAVA_HOME=/opt/java/jdk
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JDK_HOME

export ANDROID_HOME=/opt/apps/android
export PYTHONPATH=/root/.local

export PATH=$PATH:$JRE_HOME/bin:$ANDROID_HOME/platform-tools:$TDEDIR/bin:$DOOMTOOLSDIR:/opt/usr/bin:/opt/apps/evince/bin
export LD_LIBRARY_PATH=/opt/usr/lib:$TDEDIR/lib:/opt/apps/audacious/lib:/opt/apps/gimp/lib64:/opt/apps/evince/lib64
export PKG_CONFIG_PATH=/opt/usr/lib/pkgconfig:$PKG_CONFIG_PATH

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


Joined: 22 Feb 2018
Posts: 2416

PostPosted: Fri Jun 07, 2024 7:14 pm    Post subject: Reply with quote

freke wrote:

You could try
Code:




That's a bad advice to be shared on a public forum. You might consider editing it out.

@Hu, you too from your quote.

Best Regards,
Georgi
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2416

PostPosted: Fri Jun 07, 2024 7:16 pm    Post subject: Reply with quote

saski4711 wrote:


Ah okay, I logged in as root on the text console no X or anything fancy. No su or anything else. No changes in my configuration. Never saw anything like this.
I've also masked dev-lang/python-3.12.4 and reinstalled the previous version and the same thing happens. So I guess something is off on my system. 8O

This is my .bash_profile

Code:




I bet some of this stuff breaks portage. You don't need maybe half of it. For example the java stuff. You can control the java home and similar with eselect java-vm.

I hope somebody more knowledgeable comment on your .bash_profile. I'm not sure if this would circumvent /etc/profile.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4669
Location: Germany

PostPosted: Fri Jun 07, 2024 8:09 pm    Post subject: Reply with quote

Please try if rebuild sys-apps/coreutils package helps.

Edit, oh ignore this
your "emerge --info" has
PYTHONPATH="/root/.local"
works it without this?
Back to top
View user's profile Send private message
freke
Veteran
Veteran


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

PostPosted: Fri Jun 07, 2024 8:38 pm    Post subject: Reply with quote

Also - what is content of /etc/sandbox.conf?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2416

PostPosted: Fri Jun 07, 2024 8:48 pm    Post subject: Reply with quote

Josef.95 wrote:

your "emerge --info" has
PYTHONPATH="/root/.local"
works it without this?


How did I miss that! Good catch :)

@saski4711 do not do that for root. You're messing portage which is run by python.

Best Regards,
Georgi
Back to top
View user's profile Send private message
saski4711
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 202

PostPosted: Sat Jun 08, 2024 5:09 am    Post subject: Reply with quote

logrusx wrote:
Josef.95 wrote:

your "emerge --info" has
PYTHONPATH="/root/.local"
works it without this?


How did I miss that! Good catch :)

@saski4711 do not do that for root. You're messing portage which is run by python.

Best Regards,
Georgi


Oh shoot! Didn't see that. Removed and now it's working. No idea why this was there! Thanks for the scoop! :wink:
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