Bug 10732 - File checksum changes do not trigger task re-execution with memres
Summary: File checksum changes do not trigger task re-execution with memres
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.2
Hardware: All Multiple
: High normal
Target Milestone: 2.4 M1
Assignee: Paul Eggleton
QA Contact: oscar lopez arandas
URL:
Whiteboard:
Depends on:
Blocks: 7555
  Show dependency tree
 
Reported: 2016-11-27 23:02 UTC by Paul Eggleton
Modified: 2017-11-09 21:51 UTC (History)
4 users (show)

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


Attachments
full_log (11.44 KB, text/x-log)
2017-11-09 21:51 UTC, oscar lopez arandas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2016-11-27 23:02:28 UTC
If you build a recipe, modify one of the files referred to in SRC_URI, then build it again, it should re-run do_fetch and the tasks that depend upon it to incorporate the modified file. With memres this does not work unless you restart the server, so clearly some state is being held that prevents this.

(I used mdadm and modifying meta/recipes-extended/mdadm/files/mdadm-fix-ptest-build-errors.patch to test this).
Comment 2 oscar lopez arandas 2017-11-09 21:50:01 UTC
The test I used for this was 
1. git clone git://git.yoctoproject.org/poky 10732
2. git checkout 67f676f70449273f0f3e686d0c88999e482cc964
3. source oe-init-build-env-memres 
4.bitbake -c fetch mdadm -v


build a recipe, modify one of the files referred to in SRC_URI, then build it again, it should re-run do_fetch and the tasks that depend upon it to incorporate the modified file. With memres this now  do work.
I used mdadm and modifying meta/recipes-extended/mdadm/files/mdadm-fix-ptest-build-errors.patch to test this.

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m32 i586"       
meta-yocto-bsp    = "HEAD:67f676f70449273f0f3e686d0c88999e482cc964"

================================================================================
oscar@oscar:~/10732$ source oe-init-build-env-memres 
No port specified, using dynamically selected port

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
Bitbake server address: 127.0.0.1, server port: 45813
Bitbake server started on demand as needed, use bitbake -m to shut it down
================================================================================
note: full-log in attachment.
Comment 3 oscar lopez arandas 2017-11-09 21:51:11 UTC
Created attachment 4117 [details]
full_log