Re: BUILD: gdm spec file changes
- From: James Henstridge <james daa com au>
- To: atmczen ibm net
- cc: Erik Walthinsen <omega cse ogi edu>, gnome-devel-list gnome org
- Subject: Re: BUILD: gdm spec file changes
- Date: Wed, 21 Apr 1999 12:35:53 +0800 (WST)
The problem with this is that the spec file that gets distributed with the
tarball will contain the prefix and directory preferences of the source
packager. If these settings differ from the user's machine, then problems
will occur if they do a "rpm -ta ...".
For true relocatability, some extra work needs to be done on gnome-libs.
Currently most packages are almost relocatable (the one path compiled into
them is the locale dir). This will probably be fixed in the 1.1 series.
One thing I plan to look at for 1.1 is getting an application to deduce
its installed prefix from argv[0], and search for files there before
checking GNOME's prefix (this would probably be used to deduce the locale
dir as well). This would allow NEXTphiles to create self contained
application directories that could be moved around freely, and allow you
to use the --relocate option for RPM how it was designed to be used.
As I said, this will not be in gnome 1.0, so it is probably not worth
making these sort of changes now.
James Henstridge.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Tue, 20 Apr 1999 atmczen@ibm.net wrote:
>
> Hello Omega,
>
>
> On Tue, 20 Apr 1999 16:34:24 -0700 (PDT)
> Erik Walthinsen <omega@cse.ogi.edu> wrote:
>
> > I'm ready to commit changes to make the gdm spec file a spec.in file, to
> > make it easier to build/release new versions of gdm (the spec file
> > hardcodes the version number, spec.in allows autoconf to munge it).
> >
> > Changes are below, with new spec.in file. I'll commit them when I get the
> > OK.
> Can you make it a general rule (for the packages that use those
> variables) that sysconfdir and localstatedir get AC_SUBST'ed in
> foo.spec.in. I think those are two parameters users would want to
> specify besides the $prefix.
>
> Also, it might be a good thing to AC_SUBST %prefix as well.
>
> Although I do not know how, maybe you can even pull off a trick to
> make the package relocatable. I think many users who do not have
> root access, or users of non-RedHat distribution will appreciate it.
>
> Here is a sample of what I am talking about.
>
> [Sample spec.in for package foo]
> %define prefix @prefix@
>
> [snip]
>
> %build
> ./configure --prefix=%prefix \
> --sysconfidir=@sysconfdir@ \
> --localstatedir=@localstatedir@
>
> [snip]
>
> %install
> make -prefix=$RPM_BUILD_ROOT%prefix \
> --sysconfidir=$RPM_BUILD_ROOT@sysconfdir@ \
> --localstatedir=$RPM_BUILD_ROOT@localstatedir@
>
> [snip]
>
> %files
> @localstatedir@/foo/*
> @sysconfdir@/foorc
> %prefix/bin/*
>
>
> By the way, I am not your package maintainer. I am supposed to
> analyze build environment for GNOME. When you have time, please read
> the thread 'gnome build tool' in the archive and let me know what you
> think. Also, please take a look at the gbuild package in the CVS.
> The author of gbuild is probably going to join the team as well.
>
> Zen
>
> ----------/* E-Mail : <atmczen@ibm.net > */----------
>
>
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]