1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
sam2p source package notes
==========================
Patch system
------------
sam2p uses quilt to make changes to the upstream source, as part of the 3.0
(quilt) source format. The patches are stored in debian/patches and applied
automatically by dpkg-source.
To list the patches run:
$ quilt series
To manually apply all the patches run:
$ quilt push -a
To manually unapply all of the patches run:
$ quilt pop -a
To manually apply or unapply enough patches of the series so that a given one
is on top run:
$ quilt push PATCH
$ quilt pop PATCH
To edit a patch, put it on top then run:
$ quilt edit FILE
To add a patch run:
$ quilt new PATCH
When you are done editing a file within a patch run:
$ quilt refresh
then edit the patch header according to DEP-3.
Source content
--------------
The original tarball contains a debian directory which is removed by
dpkg-source during the source package unpacking.
Version control
---------------
The package Git repository contains an “upstream” branch which replicates the
original tarball content. For new version it is merged into the main “master”
branch but its debian directory must be removed as dpkg-source does, for
instance by creating a temporary branch and making an intermediate commit:
$ git-import-orig ../sam2p_0.49.orig.tar.gz
$ git checkout -b temp upstream
$ git rm -r debian
$ git commit -m "Remove original debian directory"
$ git checkout master
$ git merge temp
$ git branch -d temp
|