<?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>12970</bug_id>
          
          <creation_ts>2018-10-24 18:38:37 +0000</creation_ts>
          <short_desc>uninative file should be versionned</short_desc>
          <delta_ts>2021-11-13 16:41:34 +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>unspecified</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>enhancement</bug_severity>
          <target_milestone>4.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicolas Dechesne">ndec13</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>mark.jonas</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ndec13</cc>
    
    <cc>randy.macleod</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>81949</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2018-10-24 18:38:37 +0000</bug_when>
    <thetext>the uninative file by default goes to $DL_DIR/uninative/&lt;CHECKSUM&gt;/x86_64-nativesdk-libc.tar.bz2

so the file name does not include any version information.

when doing offline builds using a local mirror (own-mirror) or when using PREMIRROR, using the instructions from the Yocto manual, such as:

     SOURCE_MIRROR_URL ?= &quot;file:///home/you/your-download-dir/&quot;
     INHERIT += &quot;own-mirrors&quot;

we will try to fetch the file from the local mirror, but we will try to fetch x86_64-nativesdk-libc.tar.bz2 which does not have any indication about the version.

There are several issues:
1. if the uninative file was not manually copied into the local mirror and if network is disabled, then it won&apos;t be fetched from mirror nor from the internet.

2. if the uninative is manually imported into the local mirror, then we can&apos;t have more than 1 file (name collision), and if/when the uninative tarball is updated, we won&apos;t be able to make any build with uninative. 

why is the uninative file not like any other fetched tarball, e.g. something like $DL_DIR/x86_64-nativesdk-libc_&lt;version&gt;.tar.bz2, where &lt;version&gt; can be the checksum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91885</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-03 15:46:50 +0000</bug_when>
    <thetext>The mirroring issue should have been fixed firstly by before this bug):

http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/uninative.bbclass?id=64d15c298dd46e9ba200d77de6d0ab96ec24588c

and then more generically for PREMIRRORS in general with:

http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/uninative.bbclass?id=917032944ec71e62ba9e32842ec78e1d1218e2e0

and in the mirror directory, it should be using the file under a checksum directory, not at the top level. As such I think the mirroring issues are fixed. 

I have left this bug open as having a version in the tarball name would be helpful, I&apos;m struggling to remember what that was a bad idea at the time and whether it still applies...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91992</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Jonas">mark.jonas</who>
    <bug_when>2021-11-12 16:09:35 +0000</bug_when>
    <thetext>It now works as I expected. That is, the uninative archive can be found at uninative/&lt;CHECKSUM&gt;/x86_64-nativesdk-libc.tar.bz2 in the location SOURCE_MIRROR_URL points to.

I tested on Dunfell 3.1.9.

Thank you very much Richard!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92001</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-13 16:41:34 +0000</bug_when>
    <thetext>Also, the rename is now in place so all the issues are resolved here:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ca97a835fea2c1216ea1f5032b4301c9778c4462</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>