SRU

SRU:

https://wiki.ubuntu.com/StableReleaseUpdates
http://people.canonical.com/~ubuntu-archive/pending-sru.html

debdiff:

Using ~/.quiltrc configuration file

1
2
3
4
5
6
7
QUILT_PATCHES=debian/patches
QUILT_NO_DIFF_INDEX=1
QUILT_NO_DIFF_TIMESTAMPS=1
QUILT_REFRESH_ARGS="-p ab"
QUILT_DIFF_ARGS="--color=auto" # If you want some color when using `quilt diff`.
QUILT_PATCH_OPTS="--reject-format=unified"
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"

If source format is ‘quilt’

1
2
$ apt-get source kylin-nm
$ pull-lp-source <package_name> trusty

Import a patch

1
2
$ quilt import -P fix-foobar.patch /tmp/patch
$ quilt push

Or create a new patch

1
2
3
4
5
6
$ quilt new fix-foobar.patch
# use the editor from quilt
$ quilt edit foobar.c
# or use your favorable editor
# $ quilt add file-to-modify && $ vim file-to-modify
$ quilt refresh
1
2
3
$ update-maintainer
$ debuild -S
$ debdiff kylin-nm_1.0.0-1.dsc kylin-nm_1.0.0-1ubuntu0.1.dsc > kylin-nm_1.0.0-1ubuntu0.1.debdiff

if source format is ‘native’

1
2
3
4
$ pull-lp-source kylin-nm trusty
# then edit it
$ debuild -sa -S
$ defdiff kylin-nm_1.0.0-1.dsc kylin-nm_1.0.0-1ubuntu0.1.dsc > kylin-nm_1.0.0-1ubuntu0.1.debdiff

reference: https://wiki.ubuntu.com/UbuntuStudio/DebDiff

https://wiki.debian.org/UsingQuilt