On Wed, Sep 19, 2001 at 04:46:40AM +0200, Ralf Corsepius wrote:
> On Die, 2001-09-18 at 20:32, Kayvan A. Sylvan wrote:
> > You are very correct.
> >
> > I was overtaken with the moment!
> >
> > Forgive me. I sent a corrected one to Lars. It is also attached here.
> >
>
> Now you're using %{_bindir} and %{_datadir}, too.
>
> IMO, therefore you also might want to pass --bindir=%{_bindir} and
> --datadir=%{_datadir} to configure to guarantee consistency between the
> values used by the autotools and the ones provided by rpm.
>
> Otherwise installers rsp. rpm could use different values for
> %{_<values}, while the autotools would assume using their implicitly
> defined values.
>
> Ralf
>
IMHO, you are exaggerating.
Please, give me an example of a single version of UNIX that doesn't put
its executables in $prefix/bin and its shared data in $prefix/share!
I know of none.
And that is true for $prefix = /usr or $prefix = /usr/local
We want to install LyX files to the usual place where that distro puts
executables. And that is either /usr/bin or /usr/local/bin.
More precisely, we want to use the same prefix as other programs, and
that is again /usr or /usr/local
On a properly installed system rpm will use one of the above as a
%{_prefix}. Take a look at the defaults from /usr/lib/rpm/macros:
#==============================================================================
# ---- configure macros.
# Macro(s) slavishly copied from autoconf's config.status.
#
%_prefix /usr
%_exec_prefix %{_prefix}
%_bindir %{_exec_prefix}/bin
%_sbindir %{_exec_prefix}/sbin
%_libexecdir %{_exec_prefix}/libexec
%_datadir %{_prefix}/share
%_sysconfdir %{_prefix}/etc
%_sharedstatedir %{_prefix}/com
%_localstatedir %{_prefix}/var
%_lib lib
%_libdir %{_exec_prefix}/%{_lib}
%_includedir %{_prefix}/include
%_oldincludedir /usr/include
%_infodir %{_prefix}/info
%_mandir %{_prefix}/man
Notice that comment about copying from autoconf defaults.
Since autoconf defaults are also
bindir = $prefix/bin
datadir = $prefix/share
we are safe.
Notice also that architecture specific file
/usr/lib/rpm/i386-linux/macros later redefines:
%_infodir %{_prefix}/share/info
%_mandir %{_prefix}/share/man
That is the only difference between autoconf and rpm. That is why
%{_mandir} only has to be passed to configure.
Only if there's a _radical_ change from the default autoconf or rpm
installation these things would be different. And a final question:
Who in the right mind would change $prefix/bin and $prefix/share to
something else for any $prefix?
Best regards,
--
Zvezdan Petkovic <[EMAIL PROTECTED]>
http://www.cs.wm.edu/~zvezdan/