Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 689024

Summary: sys-apps/portage: quickpkg: IOError: [Errno 4] Interrupted system call
Product: Portage Development Reporter: Agostino Sarubbo <ago>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 658182    
Attachments: emerge --info

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/vartree.py", line 5577, in tar_contents
    tar.addfile(tarinfo, f)
  File "/usr/lib64/python2.7/tarfile.py", line 2054, in addfile
    copyfileobj(fileobj, self.fileobj, tarinfo.size)
  File "/usr/lib64/python2.7/tarfile.py", line 275, in copyfileobj
    dst.write(buf)
  File "/usr/lib64/python2.7/tarfile.py", line 477, in write
    self.__write(s)
  File "/usr/lib64/python2.7/tarfile.py", line 485, in __write
    self.fileobj.write(self.buf[:self.bufsize])
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a2c520e735f285a11e2486cb7b4fe1c8e4d0dac

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

    sys-apps/portage: Drop py2
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>