| Summary: | PACKAGE_WRITE_DEPS + pkg scripts dependencies need to be documented | ||
|---|---|---|---|
| Product: | [Documentation] Reference | Reporter: | Patrick Ohly <patrick.ohly> |
| Component: | handbook | Assignee: | Scott Rifenbark <srifenbark> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | brian.avery, poky.doc.watcher, poky.watcher, richard.purdie, sherif.e.mousa, srifenbark |
| Version: | 2.3 | ||
| Target Milestone: | 2.3 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | 04 April 2017: RESOLVED | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Done (doc changes complete) | |
|
Description
Patrick Ohly
2017-03-31 07:46:55 UTC
Hi Patrick, See http://www.yoctoproject.org/docs/2.3/dev-manual/dev-manual.html#new-recipe-post-installation-scripts for a new paragraph at the end of the section for describing this situation. See http://www.yoctoproject.org/docs/2.3/ref-manual/ref-manual.html#var-PACKAGE_WRITE_DEPS for the new glossary entry for PACKAGE_WRITE_DEPS. Please read them over and let me know of any adjustments. Thanks, Scott (In reply to comment #1) > Hi Patrick, > > See > http://www.yoctoproject.org/docs/2.3/dev-manual/dev-manual.html#new-recipe- > post-installation-scripts for a new paragraph at the end of the section for > describing this situation. The "Note: Equivalent support for pre-install, pre-uninstall..." might be misunderstood as referring to PACKAGE_WRITE_DEPS in the preceding paragraph, which then begs the question of whether there are separate variables for those. I would reorder and slightly reword as: The previous example delays execution until the image boots again because the environment variable D points to the directory containing the image when the root filesystem is created at build time but is unset when executed on the first boot. Note Equivalent support for pre-install, pre-uninstall, and post-uninstall scripts .... If you have recipes that use [PO: pkg_postinst deleted here] scripts and they require the use of non-standard native tools that have dependencies during rootfs construction, you need to use the PACKAGE_WRITE_DEPS variable in your recipe to list these tools. If you do not use this variable, the tools might be missing and execution of the post-installation script is deferred until first boot. Deferring the script to first boot is undesirable and for read-only rootfs impossible. > See > http://www.yoctoproject.org/docs/2.3/ref-manual/ref-manual.html#var- > PACKAGE_WRITE_DEPS for the new glossary entry for PACKAGE_WRITE_DEPS. Looks good. Thanks Patrick, Setting to RESOLVED and marking the doc flag as "done." Scott Hello, I know this bug is solved and closed, but I'm sorry I'm facing a problem with an old version of Yocto. Can you please check my question on stackoverflow: http://stackoverflow.com/questions/43476801/use-linux-setcap-command-to-set-capabilities-during-yocto-build Hi Sherif, These package dependencies are varied and specific to all sorts of distros and on what a person is trying to do. I am probably not the appropriate person to assign to this bug. I don't figure these things out... I document the results after someone else figures out the problem/solution with the system and the circumstances. I will CC some people here on the bug but cannot dig into a solution. Sorry I can't be of more immediate help on this. Scott |