<?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>14100</bug_id>
          
          <creation_ts>2020-10-20 07:16:09 +0000</creation_ts>
          <short_desc>SDKPATH should not reference SDK_VERSION</short_desc>
          <delta_ts>2021-08-02 14:54:17 +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>oe-core other</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>normal</bug_severity>
          <target_milestone>3.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yann Dirson">ydirson</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>88438</commentid>
    <comment_count>0</comment_count>
    <who name="Yann Dirson">ydirson</who>
    <bug_when>2020-10-20 07:16:09 +0000</bug_when>
    <thetext>crosssdk.bbclass sets eg. this:

target_libdir = &quot;${SDKPATHNATIVE}${libdir_nativesdk}&quot;

This causes all crosssdk recipes (starting with binutils-crosssdk) to see their hash change on any DISTRO_VERSION change (be it as minor as a bugfix dot-release).

OTOH, hardcoding this version in packages targetting the SDK does not seem to make sense, as the SDK itself is fully relocatable.

It sounds like we only need the current SDKPATH value as a default path for the sdk relocation step.

At first glance it even looks like the ${DISTRO} part of SDKPATH can also be removed too, as it looks like the only typical reference to it is in conf/distro/ itself, and could help to share sstate between poky and downstream distros.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88460</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-22 08:01:36 +0000</bug_when>
    <thetext>I think this is a valid concern. The SDK is relocatable now so we could use a &quot;bland&quot; path and then just use the default install path for the SDK to possibly contain distro and version?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91082</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-02 14:54:17 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f62f684de861bddc225cee66f33781d328a20f95
http://git.yoctoproject.org/cgit.cgi/meta-yocto/commit/?id=a62175ee581bd05661717f0fb89dad2a297b4034</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>