Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792372 - [HomeAssistantRepository] app-misc/homeassistant-full: emerge fails in an unusual way (argument list too long)
Summary: [HomeAssistantRepository] app-misc/homeassistant-full: emerge fails in an unu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas Billmeier
URL: https://git.edevau.net/onkelbeh/HomeA...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-27 05:15 UTC by Scott Alfter
Modified: 2021-06-03 07:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,6.38 KB, text/plain)
2021-05-27 05:15 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2021-05-27 05:15:19 UTC
Created attachment 711471 [details]
emerge --info

The aforementioned ebuilds (pick any that are currently in the overlay; they all behave more or less the same) fail before unpacking anything.  If I issue "ebuild homeassistant-full-2021.5.4.ebuild compile," for instance, I get the following errors, which seems to indicate something seriously wrong with the ebuild:

>>> Not marked as unpacked; recreating WORKDIR...
[Errno 7] Argument list too long: b'/usr/bin/python3.8':
   /bin/bash -c /usr/lib/portage/python3.8/ebuild.sh clean
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 676, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/usr/bin/python3.8'
[Errno 7] Argument list too long: b'/usr/bin/python3.8':
   /bin/bash -c /usr/lib/portage/python3.8/ebuild.sh clean
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 743, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/usr/bin/python3.8'
[Errno 7] Argument list too long: b'/usr/bin/sandbox':
   /usr/bin/sandbox /usr/lib/portage/python3.8/misc-functions.sh die_hooks
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 743, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/usr/bin/sandbox'
 * The ebuild phase 'die_hooks' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.
[Errno 7] Argument list too long: b'/bin/bash':
   /bin/bash -c >> /usr/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f  /usr/portage/distfiles/.__portage_test_write__ ; exit $rval
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 743, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/bin/bash'
>>> Downloading 'http://distfiles.gentoo.org/distfiles/fa/homeassistant-2021.5.4.tar.gz'
[Errno 7] Argument list too long: b'/usr/bin/wget':
   wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/homeassistant-2021.5.4.tar.gz.__download__ http://distfiles.gentoo.org/distfiles/fa/homeassistant-2021.5.4.tar.gz
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 743, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/usr/bin/wget'
>>> Downloading 'https://github.com/home-assistant/core/archive/2021.5.4.tar.gz'
[Errno 7] Argument list too long: b'/usr/bin/wget':
   wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/homeassistant-2021.5.4.tar.gz.__download__ https://github.com/home-assistant/core/archive/2021.5.4.tar.gz
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 374, in spawn
    _exec(binary, mycommand, opt_name, fd_pipes,
  File "/usr/lib/python3.8/site-packages/portage/process.py", line 743, in _exec
    os.execve(binary, myargs, env)
  File "/usr/lib/python3.8/site-packages/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 7] Argument list too long: b'/usr/bin/wget'
!!! Couldn't download 'homeassistant-2021.5.4.tar.gz'. Aborting.

Just for a sanity check, I tried rebuilding app-editors/joe...it proceeded to build and install without error.
Comment 1 Ionen Wolkens gentoo-dev 2021-05-27 06:39:49 UTC
With that long list of dependencies, it's probably attempting to fetch too much at once.

I guess duplicate of $url
Comment 2 Andreas Billmeier 2021-06-03 07:01:50 UTC
This Bug is described in the very first lines of https://git.edevau.net/onkelbeh/HomeAssistantRepository/src/branch/master/README.md

It is caused by a kernel limitation, this Ebuild is just too big.

If you do not want to apply the kernel hack, just use
app-misc/homeassistant-min or
app-misc/homeassistant

Ebuilds.