Phil,

Thanks for the reply.  Attached is the RPM spec file I put together.  A look
at the '%build' section will show you what I needed to do to get this to
work for me.  I'll copy that section here:

%build
# patch configure to look for aprutil-0 instead of aprutil-1
sed s/aprutil-1/aprutil-0/g configure > configure.patch
mv configure.patch configure; chmod 777 configure
%configure
# patch global.h and ignore.c for location of pcre.h
sed 's/<pcre.h>/<pcre\/pcre.h>/g' src/global.h > src/global.h.patch
sed 's/<pcre.h>/<pcre\/pcre.h>/g' src/ignore.c > src/ignore.c.patch
mv src/global.h.patch src/global.h
mv src/ignore.c.patch src/ignore.c
make

I'm afraid I'd be zero help with writing checks for autoconf/configure.in.
As for a packager for CentOS stuff, it's hard to say which direction that's
headed.  Either repoforge or EPEL would be a good choice.  The former is
more widely used, while the latter seems to be the direction that the fedora
project is taking which could dictate the direction the rest of the
community takes...

http://wiki.centos.org/Repositories/RPMForge
http://fedoraproject.org/wiki/EPEL

Hope this helps,
--BO

On 10/6/07, Philipp Marek <[EMAIL PROTECTED]> wrote:
>
> Hello Bjorn!
>
> On Friday 05 October 2007 Bjorn Oglefjorn wrote:
> > I was having a heck of a time building/installing fsvs on CentOS 4.5.  I
> > have a solution, but I'm not sure it's the right one so I'd like to
> discuss
> > it here.
> >
> > At first, when running 'configure', I would get this output:
> >
> ...
> > checking for apr_md5_init in -laprutil-1... no
> > configure: error: Sorry, can't find APR.
> ...
> > What the heck, so I said 's/aprutil-1/aprutil-0/g' and then configure
> > suceeds!  w00t!
> ...
> > In file included from ac_list.c:9:
> > global.h:23:18: pcre.h: No such file or directory
> ...
> > I did a little digging and found that 'src/global.h' and 'src/ignore.c'
> try
> > to '#include <pcre.h>' which fails.  Ah, but '#include <pcre/pcre.h>'
> works
> > without the giant fail!  Those two changes are then made.
>
> I know that some systems (still) ship aprutil-0, which my current autoconf
> scripts don't grok; and pcre.h is sometimes in a subdirectory.
>
> I'd need some autoconf wizard that knows what he's doing ... I'm just
> playing
> around with that.
>
> > So at this point I'm able to build fsvs, although I wonder how well it
> will
> > work (I even have an RPM spec file written with loads of ugly if
> anyone's
> > interested).  It seems to run ok, but I haven't done much with it yet.
> Is there some authority (like with debian) who could build a package for
> all
> CentOS4.5 users?
>
> > I'm hoping someone can take my hackery and make it suck less.  Thanks!
> Thank you very much; do you have a step-by-step explanation (with system
> details), preferably in HTML, so I can publish it? Or can you add
> additional
> checks in configure.in? I'd be happy to include them.
>
>
> Regards,
>
> Phil
>
> --
> Versioning your /etc, /home or even your whole installation?
>              Try fsvs (fsvs.tigris.org)!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Attachment: fsvs.spec
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to