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

Bug 484332

Summary: sys-apps/portage-2.2.1: 'doins' fails when multiple files with the same name are installed in parallel
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-09 12:50:43 UTC
Using the distutils-r1, something like:

  python_install() {
    insinto /usr/lib/python-bin/${EPYTHON}
    doins foo.py
  }

That's being run in parallel. It's supposed to install file with the same basename in multiple directories. Sadly, it fails like:

/usr/bin/install: nie można wykonać stat na „/tmp/portage/dev-python/docutils-0.10/temp/buildhtml.py”: Nie ma takiego pliku ani katalogu
!!! doins: /tmp/portage/dev-python/docutils-0.10/temp/buildhtml.py does not exist
 * ERROR: dev-python/docutils-0.10::gentoo-cvs failed (install phase):
 *   doins failed

which clearly shows that the parallel instances collide in temporary directory. Please fix portage to either not use temporary files at all here, or to create proper unique names.
Comment 3 Zac Medico gentoo-dev 2013-09-10 00:44:14 UTC
This is fixed in 2.2.2.