View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 337
|
Posted: Sun Feb 25, 2024 10:40 am Post subject: emerge --config issue |
|
|
trying to run emerge --config, gives following error (same for several machines):
Code: | # emerge --config dev-db/postgresql:16
Configuring pkg...
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/emerge", line 57, in main
retval = emerge_main()
^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 1308, in emerge_main
return run_action(emerge_config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 3876, in run_action
return action_config(
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 758, in action_config
retval = portage.doebuild(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/doebuild.py", line 1218, in doebuild
rval = _prepare_env_file(mysettings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/doebuild.py", line 1686, in _prepare_env_file
env_extractor.start()
File "/usr/lib/python3.12/site-packages/_emerge/AsynchronousTask.py", line 34, in start
self._start()
File "/usr/lib/python3.12/site-packages/_emerge/BinpkgEnvExtractor.py", line 43, in _start
env=self.settings.environ(),
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/config.py", line 3378, in environ
raise AssertionError(
AssertionError: LC_ALL=en_US.UTF-8 for posixish locale. It seems that split_LC_ALL was not called for phase config? |
bug in portage? |
|
Back to top |
|
|
doclai n00b
Joined: 07 May 2024 Posts: 1
|
Posted: Tue May 07, 2024 8:32 am Post subject: Re: emerge --config issue |
|
|
I got the same issue while running that command with mariadb. However, I still managed to run mariadb by manually creating directory and running Code: | mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql | .
Before the Gentoo developer fixing that, you can check Arch manual https://wiki.archlinux.org/title/PostgreSQL to see how to manually setup it.
leonchik1976 wrote: | trying to run emerge --config, gives following error (same for several machines):
Code: | # emerge --config dev-db/postgresql:16
Configuring pkg...
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/emerge", line 57, in main
retval = emerge_main()
^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 1308, in emerge_main
return run_action(emerge_config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 3876, in run_action
return action_config(
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 758, in action_config
retval = portage.doebuild(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/doebuild.py", line 1218, in doebuild
rval = _prepare_env_file(mysettings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/doebuild.py", line 1686, in _prepare_env_file
env_extractor.start()
File "/usr/lib/python3.12/site-packages/_emerge/AsynchronousTask.py", line 34, in start
self._start()
File "/usr/lib/python3.12/site-packages/_emerge/BinpkgEnvExtractor.py", line 43, in _start
env=self.settings.environ(),
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/package/ebuild/config.py", line 3378, in environ
raise AssertionError(
AssertionError: LC_ALL=en_US.UTF-8 for posixish locale. It seems that split_LC_ALL was not called for phase config? |
bug in portage? |
|
|
Back to top |
|
|
system_exit n00b
Joined: 07 Jul 2011 Posts: 23
|
Posted: Mon May 20, 2024 12:48 am Post subject: |
|
|
I had the problem too, just with postgresql. Unfortunately i was not able to find the source of the issue,
so initialized the database manually by running this command as root :
su - postgres -c "/usr/lib64/postgresql-16/bin/initdb -D /var/lib/postgresql/16/data --encoding=UTF8"
it looks like some mess in emerge, but I'm guessing here:
Code: | emerge --config dev-db/postgresql:16
Configuring pkg...
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.11/emerge", line 57, in main
retval = emerge_main()
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/_emerge/main.py", line 1308, in emerge_main
return run_action(emerge_config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 3876, in run_action
return action_config(
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 758, in action_config
retval = portage.doebuild(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1218, in doebuild
rval = _prepare_env_file(mysettings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1686, in _prepare_env_file
env_extractor.start()
File "/usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py", line 34, in start
self._start()
File "/usr/lib/python3.11/site-packages/_emerge/BinpkgEnvExtractor.py", line 43, in _start
env=self.settings.environ(),
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/config.py", line 3378, in environ
raise AssertionError(
AssertionError: LC_ALL=en_US.UTF-8 for posixish locale. It seems that split_LC_ALL was not called for phase config? |
|
|
Back to top |
|
|
jhon987 Guru
Joined: 18 Nov 2013 Posts: 302
|
Posted: Fri Jun 14, 2024 7:42 pm Post subject: |
|
|
Encountered that issue as well upon running:
Code: | emerge --config =dev-db/postgresql-16.3-r2 |
Which was suggested to me by portage after installing dev-db/postgresql
I used the following to solve it:
This unsets the LC_ALL environment variable (you can use: locale - to see all the list of set variables) which allows for the split LC_ALL to to be inferred which is what this error is alluding to |
|
Back to top |
|
|
|
|
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
|
|