Commit 61355a4a authored by Thiago Santos's avatar Thiago Santos Committed by Sebastian Dröge
Browse files

recipes: workaround for recipes that build too fast

Some recipes just copy files around and are performed very fast. This
confuses the new files listing for universal builds as it relies on
the timestamps of the new files to select what are the new ones.

When the build is faster than the FS timestamp resolution, old files and
new files can be mixed together, causing old files to be removed from the
final prefix destination dir. A case of this is when gst-sdk-shell is built.

This patch prevents this by waiting a little before attempting to install files to
the prefix, so that the new files have a timestamp difference to the old ones
parent d45556a7
......@@ -333,6 +333,10 @@ class UniversalRecipe(object):
# Create a stamp file to list installed files based on the
# modification time of this file
if step in [BuildSteps.INSTALL[1], BuildSteps.POST_INSTALL[1]]:
time.sleep(2) #wait 2 seconds to make sure new files get the
#proper time difference, this fixes an issue of
#the next recipe to be built listing the previous
#recipe files as their own
tmp = tempfile.NamedTemporaryFile()
# the modification time resolution depends on the filesystem,
# where FAT32 has a resolution of 2 seconds and ext4 1 second
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment