GNU bug report logs - #12540
Usage of srcdir when valac is generating a header file

Previous Next

Package: automake;

Reported by: Vivien Malerba <vmalerba <at> gmail.com>

Date: Sat, 29 Sep 2012 17:59:01 UTC

Severity: normal

Tags: wontfix

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 12540 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Nick Bowler <nbowler <at> elliptictech.com>
Cc: 12540 <at> debbugs.gnu.org, Vivien Malerba <vmalerba <at> gmail.com>
Subject: Re: bug#12540: Usage of srcdir when valac is generating a header file
Date: Tue, 02 Oct 2012 16:24:40 +0200
Thanks Nick for chiming in.  Your explanation is basically right:
Automake ought to place generated-but-distributed files in the
source directory rather than in the build directory, for two major
reasons:

  1. as you've noted, putting such files in builddir could cause
     inconsistencies in general, and sometimes weird bugs in the
     automatic dependency tracking; see also a report from Akim:
     <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10852>

  2. the distributed files should not be modified nor regenerated
     by a "make all" issued from the builddir of an extracted
     tarball (otherwise, what is the point of distributing them
     in the first place?); having such files in the srcdir allows
     "make distcheck" to catch and report such an inconsistency
     (because the distcheck runs with the srcdir set to readonly,
     so that any attempt to modify files in there will lead to a
     error).

Thus I'm closing this ticket as "Won't Fix".  Anyone who has doubts,
questions or objections is however free (actually encouraged!) to
continue the discussion here.

Regards,
  Stefano





This bug report was last modified 12 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.