<?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>6088</bug_id>
          
          <creation_ts>2014-04-01 10:37:32 +0000</creation_ts>
          <short_desc>Error during DEB package build</short_desc>
          <delta_ts>2015-09-21 08:50:04 +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>Hob</product>
          <component>hob</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucian Musat">georgex.l.musat</reporter>
          <assigned_to name="Marius Avram">marius.avram</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>valentin.popa</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42018</commentid>
    <comment_count>0</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-04-01 10:37:32 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: 1.6_M5_RC1:47ceed0d8d60a3ddc398738acafe3aabf4ab8c90
ENVIRONMENT: Ubuntu 13.10 x86_64
STEPS TO REPRODUCE: 
  
launch hob

select one &quot;Machine&quot;, for example, qemux86

in &quot;Settings&quot;-&gt;&quot;Output&quot;, select deb for &quot;packaging format&quot;

click &quot;Save&quot; and select one image, for example, &quot;core-image-minimal&quot;

click &quot;Just Bake&quot; button and it should build recipes with deb format


EXPECTED OUTCOME: 
  
Build image with deb package format.

Actual Outcome:

Hob stops during build and throws an error as below:

NOTE: Running task 1778 of 1779 (ID: 7, /home/lucian/work/m5-rc1/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs)
ERROR: Index creation command &apos;cd /home/lucian/work/m5-rc1/poky/build/tmp/deploy/deb/all; /home/lucian/work/m5-rc1/poky/build/tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; failed with return code 2:
gzip: Packages does not exist -- skipping

ERROR: Function failed: do_rootfs
NOTE: recipe core-image-minimal-1.0-r0: task do_rootfs: Failed
ERROR: Task 7 (/home/lucian/work/m5-rc1/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1778 tasks of which 1755 didn&apos;t need to be rerun and 1 failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42094</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2014-04-02 05:29:09 +0000</bug_when>
    <thetext>With the same meta data, did you try build deb from the command line? And was is succesful?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42219</commentid>
    <comment_count>2</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-04-03 11:06:50 +0000</bug_when>
    <thetext>Hello, 

Tried from command line and this is the output:

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Index creation command &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; failed with return code 1:
gzip: abort: write error on Packages.gz

ERROR: Function failed: do_rootfs
WARNING: Debian package install does not support BAD_RECOMMENDATIONS
ERROR: Logfile of failure stored in: /home/lucian/work/poky/build/tmp/work/genericx86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.10336
ERROR: Task 7 (/home/lucian/work/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code &apos;1&apos;
ERROR: Index creation command &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; failed with return code 1:
gzip: abort: write error on Packages.gz

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/lucian/work/poky/build/tmp/work/genericx86-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_rootfs.10341
ERROR: Task 141 (/home/lucian/work/poky/meta/recipes-core/images/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code &apos;1&apos;

In log file:

DEBUG: Executing python function rootfs_deb_bad_recommendations
DEBUG: Python function rootfs_deb_bad_recommendations finished
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: ###### Generate rootfs #######
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release &gt;&gt; Release&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages &gt; Packages&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages &gt; Packages&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/core2-32; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release &gt;&gt; Release&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/genericx86; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release &gt;&gt; Release&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive packages &gt; Packages&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; ...
NOTE: Executing &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; PSEUDO_UNLOAD=1 /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/apt-ftparchive release &gt;&gt; Release&apos; ...
ERROR: Index creation command &apos;cd /home/lucian/work/poky/build/tmp/deploy/deb/all; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&apos; failed with return code 1:
gzip: abort: write error on Packages.gz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42235</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-03 14:46:41 +0000</bug_when>
    <thetext>What are the permissions on that file / directory? Can you see anything that would indicate why there would be a &quot;write error&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42325</commentid>
    <comment_count>4</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-04-07 09:08:04 +0000</bug_when>
    <thetext>Hello Paul,

The file permissions are ok, and also switching to RPM or IPK worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42326</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-07 09:20:06 +0000</bug_when>
    <thetext>So no clues as to why it would say &quot;write error&quot; then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42375</commentid>
    <comment_count>6</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-04-08 10:51:13 +0000</bug_when>
    <thetext>I am guessing that the gzip binary delivered is wrong. I see that it tries to archive the folder &quot;Packages&quot; into Packages.gz as it says in the log:

&quot;/home/lucian/work/m5-rc1/poky/build/tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz&quot;

That is the line that throws the error. I have tried to zip it using OpenSuse&apos;s gzip and works, but using the gzip binary in the pigz-native folder that is being used, it fails saying that Packages.gz exists:


lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all&gt; rm Packages.gz  

lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all&gt; /home/lucian/work/poky/build/tmp/sysroots/i686-linux/usr/bin/pigz-native/gzip Packages -c &gt; Packages.gz
Packages.gz exists -- overwrite (y/n)? n
gzip: Packages.gz exists -- skipping

lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all&gt; gzip Packages -c &gt; Packages.gz
lucian@linux-1kfx:~/work/poky/build/tmp/deploy/deb/all&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42653</commentid>
    <comment_count>7</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-04-14 16:11:07 +0000</bug_when>
    <thetext>Haven&apos;t seen this error in the latest builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43328</commentid>
    <comment_count>8</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-05-14 16:44:37 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Haven&apos;t seen this error in the latest builds.

If we can no longer reproduce this problem, can we mark the bug as resolved - works for me?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43351</commentid>
    <comment_count>9</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-05-15 08:55:53 +0000</bug_when>
    <thetext>Ok, setting to Resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54353</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-09-21 08:50:04 +0000</bug_when>
    <thetext>verified on master: ea562de57590c966cd5a75fda8defecd397e6436</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>