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

Re: Debian vs. Ubuntu source control file



On Tue, 05 Jan 2010, Lucas Nussbaum wrote:
> On 05/01/10 at 13:56 +0100, Raphael Hertzog wrote:
> > But patches are not allowed to modify the debian directory so that only
> > works for upstream changes.
> 
> That's only true with the v3 format. If you stick with v1, you can
> patch debian/control at unpack time.

Well, with v1 debian/control is entirely created by the debian diff
(unless upstream provides it) so there's usually no further patching involved.

With v3, it's provided by debian.tar.gz (and any upstream debian directory
is scratched away) and patching it by debian/patches/* means that you
don't get the same debian directory after unpack than what
is contained in debian.tar.gz and this will lead to problems during
creation of the automatic patch (which is created by diffing an unpacked
copy of the upstream sources with the same debian directory injected and
with patches applied — the patch that modifies the debian dir will fail to
apply on that copy because the change is already applied).

> And in both cases, you are free to modify it manually during the build.

Indeed.

Cheers,
-- 
Raphaël Hertzog


Reply to: