On Mit, 2001-09-19 at 05:23, Zvezdan Petkovic wrote:
> 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.
Well, of cause, I have to disagree :)
Primarily, it's just convenience for users/installers not wanting to use
the defaults.
If using %{_bindir} and %{_datadir} in %files sections and not passing
%{_bindir} and %{_datadir} to configure, users will have to edit
lyx.spec to a larger extent than otherwise if not wanting to use the
defaults provided by rpm.
I.e. if configure --bindir=%{_bindir} --datadir=%{_datadir} .. was used,
users/packagers could simply
%define _bindir whatever1
%define _datadir whatever2
at the top of lyx.spec and the rest of lyx.spec would still remain
valid, if not wanting to use rpm-defaults
> 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.
I know several, SuSE's lyx.spec is one of these.
> 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.
SuSE uses --prefix=/usr --bindir=/usr/X11R6/bin for lyx.
> More precisely, we want to use the same prefix as other programs, and
> that is again /usr or /usr/local
Well, but users might have diffent needs, eg. if installing multiple
versions of lyx in parallel.
> 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:
I know them ;)
[..]
> 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?
Cf. above. SuSE prefers installing X11-based programs to /usr/X11R6/bin
but installs there support files to /usr/*. You might consider this to
be dumb, but I am not the one to blame for (I am not affiliated to SuSE
at all).
Another scenario, where this occasionally happens, is if actually
sharing architecture-independent files (mandir, infodir, datadir,
docdir) across architectures in heterogenious networks. However this
topic is beyond the scope of this thread, IMHO.
Ralf