View previous topic :: View next topic |
Author |
Message |
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Fri Jul 30, 2021 11:10 pm Post subject: [SOLVED]Can't run emerge as a normal user |
|
|
Hello. As the title says, I can't run emerge as a normal user. It says this:
Code: |
!!! /usr/etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.
|
/usr/etc/portage/make.profile doesn't exist, but /etc/portage/make.profile actually exists and is a symlink:
Code: | lrwxrwxrwx 1 root root 51 6月 13 2019 /etc/portage/make.profile -> ../../usr/portage/profiles/default/linux/amd64/17.1 |
I can run emerge as the root user, like installing and removing packages.
emerge --info:
Code: | Portage 3.0.21 (python 3.9.6-final-0, unavailable, gcc-10.3.0, unavailable, 5.13.4-gentoo x86_64)
=================================================================
System uname: Linux-5.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-8250U_CPU_@_1.60GHz-with-glibc2.33
KiB Mem: 16299372 total, 12543944 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Fri, 30 Jul 2021 00:45:01 +0000
Head commit of repository gentoo: 6205b6666fb27dc9516c7b922c2d32d5c880fd15
sh sh
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
ACCEPT_LICENSE="* -@EULA"
CFLAGS=""
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /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=""
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ja_JP.UTF-8"
LDFLAGS=""
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/usr/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE=""
Unset: ACCEPT_KEYWORDS, CBUILD, CC, CHOST, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
|
sudo emerge --info:
Code: |
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33-r1, 5.13.4-gentoo x86_64)
=================================================================
System uname: Linux-5.13.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-8250U_CPU_@_1.60GHz-with-glibc2.33
KiB Mem: 16299372 total, 12618280 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Fri, 30 Jul 2021 00:45:01 +0000
Head commit of repository gentoo: 6205b6666fb27dc9516c7b922c2d32d5c880fd15
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash: 5.1_p8::gentoo
dev-lang/perl: 5.34.0::gentoo
dev-lang/python: 3.9.6::gentoo
dev-lang/rust: 1.53.0::gentoo
dev-util/cmake: 3.18.5::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.24::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.3-r1::gentoo
sys-devel/binutils: 2.35.2::gentoo
sys-devel/gcc: 10.3.0-r2::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33-r1::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE no-source-code linux-fw-redistributable"
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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=7.2"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ https://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="ja_JP.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
USE="X amd64 bluetooth bzip2 cjk cli crypt dri fortran gdbm iconv libglvnd libtirpc lto multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode wifi xattr" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ja" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
What should I do to run emerge as a normal user?
Last edited by toku on Tue Aug 03, 2021 1:42 pm; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Fri Jul 30, 2021 11:14 pm Post subject: |
|
|
Ah, yes. Here what I mean by "can't run emerge as a normal user" is that I can't run commands like "emerge -p vim". |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 12:07 am Post subject: |
|
|
Thank you for your advice, but nothing changed.
Code: | [~] --- Insert ---
%sudo usermod -a -G portage hiroki
[~] --- Insert ---
%groups
wheel audio kvm hiroki
[~] --- Insert ---
%emerge -p vim
!!! /usr/etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version. |
EDIT: It seems that my user is actually added to the portage group contrary to the `groups' output:
Code: | %cat /etc/group|grep portage
portage:x:250:portage,hiroki
|
Last edited by toku on Sat Jul 31, 2021 12:10 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 12:13 am Post subject: |
|
|
So I rebooted. Now `groups` indicates that my account belongs to the `portage` group. Unfortunately, `emerge -p vim` still doesn't work. It prints the same error message. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 12:33 am Post subject: |
|
|
To be honest, I don't remember when and what command broke `emerge`, sorry.
For this time, the permissions seems fine:
Code: | [~] --- Insert ---
%ll -d /usr/portage
Permissions Size User Date Modified Name
drwxr-xr-x - portage 30 7月 15:20 /usr/portage/
[~] --- Insert ---
%ll -d /etc/portage
Permissions Size User Date Modified Name
drwxr-xr-x - root 29 6月 17:43 /etc/portage/
[~] --- Insert ---
%ll /etc/portage
Permissions Size User Date Modified Name
drwxr-xr-x - root 29 6月 17:43 env/
drwxr-xr-x - root 29 6月 17:43 package.accept_keywords/
drwxr-xr-x - root 29 6月 17:43 package.env/
drwxr-xr-x - root 29 6月 17:43 package.mask/
drwxr-xr-x - root 30 7月 15:17 package.use/
drwxr-xr-x - root 29 6月 17:43 profile/
drwxr-xr-x - root 31 7月 7:41 repo.postsync.d/
drwxr-xr-x - root 26 7月 2019 repos.conf/
drwxr-xr-x - root 17 8月 2019 savedconfig/
.rw-r--r-- 25 root 29 6月 17:41 categories
.rw-r--r-- 1.4k root 30 7月 11:05 make.conf
.rw-r--r-- 1.4k root 29 7月 16:07 make.conf.euse_backup
lrwxrwxrwx 51 root 13 6月 2019 make.profile -> ../../usr/portage/profiles/default/linux/amd64/17.1
.rw-r--r-- 183 root 12 6月 23:32 package.license |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 1:12 am Post subject: |
|
|
I don't think so.
Code: | %echo $PATH
/home/hiroki/cquery/build/release/bin:/home/hiroki/.local/bin:/home/hiroki/.gem/ruby/2.6.0/bin:
/home/hiroki/.gem/ruby/2.4.0/bin:/home/hiroki/.cargo/bin:/home/hiroki/.zplug/bin:/usr/local/sbin:
/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin:/home/hiroki/go/bin |
Wrapped a long line to make the forum layout behave. —Chiitoo |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2964 Location: Edge of marsh USA
|
Posted: Sat Jul 31, 2021 5:21 am Post subject: |
|
|
Are you reading your error messages? It looks like your profile is unset or invalid.
Code: | eselect profile list |
_________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 5:32 am Post subject: |
|
|
The profile is set correctly, although I can't run `eselect profile list` as a normal user.
Code: | [~] --- Insert ---
%eselect profile list
!!! Error: get_repos failed
!!! Error: Failed to get a list of valid profiles
exiting
Failed:[~] --- Insert ---
%sudo eselect profile list
パスワード:
Available profile symlink targets:
[1] default/linux/amd64/17.1 (stable) *
[2] default/linux/amd64/17.1/selinux (stable)
[3] default/linux/amd64/17.1/hardened (stable)
[4] default/linux/amd64/17.1/hardened/selinux (stable)
[5] default/linux/amd64/17.1/desktop (stable)
[6] default/linux/amd64/17.1/desktop/gnome (stable)
[7] default/linux/amd64/17.1/desktop/gnome/systemd (stable)
[8] default/linux/amd64/17.1/desktop/plasma (stable)
[9] default/linux/amd64/17.1/desktop/plasma/systemd (stable)
[10] default/linux/amd64/17.1/desktop/systemd (stable)
[11] default/linux/amd64/17.1/developer (stable)
[12] default/linux/amd64/17.1/no-multilib (stable)
[13] default/linux/amd64/17.1/no-multilib/hardened (stable)
[14] default/linux/amd64/17.1/no-multilib/hardened/selinux (stable)
[15] default/linux/amd64/17.1/no-multilib/systemd (dev)
[16] default/linux/amd64/17.1/systemd (stable)
[17] default/linux/amd64/17.0 (dev)
[18] default/linux/amd64/17.0/selinux (dev)
[19] default/linux/amd64/17.0/hardened (dev)
[20] default/linux/amd64/17.0/hardened/selinux (dev)
[21] default/linux/amd64/17.0/desktop (dev)
[22] default/linux/amd64/17.0/desktop/gnome (dev)
[23] default/linux/amd64/17.0/desktop/gnome/systemd (dev)
[24] default/linux/amd64/17.0/desktop/plasma (dev)
[25] default/linux/amd64/17.0/desktop/plasma/systemd (dev)
[26] default/linux/amd64/17.0/developer (dev)
[27] default/linux/amd64/17.0/no-multilib (dev)
[28] default/linux/amd64/17.0/no-multilib/hardened (dev)
[29] default/linux/amd64/17.0/no-multilib/hardened/selinux (dev)
[30] default/linux/amd64/17.0/systemd (dev)
[31] default/linux/amd64/17.0/x32 (dev)
[32] default/linux/amd64/17.0/musl (exp)
[33] default/linux/amd64/17.0/musl/hardened (exp)
[34] default/linux/amd64/17.0/musl/hardened/selinux (exp)
[35] default/linux/amd64/17.0/uclibc (exp)
[36] default/linux/amd64/17.0/uclibc/hardened (exp) |
|
|
Back to top |
|
|
APolozov Apprentice
Joined: 28 Sep 2006 Posts: 189 Location: Voronezh, Russia
|
Posted: Sat Jul 31, 2021 5:50 am Post subject: |
|
|
Try the following steps
Code: | cd /usr && sudo chown -R portage:portage portage && emerge --sync |
_________________ Excuse my bad English, I only study it. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 6:01 am Post subject: |
|
|
Is it possible to run `emerge --sync` as a normal user? I couldn't do it, but anyway, I ran the commands, but nothing changed. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 6:43 am Post subject: |
|
|
I added a user and ran `emerge -p vim` as the added user. It worked successfully, so the problem seems to occur at my user's setting. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Sat Jul 31, 2021 7:51 am Post subject: |
|
|
Quote: |
!!! /usr/etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version. | Run emerge --sync as root before you try doing anything as user.
And also set a profile (with eselect) before building packages. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 11:30 am Post subject: |
|
|
I forgot to mention in the previous post that I ran `sudo emerge --sync`, but it didn't solve the problem. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sat Jul 31, 2021 5:07 pm Post subject: Re: Can't run emerge as a normal user |
|
|
toku wrote: | Code: | PORTAGE_CONFIGROOT="/usr/" |
| Why is this set to /usr/? I think that is why Portage is trying to use /usr/etc/portage, and failing. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sat Jul 31, 2021 11:30 pm Post subject: |
|
|
I didn't know that variable. However, I can't figure out when and why that variable was set to `/usr/`. Grepping 'PORTAGE_CONFIGROOT=' on my home directory didn't indicate some wrong settings, and for the root user, it is set to `/`. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sun Aug 01, 2021 12:20 am Post subject: |
|
|
If you run /usr/bin/env -i /bin/bash -l -c 'echo PORTAGE_CONFIGROOT=$PORTAGE_CONFIGROOT', is it defined? If yes, you need to search your startup files. You might find /usr/bin/env -i /bin/bash -x -l -c exit >& /tmp/configroot.log useful, although the file will be very noisy. It will record every command bash ran as part of processing the startup of a login shell. From there, you can work out which file it was reading when it set that variable. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sun Aug 01, 2021 12:56 am Post subject: |
|
|
Quote: | If you run /usr/bin/env -i /bin/bash -l -c 'echo PORTAGE_CONFIGROOT=$PORTAGE_CONFIGROOT', is it defined? |
Code: | %/usr/bin/env -i /bin/bash -l -c 'echo PORTAGE_CONFIGROOT=$PORTAGE_CONFIGROOT'
PORTAGE_CONFIGROOT=
%/usr/bin/env -i /bin/zsh -l -c 'echo PORTAGE_CONFIGROOT=$PORTAGE_CONFIGROOT'
PORTAGE_CONFIGROOT= |
I also checked startup commands using the command you provided, but shells defined no variables related to portage. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sun Aug 01, 2021 12:59 am Post subject: |
|
|
In which processes is this variable set? A clean start from a blank environment does not define it, but rebooting has not cleared it, so something you are running is putting it into the environment. Is it present when you log in on a text console? |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sun Aug 01, 2021 1:04 am Post subject: |
|
|
Ah, sorry. Shells don't define `PORTAGE_CONFIGROOT` and any other portage-related variables, and I still can't figure out when it is set. |
|
Back to top |
|
|
toku n00b
Joined: 12 Jan 2019 Posts: 41 Location: Kanagawa, Japan
|
Posted: Sun Aug 01, 2021 1:06 am Post subject: |
|
|
Running `emerge --info` on a text console still printed that `PORTAGE_CONFIGROOT="/usr/"`, so I don't think my X environment is related. |
|
Back to top |
|
|
|