On 2017-02-07 14:41 +0100, Guillem Jover wrote:

> On Wed, 2016-11-23 at 12:23:20 +0100, Thorsten Glaser wrote:
>> Package: dpkg-dev
>> Version: 1.18.15
>> Severity: minor
>
>> Run: dpkg-buildpackage -S -d -nc
>> 
>> Watch this:
>> 
>> tglase@tglase-nb:~/squirrel-sql $ svn st
>> ?       debian/files
>> tglase@tglase-nb:~/squirrel-sql $ cat debian/files
>> squirrel-sql_3.2.0+dfsg-1_source.buildinfo java optional
>> 
>> This file should not be there AIUI. Even .pc/ is automatically
>> cleaned up and all quilt patches unapplied again, as it should
>> be, but this one’s missing.
>
> Well, yes and no. This was brought up on IRC by Ansgar when this new
> behavior showed up. The problem here is that you are building a source
> package by making a source-only build, disabling dependency checks and
> cleanup, which means the debian/files gets left behind.
>
> If what you want is to just create a source package then the correct
> thing to do IMO is to just run dpkg-source --build.

But this source package cannot be uploaded then, because there is no
accompanying .changes file.

> Of course you might also need to run dpkg-source --before-build and
> --after-build.  But not running clean and expecting things to stay
> clean seems a bit too much hopeful! :)

The debian/files stays around even without the -d and -nc options, since
it is generated by dpkg-genchanges long after the source tree has been
cleaned.  And dpkg-source --after-build does not clean it up.

Cheers,
       Sven

Reply via email to