<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6642</bug_id>
          
          <creation_ts>2014-08-21 14:28:04 +0000</creation_ts>
          <short_desc>Add a package QA check for ${D} in postinstall script functions</short_desc>
          <delta_ts>2015-02-09 21:04:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45190</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-08-21 14:28:04 +0000</bug_when>
    <thetext>It&apos;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&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47087</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-11-19 14:56:58 +0000</bug_when>
    <thetext>See also the similar (but not directly related) bug 6982.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48658</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2015-02-09 21:04:40 +0000</bug_when>
    <thetext>Solved here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=24d9d5a6eb3b48d392b7fa0bde1fc5c7a8392023</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>