Bug 4186 - bitbake package-index fails over NFS
Summary: bitbake package-index fails over NFS
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6
Assignee: Beth Flanagan
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 5444
  Show dependency tree
 
Reported: 2013-04-04 01:55 UTC by Beth Flanagan
Modified: 2014-03-04 16:56 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/