<?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>720</bug_id>
          
          <creation_ts>2011-02-14 16:56:53 +0000</creation_ts>
          <short_desc>postinst script lacks executable permission</short_desc>
          <delta_ts>2011-02-24 16:58:11 +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>devtools / tool chain</component>
          <version>0.9</version>
          <rep_platform>x86</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>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Roper">matthew.d.roper</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>liangliang.wang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11744</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Roper">matthew.d.roper</who>
    <bug_when>2011-02-14 16:56:53 +0000</bug_when>
    <thetext>Recipe meta/recipes-devtools/dpkg/run-postinsts_1.0.bb fails with the output below.  It appears the postinst script inside the .deb does not have the execute permissions it needs?


NOTE: package run-postinsts-1.0-r6: task do_package_write_deb: Started
ERROR: Function &apos;dpkg-deb execution failed&apos; failed
ERROR: Logfile of failure stored in: /home/mattrope/work/yocto/poky-5.0-build/tmp/work/i586-poky-linux/run-postinsts-1.0-r6/temp/log.do_package_write_deb.15584
Log data follows:
| dpkg-deb: building package `run-postinsts-dbg&apos; in `/home/mattrope/work/yocto/poky-5.0-build/tmp/work/i586-poky-linux/run-postinsts-1.0-r6/deploy-debs/i586/run-postinsts-dbg_1.0-r6_i386.deb&apos;.
| dpkg-deb: maintainer script `postinst&apos; has bad permissions 644 (must be &gt;=0555 and &lt;=0775)
| dpkg-deb: building package `run-postinsts&apos; in `/home/mattrope/work/yocto/poky-5.0-build/tmp/work/i586-poky-linux/run-postinsts-1.0-r6/deploy-debs/i586/run-postinsts_1.0-r6_i386.deb&apos;.
| ERROR: Function &apos;dpkg-deb execution failed&apos; failed
NOTE: package run-postinsts-1.0-r6: task dpkg-deb execution failed: Failed
ERROR: Task 222 (/home/mattrope/work/yocto/poky-bernard-5.0-alpha/meta/recipes-devtools/dpkg/run-postinsts_1.0.bb, do_package_write_deb) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11745</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-02-14 17:07:28 +0000</bug_when>
    <thetext>assign to the recipe maintainer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11803</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-02-15 19:08:14 +0000</bug_when>
    <thetext>I could not reproduce the bug on my ubuntu 10.04 machine.

Matt, what&apos;s your host OS? And what&apos;s the dpkg-deb version?

Thanks,
Dongxiao</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11819</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Roper">matthew.d.roper</who>
    <bug_when>2011-02-16 08:30:59 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I could not reproduce the bug on my ubuntu 10.04 machine.
&gt; 
&gt; Matt, what&apos;s your host OS? And what&apos;s the dpkg-deb version?
&gt; 
&gt; Thanks,
&gt; Dongxiao

Host machine is Ubuntu 10.10 (dpkg-deb version 1.15.8.10).  I also probably should have mentioned that this is for the bernard 5.0 alpha.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11876</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Roper">matthew.d.roper</who>
    <bug_when>2011-02-18 15:49:38 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I could not reproduce the bug on my ubuntu 10.04 machine.
&gt; &gt; 
&gt; &gt; Matt, what&apos;s your host OS? And what&apos;s the dpkg-deb version?
&gt; &gt; 
&gt; &gt; Thanks,
&gt; &gt; Dongxiao
&gt; 
&gt; Host machine is Ubuntu 10.10 (dpkg-deb version 1.15.8.10).  I also probably
&gt; should have mentioned that this is for the bernard 5.0 alpha.

Actually I misspoke; my host machine is actually Debian, but the dpkg-deb version is still the 1.15.8.10 I reported.  However I don&apos;t think it&apos;s the host that matters here, but rather the version inside the yocto toolchain here:  poky-5.0-build/tmp/sysroots/x86_64-linux/usr/bin/dpkg-deb .  That version appears to be 1.15.8.7.

If I&apos;m understanding properly which files it is operating upon (poky-5.0-build/tmp/work/i586-poky-linux/run-postinsts-1.0-r6/packages-split/run-postinsts/DEBIAN), then it appears the postinst script does indeed have the executable bit and the error being generated is incorrect.  I tried replacing the toolchain dpkg-deb with the newer version from the host OS, but that didn&apos;t solve the problem.  For now I&apos;ve worked around this by temporarily hacking the package_deb.bbclass to make failures during dpkg-deb creation non-fatal for the run-postinsts package just so that I can continue testing the rest of the build.  I&apos;m still very puzzled as to why it is reporting postinst has permissions 644 when I clearly see 755 during manual inspection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12022</commentid>
    <comment_count>5</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-02-23 17:25:58 +0000</bug_when>
    <thetext>Hi Matt

I saw there was a related fix by Richard in master.

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=9a28ad6b0291e0d4c4aae6ba25a9f7752d5c2e11

Since I could not reproduce this bug in my side. Could you help to try to see if it fixed your problem?

Thanks!
Dongxiao</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12089</commentid>
    <comment_count>6</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-02-24 16:58:11 +0000</bug_when>
    <thetext>We didn&apos;t see it in autobuilder now, mark it as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>