Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Unable to unshare: EINVAL"
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
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1523

PostPosted: Sun Mar 17, 2019 5:03 am    Post subject: "Unable to unshare: EINVAL" Reply with quote

After having to reboot again because of this problem, every use of portage is met with a number (ten to be exact) of "Unable to unshare: EINVAL" messages. Everything appears to still work, but it still makes me nervous.

I am actually going to paste the install log of a small package to explain the situation more clearly. Any idea what is going on?

Code:

# emerge -1 olefile

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-python/olefile-0.46::gentoo [0.44::gentoo] USE="-doc" PYTHON_TARGETS="python3_6 (-pypy) (-pypy3) -python2_7 -python3_4 -python3_5 (-python3_7)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/olefile-0.46::gentoo
Unable to unshare: EINVAL
 * olefile-0.46.tar.gz BLAKE2B SHA512 size ;-) ...                                                                           [ ok ]
Unable to unshare: EINVAL
Unable to unshare: EINVAL
>>> Unpacking source...
>>> Unpacking olefile-0.46.tar.gz to /var/tmp/portage/dev-python/olefile-0.46/work
>>> Source unpacked in /var/tmp/portage/dev-python/olefile-0.46/work
Unable to unshare: EINVAL
>>> Preparing source in /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46 ...
>>> Source prepared.
Unable to unshare: EINVAL
>>> Configuring source in /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46 ...
>>> Source configured.
Unable to unshare: EINVAL
>>> Compiling source in /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46 ...
 * python3_6: running distutils-r1_run_phase distutils-r1_python_compile
python3.6 setup.py build -j 5
running build
running build_py
creating /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46-python3_6/lib/olefile
copying olefile/__init__.py -> /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46-python3_6/lib/olefile
copying olefile/olefile.py -> /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46-python3_6/lib/olefile
warning: build_py: byte-compiling is disabled, skipping.

 * python3_6: running distutils-r1_run_phase python_compile_all
>>> Source compiled.
Unable to unshare: EINVAL
>>> Test phase [not enabled]: dev-python/olefile-0.46
Unable to unshare: EINVAL

>>> Install olefile-0.46 into /var/tmp/portage/dev-python/olefile-0.46/image category dev-python
 * python3_6: running distutils-r1_run_phase distutils-r1_python_install
python3.6 setup.py install --root=/var/tmp/portage/dev-python/olefile-0.46/image/_python3.6
running install
running build
running build_py
running install_lib
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages
creating /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile
copying /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46-python3_6/lib/olefile/__init__.py -> /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile
copying /var/tmp/portage/dev-python/olefile-0.46/work/olefile-0.46-python3_6/lib/olefile/olefile.py -> /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile
byte-compiling /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile/__init__.py to __init__.cpython-36.pyc
byte-compiling /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile/olefile.py to olefile.cpython-36.pyc
writing byte-compilation script '/var/tmp/portage/dev-python/olefile-0.46/temp/tmpmy2vouqp.py'
/usr/bin/python3.6 /var/tmp/portage/dev-python/olefile-0.46/temp/tmpmy2vouqp.py
removing /var/tmp/portage/dev-python/olefile-0.46/temp/tmpmy2vouqp.py
writing byte-compilation script '/var/tmp/portage/dev-python/olefile-0.46/temp/tmpn8wnhdc5.py'
/usr/bin/python3.6 /var/tmp/portage/dev-python/olefile-0.46/temp/tmpn8wnhdc5.py
removing /var/tmp/portage/dev-python/olefile-0.46/temp/tmpn8wnhdc5.py
running install_egg_info
running egg_info
creating olefile.egg-info
writing olefile.egg-info/PKG-INFO
writing dependency_links to olefile.egg-info/dependency_links.txt
writing top-level names to olefile.egg-info/top_level.txt
writing manifest file 'olefile.egg-info/SOURCES.txt'
reading manifest file 'olefile.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'doc/_build'
writing manifest file 'olefile.egg-info/SOURCES.txt'
Copying olefile.egg-info to /var/tmp/portage/dev-python/olefile-0.46/image/_python3.6/usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info
running install_scripts
 * python3_6: running distutils-r1_run_phase distutils-r1_python_install_all
>>> Completed installing olefile-0.46 into /var/tmp/portage/dev-python/olefile-0.46/image

 * Final size of build directory: 608 KiB
 * Final size of installed tree:  388 KiB


>>> Installing (1 of 1) dev-python/olefile-0.46::gentoo
Unable to unshare: EINVAL
 * checking 15 files for package collisions
>>> Merging dev-python/olefile-0.46 to /
--- /usr/
--- /usr/lib64/
--- /usr/lib64/python3.6/
--- /usr/lib64/python3.6/site-packages/
>>> /usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info/
>>> /usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info/dependency_links.txt
>>> /usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info/SOURCES.txt
>>> /usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info/PKG-INFO
>>> /usr/lib64/python3.6/site-packages/olefile-0.46-py3.6.egg-info/top_level.txt
--- /usr/lib64/python3.6/site-packages/olefile/
--- /usr/lib64/python3.6/site-packages/olefile/__pycache__/
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.opt-1.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.opt-2.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.opt-1.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.opt-2.pyc
>>> /usr/lib64/python3.6/site-packages/olefile/olefile.py
>>> /usr/lib64/python3.6/site-packages/olefile/__init__.py
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/olefile-0.46/
>>> /usr/share/doc/olefile-0.46/README.md.bz2
>>> /usr/share/doc/olefile-0.46/README.html
>>> /usr/share/doc/olefile-0.46/README.rst.bz2
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
<<<          obj /usr/share/doc/olefile-0.44/README.md.bz2
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/olefile.py
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.opt-2.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.opt-1.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.opt-2.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.opt-1.pyc
--- replaced dir /usr/lib64/python3.6/site-packages/olefile/__pycache__
--- replaced obj /usr/lib64/python3.6/site-packages/olefile/__init__.py
<<<          obj /usr/lib64/python3.6/site-packages/olefile/README.rst
<<<          obj /usr/lib64/python3.6/site-packages/olefile/README.html
<<<          obj /usr/lib64/python3.6/site-packages/olefile/LICENSE.txt
<<<          obj /usr/lib64/python3.6/site-packages/olefile/CONTRIBUTORS.txt
<<<          obj /usr/lib64/python3.6/site-packages/olefile-0.44-py3.6.egg-info
--- replaced dir /usr/lib64/python3.6/site-packages/olefile
<<<          obj /usr/lib64/python3.6/site-packages/__pycache__/OleFileIO_PL.cpython-36.pyc
<<<          obj /usr/lib64/python3.6/site-packages/__pycache__/OleFileIO_PL.cpython-36.opt-2.pyc
<<<          obj /usr/lib64/python3.6/site-packages/__pycache__/OleFileIO_PL.cpython-36.opt-1.pyc
<<<          obj /usr/lib64/python3.6/site-packages/OleFileIO_PL.py
--- replaced dir /usr/lib64/python3.6/site-packages
--- replaced dir /usr/lib64/python3.6
--- replaced dir /usr/lib64
--- replaced dir /usr
<<<          dir /usr/share/doc/olefile-0.44
--- !empty   dir /usr/lib64/python3.6/site-packages/__pycache__
Unable to unshare: EINVAL
>>> Original instance of package unmerged safely.
>>> dev-python/olefile-0.46 merged.
Unable to unshare: EINVAL
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Sun Mar 17, 2019 10:16 am    Post subject: Reply with quote

https://bugs.gentoo.org/680456
Getting an explain from ZMedico cannot be any better :)
Back to top
View user's profile Send private message
nick_gentoo
n00b
n00b


Joined: 07 Jan 2019
Posts: 60

PostPosted: Sun Mar 17, 2019 3:34 pm    Post subject: Reply with quote

I was going to ask the same thing as curmudgeon.
That bug report mentions the network and ipc namespaces, which should be enabled in the kernel config. I have them enabled, this is actually done automatically by selecting the Gentoo Linux option when using gentoo-sources.
But even with this configuration, the warnings are still present in my case.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13504

PostPosted: Sun Mar 17, 2019 4:01 pm    Post subject: Reply with quote

nick_gentoo wrote:
That bug report mentions the network and ipc namespaces, which should be enabled in the kernel config. I have them enabled, this is actually done automatically by selecting the Gentoo Linux option when using gentoo-sources.
It also mentions the pid namespace. Please post the output of zgrep _NS /proc/config.gz ; for a in pid ipc net; do (set -x; /usr/bin/unshare --$a -- /bin/true); done from the affected machine, run as root.
Back to top
View user's profile Send private message
nick_gentoo
n00b
n00b


Joined: 07 Jan 2019
Posts: 60

PostPosted: Sun Mar 17, 2019 5:07 pm    Post subject: Reply with quote

Yep. the pid namespace is also included. Here is the output from that:
Code:
# CONFIG_UTS_NS is not set
CONFIG_IPC_NS=y
# CONFIG_USER_NS is not set
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_NF_CONNTRACK_NETBIOS_NS=y
# CONFIG_NET_NSH is not set
# CONFIG_TCG_NSC is not set
+ /usr/bin/unshare --pid -- /bin/true
+ /usr/bin/unshare --ipc -- /bin/true
+ /usr/bin/unshare --net -- /bin/true
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