Bug 4186

Summary: bitbake package-index fails over NFS
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Beth Flanagan <elizabeth.flanagan>
Component: coreAssignee: Beth Flanagan <elizabeth.flanagan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, elizabeth.flanagan, laurentiu.palcu, meta.mr.watcher, meta.watcher, mhalstead, sgw
Version: unspecified   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 5444    

Description Beth Flanagan 2013-04-04 01:55:43 UTC
given:

tmp/deploy/ipk

where ipk is a symlink to an nfs mounted ipk directory, creation of the package index fails. My guess is that this is due to flock disliking nfs.

This impacts autobuilder build times as the workaround is that the nightly builder will need to copy the ipk dir back to the main builder in order to build the index.
Comment 1 Saul Wold 2013-04-08 23:11:40 UTC
Workaround available, deferring to 1.5
Comment 2 Saul Wold 2013-11-05 20:48:12 UTC
This issue is due to the usage of flock() in the package-index code
Comment 3 Saul Wold 2014-02-21 02:05:03 UTC
Laurentiu, Beth: did the refactor fix this issue in package-index or do we 
still have the flock issue buried someplace?
Comment 4 Laurentiu Palcu 2014-02-21 07:53:14 UTC
We're not using the shell flock anymore. We're using the bb.utils.lockfile() now. But I cannot say if this fixes the NFS issue. It needs to be tested.
Comment 5 Beth Flanagan 2014-03-04 16:56:27 UTC
Tested and functional:

http://autobuilder.yoctoproject.org/pub/nightly/20140303-21/ipk/