Re: Re: Beta2 ... ? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Re: Beta2 ... ?
Date
Msg-id Pine.LNX.4.30.0101101844590.22819-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: Beta2 ... ?  (Lamar Owen <lamar.owen@wgcr.org>)
List pgsql-hackers
Lamar Owen writes:

> > Hmm, are you using 'make install DESTDIR=/random/place'?
> > Given that it's not documented it's unlikely that you are.  But do start
> > using it.
>
> Enlighten me.  DESTDIR does?

It installs files at a different place than where they will eventually
reside.  E.g., if your --prefix is /usr/local and DESTDIR=/var/tmp/foo
then the files will end up in /var/tmp/foo/usr/local.  This is exactly for
package management type applications.

> Currently, my install lines look like:
> make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C src
> install
> make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C
> src/interface
> s/perl5 install

Then it's not surprising that things don't work since neither POSTGRESDIR
nor PREFIX are used anywhere in PostgreSQL makefiles.

> So, I would put something like:
> make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr
> DESTDIR=/usr -C src install
> ???

./configure --prefix=/usr --sysconfdir=/etc \           --docdir=/usr/share/doc/postgresql-'$(VERSION)' \
--mandir=/usr/share/man\           ...other options...
 
make all
make install DESTDIR=$RPM_BUILD_ROOT

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: Re: tinterval - operator problems on AIX
Next
From: Lamar Owen
Date:
Subject: Re: Re: Beta2 ... ?