[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10975: 'make dist-gz dist-xz' fails
From: |
Stefano Lattarini |
Subject: |
bug#10975: 'make dist-gz dist-xz' fails |
Date: |
Fri, 09 Mar 2012 21:36:42 +0100 |
Hi Olaf, Tim.
On 03/09/2012 08:53 PM, Tim Landscheidt wrote:
> Olaf Lenz <address@hidden> wrote:
>
>> [...]
>> The problem seems to be a race condition.
>> "make dist-bzip2" populates the distribution dir, tars it and deletes it
>> after 5 seconds.
>
Nope -- it deletes it *immediately*, and then re-tries to delete it after 5
seconds if the first deletion fails. This is done in an attempt to accommodate
systems like MinGW where an "active" directory cannot be deleted:
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10470>
During that time "make dist-xz" has started and noticed
>> that the distdir already exists. Unfortunately, it is deleted while
>> dist-xz is still packing.
>
> For a possible workaround, see
> <URI:http://permalink.gmane.org/gmane.comp.sysutils.automake.bugs/4940>.
> I agree that it would be nice to fix this properly.
>
> Tim
>
I've reproduced the bug with the attached test case (committed to maint).
I've also verified that the bug was also present in automake 1.11.2 and
automake 1.11.1, so this is not a regression introduced by the "sleep 5"
change referenced above.
For the moment, and until the bug is properly fixed, my advice is: don't
run multiple "dist-*" targets in the same make invocations.
Regards,
Stefano
0001-coverage-expose-automake-bug-10975.patch
Description: Text Data