<?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>12139</bug_id>
          
          <creation_ts>2017-09-28 17:09:21 +0000</creation_ts>
          <short_desc>ERROR: Multiple .bb files are due to be built which each provide gzip-native</short_desc>
          <delta_ts>2018-02-20 20:14:12 +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.4.1</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>2.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</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>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77203</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-09-28 17:09:21 +0000</bug_when>
    <thetext>When I try to use gzip-native (as opposed to host gzip),  I set in my local.conf:

do_rootfs[depends] += &quot;gzip-replacement-native:do_populate_sysroot&quot;
EXTRANATIVEPATH += &quot;gzip-native&quot;

and then:

$ bitbake core-image-minimal

complains:

ERROR: Multiple .bb files are due to be built which each provide gzip-native:########                                                                              | ETA:  0:00:03
  virtual:native:/data/master/poky/meta/recipes-extended/pigz/pigz_2.3.4.bb                                                                                                       
  virtual:native:/data/master/poky/meta/recipes-extended/gzip/gzip_1.8.bb                                                                                                         
A list of tasks depending on these providers is shown and may help explain where the dependency comes from.                                                                       
virtual:native:/data/master/poky/meta/recipes-extended/pigz/pigz_2.3.4.bb has unique dependees:                                                                                   
  virtual:native:/data/master/poky/meta/recipes-core/expat/expat_2.2.3.bb:do_unpack                                                                                               
  /data/master/poky/meta/recipes-core/expat/expat_2.2.3.bb:do_prepare_recipe_sysroot                                                                                              
  virtual:native:/data/master/poky/meta/recipes-core/expat/expat_2.2.3.bb:do_prepare_recipe_sysroot                                                                               
  /data/master/poky/meta/recipes-core/expat/expat_2.2.3.bb:do_unpack                                                                                                              
virtual:native:/data/master/poky/meta/recipes-extended/gzip/gzip_1.8.bb has unique dependees:                                                                                     
                                                                                                                                                                                  
It could be that one recipe provides something the other doesn&apos;t and should. The following provider and runtime provider differences may be helpful.                              
virtual:native:/data/master/poky/meta/recipes-extended/pigz/pigz_2.3.4.bb has unique provides:                                                                                    
  pigz-native                                                                                                                                                                     
virtual:native:/data/master/poky/meta/recipes-extended/pigz/pigz_2.3.4.bb has unique rprovides:                                                                                   
  pigz-native                                                                                                                                                                     
virtual:native:/data/master/poky/meta/recipes-extended/gzip/gzip_1.8.bb has unique provides:                                                                                      
  gzip-replacement-native                                                                                                                                                         
virtual:native:/data/master/poky/meta/recipes-extended/gzip/gzip_1.8.bb has unique rprovides:                                                                                     
  gzip-native      


I definitely cannot use the host gzip, so how do I proceed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77367</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-10-04 23:38:33 +0000</bug_when>
    <thetext>I should mentioned that I also tried all kinds of PREFERRED_PROVIDER settings, such as:

PREFERRED_PROVIDER_gzip-native = &quot;gzip-native&quot;
PREFERRED_PROVIDER_gzip-native = &quot;gzip-replacement-native&quot;
PREFERRED_PROVIDER_virtual/gzip-native=&quot;gzip-native&quot;

until I ran out of ideas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78558</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-12-06 22:11:28 +0000</bug_when>
    <thetext>I should mention that I need to differentiate between pigz and gzip, as (contrary what pigz claims) pigz ** does not ** support identical command line options as gzip.
In particular:

gzip -n 
pigz -n

behave differently. I think you need to specify

pigz -n -T 

to emulate 

gzip -n

However, I don&apos;t think gzip supports -T.
So pretending pigz is the same as gzip is not just confusing but also (in some cases) wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78602</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-12-07 21:25:33 +0000</bug_when>
    <thetext>I will file a separate bug reflecting the fact taht pigz is not a drop in replacement for gzip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79361</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-06 12:00:36 +0000</bug_when>
    <thetext>The fix for 12410 handles this too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79515</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-20 20:14:12 +0000</bug_when>
    <thetext>Fixed in oe-core 1624b7bfea7ac31c344a6cfcc7865a038e943814 by ensuring that pigz isn&apos;t a gzip replacement.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>