You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Kristian Hogsberg <ho...@users.sourceforge.net> on 2003/07/03 07:47:11 UTC

svn-config taken out of subversion-devel rpm package

Hi,

I'm using the Redhat 8 RPMs of subversion 0.24.2. I couldn't find
svn-config, and found out that it was removed from the devel RPM in
r5880. What was the reason it was taken out?  Devel RPMs typically
distribute x-config files - are you considering switching to
pkg-config?

I then tried to use svn-config out of the build directory, but it
gives the wrong path for the include files.  With the following
change it works again:

Index: svn-config.in
===================================================================
--- svn-config.in	(revision 6319)
+++ svn-config.in	(working copy)
@@ -109,7 +109,7 @@
     if test "$location" = "installed"; then
         flags="$flags -I$includedir/subversion-1 $INCLUDES"
     elif test "$location" = "source"; then
-        flags="$flags -I$SVN_SOURCE_DIR/include $INCLUDES"
+        flags="$flags -I$SVN_SOURCE_DIR/subversion/include $INCLUDES"
     else
         flags="$flags -I$thisdir/include -I$SVN_SOURCE_DIR/include $INCLUDES"
     fi


By the way, providing the RPMs is a great service, thanks!

Kristian


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

Re: svn-config taken out of subversion-devel rpm package

Posted by Kristian Hogsberg <ho...@users.sourceforge.net>.
Greg Stein <gs...@lyra.org> writes:

> On Tue, Jul 08, 2003 at 08:41:43AM +0200, Kristian Hogsberg wrote:
> > Ben Collins-Sussman <su...@collab.net> writes:
> > > Kristian Hogsberg <ho...@users.sf.net> writes:
> > > 
> > > > > Yes, there's a wishlist issue to use pkg-config someday, but nobody's
> > > > > got a round tuit.
> > > > 
> > > > I could do that, it's a pretty simple format.  There would have to be
> > > > a pkg-config file for each of the svn libs, but the dependencies
> > > > between the svn libraries could be expressed nicely using the 'Requires'
> > > > pkg-config keyword.
> 
> Ideally, these would be generated by the gen-make system. It already knows
> each of the libraries and their dependencies. Manually maintaing a whole
> bunch of .pc files is pretty much a non-starter for me.

Yes, good point, I'll see what I can do.  I read through the
build.conf file to learn about the dependencies, and I think there's
enough information there to generate the .pc file automatically.

Kristian


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

Re: svn-config taken out of subversion-devel rpm package

Posted by Greg Stein <gs...@lyra.org>.
On Tue, Jul 08, 2003 at 08:41:43AM +0200, Kristian Hogsberg wrote:
> Ben Collins-Sussman <su...@collab.net> writes:
> > Kristian Hogsberg <ho...@users.sf.net> writes:
> > 
> > > > Yes, there's a wishlist issue to use pkg-config someday, but nobody's
> > > > got a round tuit.
> > > 
> > > I could do that, it's a pretty simple format.  There would have to be
> > > a pkg-config file for each of the svn libs, but the dependencies
> > > between the svn libraries could be expressed nicely using the 'Requires'
> > > pkg-config keyword.

Ideally, these would be generated by the gen-make system. It already knows
each of the libraries and their dependencies. Manually maintaing a whole
bunch of .pc files is pretty much a non-starter for me.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: svn-config taken out of subversion-devel rpm package

Posted by Kristian Hogsberg <ho...@users.sourceforge.net>.
Ben Collins-Sussman <su...@collab.net> writes:

> Kristian Hogsberg <ho...@users.sf.net> writes:
> 
> > > Yes, there's a wishlist issue to use pkg-config someday, but nobody's
> > > got a round tuit.
> > 
> > I could do that, it's a pretty simple format.  There would have to be
> > a pkg-config file for each of the svn libs, but the dependencies
> > between the svn libraries could be expressed nicely using the 'Requires'
> > pkg-config keyword.
> 
> Issue 738 -- it's post-1.0 in terms of priority, but heck... if you
> wanna write it, it's all yours!  I'm sure many distros would be
> thrilled if subversion had pkg-config .pc files.

OK, I'll send a patch, but I wont get it done until the weekend.  I
think it is one of those little pieces of infrastructure that would be
nice to have in place for a 1.0 release.

Kristian


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

Re: svn-config taken out of subversion-devel rpm package

Posted by Ben Collins-Sussman <su...@collab.net>.
Kristian Hogsberg <ho...@users.sf.net> writes:

> > Yes, there's a wishlist issue to use pkg-config someday, but nobody's
> > got a round tuit.
> 
> I could do that, it's a pretty simple format.  There would have to be
> a pkg-config file for each of the svn libs, but the dependencies
> between the svn libraries could be expressed nicely using the 'Requires'
> pkg-config keyword.

Issue 738 -- it's post-1.0 in terms of priority, but heck... if you
wanna write it, it's all yours!  I'm sure many distros would be
thrilled if subversion had pkg-config .pc files.

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

Re: svn-config taken out of subversion-devel rpm package

Posted by Kristian Hogsberg <ho...@users.sourceforge.net>.
Ben Collins-Sussman <su...@collab.net> writes:

> Kristian Hogsberg <ho...@users.sf.net> writes:
> 
> > Hi,
> > 
> > I'm using the Redhat 8 RPMs of subversion 0.24.2. I couldn't find
> > svn-config, and found out that it was removed from the devel RPM in
> > r5880. What was the reason it was taken out?  Devel RPMs typically
> > distribute x-config files - are you considering switching to
> > pkg-config?
> 
> 'svn-config' has never worked correctly;  it was a half-started
> thing.  So we stopped installing it, because we didn't want to people
> to think it was usable.  :-)

Ok, I see, I'll stop using it then :-)

> Yes, there's a wishlist issue to use pkg-config someday, but nobody's
> got a round tuit.

I could do that, it's a pretty simple format.  There would have to be
a pkg-config file for each of the svn libs, but the dependencies
between the svn libraries could be expressed nicely using the 'Requires'
pkg-config keyword.  For example, svn_repos.pc.in:

	prefix=@prefix@
	exec_prefix=@exec_prefix@
	libdir=@libdir@
	includedir=@includedir@
	
	Name: svn_repos
	Description: Subversion Local Repository Access
	Requires: svn_fs svn_delta svn_subr
	Version: @PACKAGE_VERSION@
	Libs: -L${libdir} -lsvn_repos-1
	Cflags: -I${includedir}/subversion-1

and when you write

        pkg-config --libs svn_repos

you get

         -L/tmp/svn-install/lib -lsvn_repos-1 -lsvn_fs-1 -lsvn_delta-1 -lsvn_subr-1 -laprutil-0 -lgdbm -ldb-4.0 -lexpat -lapr-0 -lrt -lm -lcrypt -lnsl -ldl

(I put @SVN_APRUTIL_EXPORT_LIBS@ @SVN_APR_EXPORT_LIBS@ in svn_subr.pc.in)

I can write the rest of these if you want, but I'm not sure how to
write the install rules for the Makefile.  The .pc.in files could be
put in a pkg-config subdirectory to avoid cluttering the top source
directory.

Kristian


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

Re: svn-config taken out of subversion-devel rpm package

Posted by Ben Collins-Sussman <su...@collab.net>.
Kristian Hogsberg <ho...@users.sf.net> writes:

> Hi,
> 
> I'm using the Redhat 8 RPMs of subversion 0.24.2. I couldn't find
> svn-config, and found out that it was removed from the devel RPM in
> r5880. What was the reason it was taken out?  Devel RPMs typically
> distribute x-config files - are you considering switching to
> pkg-config?

'svn-config' has never worked correctly;  it was a half-started
thing.  So we stopped installing it, because we didn't want to people
to think it was usable.  :-)

Yes, there's a wishlist issue to use pkg-config someday, but nobody's
got a round tuit.

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