[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_auto_install modifying source files



(IANADD)

On Sat, Jul 04, 2009 at 12:26:55AM +1000, Ben Finney wrote:
>     source: patch-system-but-direct-changes-in-diff burn.egg-info/SOURCES.txt
> 
> Investigating this, I find that ‘dh_auto_install(1)’ is re-writing that
> file from its initial state in the source package. The file is a source
> manifest, and it is modified to get an extra line, referring to a file
> ‘setup.cfg’ that is not in the original source.
> 
> In the meantime I've added a Lintian override, but ideally
> ‘dh_auto_install’ shouldn't modify the source files and the problem
> wouldn't occur at all.

AFAIK the blame lies with setup.py. You might want to ask on -python for
confirmation of this.

> Why is this happening? Can I stop it? Should I stop it?

I don't see that file in your diff and lintian agrees:

I: burn source: unused-override patch-system-but-direct-changes-in-diff
burn.egg-info/SOURCES.txt

So if you're calling lintian during the build, perhaps you've found a
bug?

In any case, removing it in your clean target (dh_auto_clean seems to be
doing so) stops it showing up in the diff. It doesn't go into the deb,
so this is likely to be safe.


-- 
Jonathan Wiltshire

1024D: 0xDB800B52 / 4216 F01F DCA9 21AC F3D3  A903 CA6B EA3E DB80 0B52
4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51

Attachment: signature.asc
Description: Digital signature


Reply to: