On 22-Oct-04 at 18:21, Martin Simmons ([EMAIL PROTECTED]) wrote:
> >>>>> On Wed, 20 Oct 2004 00:18:12 +0200, Danny Backx
> >>>>> <[EMAIL PROTECTED]> said: 
> 
>   Danny> So basically you want the ACLOCALDIR to be hardwired to
>   Danny> /usr/share/aclocal ?
> 
> Yes, that's probably right if you are targeting RedHat.  I've not checked
> for other rpm-based systems.
> 
> Another way would be to install it in the correct place by calling aclocal
> --print-ac-dir in a post-installation script.

I think this is the best way, but, (there is always a but), it will break a
"make distcheck". Which I think is a bad thing. I can provide a snippet that I
use to get the best of both worlds, if you are interested ....

> 
> 
>   Danny> On Mon, 2004-10-18 at 12:52, Martin Simmons wrote:
>   >> >>>>> On Sun, 17 Oct 2004 17:52:32 +0200, Danny Backx
>   >> >>>>> <[EMAIL PROTECTED]> said: 
>   >> 
>   Danny> I've taken the conditional out of configure.in, and exported the
>   macro Danny> so lesstif.spec gets configured to use the correct path.
>   >> 
>   Danny> I trust this is better. Can you test ?
>   >> 
>   >> It looks good in configure, but it won't fix lesstif.spec.  The
>   >> problem is that lesstif.spec is in the .src.rpm so it captures the
>   >> the configure from the machine that built the .src.rpm ("dell" for the
>   >> 0.93.95b-1 downloads).  The setup of that machine is different from
>   >> typical RH machines where people want to use the .src.rpm, leading to
>   >> issue 3 below. 
>   >> 
>   Danny> On Fri, 2004-10-15 at 13:14, Martin Simmons wrote:
>   >> >> I was trying to rebuild the rpms on x86 RH9 from the sourceforge
>   >> >> lesstif-0.93.97-1.src.rpm using the command line
>   >> >> 
>   >> >> rpmbuild --rebuild --define "_topdir
>   >> >> /u/martin/rpm-builds/build-area" --buildroot
/u/martin/rpm-builds/build-install lesstif-0.93.97-1.src.rpm 
>   >> >> but this fails with
>   >> >> 
>   >> >> File not found:
>   >> >>
/u/martin/rpm-builds/build-install/usr/local/share/aclocal/ac_find_motif.m4 
>   >> >> The problem is that the install phase of rpm didn't install
>   >> >> ac_find_motif.m4. This happens because configure checks for
>   >> >> `aclocal --print-ac-dir` being a writable directory and I'm running
>   >> >> rpmbuild as me (not root) so the system ac dir is unwritable.
>   >> >> 
>   >> >> This looks wrong to me for 3 reasons:
>   >> >> 
>   >> >> 1) In normal non-rpm builds, it should be possible to run configure
>   >> >> and make as a normal user and then run make install as root.  With
>   >> >> the current configure, this won't install ac_find_motif.m4.
>   >> >> 
>   >> >> 2) In the rpm build, the make install is done into a private
>   >> >> directory so an unwritable system ac dir is an irrelevance.
>   >> >> 
>   >> >> 3) The system ac dir is /usr/share/aclocal but the spec file
>   >> >> packages it in /usr/local/share/aclocal/ac_find_motif.m4.
>   >> >> 
>   >> >> Any comments?
> 
> 
> __Martin
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Lesstif-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lesstif-discuss



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Lesstif-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to