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/