<?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>7874</bug_id>
          
          <creation_ts>2015-06-10 22:54:31 +0000</creation_ts>
          <short_desc>subversion-native compile failure with missing serf header on paths containing &quot;-D&quot;</short_desc>
          <delta_ts>2015-07-14 17:08: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>devtools / tool chain</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>1.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Gortmaker">paulg</reporter>
          <assigned_to name="Jose Lamego">jose.a.lamego</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>51625</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2015-06-10 22:54:31 +0000</bug_when>
    <thetext>If you create a project with a dash and a capital &quot;D&quot;, you will get a build failure on subversion-native.  For example, &quot;/home/paul/My-Demo&quot;

This happens because subversion serf.m4 contains this line:

 http://svn.apache.org/repos/asf/subversion/branches/master-passphrase/build/ac-macros/serf.m4

SVN_SERF_INCLUDES=[`$PKG_CONFIG $serf_major --cflags | $SED -e &apos;s/-D[^ ]*//g&apos;`]

Presumably the sed was to remove &quot;-Dfoo=bar&quot; type stuff from cflags, but it also mangles any &quot;-I/path/with/a/dash/dee/my-Dir/include&quot; too.  Which then means you won&apos;t get the include path to the serf.h and the compile will fail.

A possible sed expression to fix this would be:

echo &quot;-Dcrap -I/home/here/foo-D/paul -Dbar=foo&quot;| sed -e &apos;s/[[:space:]]-D[^ ]*//g&apos; -e &apos;s/^-D[^ ]*//g&apos;
-I/home/here/foo-D/paul

compared to the failure of the original:

echo &quot;-Dcrap -I/home/here/foo-D/paul -Dbar=foo&quot; | sed -e &apos;s/-D[^ ]*//g&apos;  
 -I/home/here/foo 

[possible sed regex courtesy of seebs]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52358</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2015-07-14 17:08:17 +0000</bug_when>
    <thetext>The patch is merged by subversion upstream with replacing &apos;[[:space:]]&apos; with &apos; &apos;.

http://svn.apache.org/viewvc/subversion/trunk/build/ac-macros/serf.m4?r1=1594156&amp;r2=1689824</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>