Building beta packaging fails ...

Started by The Hermit Hackerover 22 years ago8 messages
#1The Hermit Hacker
scrappy@postgresql.org

Using the attached script, the build fails while trying ot tar up the
distributions ... when its trying to build the tools tar file, error being
that it can't find the src/data directory ... compared against the
snapshot build script, it doesn't look like I've missed anything, and i
haven't changed the build script fo rbeta recently, other then the v7.4
stuff ...

Makefile problem, or a directory that is supposed to be built?

#! /bin/sh
set -e
export PATH=/usr/local/bin:/usr/bin:/bin:/sbin
cd /usr/local/pgsql/beta
if [ -d pgsql ]
then
mv pgsql pgsql.dead
fi
if [ -d pgsql.dead ]
then
rm -rf pgsql.dead &
fi
/usr/bin/cvs -d /cvsroot -q checkout -rREL7_4_BETA1 -P pgsql
/usr/bin/find pgsql -type d -name CVS -print | xargs rm -rf
cd pgsql
./configure
cd doc/src
gmake postgres.tar.gz
mv postgres.tar.gz ..
cp /var/spool/ftp/pub/dev/doc/man.tar.gz ..
cd ../..
gmake split-dist=yes dist
gmake maintainer-clean

for x in *.tar.gz; do
md5 $x > $x.md5
done

mv *.tar.gz *.tar.gz.md5 /var/spool/ftp/pub/source/v7.4

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: The Hermit Hacker (#1)
Re: Building beta packaging fails ...

The Hermit Hacker <scrappy@postgresql.org> writes:

Using the attached script, the build fails while trying ot tar up the
distributions ... when its trying to build the tools tar file, error being
that it can't find the src/data directory ...

Why is it looking for src/data? I removed all the files in that
directory last night as part of the --enable-recode deletion.

regards, tom lane

#3Gavin Sherry
swm@linuxworld.com.au
In reply to: The Hermit Hacker (#1)
Re: Building beta packaging fails ...

On Tue, 5 Aug 2003, The Hermit Hacker wrote:

Using the attached script, the build fails while trying ot tar up the
distributions ... when its trying to build the tools tar file, error being
that it can't find the src/data directory ... compared against the
snapshot build script, it doesn't look like I've missed anything, and i
haven't changed the build script fo rbeta recently, other then the v7.4
stuff ...

Hmm... A quick test of the script here suggests that the problem might be
with the building of documentation (ecpg.sgml). Since 'set -e' is called,
the build will stop when gmake exits.

Gavin

#4The Hermit Hacker
scrappy@postgresql.org
In reply to: Tom Lane (#2)
Re: Building beta packaging fails ...

GNUMakefile.in:

opt_files := \
src/tools src/corba src/data src/tutorial \
src/bin/pgtclsh \
$(addprefix src/interfaces/, libpgtcl jdbc) \
$(addprefix src/pl/, plperl plpython tcl)

I take it then, that src/data shoudl be removed from there too?

On Mon, 4 Aug 2003, Tom Lane wrote:

The Hermit Hacker <scrappy@postgresql.org> writes:

Using the attached script, the build fails while trying ot tar up the
distributions ... when its trying to build the tools tar file, error being
that it can't find the src/data directory ...

Why is it looking for src/data? I removed all the files in that
directory last night as part of the --enable-recode deletion.

regards, tom lane

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: The Hermit Hacker (#4)
Re: Building beta packaging fails ...

The Hermit Hacker <scrappy@postgresql.org> writes:

GNUMakefile.in:
opt_files := \
src/tools src/corba src/data src/tutorial \

Ah.

I take it then, that src/data shoudl be removed from there too?

Yep. Sorry I missed it.

regards, tom lane

#6The Hermit Hacker
scrappy@postgresql.org
In reply to: Tom Lane (#5)
Re: Building beta packaging fails ...

'k, removed and trying build again ...

On Tue, 5 Aug 2003, Tom Lane wrote:

The Hermit Hacker <scrappy@postgresql.org> writes:

GNUMakefile.in:
opt_files := \
src/tools src/corba src/data src/tutorial \

Ah.

I take it then, that src/data shoudl be removed from there too?

Yep. Sorry I missed it.

regards, tom lane

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

#7Markus Bertheau
twanger@bluetwanger.de
In reply to: The Hermit Hacker (#1)
Re: Building beta packaging fails ...

В Втр, 05.08.2003, в 05:23, The Hermit Hacker пишет:

/usr/bin/cvs -d /cvsroot -q checkout -rREL7_4_BETA1 -P pgsql
/usr/bin/find pgsql -type d -name CVS -print | xargs rm -rf

Hint: cvs export

--
Markus Bertheau <twanger@bluetwanger.de>

#8Peter Eisentraut
peter_e@gmx.net
In reply to: The Hermit Hacker (#1)
Re: Building beta packaging fails ...

The Hermit Hacker writes:

/usr/bin/cvs -d /cvsroot -q checkout -rREL7_4_BETA1 -P pgsql
/usr/bin/find pgsql -type d -name CVS -print | xargs rm -rf

While I second the note that you really should be using cvs export, the
second line is redundant in any case, because gmake dist already does
that.

--
Peter Eisentraut peter_e@gmx.net