> 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

Reply via email to