You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2001/11/18 03:59:23 UTC

problem building with system version of neon

so i was just working on upgrading the freebsd port to use a version
of neon installed on the system instead of the one shipped with
subversion, and i ran into an interesting problem.

in neon.m4 we are adding neon's CFLAGS to our own by doing this:

CFLAGS="$CFLAGS `$neon_config --cflags | sed -e 's/-I.* //g'`"

unfortunately, on my system, the last thing in the output of
'neon-config --cflags' is '-I/usr/include', which doesn't get filtered
out by the regex, so i end up with '-I/usr/include' in my CFLAGS,
which screws everything up because we end up including the system's
version of db.h, rather than the one installed by berkeley db.

i think the sed command should be changed to match either '-I.* ' or
'-I.*<end of input>', but i can't figure out what the regex foo for
<end of input> should be, and i can't test it and produce a patch 
anyway since the version of autoconf on this machine is too old to 
regenerate configure.

if someone who has more of a clue about sed than i do could take a 
look at this i would appreciate it.

thanks,

-garrett

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem building with system version of neon

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Sun, Nov 18, 2001 at 12:14:41PM +0000, Joe Orton wrote:
> On Sat, Nov 17, 2001 at 10:59:23PM -0500, Garrett Rooney wrote:
> ...
> > unfortunately, on my system, the last thing in the output of
> > 'neon-config --cflags' is '-I/usr/include', which doesn't get filtered
> > out by the regex, so i end up with '-I/usr/include' in my CFLAGS,
> > which screws everything up because we end up including the system's
> > version of db.h, rather than the one installed by berkeley db.
> 
> There were a couple of problems here; does it work now?

i'm not positive (can't test because i don't have a recent enough
autoconf), but it looks like those changes should take care of it
(although it feels like there should be a better way than just
explicitly removing -I/usr/local like that...)

thanks,

-garrett

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem building with system version of neon

Posted by Joe Orton <jo...@manyfish.co.uk>.
On Sat, Nov 17, 2001 at 10:59:23PM -0500, Garrett Rooney wrote:
...
> unfortunately, on my system, the last thing in the output of
> 'neon-config --cflags' is '-I/usr/include', which doesn't get filtered
> out by the regex, so i end up with '-I/usr/include' in my CFLAGS,
> which screws everything up because we end up including the system's
> version of db.h, rather than the one installed by berkeley db.

There were a couple of problems here; does it work now?

Regards,

joe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org