Ubuntu Pastebin

Paste from paelzer at Mon, 14 Nov 2016 08:11:43 +0000

Download as text
 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
#!/bin/bash
rm -rf /tmp/testsssd
mkdir -p /tmp/testsssd

# dquilt as from https://www.debian.org/doc/manuals/maint-guide/modify.en.html
cat << EOF > /tmp/testsssd/.quiltrc-dpkg
d=. ; while [ ! -d \$d/debian -a \`readlink -e \$d\` != / ]; do d=\$d/..; done
if [ -d \$d/debian ] && [ -z \$QUILT_PATCHES ]; then
    # if in Debian packaging tree with unset \$QUILT_PATCHES
    QUILT_PATCHES="debian/patches"
    QUILT_PATCH_OPTS="--reject-format=unified"
    QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
    QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
    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 ! [ -d \$d/debian/patches ]; then mkdir \$d/debian/patches; fi
fi
EOF

# get clean from archive
cd /tmp/testsssd
pull-lp-source sssd trusty
cp sssd_1.11.8-0ubuntu0.2.dsc sssd_1.11.8-0ubuntu0.2-as-pulled.dsc
cd sssd-1.11.8/
dch --rebuild "no change test"
quilt --quiltrc=/tmp/testsssd/.quiltrc-dpkg push -a
quilt --quiltrc=/tmp/testsssd/.quiltrc-dpkg pop -a

# This should have no diff other than the dch to d/changelog
dpkg-buildpackage -S -nc -d -us -uc
cd ..
debdiff sssd_1.11.8-0ubuntu0.2.dsc sssd_1.11.8-0ubuntu0.3.dsc


#buildpkg shows:
#dpkg-source: warning: the diff modifies the following upstream files: 
#.git-commit-template
#.pc/.quilt_patches
#.pc/.quilt_series
#.pc/.version
#.tx/config
#contrib/suse/sssd.spec.in
#po/bg.po
#[...]

# And Debdiff has:
#--- sssd-1.11.8.orig/.pc/.version
#+++ sssd-1.11.8/.pc/.version
#@@ -0,0 +1 @@
#+2
#[...]
Download as text