<?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>6638</bug_id>
          
          <creation_ts>2014-08-20 19:18:44 +0000</creation_ts>
          <short_desc>mkfs.ext4-native compiles with hardcoded .conf file location that is not valid if a shared sstate feed is used</short_desc>
          <delta_ts>2015-04-20 21:06:01 +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>1.6.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Anders">rob.anders</reporter>
          <assigned_to name="Rob Anders">rob.anders</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>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45182</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Anders">rob.anders</who>
    <bug_when>2014-08-20 19:18:44 +0000</bug_when>
    <thetext>mkfs.ext4 compiles in a fixed location for mke2fs.conf using the value of $sysconfdir at build time.  However, if the e2fsprogs package is being shared across multiple build environments using a shared sstate package feed (ie, SSTATE_MIRRORS is set), then this mkfs.ext4 can end up in a completely different build environment, still referencing the absolute path to mke2fs.conf in the original build environment where it was compiled.  This can lead to one of two outcomes:

- If the original mke2fs.conf no longer exits, mkfs.ext4 silently fails to open it and proceeds (I&apos;m not sure what sort of default values it then uses or the impact of not referencing the actual file in the local environment)
- If the original mke2fs.conf exists, but has no read permissions for the user running mkfs.ext4, then mkfs.ext4 fails.

It seems the ideal situation would be to add this line to the do_install of e2fsprogs.bb:

create_wrapper ${D}/${base_sbindir}/mkfs.ext4 MKE2FS_CONFIG=$sysconfdir/../etc/mke2fs.conf

Except that the create_image.ext4 script does not export $sysconfdir, do this doesn&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48990</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-02-23 17:08:52 +0000</bug_when>
    <thetext>Hi Rob,

I&apos;m trying to reproduce the issue but i can&apos;t,

I&apos;m using SSATE&apos;s from qemux86-64 build into another build using SSTATE_DIR and then built core-image-minimal.

Here is my local.conf,

MACHINE ??= &quot;qemux86-64&quot;
SSTATE_DIR ?= &quot;/home/alimon/repos/poky/build/sstate-cache&quot;
PACKAGE_CLASSES ?= &quot;package_deb&quot;

Any idea?

Regards,
    alimon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50284</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Anders">rob.anders</who>
    <bug_when>2015-04-14 02:28:24 +0000</bug_when>
    <thetext>Sorry, I guess I don&apos;t have time to attempt reproduction and provide the logs.  We&apos;ll go ahead and close this for now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>