<?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>10223</bug_id>
          
          <creation_ts>2016-09-06 07:53:48 +0000</creation_ts>
          <short_desc>libical build fails after changing machine (QA check for tmpdir in .pc file)</short_desc>
          <delta_ts>2016-09-15 08:04:47 +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>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</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>65814</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-09-06 07:53:48 +0000</bug_when>
    <thetext>This only fails when libical is built for e.g. qemux86-64 already, and is then built for generic86-64 in a way that install is re-run:
$ MACHINE=qemux86-64 bitbake libical
$ MACHINE=genericx86-64 bitbake -f -Cinstall libical


In this case a QA check finds tmpdir in the pc file. core2-64-poky-linux libical workdir looks like this after build fails for MACHINE=genericx86-64:

$ grep iculib= build/libical.pc 
iculib=/home/jku/src/poky/build/tmp/sysroots/qemux86-64/usr/lib/libicuuc.so /home/jku/src/poky/build/tmp/sysroots/qemux86-64/usr/lib/libicui18n.so 


This is the hack in libical recipe:

do_install_append () {
        sed -i -e &quot;s#${STAGING_LIBDIR}/lib\([a-z0-9]*\)\.so#-l\1#g&quot; ${D}${libdir}/pkgconfig/libical.pc
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65926</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-08 14:37:09 +0000</bug_when>
    <thetext>Note that upstream just fixed a related bug: https://github.com/libical/libical/issues/227</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65930</commentid>
    <comment_count>2</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2016-09-08 15:53:24 +0000</bug_when>
    <thetext>Hi Ross,

(In reply to comment #1)
&gt; Note that upstream just fixed a related bug:
&gt; https://github.com/libical/libical/issues/227


Thank you very much for the link. I was moving more towards upgrading the FindICU.cmake (https://github.com/julp/FindICU.cmake).

Sent the back-ported patch to oe-core:
http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126322.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65968</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-09-09 06:11:50 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Note that upstream just fixed a related bug:
&gt; https://github.com/libical/libical/issues/227

Loving the upstream solution: instead of replacing &gt;100 lines of custom cmake with a single pkg-config call, add more hard-coded linker flags :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66190</commentid>
    <comment_count>4</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2016-09-15 08:04:47 +0000</bug_when>
    <thetext>Merged to OE-core master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6b889ff46e1958919deb37421ef7fd4ca10eedb2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>