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

Re: RFC: DEP-14: Recommended layout for Git packaging repositories



On 12/11/14 14:12, Ian Jackson wrote:
> Simon McVittie writes ("Re: RFC: DEP-14: Recommended layout for Git packaging repositories"):
>> In the gbp-pq world, after "git checkout debian/sid", hello.c would
>> contain "hello, world", but there would be a patch in debian/patches/ to
>> change it from "hello, world" to "hello, Debian".
> 
> If you check out such a git tree, and say dpkg-buildpackage, what
> happens ?

It works, assuming you don't have a leftover .pc directory with
inaccurate contents:

dpkg-buildpackage: source package ioquake3
dpkg-buildpackage: source version 1.36+u20140929+g918eed9+dfsg1-1
...
 dpkg-source --before-build ioquake3
dpkg-source: info: using options from
ioquake3/debian/source/local-options: --unapply-patches
dpkg-source: info: applying
Add-a-special-vmMagic-that-causes-equivalent-native-.patch
dpkg-source: info: applying
Add-sv_dorestart-which-can-be-set-by-game-code-to-re.patch
dpkg-source: info: applying Let-servers-set-sv_fps-too.patch
dpkg-source: info: applying
Run-in-a-window-by-default-on-new-installations.patch
dpkg-source: info: applying Add-support-for-the-GNU-Hurd-architecture.patch
dpkg-source: info: applying
Don-t-crash-if-more-than-128-modes-are-available.patch
 fakeroot debian/rules clean
...
 dpkg-source --after-build ioquake3
dpkg-source: info: using options from
ioquake3/debian/source/local-options: --unapply-patches
dpkg-source: info: unapplying
Don-t-crash-if-more-than-128-modes-are-available.patch
dpkg-source: info: unapplying
Add-support-for-the-GNU-Hurd-architecture.patch
dpkg-source: info: unapplying
Run-in-a-window-by-default-on-new-installations.patch
dpkg-source: info: unapplying Let-servers-set-sv_fps-too.patch
dpkg-source: info: unapplying
Add-sv_dorestart-which-can-be-set-by-game-code-to-re.patch
dpkg-source: info: unapplying
Add-a-special-vmMagic-that-causes-equivalent-native-.patch
dpkg-buildpackage: full upload (original source is included)

The debian/source/local-options used to be useful for this workflow, but
should be unnecessary these days, because dpkg-buildpackage has been
changed to leave the tree the way it found it, whatever that happens to
be: patches are unapplied at the end iff they needed to be applied at
the beginning. I should probably remove it from git.

    S


Reply to: