Bug 9482

Summary: Original compression command is re-run when chaining compressions
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Erkka Kääriä <erkka.kaaria>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexander.kanevskiy, jku, meta.mr.watcher, meta.watcher, poky.bs.watcher, poky.watcher
Version: 2.1   
Target Milestone: 2.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Duplication patch none

Description Erkka Kääriä 2016-04-19 08:20:58 UTC
When chaining compressions with image, like "dsk.foo.bar", the original command for 'foo' gets run again. This is easily observable by defining following dummy commands:

COMPRESSIONTYPES_append = " dummy"
COMPRESS_CMD_dummy = "echo 'running dummy command' && touch ${IMAGE_NAME}.${type}.dummy"

COMPRESSIONTYPES_append = " anotherdummy"
COMPRESS_CMD_anotherdummy = " echo 'Another dummy command'"

and defining compression like "dsk.dummy.anotherdummy"

When building the image, the log file will now contain the following lines:

running dummy command
running dummy command
Another dummy command


Bitbake version:

$ bitbake --version
BitBake Build Tool Core version 1.30.0
Comment 1 Erkka Kääriä 2016-04-19 09:44:46 UTC
Created attachment 3133 [details]
Duplication patch

The attached patch fixes the duplication.
Comment 2 Jussi Kukkonen 2016-04-21 07:28:51 UTC
Patches to mailing lists please (in this case
openembedded-core@lists.openembedded.org ).
Comment 4 Ross Burton 2016-05-03 08:58:14 UTC
Fixed in oe-core 94f61c2682e5cfd819ac84535650c3e0a654415a (master).