#1693: Make distclean (still) doesn't
-------------------------+--------------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Changes (by claus):
* cc: => [EMAIL PROTECTED]
Comment:
part of the problem is that distclean shouldn't clean everything, so there
should be a reallyclean or darcsclean target doing the full job. but
distclean is the strictest currently working clean target (maintainer-
clean bails out when descending into the subrepos), so it will be good to
record here all the things it doesn't clean, then to make either distclean
or darcsclean cover them.
a good way to get an idea of leftover files (usually before a build) would
be
{{{
make distclean
./darcs-all whatsnew -l --boring
}}}
but that will report all the subrepo files when processing the main repo.
an alternative is to use a smaller boringfile that excludes just the
subrepos and files we know we don't want to clean (mk/build.mk,
ghc-<version>):
{{{
make distclean
darcs setpref boringfile dont-touch-these.boring
./darcs-all whatsnew -l 2>&1 | tee ../whatsnew-l-all.log
darcs setpref boringfile .darcs-boring
}}}
a draft of such a secondary boringfile is attached (note that
libraries/time has its own .darcs-boring, is that intended? also, all
darcs repos have _darcs/pref/boring files, which will hide left-over
.o/.hi files and the like - how can we disable all of them temporarily?
for the subrepos, we could use
{{{
darcs whatsnew -l --boring
}}}
but not for the main repo (see above), and darcs-all uses the same flags
for all
repos at the moment. it might be best to add a 'list-non-darcs-files'
target to darcs-all that takes care of these details. it might also be
useful to run this target at the start of 'sh boot', keeping a record of
the state of the repo at the beginning of the build.
see also [http://www.haskell.org/pipermail/cvs-ghc/2007-
September/038355.html]
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1693>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs