Debian Codegraph @

debian/patches/debian-changes

raw
1 The Debian packaging of cvm is maintained using dgit. For the sake
2 of an efficient workflow, Debian modifications to the upstream
3 source are squashed into a single diff, rather than a series of
4 quilt patches. To obtain a patch queue for package version
5 0.97-0.1:
6
7 # apt-get install dgit
8 % dgit clone cvm
9 % cd foo
10 % git log --oneline 0.97-0.1..debian/0.97 -- . ':!debian'
11 ---
12 Makefile | 2 +-
13 tests.sh | 78 ++++++++++++++++++++++++++++++++++++----------------------------
14 2 files changed, 45 insertions(+), 35 deletions(-)
15
16 diff --git a/Makefile b/Makefile
17 index 9abbee1..3d9b7a8 100644
18 diff --git a/tests.sh b/tests.sh
19 index 689b6f1..9b1add0 100644
20 --- cvm-0.97.orig/Makefile
21 +++ cvm-0.97/Makefile
22 @@ -368,7 +368,7 @@ sql-query-test: sql-query-test.o load sq
23 sql-query-test.o: compile sql-query-test.c credentials.h sql.h
24 ./compile sql-query-test.c
25
26 -sql-query.lo sql-query.o: ltcompile sql-query.c module.h credentials.h errors.h facts.h sql.h
27 +sql-query.lo sql-query.o &: ltcompile sql-query.c module.h credentials.h errors.h facts.h sql.h
28 ./ltcompile sql-query.c
29
30 sqlite: cvm-sqlite
31 --- cvm-0.97.orig/tests.sh
32 +++ cvm-0.97/tests.sh
33 @@ -161,34 +161,38 @@ $src/cvm-testclient $src/cvm-sqlite slus
34
35 rm $CVM_SQLITE_DB
36 }
37 -vecho "Running test tests/sqlite "
38 -run_compare_test tests/sqlite <<END_OF_TEST_RESULTS
39 -user name: sluser
40 -user ID: 123
41 -group ID: 456
42 -real name: realname
43 -directory: /home/sluser
44 -shell: /bin/false
45 -group name: (null)
46 -system user name: (null)
47 -system directory: (null)
48 -domain:
49 -mailbox path: (null)
50
51 -cvm-testclient: Authentication failed, error #100 (Credentials rejected)
52 +# In the Debian packaging, sqlite cvm tools are excluded from the build.
53 +# Excluding this test as well to make the test suite work.
54
55 -user name: sluser
56 -user ID: 234
57 -group ID: 567
58 -real name: sluser2
59 -directory: /home/sluser2
60 -shell: /bin/true
61 -group name: (null)
62 -system user name: (null)
63 -system directory: (null)
64 -domain: domain
65 -mailbox path: (null)
66 -END_OF_TEST_RESULTS
67 +# vecho "Running test tests/sqlite "
68 +# run_compare_test tests/sqlite <<END_OF_TEST_RESULTS
69 +# user name: sluser
70 +# user ID: 123
71 +# group ID: 456
72 +# real name: realname
73 +# directory: /home/sluser
74 +# shell: /bin/false
75 +# group name: (null)
76 +# system user name: (null)
77 +# system directory: (null)
78 +# domain:
79 +# mailbox path: (null)
80 +#
81 +# cvm-testclient: Authentication failed, error #100 (Credentials rejected)
82 +#
83 +# user name: sluser
84 +# user ID: 234
85 +# group ID: 567
86 +# real name: sluser2
87 +# directory: /home/sluser2
88 +# shell: /bin/true
89 +# group name: (null)
90 +# system user name: (null)
91 +# system directory: (null)
92 +# domain: domain
93 +# mailbox path: (null)
94 +# END_OF_TEST_RESULTS
95
96
97 ##### Test tests/qmail-lookup-assume #####
98 @@ -297,12 +301,15 @@ $src/cvm-testclient $src/cvm-vmailmgr vi
99
100 chmod 444 $home/passwd.cdb
101 }
102 -vecho "Running test tests/vmlookup-notable "
103 -run_compare_test tests/vmlookup-notable <<END_OF_TEST_RESULTS
104 +
105 +if [ ${_UID} -ne 0 ]; then
106 + vecho "Running test tests/vmlookup-notable "
107 + run_compare_test tests/vmlookup-notable <<END_OF_TEST_RESULTS
108 cvm-testclient: Authentication failed, error #100 (Credentials rejected)
109 out of scope: 1
110 cvm-testclient: Authentication failed, error #4 (Input/Output error)
111 END_OF_TEST_RESULTS
112 +fi
113
114
115 ##### Test tests/pwfile-crypt #####
116 @@ -674,9 +681,9 @@ system directory: @TMPDIR@/home
117 domain: test.tld
118 mailbox path: @TMPDIR@/home/virt
119
120 -0000000: 020a 0108 0100 2430 2470 6173 7300 2e2f ......\$0\$pass../
121 -0000010: 7669 7274 0000 002d 002d 002d 002d 0031 virt...-.-.-.-.1
122 -0000020: 3031 3637 3331 3335 3800 2d00 016731358.-.
123 +00000000: 020a 0108 0100 2430 2470 6173 7300 2e2f ......\$0\$pass../
124 +00000010: 7669 7274 0000 002d 002d 002d 002d 0031 virt...-.-.-.-.1
125 +00000020: 3031 3637 3331 3335 3800 2d00 016731358.-.
126 END_OF_TEST_RESULTS
127
128
129 @@ -1054,8 +1061,10 @@ chmod 755 $home
130 unset CVM_LOOKUP_SECRET
131 unset CVM_QMAIL_CHECK_PERMS
132 }
133 -vecho "Running test tests/qmail-lookup-perms "
134 -run_compare_test tests/qmail-lookup-perms <<END_OF_TEST_RESULTS
135 +
136 +if [ ${_UID} -ne 0 ]; then
137 + vecho "Running test tests/qmail-lookup-perms "
138 + run_compare_test tests/qmail-lookup-perms <<END_OF_TEST_RESULTS
139 user name: user
140 user ID: @UID@
141 group ID: @GID@
142 @@ -1073,6 +1082,7 @@ cvm-testclient: Authentication failed, e
143 cvm-testclient: Authentication failed, error #100 (Credentials rejected)
144 out of scope: 0
145 END_OF_TEST_RESULTS
146 +fi
147
148
149 ##### Test tests/v1lookup #####