Bug 6642 - Add a package QA check for ${D} in postinstall script functions
Summary: Add a package QA check for ${D} in postinstall script functions
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.8
Assignee: Alejandro Hernandez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-08-21 14:28 UTC by Paul Eggleton
Modified: 2015-02-09 21:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-08-21 14:28:04 UTC
It's a common mistake to use ${D} rather than $D in postinstall scripts, and it would be easy for us to detect, so we really ought to have a package QA check for it. We'd just need to look in the unexpanded value of pkg_postinst, pkg_preinst, pkg_postrm and pkg_prerm and trigger a QA issue if ${D} was in the value (suggesting to the user that $D should be used instead).
Comment 1 Paul Eggleton 2014-11-19 14:56:58 UTC
See also the similar (but not directly related) bug 6982.