[debhelper-devel] Bug#566861: dh_clean breaks mercurial
Niels Thykier
niels at thykier.net
Mon Jan 1 09:13:00 UTC 2018
On Mon, 25 Jan 2010 17:14:40 +0100 Goswin von Brederlow
<goswin-v-b at web.de> wrote:
> Package: debhelper
> Version: 7.4.9
> Severity: normal
> File: /usr/bin/dh_clean
>
> Hi,
>
> I have an upstream orig.tar.gz that contains autom4te.cache
> directories. Yeah, I know, bad pstream. But that is how the
> orig.tar.gz is. I've imported the upstream source into mercurial using
> pristine-tar, added my debian dir and build the source. But when I
> want to "hg push" the mercurial repository to our server mercurial
> dies with an error about missing files.
>
> The reason for this is dh_clean finding and deleting all
> autom4te.cache directories including the repositories copies in
> ..hg/. To detect this I took away the write permissions to the .hg/
> directory and tried to build the source:
>
> fakeroot debian/rules clean
> dh_testdir
> dh_testroot
> dh_clean
> rm: cannot remove `./.hg/store/data/upstream/test/mpi/autom4te.cache/requests.i': Permission denied
> rm: cannot remove `./.hg/store/data/upstream/test/mpi/autom4te.cache/traces.0.i': Permission denied
> ....
>
> dh_clean should not alter any files in .hg, .git, .svn, ... that are
> repository metadata and not autom4te.cache files.
>
> MfG
> Goswin
>
> [...]
Hi,
Fast-forward nearly 8 years and the situation changed a bit.
* .hg is now already ignored due to #760033 (fixed in 2014.
* I will be adding .pc and _darcs to the list as they were mentioned
in this bug (and then close this bug as fixed).
* For everything else, there is always "dh_clean -X".
Thanks,
~Niels
More information about the debhelper-devel
mailing list