You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Ian Miller (JIRA)" <ji...@apache.org> on 2017/01/19 21:30:26 UTC
[jira] [Created] (SVN-4670) SVN_SERF_INCLUDES in
build/ac-macros/serf.m4 cuts off directories with '-D' in the name
Ian Miller created SVN-4670:
-------------------------------
Summary: SVN_SERF_INCLUDES in build/ac-macros/serf.m4 cuts off directories with '-D' in the name
Key: SVN-4670
URL: https://issues.apache.org/jira/browse/SVN-4670
Project: Subversion
Issue Type: Bug
Components: compile
Affects Versions: 1.8.17
Environment: Linux
Reporter: Ian Miller
Priority: Minor
SED parses out the end of the directory if '-D' is used anywhere in the source directory tree (with SERF enabled). For example:
Running the build here:
/root/my-Directory/subversion-1.8.9
Causes the serf includes to be truncated to:
-I/root/my
I noticed this because my Jenkin's pipeline build appended a hash to the directory name starting with '-D'
Here's the fix:
{noformat}
diff -Naur a/build/ac-macros/serf.m4 b/build/ac-macros/serf.m4
--- a/build/ac-macros/serf.m4 2017-01-19 13:51:38.878936415 -0500
+++ b/build/ac-macros/serf.m4 2017-01-19 16:14:08.984860301 -0500
@@ -143,7 +143,7 @@
if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then
AC_MSG_RESULT([yes])
serf_found=yes
- SVN_SERF_INCLUDES=[`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'`]
+ SVN_SERF_INCLUDES=[`$PKG_CONFIG $serf_major --cflags-only-I`]
SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs`
break
else
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)