<?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>11669</bug_id>
          
          <creation_ts>2017-06-15 08:09:38 +0000</creation_ts>
          <short_desc>musl package doesn&apos;t provide &quot;libc-staticdev&quot;</short_desc>
          <delta_ts>2017-06-16 10:19:05 +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>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxin B. John">maxin.john</reporter>
          <assigned_to name="Maxin B. John (inactive)">maxin.baby.john</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>74187</commentid>
    <comment_count>0</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-06-15 08:09:38 +0000</bug_when>
    <thetext>When we try to build libc-staticdev (glibc):
# bitbake libc-staticdev

ERROR: Nothing PROVIDES &apos;libc-staticdev&apos;. Close matches:
  glibc RPROVIDES libc-staticdev

For musl:
# bitbake libc-staticdev
ERROR: Nothing PROVIDES &apos;libc-staticdev&apos;

musl libc also should provide staticdev package.

This will help &quot;musl&quot; based SDKs to build applications using static libraries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74188</commentid>
    <comment_count>1</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-06-15 08:10:54 +0000</bug_when>
    <thetext>Adding Khem in CC List</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74212</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-06-15 14:58:48 +0000</bug_when>
    <thetext>bitbake &lt;package&gt; is not a supported syntax, it needs to be a recipe target.

Also, we disable static libraries by default now. We can&apos;t stop glibc building some of them so we package those but musl is probably honouring the global settings more. We may therefore need more info here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74215</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-06-15 15:01:48 +0000</bug_when>
    <thetext>See question above</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74235</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2017-06-15 15:55:16 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; bitbake &lt;package&gt; is not a supported syntax, it needs to be a recipe target.
&gt; 
&gt; Also, we disable static libraries by default now. We can&apos;t stop glibc
&gt; building some of them so we package those but musl is probably honouring the
&gt; global settings more. We may therefore need more info here.

musl does build .a files and puts them into musl-staticdev we probably just
need a PROVIDES directive but you could also use

${TCLIBC}-staticdev to be libc agnostic then we dont need PROVIDES</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74273</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-06-16 10:19:05 +0000</bug_when>
    <thetext>Hi RP, Khem,

Thanks for commenting on this. This bug was created as part of a suggestion from this thread:
https://lists.yoctoproject.org/pipermail/yocto/2017-June/036632.html

&quot;
That should perhaps be &quot;libc-staticdev&quot; so the same instructions work
for musl (although it looks like currently musl doesn&apos;t rprovide
libc-staticdev so that would need to be fixed too).

&quot;

As RP mentioned, we are disabling static libraries by default these days. So, we don&apos;t have to add PROVIDES in musl recipe.

Instead, as Khem mentioned, add this line in local.conf :
&quot;TOOLCHAIN_TARGET_TASK += &quot;${TCLIBC}-staticdev&quot;

and we will get  required &quot;.a&quot; files for the libc (glibc or musl) in SDK.


(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; &gt; bitbake &lt;package&gt; is not a supported syntax, it needs to be a recipe target.
&gt; &gt; 
&gt; &gt; Also, we disable static libraries by default now. We can&apos;t stop glibc
&gt; &gt; building some of them so we package those but musl is probably honouring the
&gt; &gt; global settings more. We may therefore need more info here.
&gt; 
&gt; musl does build .a files and puts them into musl-staticdev we probably just
&gt; need a PROVIDES directive but you could also use
&gt; 
&gt; ${TCLIBC}-staticdev to be libc agnostic then we dont need PROVIDES</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>