[dpkg-dev] auto-generated patch too easily included (debian/patches/debian-changes-*))

Micah Gersten micahg at ubuntu.com
Wed Jun 15 20:52:35 UTC 2011


On 06/15/2011 12:40 PM, Dave Walker wrote:
>
> Hi,
>
> Currently, if the upstream code is changed (anything other than
> debian/*).. When dpkg-buildpackage is run, an automated patch is
> created. This is a really nice feature, but it is very easy to miss
> this. I have seen multiple uploads where these auto-generated patches
> have been included accidentally (I have also been guilty of this).
>
> This can be overridden locally with:
> $ cat ~/.devscripts
> DEBUILD_DPKG_BUILDPACKAGE_OPTS="--source-option=--abort-on-upstream-changes"
>
> I think the chance of someone wanting an auto-generated patch is low,
> and would like to suggest the default is changed to fail to create the
> source package.
>
> The alternative fix would be a dput hook.
>
> Thoughts?
>
> I have raised a bug to track this:
> https://launchpad.net/bugs/797839
>
> Kind Regards,
> Dave Walker
>

I actually use this as a feature.  I modify the upstream code, create a
source package, then rename the patch and add DEP-3 info.

Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20110615/83097b86/attachment-0001.html>


More information about the ubuntu-devel mailing list