Bug 10559 - recipetool: generate install function for debian packages
Summary: recipetool: generate install function for debian packages
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Low enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-10-31 17:39 UTC by Stephano Cetola
Modified: 2022-06-30 15:09 UTC (History)
3 users (show)

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


Attachments

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