<?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>10711</bug_id>
          
          <creation_ts>2016-11-23 13:56:26 +0000</creation_ts>
          <short_desc>QA issue &quot;do not use [expanded-d] ${D} on postinst&quot; is not thrown when using RPM as package manager</short_desc>
          <delta_ts>2017-04-11 21:07:45 +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>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68535</commentid>
    <comment_count>0</comment_count>
      <attachid>3545</attachid>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-11-23 13:56:26 +0000</bug_when>
    <thetext>Created attachment 3545
Test Recepie

Steps:

1.-  set following on loca.conf
      MACHINE ??= &quot;qemux86&quot;
      PACKAGE_CLASSES ?= &quot;package_rpm&quot;
      IMAGE_INSTALL_append += &quot;z&quot;

2.- Download attached recipe and use it on poky/meta-selftest/recipes-test

3.- bitbake core-image-minimal 


Expected:
ERROR: z-1.0-r0 do_package_qa: QA Issue: pkg_postinst in z recipe contains ${D}, it should be replaced by $D instead [expanded-d]
ERROR: z-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: z-1.0-r0 do_package_qa: Function failed: do_package_qa


Actual:
Image is built correctly.

Note: 
Errors are thrown if PACKAGE_CLASSES ?= &quot;package_ipk package_deb&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68592</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-24 23:46:11 +0000</bug_when>
    <thetext>The test was broken, and how the test was executed was broken.

Whilst I could sort of replicate the behaviour I think it was due to how the test framework was implemented - basically this test shouldn&apos;t be running for this recipe because it was implemented as a per-file test and this package doesn&apos;t have any files...

Patches on the list to rewrite a few bits of insane and fix the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68744</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-30 17:11:11 +0000</bug_when>
    <thetext>Fixed in oe-core afda72b2424528eaff9054327530bdf5654bec66.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72349</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-04-11 21:07:45 +0000</bug_when>
    <thetext>Just tested in master Verified on commit b283b10d5363b4d86f2a18fce6a6aa37325fb5f2 is working correctly.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3545</attachid>
            <date>2016-11-23 13:56:26 +0000</date>
            <delta_ts>2016-11-23 13:56:26 +0000</delta_ts>
            <desc>Test Recepie</desc>
            <filename>z.tar.gz</filename>
            <type>application/gzip</type>
            <size>389</size>
            <attacher name="Jose Perez C">jose.perez.carranza</attacher>
            
              <data encoding="base64">H4sIAPKgNVgAA+3SW0sCQRQH8H32UwzmQz3ozs7sxS18MN1K8kYaIQTL7MVLZYo7Eih+92bLMELz
SUL6/x52YM9/zh44u9C1g6OKY1npaTgW/X5+0QxODYszyqjKGYbFmEasw4+mafNEihkh2tNgGs/i
Rbgrt69+pBb6wjcKtBAEh/tGumDbNHfu36bsx/6ZbZkaoYcbaeOf779eq3jNjkdKJNuodbOZjHrh
X9XqXsev3Nx27htppT96ic91PbestO68y3LHW+nrexfjyCqZkcvCiDtcBJHgLndCFoSm01cPN7Jd
Sh4zZIstXcexFHql1e7VmtcFNc9Hex4JN1TNAqdYDItUUF40uW0EZhQzajKqhv4cOLdsN1fpvHI4
SvJvIsmHs1jIOMoLmZ9NJrKfyNE4Vvlyvd568L1Gu9vb3DJUYfo88KcTFXtN5LpyekaW6fwncjIP
hyRX1X9vn2bX0WV1tS+8yvz1HwAAAAAAAAAAAAAAAAAAAAAAx+wdeSdeKwAoAAA=
</data>

          </attachment>
      

    </bug>

</bugzilla>