Bug 9482 - Original compression command is re-run when chaining compressions
Summary: Original compression command is re-run when chaining compressions
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: All Multiple
: Medium normal
Target Milestone: 2.2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-19 08:20 UTC by Erkka Kääriä
Modified: 2016-05-03 08:58 UTC (History)
6 users (show)

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


Attachments
Duplication patch (1.52 KB, patch)
2016-04-19 09:44 UTC, Erkka Kääriä
no flags Details | Diff

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