unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile-snarf writes to $srcdir, which is not kosher
@ 2002-04-07 22:55 Marius Vollmer
  2002-04-08  2:35 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 12+ messages in thread
From: Marius Vollmer @ 2002-04-07 22:55 UTC (permalink / raw)


Sigh, I've seen this coming...

guile-snarf writes its $cleanfile into the $srcdir, which is not a
supported thing to do during a VPATH build.

(This was uncovered by a simple "make distcheck", which thankfully
write-protects the source directory.  I hope everybody uses "make
distcheck" freely before checking in their changes, eh?)

It could either write the files into the build dir (which would be
difficult to do, when we want to support snarfing files that are not
in the current $srcdir), or it could stop trying to clean the input
altogether.

I'm in favor of the latter option since the cleaning is too much of a
kluge in my view.  It does appear to do the right thing, but only in a
situation where it is not needed: when someone snarfes directly to a
file (using "-o foo.x").  But in this case, the output file will
already exist, with a safe content, when the pre-processor is run
(modulo some theoretical buffering issues that are not going to
appear).  People who do not use "-o" always needed and still need to
protect against non existing .x files.  They can do that with the
(now) supported SCM_MAGIC_SNARFER macro.

This is bug "guile-snarf-writes-to-srcdir".

_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-04-23 23:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-07 22:55 guile-snarf writes to $srcdir, which is not kosher Marius Vollmer
2002-04-08  2:35 ` Thien-Thi Nguyen
2002-04-08 16:45   ` Marius Vollmer
2002-04-08 19:34     ` Thien-Thi Nguyen
2002-04-09 17:03       ` Marius Vollmer
2002-04-22  7:58         ` Thien-Thi Nguyen
2002-04-10 21:10       ` Rob Browning
2002-04-23 21:16         ` Thien-Thi Nguyen
2002-04-23 22:42           ` Rob Browning
2002-04-23 22:50             ` Thien-Thi Nguyen
2002-04-23 23:09               ` Rob Browning
2002-04-23 23:51                 ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).