[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Re: Subversion 1.9.5 --with-serf problem

From: Andreas Stieger <Andreas.Stieger_at_gmx.de>
Date: Wed, 7 Jun 2017 16:48:11 +0200

> Thanks very much for this patch, it does indeed fix the problem for me.
>
> My use case is pretty much as you describe.
> I'm building a Subversion client RPM which includes serf.
>
> During the %build phase serf is built as so:
>
> scons PREFIX=%{prefix} install --install-sandbox=%{buildroot}
>
> It therefore installs into %buildroot rather than %prefix, but the serf-1.pc
> file used by pkg-config will contain %prefix paths. When the subversion
> configure step runs I use --with-serf=%buildroot but because it now uses
> pkg-config in preference to the --with-serf value, %prefix is assumed and the
> include files etc don't get found.

You are building two packages in one. "scons PREFIX=%{prefix} install --install-sandbox=%{buildroot}" assumes that you will extract the files installed to %{buildroot} to make a serf rpm, then use the -devel to build the subversion one (at which point all paths with check out).

For reference:
https://build.opensuse.org/package/view_file/openSUSE:Factory/libserf/libserf.spec
https://build.opensuse.org/package/view_file/openSUSE:Factory/subversion/subversion.spec

If you really want to use the serf built in the combined package, point --with-serf= to the serf (source) build tree, not the (install) build root.

Andreas
Received on 2017-06-07 16:48:23 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.