|
From: Joe Z. <jz...@at...> - 2003-02-05 01:24:00
|
I've been working feverishly the past day and a half to get this working
right. Part of the problem was the paths $myBOBSDATA and $myWEBDIR
weren't using the 'prefix' that can be specified by './configure
--prefix=path'. I was incorrectly using $DESTDIR hardcoded in
configure.in. Now, when I use ${prefix} or the other variables based on
it, like ${sysconfdir}, the 'prefix' and DESTDIR are automatically
included in the final result. I defaulted prefix to '' (NONE) instead of
/usr/local using AC_PREFIX_DEFAULT('').
I'm using some defaults like you have in your bobs.spec file.
myBOBSDATA=${localstatedir}/bobsdata
myCRONDIR=${sysconfdir}/cron.daily
The only weird path is myWEBDIR because it could default to
/home/httpd/html or /var/www/html. But now maybe it will work
unhardcoded in your spec file.
I tested several things:
* './configure' with defaults installs in /var/bobsdata,
/var/www/html/bobs, and /etc/crontab.
* './configure --prefix=/usr/local' installs in
/usr/local/var/bobsdata, /usr/local/var/www/html/bobs, and
/usr/local/etc/crontab.
* 'make distcheck' works, though you must be root because it does a
'chown apache'.
* 'make DESTDIR=/tmp/staging distcheck' also works. This is what
leads me to believe that 'make rpm' should also be able to work.
I'll be checking in the changes (all .am and .in files) later today. I
want to do a little testing first. This is great. I'm learning more than
I ever wanted to know about automake. I'll be anxious to know if this
solves the 'make rpm' problems.
Joe
Rene Rask wrote:
>the crontab installation is a problem. I cannot create an rpm with the
>current setup. We need some other way of doing this.
>
>The one thing I can think of on top of my head is issueing a notice
>after "make install" which prompts the user to do "make install-cron" to
>complete the install. Or a "./configure --without-croninstall" option.
>In any case I need a way to disable the cron installation when building
>an rpm. The cron file should be generated though, so I can use it in the
>spec file.
>
>Let me know what you think
>
>Rene
>
>
>
>
>
>On Mon, 2003-02-03 at 20:43, Joe Zacky wrote:
>
>
>>I just committed all the Makefile.in's. They are needed for
>>./configure.
>>
>>I'm done except for fixing the multiple OK button pushes and maybe
>>reviewing the README's etc. So feel free to 'make rpm'! Let me know if
>>you have trouble. I'm wondering if some of the explicit path names,
>>like '/etc/crontab' in 'cron/Makefile.am' will be a problem.
>>
>>Normally ./configure is all that is needed to build the source, but if
>>I change some of the .in or .am files, this is how I rebuild the
>>sources:
>> aclocal
>> automake --add-missing
>> autoconf
>> ./configure
>>Joe
>>
>>Rene Rask wrote:
>>
>>
>>>I'm getting this error when I run configure.
>>>It goes away if I run automake.
>>>I don't know if this is a problem that is easily fixed or if I should
>>>just run automake before doing configure.
>>>
>>>[grain@animatrix bobs]$ ./configure
>>>checking for a BSD-compatible install... /usr/bin/install -c
>>>checking whether build environment is sane... yes
>>>checking for gawk... gawk
>>>checking whether make sets ${MAKE}... yes
>>>checking whether make sets ${MAKE}... (cached) yes
>>>checking for /home/httpd/html... no
>>>checking for /var/www/html... yes
>>>checking for web server user id... apache
>>>configure: creating ./config.status
>>>config.status: creating Makefile
>>>config.status: creating bash/Makefile
>>>config.status: error: cannot find input file: bash/Makefile.in
>>>
>>>
>>>
>>>On Sun, 2003-02-02 at 08:24, Joe Zacky wrote:
>>>
>>>
>>>
>>>>I'm pumped (excited). I finally figured out what I needed to do to make
>>>>'make distcheck' work. Now after running 'make distcheck' I get this,
>>>>instead of errors:
>>>>
>>>>===========================================
>>>>bobs-0.5.1.tar.gz is ready for distribution
>>>>===========================================
>>>>
>>>>You should wait until I check in these changes before working on 'make rpm'.
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>This SF.NET email is sponsored by:
>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
>>>>http://www.vasoftware.com
>>>>_______________________________________________
>>>>Bobs-devel mailing list
>>>>Bob...@li...
>>>>https://lists.sourceforge.net/lists/listinfo/bobs-devel
>>>>
>>>>
>>>>
|