Re: make dist error

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: make dist error
Date: 2013-07-16 14:03:35
Message-ID: 51E552B7.3050700@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 07/16/2013 09:53 AM, Andrew Dunstan wrote:
>
> On 07/16/2013 02:53 AM, Tatsuo Ishii wrote:
>> I'm getting errors while executing "make dist" on git master head.
>>
>> $ make dist
>> make dist
>> rm -rf postgresql-9.4devel* =install=
>> for x in `cd . && find . \( -name CVS -prune \) -o \( -name .git
>> -prune \) -o -print`; do \
>> file=`expr X$x : 'X\./\(.*\)'`; \
>> if test -d "./$file" ; then \
>> mkdir "postgresql-9.4devel/$file" && chmod 777
>> "postgresql-9.4devel/$file"; \
>> else \
>> ln "./$file" "postgresql-9.4devel/$file" >/dev/null 2>&1 \
>> || cp "./$file" "postgresql-9.4devel/$file"; \
>> fi || exit; \
>> done
>> make -C postgresql-9.4devel distprep
>> [snip]
>> /bin/tar chf postgresql-9.4devel.tar postgresql-9.4devel
>> /bin/tar: postgresql-9.4devel/src/bin/pg_controldata/pg_crc.c: File
>> removed before we read it
>> /bin/tar: postgresql-9.4devel/src/bin/pg_resetxlog/pg_crc.c: File
>> removed before we read it
>> /bin/tar: postgresql-9.4devel/src/backend/tcop/.#postgres.c: File
>> removed before we read it
>> make: *** [postgresql-9.4devel.tar] Error 1
>> make: *** Deleting file `postgresql-9.4devel.tar'
>
> It's working for me:
>
> ...
> /bin/tar chf postgresql-9.4devel.tar postgresql-9.4devel
> gzip --best -c postgresql-9.4devel.tar >postgresql-9.4devel.tar.gz
> bzip2 -c postgresql-9.4devel.tar >postgresql-9.4devel.tar.bz2
> rm -rf postgresql-9.4devel
>
> It looks like your source directory isn't completely clean. Before I
> did this I did:
>
> git clean -dfx

Incidentally, the buildfarm animal guaibasaurus builds "make dist" every
build, via a bespoke buildfarm module. See for example
<http://www.pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=guaibasaurus&dt=2013-07-16%2004%3A17%3A01&stg=make-dist>,
so we should get early notice if anything breaks it.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Johnston 2013-07-16 14:27:44 Re: A general Q about index
Previous Message Tatsuo Ishii 2013-07-16 14:01:14 Re: make dist error