Bug 10559

Summary: recipetool: generate install function for debian packages
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stephano Cetola <stephano>
Component: Scripts and ToolsAssignee: Unassigned <unassigned>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: Low CC: bluelightning, randy.macleod, ross.burton
Version: 2.2   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Stephano Cetola 2016-10-31 17:39:14 UTC
This continues work on recipetool, adding debian package (binary) installation to the generated recipe. data.tar.xz should be renamed and placed in the recipe folder, added to SRC_URI, and the do_install function can then be generated.

devtool add, devtool build, and devtool finish should all be functional.
Comment 1 Stephano Cetola 2016-10-31 22:43:08 UTC
My mistake: script_utils.fetch_uri already extracts the source. Also, the $S variable is already pointing to this "binary source" directory. Perhaps the simplest thing to do is edit the do_install to install %S/* to $D/*?
Comment 2 Ross Burton 2022-06-30 15:09:07 UTC
The bin_package class is what is needed here.  If SRC_URI is set correctly and bin_package is inherited, the deb is unpacked and installed.

However, I don't think that this behaviour should be encouraged.  Repackaging binary packages should be a last resort and not something we make very easy.