<?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>3267</bug_id>
          
          <creation_ts>2012-10-10 08:46:52 +0000</creation_ts>
          <short_desc>apr and apr-util config scripts produce incorrect paths</short_desc>
          <delta_ts>2012-12-06 22:45:35 +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>1.3</version>
          <rep_platform>All</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>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26462</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-10-10 08:46:52 +0000</bug_when>
    <thetext>The apr-1-config and apu-1-config scripts from apr and apr-util respectively have incorrect paths pointing into the workdir for the recipe, for example:

$ /media/large/tmp/sysroots/qemuarm/usr/bin/crossscripts/apr-1-config --apr-libtool
/media/large/tmp/work/armv5te-poky-linux-gnueabi/apr-1.4.6-r1/apr-1.4.6/libtool
$ /media/large/tmp/sysroots/qemuarm/usr/bin/crossscripts/apr-1-config --includedir
/media/large/tmp/work/armv5te-poky-linux-gnueabi/apr-1.4.6-r1/apr-1.4.6/include

What should be produced:
$ /media/large/tmp/sysroots/qemuarm/usr/bin/crossscripts/apr-1-config --apr-libtool
/media/large/tmp/sysroots/qemuarm/usr/share/build-1/libtool
$ /media/large/tmp/sysroots/qemuarm/usr/bin/crossscripts/apr-1-config --includedir
/media/large/tmp/sysroots/qemuarm/usr/include

The reason this is broken is that OE-Core&apos;s version of binconfig.bbclass does not implement OE_BINCONFIG_EXTRA_MANGLE, which is set by both of these recipes to change the config scripts so that they use the correct paths. We need to find the patch in OE-Classic that added this variable and bring it into OE-Core.

(This apparently does not break building subversion, which is the only thing in OE-Core that uses apr/apr-util; for apache2 in meta-webserver I have a workaround which is to make a copy of the script and then mangle it, so this is not an urgent issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27930</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-12-04 01:16:33 +0000</bug_when>
    <thetext>
Paul, is this the patch you are referring to from Holger?

http://git.openembedded.org/openembedded/commit/?id=030992bdd415c8892cf2925cf6fbe888226be046

If so, I can merge it and test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27941</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-12-04 09:34:20 +0000</bug_when>
    <thetext>Looks like it, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28073</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-12-06 22:45:35 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=46eabf3a90efc0e0afd3795beca56f0e1ff88ae0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>