Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689024 - sys-apps/portage: quickpkg: IOError: [Errno 4] Interrupted system call
Summary: sys-apps/portage: quickpkg: IOError: [Errno 4] Interrupted system call
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Blocks: 658182
  Show dependency tree
Reported: 2019-06-30 17:38 UTC by Agostino Sarubbo
Modified: 2020-04-01 23:32 UTC (History)
0 users

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

emerge --info (file_689024.txt,6.30 KB, text/plain)
2019-06-30 17:38 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2019-06-30 17:38:13 UTC
Created attachment 581564 [details]
emerge --info

I'm unable to generate a quickpkg:

localhost ~ # quickpkg --include-config y chromium
 * www-client/chromium-75.0.3770.90: package has RESTRICT=bindist!
 * www-client/chromium-75.0.3770.90: it might not be legal to redistribute this.
 * Building package for www-client/chromium-75.0.3770.90 ...Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/quickpkg", line 391, in <module>
    retval = quickpkg_main(options, args, eout)
  File "/usr/lib/python-exec/python2.7/quickpkg", line 311, in quickpkg_main
    quickpkg_atom(options, infos, arg, eout)
  File "/usr/lib/python-exec/python2.7/quickpkg", line 173, in quickpkg_atom
    tar_contents(contents, root, tar, protect=protect, xattrs=xattrs)
  File "/usr/lib64/python2.7/site-packages/portage/dbapi/", line 5577, in tar_contents
    tar.addfile(tarinfo, f)
  File "/usr/lib64/python2.7/", line 2054, in addfile
    copyfileobj(fileobj, self.fileobj, tarinfo.size)
  File "/usr/lib64/python2.7/", line 275, in copyfileobj
  File "/usr/lib64/python2.7/", line 477, in write
  File "/usr/lib64/python2.7/", line 485, in __write
IOError: [Errno 4] Interrupted system call
Comment 1 Agostino Sarubbo gentoo-dev 2019-06-30 17:40:38 UTC
just FTR, I'm able to make a binpkg for other packages, for now, it fails with chromium
Comment 2 Zac Medico gentoo-dev 2019-06-30 18:09:41 UTC
This is similar to bug 654148.

For a workaround, either set your default python interpreter to python3 or use a setting like this in /etc/portage/package.use:

sys-apps/portage -python_targets_python2_7
Comment 3 Agostino Sarubbo gentoo-dev 2019-06-30 18:26:15 UTC
I made a quick search on google that seems to show a problem with threads.

For now it worked for me:

taskset -c 0 quickpkg --include-config y chromium
Comment 4 Zac Medico gentoo-dev 2020-04-01 23:32:00 UTC
The bug has been referenced in the following commit(s):

commit 0a2c520e735f285a11e2486cb7b4fe1c8e4d0dac
Author:     Michał Górny <>
AuthorDate: 2020-03-19 09:52:09 +0100
Commit:     Michał Górny <>
CommitDate: 2020-03-19 10:41:00 +0100

    sys-apps/portage: Drop py2
    Signed-off-by: Michał Górny <>