Merge lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip into lp:ubuntu/lucid/pkg-create-dbgsym
- Lucid (10.04)
- doublestrip
- Merge into lucid
Status: | Rejected |
---|---|
Rejected by: | Martin Pitt |
Proposed branch: | lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip |
Merge into: | lp:ubuntu/lucid/pkg-create-dbgsym |
Diff against target: |
4778 lines (+3968/-0) (has conflicts) 155 files modified
.bzrignore (+4/-0) debian/changelog (+439/-0) debian/compat (+1/-0) debian/control (+22/-0) debian/copyright (+24/-0) debian/pkg-create-dbgsym.install (+2/-0) debian/pkg-create-dbgsym.lintian-overrides (+1/-0) debian/postrm (+19/-0) debian/preinst (+19/-0) debian/rules (+15/-0) dh_strip (+205/-0) pkg_create_dbgsym (+149/-0) tests/cdbstest/Makefile (+18/-0) tests/cdbstest/crash.c (+34/-0) tests/cdbstest/crash2.c (+39/-0) tests/cdbstest/debian/cdbstest1.install (+1/-0) tests/cdbstest/debian/cdbstest2.install (+1/-0) tests/cdbstest/debian/changelog (+5/-0) tests/cdbstest/debian/compat (+1/-0) tests/cdbstest/debian/control (+31/-0) tests/cdbstest/debian/copyright (+1/-0) tests/cdbstest/debian/rules (+10/-0) tests/dhtest.archspecific/Makefile (+18/-0) tests/dhtest.archspecific/crash.c (+34/-0) tests/dhtest.archspecific/crash2.c (+39/-0) tests/dhtest.archspecific/debian/changelog (+5/-0) tests/dhtest.archspecific/debian/compat (+1/-0) tests/dhtest.archspecific/debian/control (+31/-0) tests/dhtest.archspecific/debian/copyright (+1/-0) tests/dhtest.archspecific/debian/dhtest-i386.install (+1/-0) tests/dhtest.archspecific/debian/dhtest-ppc.install (+1/-0) tests/dhtest.archspecific/debian/dhtest64.install (+1/-0) tests/dhtest.archspecific/debian/rules (+76/-0) tests/dhtest.compat1/Makefile (+18/-0) tests/dhtest.compat1/crash.c (+34/-0) tests/dhtest.compat1/crash2.c (+39/-0) tests/dhtest.compat1/debian/changelog (+5/-0) tests/dhtest.compat1/debian/control (+25/-0) tests/dhtest.compat1/debian/copyright (+1/-0) tests/dhtest.compat1/debian/rules (+75/-0) tests/dhtest.compat1override/Makefile (+18/-0) tests/dhtest.compat1override/crash.c (+34/-0) tests/dhtest.compat1override/crash2.c (+39/-0) tests/dhtest.compat1override/debian/changelog (+5/-0) tests/dhtest.compat1override/debian/compat (+1/-0) tests/dhtest.compat1override/debian/control (+25/-0) tests/dhtest.compat1override/debian/copyright (+1/-0) tests/dhtest.compat1override/debian/rules (+77/-0) tests/dhtest.compatenvvar/Makefile (+18/-0) tests/dhtest.compatenvvar/crash.c (+34/-0) tests/dhtest.compatenvvar/crash2.c (+39/-0) tests/dhtest.compatenvvar/debian/changelog (+5/-0) tests/dhtest.compatenvvar/debian/control (+13/-0) tests/dhtest.compatenvvar/debian/copyright (+1/-0) tests/dhtest.compatenvvar/debian/rules (+64/-0) tests/dhtest.dbg/Makefile (+18/-0) tests/dhtest.dbg/crash.c (+34/-0) tests/dhtest.dbg/crash2.c (+39/-0) tests/dhtest.dbg/debian/changelog (+5/-0) tests/dhtest.dbg/debian/compat (+1/-0) tests/dhtest.dbg/debian/control (+31/-0) tests/dhtest.dbg/debian/copyright (+1/-0) tests/dhtest.dbg/debian/dhtest1.install (+1/-0) tests/dhtest.dbg/debian/dhtest2.install (+1/-0) tests/dhtest.dbg/debian/rules (+87/-0) tests/dhtest.dbg2/Makefile (+18/-0) tests/dhtest.dbg2/crash.c (+34/-0) tests/dhtest.dbg2/crash2.c (+39/-0) tests/dhtest.dbg2/debian/changelog (+5/-0) tests/dhtest.dbg2/debian/compat (+1/-0) tests/dhtest.dbg2/debian/control (+37/-0) tests/dhtest.dbg2/debian/copyright (+1/-0) tests/dhtest.dbg2/debian/dhtest1.install (+1/-0) tests/dhtest.dbg2/debian/dhtest2.install (+1/-0) tests/dhtest.dbg2/debian/rules (+89/-0) tests/dhtest.dbg3/Makefile (+18/-0) tests/dhtest.dbg3/crash.c (+34/-0) tests/dhtest.dbg3/crash2.c (+39/-0) tests/dhtest.dbg3/debian/changelog (+5/-0) tests/dhtest.dbg3/debian/compat (+1/-0) tests/dhtest.dbg3/debian/control (+31/-0) tests/dhtest.dbg3/debian/copyright (+1/-0) tests/dhtest.dbg3/debian/dhtest1.install (+1/-0) tests/dhtest.dbg3/debian/dhtest2.install (+1/-0) tests/dhtest.dbg3/debian/rules (+86/-0) tests/dhtest.noargs/Makefile (+19/-0) tests/dhtest.noargs/crash.c (+34/-0) tests/dhtest.noargs/crash2.c (+39/-0) tests/dhtest.noargs/debian/changelog (+5/-0) tests/dhtest.noargs/debian/compat (+1/-0) tests/dhtest.noargs/debian/control (+29/-0) tests/dhtest.noargs/debian/copyright (+1/-0) tests/dhtest.noargs/debian/dhtest1.install (+1/-0) tests/dhtest.noargs/debian/dhtest2.install (+1/-0) tests/dhtest.noargs/debian/rules (+69/-0) tests/dhtest.nostrip/Makefile (+19/-0) tests/dhtest.nostrip/crash.c (+34/-0) tests/dhtest.nostrip/crash2.c (+39/-0) tests/dhtest.nostrip/debian/changelog (+5/-0) tests/dhtest.nostrip/debian/compat (+1/-0) tests/dhtest.nostrip/debian/control (+30/-0) tests/dhtest.nostrip/debian/copyright (+1/-0) tests/dhtest.nostrip/debian/dhtest1.install (+1/-0) tests/dhtest.nostrip/debian/dhtest2-nostrip.install (+2/-0) tests/dhtest.nostrip/debian/rules (+84/-0) tests/dhtest.samename/Makefile (+18/-0) tests/dhtest.samename/crash.c (+34/-0) tests/dhtest.samename/crash2.c (+39/-0) tests/dhtest.samename/debian/changelog (+5/-0) tests/dhtest.samename/debian/compat (+1/-0) tests/dhtest.samename/debian/control (+29/-0) tests/dhtest.samename/debian/copyright (+1/-0) tests/dhtest.samename/debian/dhtest.samename.install (+1/-0) tests/dhtest.samename/debian/dhtest1.install (+1/-0) tests/dhtest.samename/debian/rules (+76/-0) tests/dhtest.tmpdirarg/Makefile (+18/-0) tests/dhtest.tmpdirarg/crash.c (+34/-0) tests/dhtest.tmpdirarg/crash2.c (+39/-0) tests/dhtest.tmpdirarg/debian/changelog (+5/-0) tests/dhtest.tmpdirarg/debian/compat (+1/-0) tests/dhtest.tmpdirarg/debian/control (+12/-0) tests/dhtest.tmpdirarg/debian/copyright (+1/-0) tests/dhtest.tmpdirarg/debian/dhtest1.install (+1/-0) tests/dhtest.tmpdirarg/debian/rules (+57/-0) tests/dhtest.versionoverride/Makefile (+18/-0) tests/dhtest.versionoverride/crash.c (+34/-0) tests/dhtest.versionoverride/crash2.c (+39/-0) tests/dhtest.versionoverride/debian/changelog (+5/-0) tests/dhtest.versionoverride/debian/compat (+1/-0) tests/dhtest.versionoverride/debian/control (+18/-0) tests/dhtest.versionoverride/debian/copyright (+1/-0) tests/dhtest.versionoverride/debian/dhtest1.install (+1/-0) tests/dhtest.versionoverride/debian/dhtest2.install (+1/-0) tests/dhtest.versionoverride/debian/rules (+57/-0) tests/dhtest.whitespace/Makefile (+18/-0) tests/dhtest.whitespace/crash.c (+34/-0) tests/dhtest.whitespace/crash2.c (+39/-0) tests/dhtest.whitespace/debian/changelog (+5/-0) tests/dhtest.whitespace/debian/compat (+1/-0) tests/dhtest.whitespace/debian/control (+35/-0) tests/dhtest.whitespace/debian/copyright (+1/-0) tests/dhtest.whitespace/debian/dhtest1.install (+1/-0) tests/dhtest.whitespace/debian/dhtest2.install (+1/-0) tests/dhtest.whitespace/debian/rules (+76/-0) tests/dhtest/Makefile (+18/-0) tests/dhtest/crash.c (+34/-0) tests/dhtest/crash2.c (+39/-0) tests/dhtest/debian/changelog (+5/-0) tests/dhtest/debian/compat (+1/-0) tests/dhtest/debian/control (+30/-0) tests/dhtest/debian/copyright (+1/-0) tests/dhtest/debian/dhtest1.install (+1/-0) tests/dhtest/debian/dhtest2.install (+1/-0) tests/dhtest/debian/rules (+76/-0) tests/run (+107/-0) Conflict adding file debian. Moved existing file to debian.moved. Conflict adding file dh_strip. Moved existing file to dh_strip.moved. Conflict adding file pkg_create_dbgsym. Moved existing file to pkg_create_dbgsym.moved. Conflict adding file tests. Moved existing file to tests.moved. |
To merge this branch: | bzr merge lp:~tormodvolden/ubuntu/lucid/pkg-create-dbgsym/doublestrip |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu branches | Pending | ||
Review via email: mp+23877@code.launchpad.net |
Commit message
Description of the change
Martin Pitt (pitti) wrote : | # |
Unmerged revisions
- 177. By Tormod Volden
-
add changelog entry
- 176. By Tormod Volden
-
do not strip an already stripped file
- 175. By Martin Pitt
-
releasing version 0.41
- 174. By Martin Pitt
-
dh_strip: Fix the "is this package in this list" grep to only match on
whitespace separation, not on e. g. dashes (which grep -w does). This
caused some ddebs like "libglib2.0-0-dbgsym" not to be built if dh_strip
was called with ignoring a similar package name (-Nlibglib2.0-0-refdbg) .
To make this more robust, define a new shell function in_list() for this
and just implement it once. (LP: #566602) - 173. By Martin Pitt
-
tests/dhtest.dbg2: Add a new package dhtest2-extra which we exclude from
dh_strip with -N. This causes dhtest2-dbgsym to not be generated and thus
reproduces LP #566602. - 172. By Martin Pitt
-
releasing version 0.40
- 171. By Martin Pitt
-
Strip -O from options passed from dh not only for comparison but also for
processing them. (LP: #520767) - 170. By Martin Pitt
-
releasing version 0.39
- 169. By Martin Pitt
-
Strip -O from options passed from dh (LP: #520767).
- 168. By Loïc Minier
-
Release 0.38
Preview Diff
1 | === added file '.bzrignore' | |||
2 | --- .bzrignore 1970-01-01 00:00:00 +0000 | |||
3 | +++ .bzrignore 2010-04-21 20:29:14 +0000 | |||
4 | @@ -0,0 +1,4 @@ | |||
5 | 1 | /debian/files | ||
6 | 2 | /debian/pkg-create-dbgsym/ | ||
7 | 3 | /debian/pkg-create-dbgsym.debhelper.log | ||
8 | 4 | /debian/pkg-create-dbgsym.substvars | ||
9 | 0 | 5 | ||
10 | === added directory 'debian' | |||
11 | === renamed directory 'debian' => 'debian.moved' | |||
12 | === added file 'debian/changelog' | |||
13 | --- debian/changelog 1970-01-01 00:00:00 +0000 | |||
14 | +++ debian/changelog 2010-04-21 20:29:14 +0000 | |||
15 | @@ -0,0 +1,439 @@ | |||
16 | 1 | pkg-create-dbgsym (0.42) lucid; urgency=low | ||
17 | 2 | |||
18 | 3 | * Do not strip a binary which for any reason is already stripped. | ||
19 | 4 | It will make a useless debug file, potentially overwriting | ||
20 | 5 | a good one, and also overwrite the debug link. (LP: 562418) | ||
21 | 6 | |||
22 | 7 | -- Tormod Volden <debian.tormod@gmail.com> Wed, 21 Apr 2010 21:29:51 +0200 | ||
23 | 8 | |||
24 | 9 | pkg-create-dbgsym (0.41) lucid; urgency=low | ||
25 | 10 | |||
26 | 11 | * tests/dhtest.dbg2: Add a new package dhtest2-extra which we exclude from | ||
27 | 12 | dh_strip with -N. This causes dhtest2-dbgsym to not be generated and thus | ||
28 | 13 | reproduces LP #566602. | ||
29 | 14 | * dh_strip: Fix the "is this package in this list" grep to only match on | ||
30 | 15 | whitespace separation, not on e. g. dashes (which grep -w does). This | ||
31 | 16 | caused some ddebs like "libglib2.0-0-dbgsym" not to be built if dh_strip | ||
32 | 17 | was called with ignoring a similar package name (-Nlibglib2.0-0-refdbg). | ||
33 | 18 | To make this more robust, define a new shell function in_list() for this | ||
34 | 19 | and just implement it once. (LP: #566602) | ||
35 | 20 | |||
36 | 21 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 20 Apr 2010 11:01:37 +0200 | ||
37 | 22 | |||
38 | 23 | pkg-create-dbgsym (0.40) lucid; urgency=low | ||
39 | 24 | |||
40 | 25 | * Strip -O from options passed from dh not only for comparison but also for | ||
41 | 26 | processing them. (LP: #520767) | ||
42 | 27 | |||
43 | 28 | -- Michael Bienia <geser@ubuntu.com> Thu, 08 Apr 2010 10:35:01 +0200 | ||
44 | 29 | |||
45 | 30 | pkg-create-dbgsym (0.39) lucid; urgency=low | ||
46 | 31 | |||
47 | 32 | * Strip -O from options passed from dh (LP: #520767). | ||
48 | 33 | |||
49 | 34 | -- Michael Bienia <geser@ubuntu.com> Mon, 15 Feb 2010 12:22:05 +0100 | ||
50 | 35 | |||
51 | 36 | pkg-create-dbgsym (0.38) lucid; urgency=low | ||
52 | 37 | |||
53 | 38 | * tests/run: set the new var PKG_IGNORE_CURRENTLY_BUILDING=1 instead of | ||
54 | 39 | NO_PKG_MANGLE=1 since pkg-create-dbgsym also disables itself when setting | ||
55 | 40 | NO_PKG_MANGLE=1 and this breaks the testsuite; build-conflict with | ||
56 | 41 | pkgbinarymangler << 66~. Also, unset NO_PKG_MANGLE as it's set by buildds | ||
57 | 42 | and will cause the same issue. | ||
58 | 43 | * dh_strip: if PKG_IGNORE_CURRENTLY_BUILDING is set to 1 don't read | ||
59 | 44 | /CurrentlyBuilding to decided whether or not to build -dbgsym packages but | ||
60 | 45 | build them unconditionally. | ||
61 | 46 | * Build-depend on gdb for the testsuite and on cdbs for the cdbstest | ||
62 | 47 | package. | ||
63 | 48 | |||
64 | 49 | -- Loïc Minier <loic.minier@ubuntu.com> Sat, 16 Jan 2010 18:34:20 +0100 | ||
65 | 50 | |||
66 | 51 | pkg-create-dbgsym (0.37) lucid; urgency=low | ||
67 | 52 | |||
68 | 53 | * tests/run: set NO_PKG_MANGLE=1 in the env when calling dpkg-buildpackage | ||
69 | 54 | to build test packages as to avoid pkgbinarymangler's pkgsanitychecks to | ||
70 | 55 | fail the build when it notices another package than the /CurrentlyBuilding | ||
71 | 56 | one is being built. Ideally, we'd also hook into dpkg-buildpackage or | ||
72 | 57 | some other place to detect what is being built. | ||
73 | 58 | |||
74 | 59 | -- Loïc Minier <loic.minier@ubuntu.com> Fri, 15 Jan 2010 01:44:56 +0100 | ||
75 | 60 | |||
76 | 61 | pkg-create-dbgsym (0.36) lucid; urgency=low | ||
77 | 62 | |||
78 | 63 | * Drop XB-Python-Version from the headers we copy over from debian/control | ||
79 | 64 | for -dbgsym packages: it's usually set to ${python:Versions} -- but the | ||
80 | 65 | -dbgsym package has no such substvar -- and the -dbgsym isn't a python- | ||
81 | 66 | lib anyway. | ||
82 | 67 | * Add ${misc:Depends}. | ||
83 | 68 | * Bump debhelper build-dep to >= 7 for dh_prep. | ||
84 | 69 | * Rewrite rules using "dh" since we need debhelper 7 anyway. | ||
85 | 70 | * Also test for presence of tests/testsuite.tmp to fail clean:. | ||
86 | 71 | * Adapt dh_strip to test whether it's looping trying to run itself and also | ||
87 | 72 | to try running /usr/bin/dh_strip in the case where pkg-create-dbgsym is | ||
88 | 73 | not installed in the build environment (but debhelper is); this allows | ||
89 | 74 | running the testsuite during build, so do that. | ||
90 | 75 | * Bump debhelper build-dep to >= 7.0.50~ for overrides. | ||
91 | 76 | |||
92 | 77 | -- Loïc Minier <loic.minier@ubuntu.com> Thu, 14 Jan 2010 18:09:17 +0100 | ||
93 | 78 | |||
94 | 79 | pkg-create-dbgsym (0.35) lucid; urgency=low | ||
95 | 80 | |||
96 | 81 | * Add -k as an alias option name for --keep-debug. Thanks to Michael Bienia! | ||
97 | 82 | |||
98 | 83 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 30 Nov 2009 22:15:43 +0100 | ||
99 | 84 | |||
100 | 85 | pkg-create-dbgsym (0.34) lucid; urgency=low | ||
101 | 86 | |||
102 | 87 | * Also skip over XB-Python-Version header when generating the new control | ||
103 | 88 | file; this avoids the "unknown substitution variable ${python:Versions}" | ||
104 | 89 | warning when generating the -dbgsym packages; thanks Michael Bienia. | ||
105 | 90 | |||
106 | 91 | -- Loïc Minier <loic.minier@ubuntu.com> Sat, 28 Nov 2009 18:10:52 +0100 | ||
107 | 92 | |||
108 | 93 | pkg-create-dbgsym (0.33) lucid; urgency=low | ||
109 | 94 | |||
110 | 95 | * Invert the logic which dh_strip used to pass the "don't add ddebs to | ||
111 | 96 | .changes" down to pkg_create_dbgsym. This prevents packages which don't | ||
112 | 97 | use debhelper, but call pkg_create_dbgsym directly from suddenly adding | ||
113 | 98 | ddebs to .changes (which makes Soyuz unhappy). | ||
114 | 99 | |||
115 | 100 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 18 Nov 2009 19:21:54 -0600 | ||
116 | 101 | |||
117 | 102 | pkg-create-dbgsym (0.32) lucid; urgency=low | ||
118 | 103 | |||
119 | 104 | [ Loïc Minier ] | ||
120 | 105 | * Fix Vcs-Bzr, it's /ubuntu, not /trunk | ||
121 | 106 | |||
122 | 107 | [ Martin Pitt ] | ||
123 | 108 | * Add Source: field to ddebs whose original name had the same name as the | ||
124 | 109 | source. Soyuz does not like those. Thanks to William Grant for the patch! | ||
125 | 110 | (LP: #429782) | ||
126 | 111 | * Add ddebs to .changes file now, since Soyuz will support that soon. Check | ||
127 | 112 | /CurrentlyBuilding for the Build-Debug-Symbols flag, and fall back to the | ||
128 | 113 | old logic if it does not exist. Thanks to William Grant! (LP: #429796, | ||
129 | 114 | #429793) | ||
130 | 115 | |||
131 | 116 | -- Martin Pitt <martin.pitt@ubuntu.com> Sun, 15 Nov 2009 06:36:58 -0600 | ||
132 | 117 | |||
133 | 118 | pkg-create-dbgsym (0.31) karmic; urgency=low | ||
134 | 119 | |||
135 | 120 | [ Loïc Minier ] | ||
136 | 121 | * Add lintian override for lack of dh_strip manpage (dh_strip is diverted); | ||
137 | 122 | bump debhelper build-dep to >= 6.0.7~ for dh_lintian. | ||
138 | 123 | * Move debhelper to build-deps instead of build-deps-indep for clean:. | ||
139 | 124 | * Bump debhelper compat level to 5. | ||
140 | 125 | * Bump up Standards-Version to 3.8.3; no change needed. | ||
141 | 126 | * Use dh_prep instead of dh_clean -k; update debhelper build-dep to | ||
142 | 127 | >= 6.0.13~. | ||
143 | 128 | * Pass -i to dh_* in binary-indep. | ||
144 | 129 | * Use dh_install to install the binaries, dh_fixperms will set them +x. | ||
145 | 130 | |||
146 | 131 | [ Martin Pitt ] | ||
147 | 132 | * dhtest.archspecific: Add a package with "Architecture: kfreebsd-i386 | ||
148 | 133 | kfreebsd-amd64". This reproduces the current glib2.0 FTBFS on i386/amd64. | ||
149 | 134 | * dh_clean: Fix grepping of Architecture field to only match space separated | ||
150 | 135 | words, instead of using -w; the latter matches e. g. kfreebsd-i386 on | ||
151 | 136 | i386. | ||
152 | 137 | |||
153 | 138 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 24 Sep 2009 20:09:36 +0200 | ||
154 | 139 | |||
155 | 140 | pkg-create-dbgsym (0.30) karmic; urgency=low | ||
156 | 141 | |||
157 | 142 | * Add Vcs-Bzr in control. | ||
158 | 143 | * Set NO_PKG_MANGLE when building the -dbgsym .debs as running | ||
159 | 144 | pkgstriptranslations etc. when -dbgsyms are created results in nasty side | ||
160 | 145 | effects; use dpkg-deb --build instead of dpkg --build for clarity. | ||
161 | 146 | * Add README mentionning how to run the tests before upload. | ||
162 | 147 | |||
163 | 148 | -- Loïc Minier <loic.minier@ubuntu.com> Tue, 15 Sep 2009 12:54:24 +0200 | ||
164 | 149 | |||
165 | 150 | pkg-create-dbgsym (0.29) karmic; urgency=low | ||
166 | 151 | |||
167 | 152 | * Add tests/dhtest.whitespace: Test odd whitespace in debian/control: | ||
168 | 153 | - Using tabs instead of spaces for multi-line dependency fields. This | ||
169 | 154 | replicates the mplayer issue (LP #384597). | ||
170 | 155 | - Putting Description: in the middle and ending the package record with a | ||
171 | 156 | dependency field. This replicates the new dictd FTBFS. | ||
172 | 157 | * tests/run: Ensure that all other dependency fields get stripped. | ||
173 | 158 | * pkg_create_dbgsym: Unbreak fix from 0.28: Only look ahead for space and | ||
174 | 159 | tab, not for all whitespace; \s also catches \n. This caused the dictd | ||
175 | 160 | FTBFS. | ||
176 | 161 | * Bump Standards-Version to 3.8.1 (no changes necessary). | ||
177 | 162 | |||
178 | 163 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 11 Jun 2009 11:13:07 +0200 | ||
179 | 164 | |||
180 | 165 | pkg-create-dbgsym (0.28) karmic; urgency=low | ||
181 | 166 | |||
182 | 167 | * Fix multi-line depends parsing if one field evaluates to be empty. Thanks | ||
183 | 168 | to Michael Biena! (LP: #384597) | ||
184 | 169 | |||
185 | 170 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 08 Jun 2009 07:57:42 +0200 | ||
186 | 171 | |||
187 | 172 | pkg-create-dbgsym (0.27) karmic; urgency=low | ||
188 | 173 | |||
189 | 174 | * Make dh_strip actually abort correctly if debhelper isn't installed. | ||
190 | 175 | |||
191 | 176 | -- Adam Conrad <adconrad@ubuntu.com> Tue, 05 May 2009 16:27:55 -0600 | ||
192 | 177 | |||
193 | 178 | pkg-create-dbgsym (0.26) intrepid; urgency=low | ||
194 | 179 | |||
195 | 180 | * dh_strip: Recognize "export DH_COMPAT := x" syntax, too. Thanks, Michael | ||
196 | 181 | Biena! | ||
197 | 182 | |||
198 | 183 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 03 Jun 2008 12:41:58 +0200 | ||
199 | 184 | |||
200 | 185 | pkg-create-dbgsym (0.25) hardy; urgency=low | ||
201 | 186 | |||
202 | 187 | * tests/dhtest.nostrip: Add another test case for dh_strip blacklisting with | ||
203 | 188 | a space between -X and the argument. This reproduces the followup problem | ||
204 | 189 | in LP #180364. | ||
205 | 190 | * dh_strip: Fix option parsing to get along with spaces between -X and the | ||
206 | 191 | argument. (LP: #180364) | ||
207 | 192 | |||
208 | 193 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 26 Feb 2008 16:05:28 +0100 | ||
209 | 194 | |||
210 | 195 | pkg-create-dbgsym (0.24) hardy; urgency=low | ||
211 | 196 | |||
212 | 197 | * Add tests/dhtest.nostrip: Ignore crash2 for dh_strip, and add an assertion | ||
213 | 198 | that the file isn't touched by dh_strip. This reproduces LP #180364. | ||
214 | 199 | * Parse dh_strip's -X options in the wrapper and pass them to | ||
215 | 200 | pkg_create_dbgsym. Do not touch any files which match these patterns. This | ||
216 | 201 | avoids adding GNU debuglinks to ELF binaries which must not be touched at | ||
217 | 202 | all, like Ocaml bytecode. (LP: #180364) | ||
218 | 203 | * tests/run: Do not expect a dbgsym package for test .debs with 'nostrip' in | ||
219 | 204 | the name (as used by the tests/dhtest.nostrip test case). | ||
220 | 205 | |||
221 | 206 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 21 Feb 2008 17:55:07 +0100 | ||
222 | 207 | |||
223 | 208 | pkg-create-dbgsym (0.23) hardy; urgency=low | ||
224 | 209 | |||
225 | 210 | * Also disable pkg-create-dbgsym if Archive Purpose is PPA. | ||
226 | 211 | |||
227 | 212 | -- Adam Conrad <adconrad@ubuntu.com> Tue, 18 Dec 2007 16:01:24 -0700 | ||
228 | 213 | |||
229 | 214 | pkg-create-dbgsym (0.22) hardy; urgency=low | ||
230 | 215 | |||
231 | 216 | * Disable symbol extraction if *-autotest is found in Suite in the | ||
232 | 217 | buildd's /CurrentlyBuilding file; requires a modified sbuild. | ||
233 | 218 | |||
234 | 219 | -- Adam Conrad <adconrad@ubuntu.com> Fri, 14 Dec 2007 15:18:37 -0700 | ||
235 | 220 | |||
236 | 221 | pkg-create-dbgsym (0.21) hardy; urgency=low | ||
237 | 222 | |||
238 | 223 | * Add tests/dhtest.compat1override/: Declare debian/compat '4', but override | ||
239 | 224 | it in debian/rules with DH_COMPAT=1. Reproduces the FTBFS of dvi2tty, | ||
240 | 225 | flexml, and gtk-engines-mono. | ||
241 | 226 | * dh_strip: Fix debhelper compatibility level detection so that DH_COMPAT | ||
242 | 227 | overrides debian/compat. (LP: #173631) | ||
243 | 228 | |||
244 | 229 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 04 Dec 2007 11:58:19 +0100 | ||
245 | 230 | |||
246 | 231 | pkg-create-dbgsym (0.20) feisty; urgency=low | ||
247 | 232 | |||
248 | 233 | * Move test suite into tests/ to unclutter source root directory. | ||
249 | 234 | * Add tests/dhtest.versionoverride: Test case for overriding the version of | ||
250 | 235 | a particular binary. This replicates LP #92747. However, since this is | ||
251 | 236 | unfixable without major changes (dh_strip is called before dh_gencontrol | ||
252 | 237 | usually), we do not run the test case for now. | ||
253 | 238 | * pkg_create_dbgsym: Do not generate conflicts to python dbg packages. | ||
254 | 239 | (LP: #88695) | ||
255 | 240 | |||
256 | 241 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 3 Apr 2007 10:58:17 +0200 | ||
257 | 242 | |||
258 | 243 | pkg-create-dbgsym (0.19) feisty; urgency=low | ||
259 | 244 | |||
260 | 245 | * dh_strip: Explicitly unset $pkg before parsing debian/control. | ||
261 | 246 | Packages with a debian/rules that happen to set this variable FTBFS | ||
262 | 247 | otherwise (like sim). | ||
263 | 248 | |||
264 | 249 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 2 Feb 2007 13:07:34 +0100 | ||
265 | 250 | |||
266 | 251 | pkg-create-dbgsym (0.18) feisty; urgency=low | ||
267 | 252 | |||
268 | 253 | * testsuite: Check that all ddebs conflict to all built -dbg packages. | ||
269 | 254 | * pkg_create_dbgsym: Determine set of -dbg packages and add Conflicts: to | ||
270 | 255 | them. Closes: LP#68268 | ||
271 | 256 | |||
272 | 257 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 15 Dec 2006 11:15:33 +0100 | ||
273 | 258 | |||
274 | 259 | pkg-create-dbgsym (0.17) feisty; urgency=low | ||
275 | 260 | |||
276 | 261 | * Revert Debian #386246 workaround of 0.16 again, we should now fix the | ||
277 | 262 | actually broken packages. | ||
278 | 263 | |||
279 | 264 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 14 Dec 2006 08:35:25 +0100 | ||
280 | 265 | |||
281 | 266 | pkg-create-dbgsym (0.16) edgy; urgency=low | ||
282 | 267 | |||
283 | 268 | * pkg_create_dbgsym: If package build directory does not exist, only whine | ||
284 | 269 | and exit successfully instead of failing. This makes us bug-compatible to | ||
285 | 270 | Debian #386246, right before Edgy release it is impractical to fix all | ||
286 | 271 | broken packages for that. This will be reverted early in Edgy+1. | ||
287 | 272 | |||
288 | 273 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Oct 2006 14:01:58 +0200 | ||
289 | 274 | |||
290 | 275 | pkg-create-dbgsym (0.15) edgy; urgency=low | ||
291 | 276 | |||
292 | 277 | * Fix (harmless) find error message on arch-specific packages without any | ||
293 | 278 | ELF files at all. | ||
294 | 279 | * Add dhtest.dbg3: Call dh_strip with --dbg-package dhtest (without the '=' | ||
295 | 280 | in between, as prescribed by the manpage). This reproduces the current | ||
296 | 281 | libtasn-1-3 FTBFS. | ||
297 | 282 | * dh_strip: Relax --dbg-package parameter parsing a bit to accept | ||
298 | 283 | '--dbg-package pkgname' syntax. | ||
299 | 284 | |||
300 | 285 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Oct 2006 11:55:35 +0200 | ||
301 | 286 | |||
302 | 287 | pkg-create-dbgsym (0.14) edgy; urgency=low | ||
303 | 288 | |||
304 | 289 | * Use more elaborate test crash programs with a three-function deep stack, | ||
305 | 290 | so that gdb's current 'Could not find the frame base' failure in the | ||
306 | 291 | topmost function does not completely break the test suite. | ||
307 | 292 | * Add dhtest.dbg2 test case: Use dh_strip --keep-debug and manually move | ||
308 | 293 | around the debug symbols to dhtest1-dbg. This replicates the current FTBFS | ||
309 | 294 | of opal. | ||
310 | 295 | * dh_strip: Handle --keep-debug option gracefully to err on the safe side. | ||
311 | 296 | Fixes current opal FTBFS. | ||
312 | 297 | |||
313 | 298 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 21 Sep 2006 20:51:28 +0200 | ||
314 | 299 | |||
315 | 300 | pkg-create-dbgsym (0.13) edgy; urgency=low | ||
316 | 301 | |||
317 | 302 | * *test/crash2.c: Test for isinf() and explicitly raise a SIGFPE, to get | ||
318 | 303 | a crash on powerpc, too. | ||
319 | 304 | * dhtest.archspecific: Add powerpc package so that the package builds at all | ||
320 | 305 | on powerpc. | ||
321 | 306 | * cdbstest/debian/rules: Explicitly set CFLAGS to -O0 to avoid optimizing | ||
322 | 307 | out function arguments and thus failing the test suite. | ||
323 | 308 | * dhtest.noargs/debian/control: Add Pre-Depends field and multiline | ||
324 | 309 | dependency field to reproduce current dpkg FTBFS. | ||
325 | 310 | * pkg_create_dbgsym: | ||
326 | 311 | - Properly handle continuation lines in Dependency fields. | ||
327 | 312 | - Also filter out Pre-Depends:. | ||
328 | 313 | |||
329 | 314 | -- Martin Pitt <martin.pitt@ubuntu.com> Sun, 20 Aug 2006 17:19:46 +0200 | ||
330 | 315 | |||
331 | 316 | pkg-create-dbgsym (0.12) edgy; urgency=low | ||
332 | 317 | |||
333 | 318 | * Add dhtest.tmpdirarg/: Test suite check for a source package which uses | ||
334 | 319 | the -P/--tmpdir= debhelper option. This recreates the current cdrtools | ||
335 | 320 | FTBFS. | ||
336 | 321 | * dh_strip: Respect -P/--tmpdir arguments. | ||
337 | 322 | * pkg_create_dbgsym: Do not assume that the temporary package build | ||
338 | 323 | directory is directly below debian/. | ||
339 | 324 | |||
340 | 325 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 17 Aug 2006 12:47:13 +0200 | ||
341 | 326 | |||
342 | 327 | pkg-create-dbgsym (0.11) edgy; urgency=low | ||
343 | 328 | |||
344 | 329 | * dhtest/debian/control: Add Suggests: to ${bar}-core to recreate current | ||
345 | 330 | FTBFS of caudium. | ||
346 | 331 | * pkg-create-dbgsym: Filter out dependency fields before passing them to | ||
347 | 332 | dpkg-gencontrol. Doing it afterwards is too late since dpkg-gencontrol | ||
348 | 333 | does not have variable substitutions at that point, which can mess up the | ||
349 | 334 | dependencies to become unparseable. | ||
350 | 335 | |||
351 | 336 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 16 Aug 2006 09:40:57 +0200 | ||
352 | 337 | |||
353 | 338 | pkg-create-dbgsym (0.10) edgy; urgency=low | ||
354 | 339 | |||
355 | 340 | * Add dhtest.archspecific/: Test suite check for a source package with | ||
356 | 341 | architecture specific binaries. | ||
357 | 342 | * dh_strip: Evaluate DEB_BUILD_ARCH and ignore architecture specific | ||
358 | 343 | packages which are not built on the current platform. | ||
359 | 344 | * testsuite: If we encounter a -dbg package, check that it produces a good | ||
360 | 345 | backtrace with the corresponding deb, in order to verify that the -dbgsym | ||
361 | 346 | package did not break the debug link. | ||
362 | 347 | |||
363 | 348 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 15 Aug 2006 18:51:35 +0200 | ||
364 | 349 | |||
365 | 350 | pkg-create-dbgsym (0.9) edgy; urgency=low | ||
366 | 351 | |||
367 | 352 | * Ignore *.o files, too. Through some mysterious chain of events, adding GNU | ||
368 | 353 | debuglinks to libc6-dev's /usr/lib/*crt*.o files causes unwanted | ||
369 | 354 | debuglinks in gcc-produced binaries. This breaks dh_strip for all source | ||
370 | 355 | packages which build a -dbg binary. Closes: LP#55880 | ||
371 | 356 | |||
372 | 357 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 10 Aug 2006 19:37:05 +0200 | ||
373 | 358 | |||
374 | 359 | pkg-create-dbgsym (0.8) edgy; urgency=low | ||
375 | 360 | |||
376 | 361 | * Remove the Essential: flag for -dbgsym package control records and fix | ||
377 | 362 | Priority: to extra. | ||
378 | 363 | * dhtest.noargs/Makefile: Add GNU debuglink to generated crash file; it's | ||
379 | 364 | not entirely unreasonable for upstream or package build systems to do this | ||
380 | 365 | without using dh_strip --dbg-package. | ||
381 | 366 | * pkg_create_dbgsym: Remove GNU debuglink before adding our own, to not | ||
382 | 367 | break if the binary already has its own. Remove the 'more than one | ||
383 | 368 | hardlink' special case again, since it is now obsolete. | ||
384 | 369 | |||
385 | 370 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 10 Aug 2006 16:07:32 +0200 | ||
386 | 371 | |||
387 | 372 | pkg-create-dbgsym (0.7) edgy; urgency=low | ||
388 | 373 | |||
389 | 374 | * dh_strip: Call the real dh_strip if NO_PKG_MANGLE is given. | ||
390 | 375 | |||
391 | 376 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 7 Aug 2006 10:34:55 +0200 | ||
392 | 377 | |||
393 | 378 | pkg-create-dbgsym (0.6) edgy; urgency=low | ||
394 | 379 | |||
395 | 380 | * dhtest/debian/control: Add Replaces: and Breaks: fields with substitution | ||
396 | 381 | variable as well. | ||
397 | 382 | * Filter out Replaces: from original package's control record. | ||
398 | 383 | * debian/copyright: Update FSF address. | ||
399 | 384 | |||
400 | 385 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 1 Aug 2006 11:03:03 +0200 | ||
401 | 386 | |||
402 | 387 | pkg-create-dbgsym (0.5) edgy; urgency=low | ||
403 | 388 | |||
404 | 389 | * dhtest: Add Depends/Recommends/Suggests/Conflicts with a substitution | ||
405 | 390 | variable, to recreate the current openoffice.org FTBFS. | ||
406 | 391 | * Filter out Recommends:, Suggests:, Conflicts:, Provides:, and Breaks: from | ||
407 | 392 | original package's control record, since they are not necessary and just | ||
408 | 393 | potentially break the build. | ||
409 | 394 | |||
410 | 395 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 31 Jul 2006 22:01:34 +0200 | ||
411 | 396 | |||
412 | 397 | pkg-create-dbgsym (0.4) edgy; urgency=low | ||
413 | 398 | |||
414 | 399 | * Do not add .ddebs to the .changes file until Soyuz is able to process | ||
415 | 400 | them. With that, we can already install this package into the buildd | ||
416 | 401 | chroots to fix remaining FTBFSes induced by this package, and it even | ||
417 | 402 | opens up the possibility to put the resulting .ddebs to some inofficial | ||
418 | 403 | place. | ||
419 | 404 | |||
420 | 405 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 31 Jul 2006 11:22:06 +0200 | ||
421 | 406 | |||
422 | 407 | pkg-create-dbgsym (0.3) edgy; urgency=low | ||
423 | 408 | |||
424 | 409 | * debian/copyright: Fix copy & paste leftovers. | ||
425 | 410 | * Add dhtest.compatenvvar/: Test suite check for debhelper packages using | ||
426 | 411 | $DH_COMPAT instead of debian/compat. | ||
427 | 412 | * Respect DH_COMPAT setting in debian/rules (fixes build of unifdef). | ||
428 | 413 | * dhtest.compatenvvar/: Install a hardlink to an existing binary to check | ||
429 | 414 | whether this is handled correctly (since objcopy --add-gnu-debuglink is | ||
430 | 415 | not idempotent). | ||
431 | 416 | * Ignore objcopy --add-gnu-debuglink failures if target file's hard link | ||
432 | 417 | count is not 1 (fixes build of sudo). | ||
433 | 418 | |||
434 | 419 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 18 Jul 2006 15:30:18 +0200 | ||
435 | 420 | |||
436 | 421 | pkg-create-dbgsym (0.2) edgy; urgency=low | ||
437 | 422 | |||
438 | 423 | * Add debug output if objcopy --only-keep-debug or --add-gnu-debuglink | ||
439 | 424 | fails. | ||
440 | 425 | * Do not generate debug symbols for *.a (static libraries), since they | ||
441 | 426 | sometimes break objcopy and are not generally useful. | ||
442 | 427 | |||
443 | 428 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 6 Jul 2006 13:47:20 +0200 | ||
444 | 429 | |||
445 | 430 | pkg-create-dbgsym (0.1) edgy; urgency=low | ||
446 | 431 | |||
447 | 432 | * Initial release: | ||
448 | 433 | - pkg_create_dbgsym: build a debug symbol ddeb for a given package in a | ||
449 | 434 | built source tree | ||
450 | 435 | - dh_strip: Divert and wrap debhelper's dh_strip which automatically calls | ||
451 | 436 | pkg_create_dbgsym for all packages dh_strip is asked to act on. | ||
452 | 437 | - Implements distro side of https://wiki.ubuntu.com/AptElfDebugSymbols. | ||
453 | 438 | |||
454 | 439 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 23 Jun 2006 12:46:24 +0200 | ||
455 | 0 | 440 | ||
456 | === added file 'debian/compat' | |||
457 | --- debian/compat 1970-01-01 00:00:00 +0000 | |||
458 | +++ debian/compat 2010-04-21 20:29:14 +0000 | |||
459 | @@ -0,0 +1,1 @@ | |||
460 | 1 | 7 | ||
461 | 0 | 2 | ||
462 | === added file 'debian/control' | |||
463 | --- debian/control 1970-01-01 00:00:00 +0000 | |||
464 | +++ debian/control 2010-04-21 20:29:14 +0000 | |||
465 | @@ -0,0 +1,22 @@ | |||
466 | 1 | Source: pkg-create-dbgsym | ||
467 | 2 | Section: devel | ||
468 | 3 | Priority: extra | ||
469 | 4 | Build-Depends: debhelper (>= 7.0.50~), | ||
470 | 5 | gdb, | ||
471 | 6 | cdbs | ||
472 | 7 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
473 | 8 | Standards-Version: 3.8.3 | ||
474 | 9 | Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/pkg-create-dbgsym/ubuntu | ||
475 | 10 | Build-Conflicts: pkgbinarymangler (<< 66~) | ||
476 | 11 | |||
477 | 12 | Package: pkg-create-dbgsym | ||
478 | 13 | Architecture: all | ||
479 | 14 | Depends: ${misc:Depends} | ||
480 | 15 | Description: automatically build debug symbol ddeb packages | ||
481 | 16 | pkg_create_dbgsym builds a debug symbol ddeb for a given package in a | ||
482 | 17 | built source tree and adds it to debian/files. | ||
483 | 18 | . | ||
484 | 19 | This package diverts and wraps debhelper's dh_strip. It automatically | ||
485 | 20 | calls pkg_create_dbgsym for all packages dh_strip is asked to act on. | ||
486 | 21 | As a result, by merely installing this package on buildds, all | ||
487 | 22 | packages will automatically get ddebs built. | ||
488 | 0 | 23 | ||
489 | === added file 'debian/copyright' | |||
490 | --- debian/copyright 1970-01-01 00:00:00 +0000 | |||
491 | +++ debian/copyright 2010-04-21 20:29:14 +0000 | |||
492 | @@ -0,0 +1,24 @@ | |||
493 | 1 | pkg-create-dbgsym is written and maintained by Martin Pitt | ||
494 | 2 | <martin.pitt@ubuntu.com>. | ||
495 | 3 | |||
496 | 4 | The original source can always be found at: | ||
497 | 5 | http://archive.ubuntu.com/ubuntu/pool/main/p/pkg-create-dbgsym/ | ||
498 | 6 | |||
499 | 7 | Copyright (C) 2006 Canonical Ltd. | ||
500 | 8 | |||
501 | 9 | This program is free software; you can redistribute it and/or modify | ||
502 | 10 | it under the terms of the GNU General Public License as published by | ||
503 | 11 | the Free Software Foundation; either version 2 of the License, or | ||
504 | 12 | (at your option) any later version. | ||
505 | 13 | |||
506 | 14 | This program is distributed in the hope that it will be useful, | ||
507 | 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
508 | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
509 | 17 | GNU General Public License for more details. | ||
510 | 18 | |||
511 | 19 | You should have received a copy of the GNU General Public License | ||
512 | 20 | along with this program; if not, write to the Free Software | ||
513 | 21 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
514 | 22 | |||
515 | 23 | On Debian systems, the complete text of the GNU General | ||
516 | 24 | Public License can be found in `/usr/share/common-licenses/GPL'. | ||
517 | 0 | 25 | ||
518 | === added file 'debian/pkg-create-dbgsym.install' | |||
519 | --- debian/pkg-create-dbgsym.install 1970-01-01 00:00:00 +0000 | |||
520 | +++ debian/pkg-create-dbgsym.install 2010-04-21 20:29:14 +0000 | |||
521 | @@ -0,0 +1,2 @@ | |||
522 | 1 | dh_strip usr/bin | ||
523 | 2 | pkg_create_dbgsym usr/bin | ||
524 | 0 | 3 | ||
525 | === added file 'debian/pkg-create-dbgsym.lintian-overrides' | |||
526 | --- debian/pkg-create-dbgsym.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
527 | +++ debian/pkg-create-dbgsym.lintian-overrides 2010-04-21 20:29:14 +0000 | |||
528 | @@ -0,0 +1,1 @@ | |||
529 | 1 | pkg-create-dbgsym: binary-without-manpage usr/bin/dh_strip | ||
530 | 0 | 2 | ||
531 | === added file 'debian/postrm' | |||
532 | --- debian/postrm 1970-01-01 00:00:00 +0000 | |||
533 | +++ debian/postrm 2010-04-21 20:29:14 +0000 | |||
534 | @@ -0,0 +1,19 @@ | |||
535 | 1 | #! /bin/sh -e | ||
536 | 2 | |||
537 | 3 | case "$1" in | ||
538 | 4 | remove|purge) | ||
539 | 5 | # Remove our diversion | ||
540 | 6 | dpkg-divert --remove --rename --package pkg-create-dbgsym --divert /usr/bin/dh_strip.pkg-create-dbgsym /usr/bin/dh_strip > /dev/null | ||
541 | 7 | ;; | ||
542 | 8 | |||
543 | 9 | upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | ||
544 | 10 | ;; | ||
545 | 11 | |||
546 | 12 | *) | ||
547 | 13 | echo "postrm called with unknown argument \`$1'" >&2 | ||
548 | 14 | exit 0 | ||
549 | 15 | esac | ||
550 | 16 | |||
551 | 17 | #DEBHELPER# | ||
552 | 18 | |||
553 | 19 | exit 0 | ||
554 | 0 | 20 | ||
555 | === added file 'debian/preinst' | |||
556 | --- debian/preinst 1970-01-01 00:00:00 +0000 | |||
557 | +++ debian/preinst 2010-04-21 20:29:14 +0000 | |||
558 | @@ -0,0 +1,19 @@ | |||
559 | 1 | #! /bin/sh -e | ||
560 | 2 | |||
561 | 3 | case "$1" in | ||
562 | 4 | install|upgrade) | ||
563 | 5 | dpkg-divert --add --rename --package pkg-create-dbgsym --divert /usr/bin/dh_strip.pkg-create-dbgsym /usr/bin/dh_strip > /dev/null | ||
564 | 6 | ;; | ||
565 | 7 | |||
566 | 8 | abort-upgrade) | ||
567 | 9 | ;; | ||
568 | 10 | |||
569 | 11 | *) | ||
570 | 12 | echo "postinst called with unknown argument \`$1'" >&2 | ||
571 | 13 | exit 0 | ||
572 | 14 | ;; | ||
573 | 15 | esac | ||
574 | 16 | |||
575 | 17 | #DEBHELPER# | ||
576 | 18 | |||
577 | 19 | exit 0 | ||
578 | 0 | 20 | ||
579 | === added file 'debian/rules' | |||
580 | --- debian/rules 1970-01-01 00:00:00 +0000 | |||
581 | +++ debian/rules 2010-04-21 20:29:14 +0000 | |||
582 | @@ -0,0 +1,15 @@ | |||
583 | 1 | #!/usr/bin/make -f | ||
584 | 2 | |||
585 | 3 | override_dh_auto_clean: | ||
586 | 4 | if [ -d testsuite.tmp ] || [ -d tests/testsuite.tmp ]; then \ | ||
587 | 5 | echo "testsuite.tmp or tests/testsuite.tmp still exists, please clean up and check test suite"; \ | ||
588 | 6 | exit 1; \ | ||
589 | 7 | fi | ||
590 | 8 | dh_auto_clean | ||
591 | 9 | |||
592 | 10 | override_dh_auto_test: | ||
593 | 11 | tests/run | ||
594 | 12 | |||
595 | 13 | %: | ||
596 | 14 | dh $* | ||
597 | 15 | |||
598 | 0 | 16 | ||
599 | === added file 'dh_strip' | |||
600 | --- dh_strip 1970-01-01 00:00:00 +0000 | |||
601 | +++ dh_strip 2010-04-21 20:29:14 +0000 | |||
602 | @@ -0,0 +1,205 @@ | |||
603 | 1 | #!/bin/sh -e | ||
604 | 2 | |||
605 | 3 | # wrapper around dh_strip that generates packages with external debug symbols | ||
606 | 4 | # | ||
607 | 5 | # Author: Martin Pitt <martin.pitt@ubuntu.com> | ||
608 | 6 | # (C) 2006 Canonical Ltd. | ||
609 | 7 | # | ||
610 | 8 | # | ||
611 | 9 | # This program is free software; you can redistribute it and/or modify | ||
612 | 10 | # it under the terms of the GNU General Public License as published by | ||
613 | 11 | # the Free Software Foundation; either version 2 of the License, or | ||
614 | 12 | # (at your option) any later version. | ||
615 | 13 | # | ||
616 | 14 | # This program is distributed in the hope that it will be useful, | ||
617 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
618 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
619 | 17 | # GNU General Public License for more details. | ||
620 | 18 | # | ||
621 | 19 | # You should have received a copy of the GNU General Public License | ||
622 | 20 | # along with this program; if not, write to the Free Software | ||
623 | 21 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
624 | 22 | |||
625 | 23 | DEBUG=1 | ||
626 | 24 | |||
627 | 25 | if [ -x /usr/bin/dh_strip.pkg-create-dbgsym ]; then | ||
628 | 26 | REAL_DHSTRIP=/usr/bin/dh_strip.pkg-create-dbgsym | ||
629 | 27 | elif [ "$0" != /usr/bin/dh_strip ]; then | ||
630 | 28 | # called as "dh_strip" somewhere before /usr/bin in the PATH, e.g. from the | ||
631 | 29 | # testsuite during package build | ||
632 | 30 | REAL_DHSTRIP=/usr/bin/dh_strip | ||
633 | 31 | if ! [ -x "$REAL_DHSTRIP" ]; then | ||
634 | 32 | echo "FATAL: Can't run /usr/bin/dh_strip; is debhelper installed?" >&2 | ||
635 | 33 | exit 1 | ||
636 | 34 | fi | ||
637 | 35 | else | ||
638 | 36 | echo "FATAL: Can't find the diverted original dh_strip and /usr/bin/dh_strip loops back to myself!" >&2 | ||
639 | 37 | exit 1 | ||
640 | 38 | fi | ||
641 | 39 | |||
642 | 40 | BUILDARCH=`dpkg-architecture -qDEB_BUILD_ARCH` | ||
643 | 41 | |||
644 | 42 | # print debug message | ||
645 | 43 | dbg() { | ||
646 | 44 | [ -n "$DEBUG" ] || return 0 | ||
647 | 45 | echo "dh_strip debug symbol extraction: $@" | ||
648 | 46 | } | ||
649 | 47 | |||
650 | 48 | # return 0 if $1 is in the string list $2, otherwise return 1 | ||
651 | 49 | in_list() | ||
652 | 50 | { | ||
653 | 51 | echo "$2" | egrep -q "(^|[[:space:]])$1(\$|[[:space:]])" | ||
654 | 52 | } | ||
655 | 53 | |||
656 | 54 | if [ "$PKG_IGNORE_CURRENTLY_BUILDING" = 1 ]; then | ||
657 | 55 | addtofiles="-a" | ||
658 | 56 | elif grep -qs '^Build-Debug-Symbols: yes$' /CurrentlyBuilding; then | ||
659 | 57 | addtofiles="-a" | ||
660 | 58 | else | ||
661 | 59 | # If sbuild hasn't explicitly told us to build debug symbols, we will | ||
662 | 60 | # avoid doing so if this is a rebuild or PPA build. | ||
663 | 61 | if grep -qs '^Suite: [a-z]*-autotest' /CurrentlyBuilding; then | ||
664 | 62 | NO_PKG_MANGLE=1 | ||
665 | 63 | dbg "disabling for archive rebuild test" | ||
666 | 64 | fi | ||
667 | 65 | if grep -qs '^Purpose: PPA' /CurrentlyBuilding; then | ||
668 | 66 | NO_PKG_MANGLE=1 | ||
669 | 67 | dbg "disabling for PPA build" | ||
670 | 68 | fi | ||
671 | 69 | |||
672 | 70 | # If /CurrentlyBuilding exists but Build-Debug-Symbols isn't set, | ||
673 | 71 | # we don't know if Soyuz can handle ddebs yet. We don't want to | ||
674 | 72 | # upload ddebs unless we really know that Soyuz can handle them, so | ||
675 | 73 | # we tell pkg_create_dbgsym to avoid adding them to the changes | ||
676 | 74 | # file. | ||
677 | 75 | [ -f /CurrentlyBuilding ] || addtofiles="-a" | ||
678 | 76 | fi | ||
679 | 77 | |||
680 | 78 | if [ -n "$NO_PKG_MANGLE" ]; then | ||
681 | 79 | dbg "not doing anything since NO_PKG_MANGLE is given" | ||
682 | 80 | exec $REAL_DHSTRIP "$@" | ||
683 | 81 | exit 0 | ||
684 | 82 | fi | ||
685 | 83 | |||
686 | 84 | # get set of all architecture dependent packages from debian/control | ||
687 | 85 | packages=$( | ||
688 | 86 | unset pkg | ||
689 | 87 | egrep '^(Package|Architecture):' debian/control | while read key val; do | ||
690 | 88 | if [ "$key" = Package: ]; then | ||
691 | 89 | [ -z "$pkg" ] || { | ||
692 | 90 | echo "Error: Package: and Architecture: do not alternate in debian/control" >&2 | ||
693 | 91 | exit 1 | ||
694 | 92 | } | ||
695 | 93 | pkg="$val" | ||
696 | 94 | fi | ||
697 | 95 | if [ "$key" = Architecture: ]; then | ||
698 | 96 | [ -n "$pkg" ] || { | ||
699 | 97 | echo "Error: Package: and Architecture: do not alternate in debian/control" >&2 | ||
700 | 98 | exit 1 | ||
701 | 99 | } | ||
702 | 100 | if [ "$val" = any ] || echo "$val" | grep -qE "([[:space:]]|^)$BUILDARCH([[:space:]]|\$)"; then | ||
703 | 101 | printf "$pkg " | ||
704 | 102 | fi | ||
705 | 103 | unset pkg | ||
706 | 104 | fi | ||
707 | 105 | done | ||
708 | 106 | ) | ||
709 | 107 | dbg "all non-arch-all packages for this build platform $BUILDARCH: $packages" | ||
710 | 108 | |||
711 | 109 | # parse command line to determine set of packages to act on | ||
712 | 110 | for p in $DH_OPTIONS $@; do | ||
713 | 111 | if [ -n "$next_arg_is_xopt" ]; then | ||
714 | 112 | xopts="$xopts -X$p" | ||
715 | 113 | unset next_arg_is_xopt | ||
716 | 114 | continue | ||
717 | 115 | fi | ||
718 | 116 | |||
719 | 117 | p=${p#-O} | ||
720 | 118 | case "$p" in | ||
721 | 119 | -i|--indep) | ||
722 | 120 | unset actpkgs | ||
723 | 121 | optsel=1 | ||
724 | 122 | ;; | ||
725 | 123 | -a|--arch|-s|--same-arch) | ||
726 | 124 | actpkgs="$packages" | ||
727 | 125 | optsel=1 | ||
728 | 126 | ;; | ||
729 | 127 | -p*|--package=*) | ||
730 | 128 | pkg=${p#--package=} | ||
731 | 129 | pkg=${pkg#-p} | ||
732 | 130 | if ! in_list "$pkg" "$actpkgs" && in_list "$pkg" "$packages"; then | ||
733 | 131 | actpkgs="$pkg $actpkgs" | ||
734 | 132 | fi | ||
735 | 133 | optsel=1 | ||
736 | 134 | ;; | ||
737 | 135 | -N*|--no-package=*) | ||
738 | 136 | pkg=${p#--no-package=} | ||
739 | 137 | pkg=${pkg#-N} | ||
740 | 138 | if ! in_list "$pkg" "$ignorepkgs"; then | ||
741 | 139 | ignorepkgs="$pkg $ignorepkgs" | ||
742 | 140 | fi | ||
743 | 141 | ;; | ||
744 | 142 | --dbg-package*) | ||
745 | 143 | dbg "not adding gnu debuglinks since --dbg-package is given" | ||
746 | 144 | nodebuglink=1 | ||
747 | 145 | ;; | ||
748 | 146 | -k|--keep-debug) | ||
749 | 147 | dbg "not adding gnu debuglinks since --keep-debug is given" | ||
750 | 148 | nodebuglink=1 | ||
751 | 149 | ;; | ||
752 | 150 | -P*|--tmpdir=*) | ||
753 | 151 | pkgdirarg=${p#--tmpdir=} | ||
754 | 152 | pkgdirarg=${pkgdirarg#-P} | ||
755 | 153 | dbg "-P/--tmpdir option: setting temporary package dir to $pkgdirarg" | ||
756 | 154 | ;; | ||
757 | 155 | -X) | ||
758 | 156 | next_arg_is_xopt=1 | ||
759 | 157 | ;; | ||
760 | 158 | -X*) | ||
761 | 159 | xopts="$xopts $p" | ||
762 | 160 | ;; | ||
763 | 161 | esac | ||
764 | 162 | done | ||
765 | 163 | |||
766 | 164 | [ -n "$optsel" ] || actpkgs="$packages" | ||
767 | 165 | |||
768 | 166 | dbg "packages to act on: $actpkgs" | ||
769 | 167 | dbg "ignored packages: $ignorepkgs" | ||
770 | 168 | |||
771 | 169 | # check for debhelper compat level 1 | ||
772 | 170 | dhcompat1=1 | ||
773 | 171 | if [ -e debian/compat ]; then | ||
774 | 172 | if [ "`cat debian/compat`" != 1 ]; then | ||
775 | 173 | unset dhcompat1 | ||
776 | 174 | fi | ||
777 | 175 | fi | ||
778 | 176 | if grep -q '^[[:space:]]*\(export[[:space:]]*\)\?DH_COMPAT[[:space:]]*:\?=[[:space:]]*[2-9]\>' debian/rules; then | ||
779 | 177 | unset dhcompat1 | ||
780 | 178 | elif grep -q '^[[:space:]]*\(export[[:space:]]*\)\?DH_COMPAT[[:space:]]*:\?=[[:space:]]*1\>' debian/rules; then | ||
781 | 179 | dhcompat1=1 | ||
782 | 180 | fi | ||
783 | 181 | |||
784 | 182 | if [ -n "$dhcompat1" ]; then | ||
785 | 183 | first_control_pkg="`grep -m 1 ^Package debian/control | cut -f2- -d\ `" | ||
786 | 184 | dbg "using obsolete debhelper compat mode 1" | ||
787 | 185 | fi | ||
788 | 186 | |||
789 | 187 | # process all packages | ||
790 | 188 | for p in $actpkgs; do | ||
791 | 189 | if in_list "$p" "$ignorepkgs" || | ||
792 | 190 | echo $p | grep -q -- '-dbg$' ; then | ||
793 | 191 | continue | ||
794 | 192 | fi | ||
795 | 193 | |||
796 | 194 | if [ -n "$pkgdirarg" ]; then | ||
797 | 195 | pkgdir="$pkgdirarg" | ||
798 | 196 | elif [ -n "$dhcompat1" -a $p = "$first_control_pkg" ]; then | ||
799 | 197 | pkgdir=debian/tmp | ||
800 | 198 | else | ||
801 | 199 | pkgdir=debian/$p | ||
802 | 200 | fi | ||
803 | 201 | |||
804 | 202 | pkg_create_dbgsym $addtofiles $xopts $p $pkgdir "$nodebuglink" | ||
805 | 203 | done | ||
806 | 204 | |||
807 | 205 | exec $REAL_DHSTRIP "$@" | ||
808 | 0 | 206 | ||
809 | === renamed file 'dh_strip' => 'dh_strip.moved' | |||
810 | === added file 'pkg_create_dbgsym' | |||
811 | --- pkg_create_dbgsym 1970-01-01 00:00:00 +0000 | |||
812 | +++ pkg_create_dbgsym 2010-04-21 20:29:14 +0000 | |||
813 | @@ -0,0 +1,149 @@ | |||
814 | 1 | #!/bin/sh -e | ||
815 | 2 | |||
816 | 3 | # generate debug symbol package for a given binary package within a built | ||
817 | 4 | # debian source tree. | ||
818 | 5 | # | ||
819 | 6 | # Author: Martin Pitt <martin.pitt@ubuntu.com> | ||
820 | 7 | # (C) 2006 Canonical Ltd. | ||
821 | 8 | # | ||
822 | 9 | # | ||
823 | 10 | # This program is free software; you can redistribute it and/or modify | ||
824 | 11 | # it under the terms of the GNU General Public License as published by | ||
825 | 12 | # the Free Software Foundation; either version 2 of the License, or | ||
826 | 13 | # (at your option) any later version. | ||
827 | 14 | # | ||
828 | 15 | # This program is distributed in the hope that it will be useful, | ||
829 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
830 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
831 | 18 | # GNU General Public License for more details. | ||
832 | 19 | # | ||
833 | 20 | # You should have received a copy of the GNU General Public License | ||
834 | 21 | # along with this program; if not, write to the Free Software | ||
835 | 22 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
836 | 23 | |||
837 | 24 | # evaluate options | ||
838 | 25 | blacklist="" | ||
839 | 26 | add_to_files=0 | ||
840 | 27 | |||
841 | 28 | for p; do | ||
842 | 29 | case $p in | ||
843 | 30 | -X*) | ||
844 | 31 | blacklist=`/bin/echo -e "${p#-X}\n$blacklist"` | ||
845 | 32 | shift | ||
846 | 33 | ;; | ||
847 | 34 | -a) | ||
848 | 35 | add_to_files=1 | ||
849 | 36 | shift | ||
850 | 37 | ;; | ||
851 | 38 | *) | ||
852 | 39 | break | ||
853 | 40 | ;; | ||
854 | 41 | esac | ||
855 | 42 | done | ||
856 | 43 | |||
857 | 44 | pkgname="$1" | ||
858 | 45 | pkgpath="$2" | ||
859 | 46 | nodebuglink="$3" | ||
860 | 47 | |||
861 | 48 | [ -n "$pkgpath" ] || pkgpath="debian/$pkgname" | ||
862 | 49 | |||
863 | 50 | [ -d "$pkgpath" ] || { | ||
864 | 51 | if [ -z "$pkgname" ]; then | ||
865 | 52 | echo "Usage: $0 [-Xitem] [-n] <binary package name> [<package path>] [nodebuglink]" | ||
866 | 53 | else | ||
867 | 54 | echo "Directory $pkgpath does not exist, aborting" >&2 | ||
868 | 55 | fi | ||
869 | 56 | exit 1 | ||
870 | 57 | } | ||
871 | 58 | |||
872 | 59 | p=`readlink -f "$pkgpath"` # original package path | ||
873 | 60 | dp="debian/${pkgname}-dbgsym" # debug package path | ||
874 | 61 | dp=`readlink -f "$dp"` # debug package path | ||
875 | 62 | |||
876 | 63 | # find all ELF files and extract their debug symbols; also add debug links | ||
877 | 64 | # to original files | ||
878 | 65 | origdir=`pwd` | ||
879 | 66 | cd $p | ||
880 | 67 | find -type f | while read f; do | ||
881 | 68 | # ignore static libraries | ||
882 | 69 | if echo "$f" | grep -q '\.[ao]$'; then continue; fi | ||
883 | 70 | # ignore non-ELF files | ||
884 | 71 | readelf -h "$f" > /dev/null 2>&1 || continue | ||
885 | 72 | # check blacklist | ||
886 | 73 | if [ -n "$blacklist" ]; then | ||
887 | 74 | if echo "$f" | fgrep -q "$blacklist"; then continue; fi | ||
888 | 75 | fi | ||
889 | 76 | # ignore already stripped files | ||
890 | 77 | file "$f" | grep -q "not stripped" || continue | ||
891 | 78 | |||
892 | 79 | mkdir -p $dp/usr/lib/debug/`dirname "$f"` | ||
893 | 80 | objcopy --only-keep-debug "$f" "$dp/usr/lib/debug/$f" || { | ||
894 | 81 | echo "objcopy --only-keep-debug failed on `readlink -f $f`" >&2 | ||
895 | 82 | exit 1 | ||
896 | 83 | } | ||
897 | 84 | [ -n "$nodebuglink" ] || objcopy -R .gnu_debuglink --add-gnu-debuglink="$dp/usr/lib/debug/$f" "$f" || { | ||
898 | 85 | echo "objcopy --add-gnu-debuglink failed on `readlink -f $f`" >&2 | ||
899 | 86 | exit 1 | ||
900 | 87 | } | ||
901 | 88 | done | ||
902 | 89 | cd $origdir | ||
903 | 90 | |||
904 | 91 | if [ ! -d "$dp" ] || [ -z "`find $dp -type f`" ]; then | ||
905 | 92 | rm -rf $dp | ||
906 | 93 | exit 0 | ||
907 | 94 | fi | ||
908 | 95 | |||
909 | 96 | mkdir -p $dp/DEBIAN | ||
910 | 97 | |||
911 | 98 | # determine set of -dbg packages, which we need to conflict to | ||
912 | 99 | conflicts= | ||
913 | 100 | for p in `grep '^Package:.*-dbg' debian/control | cut -f 2 -d\ `; do | ||
914 | 101 | # do not conflict to python dbg packages | ||
915 | 102 | [ "$p" = "${p#python-}" ] || continue | ||
916 | 103 | if [ -z "$conflicts" ]; then | ||
917 | 104 | conflicts="$p" | ||
918 | 105 | else | ||
919 | 106 | conflicts="$conflicts, $p" | ||
920 | 107 | fi | ||
921 | 108 | done | ||
922 | 109 | [ -z "$conflicts" ] || conflicts="\nConflicts: $conflicts" | ||
923 | 110 | |||
924 | 111 | # generate a control file for current package (since it is usually not yet | ||
925 | 112 | # existing) and adapt it to be suitable for the dbgsym package | ||
926 | 113 | perl -p000 -e 's/^(?:Pre-Depends|Depends|Recommends|Suggests|Conflicts|Provides|Replaces|Breaks|Essential):.*?\n(?![ \t])//msg' debian/control | | ||
927 | 114 | dpkg-gencontrol -c- -fdhstrip-dummy-debian-files -p$pkgname -is -ip -Pdebian/$pkgname-dbgsym -O | | ||
928 | 115 | sed "s/^Priority:.*$/Priority: extra/; | ||
929 | 116 | s/^Version: \(.*\)$/&\nDepends: $pkgname (= \1)$conflicts/; | ||
930 | 117 | s/^Package:.*$/&-dbgsym/; | ||
931 | 118 | s/^Description:.*$/Description: debug symbols for package $pkgname/" \ | ||
932 | 119 | > $dp/DEBIAN/control | ||
933 | 120 | rm -f dhstrip-dummy-debian-files | ||
934 | 121 | |||
935 | 122 | # binaries named the same as the source will lack a Source field. | ||
936 | 123 | # since we are renaming binaries, we might need to add one. | ||
937 | 124 | if [ -z "`grep ^Source: $dp/DEBIAN/control`" ]; then | ||
938 | 125 | sed -i "s/^Package:.*$/&\nSource: $pkgname/" $dp/DEBIAN/control | ||
939 | 126 | fi | ||
940 | 127 | |||
941 | 128 | # extract package name, version, architecture | ||
942 | 129 | ddebname=${pkgname}-dbgsym | ||
943 | 130 | ddebversion=`grep '^Version:' $dp/DEBIAN/control | cut -f2- -d\ ` | ||
944 | 131 | ddebversion=${ddebversion#*:} # strip off epoch | ||
945 | 132 | ddebarch=`grep '^Architecture:' $dp/DEBIAN/control | cut -f2- -d\ ` | ||
946 | 133 | ddebsection=`grep '^Section:' $dp/DEBIAN/control | cut -f2- -d\ ` | ||
947 | 134 | ddebpriority=`grep '^Priority:' $dp/DEBIAN/control | cut -f2- -d\ ` | ||
948 | 135 | |||
949 | 136 | [ -n "$ddebsection" -a -n "$ddebpriority" ] || { | ||
950 | 137 | echo "Error: parsed ddeb section or priority is empty" >&2 | ||
951 | 138 | exit 1 | ||
952 | 139 | } | ||
953 | 140 | ddeb="${ddebname}_${ddebversion}_${ddebarch}.ddeb" | ||
954 | 141 | |||
955 | 142 | # build .ddeb and add it to debian/files | ||
956 | 143 | NO_PKG_MANGLE=1 dpkg-deb --build $dp ../$ddeb | ||
957 | 144 | if [ "$add_to_files" = "1" ]; then | ||
958 | 145 | dpkg-distaddfile "$ddeb" "$ddebsection" "$ddebpriority" | ||
959 | 146 | fi | ||
960 | 147 | |||
961 | 148 | # clean up, since this package does not appear in debian/control | ||
962 | 149 | rm -rf $dp | ||
963 | 0 | 150 | ||
964 | === renamed file 'pkg_create_dbgsym' => 'pkg_create_dbgsym.moved' | |||
965 | === added directory 'tests' | |||
966 | === renamed directory 'tests' => 'tests.moved' | |||
967 | === added directory 'tests/cdbstest' | |||
968 | === added file 'tests/cdbstest/Makefile' | |||
969 | --- tests/cdbstest/Makefile 1970-01-01 00:00:00 +0000 | |||
970 | +++ tests/cdbstest/Makefile 2010-04-21 20:29:14 +0000 | |||
971 | @@ -0,0 +1,18 @@ | |||
972 | 1 | CFLAGS= -g -Wall -W -O0 | ||
973 | 2 | |||
974 | 3 | LIBNAME=crashrep | ||
975 | 4 | |||
976 | 5 | all: crash crash2 | ||
977 | 6 | |||
978 | 7 | crash: crash.o | ||
979 | 8 | $(CC) $^ -o $@ | ||
980 | 9 | |||
981 | 10 | crash2: crash2.o | ||
982 | 11 | $(CC) $^ -o $@ | ||
983 | 12 | |||
984 | 13 | clean: | ||
985 | 14 | rm -f *.o crash crash2 | ||
986 | 15 | |||
987 | 16 | install: all | ||
988 | 17 | install -d $(DESTDIR)/usr/bin | ||
989 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
990 | 0 | 19 | ||
991 | === added file 'tests/cdbstest/crash.c' | |||
992 | --- tests/cdbstest/crash.c 1970-01-01 00:00:00 +0000 | |||
993 | +++ tests/cdbstest/crash.c 2010-04-21 20:29:14 +0000 | |||
994 | @@ -0,0 +1,34 @@ | |||
995 | 1 | /* crash.c - demo program for libcrashreport | ||
996 | 2 | |||
997 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
998 | 4 | |||
999 | 5 | This file is public domain. | ||
1000 | 6 | */ | ||
1001 | 7 | |||
1002 | 8 | #include <stdio.h> | ||
1003 | 9 | |||
1004 | 10 | void h(char* p) { | ||
1005 | 11 | p[1] = 'a'; | ||
1006 | 12 | } | ||
1007 | 13 | |||
1008 | 14 | int g( int x, int y ) | ||
1009 | 15 | { | ||
1010 | 16 | char* s = NULL; | ||
1011 | 17 | h(s); | ||
1012 | 18 | return x+y; | ||
1013 | 19 | } | ||
1014 | 20 | |||
1015 | 21 | int f( int x ) | ||
1016 | 22 | { | ||
1017 | 23 | return g( x, 42 ); | ||
1018 | 24 | } | ||
1019 | 25 | |||
1020 | 26 | int | ||
1021 | 27 | main() | ||
1022 | 28 | { | ||
1023 | 29 | int x; | ||
1024 | 30 | |||
1025 | 31 | x = f(1); | ||
1026 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
1027 | 33 | return 0; | ||
1028 | 34 | } | ||
1029 | 0 | 35 | ||
1030 | === added file 'tests/cdbstest/crash2.c' | |||
1031 | --- tests/cdbstest/crash2.c 1970-01-01 00:00:00 +0000 | |||
1032 | +++ tests/cdbstest/crash2.c 2010-04-21 20:29:14 +0000 | |||
1033 | @@ -0,0 +1,39 @@ | |||
1034 | 1 | /* crash.c - demo program for libcrashreport | ||
1035 | 2 | |||
1036 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1037 | 4 | |||
1038 | 5 | This file is public domain. | ||
1039 | 6 | */ | ||
1040 | 7 | |||
1041 | 8 | #include <stdio.h> | ||
1042 | 9 | #include <math.h> | ||
1043 | 10 | #include <signal.h> | ||
1044 | 11 | |||
1045 | 12 | double h() | ||
1046 | 13 | { | ||
1047 | 14 | double a = 1./0; | ||
1048 | 15 | if (isinf(a)) | ||
1049 | 16 | raise(SIGFPE); | ||
1050 | 17 | return a; | ||
1051 | 18 | } | ||
1052 | 19 | |||
1053 | 20 | int g( int x, int y ) | ||
1054 | 21 | { | ||
1055 | 22 | |||
1056 | 23 | return x+y+(int) h(); | ||
1057 | 24 | } | ||
1058 | 25 | |||
1059 | 26 | int f( int x ) | ||
1060 | 27 | { | ||
1061 | 28 | return g( x, 42 ); | ||
1062 | 29 | } | ||
1063 | 30 | |||
1064 | 31 | int | ||
1065 | 32 | main() | ||
1066 | 33 | { | ||
1067 | 34 | int x; | ||
1068 | 35 | |||
1069 | 36 | x = f(1); | ||
1070 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
1071 | 38 | return 0; | ||
1072 | 39 | } | ||
1073 | 0 | 40 | ||
1074 | === added directory 'tests/cdbstest/debian' | |||
1075 | === added file 'tests/cdbstest/debian/cdbstest1.install' | |||
1076 | --- tests/cdbstest/debian/cdbstest1.install 1970-01-01 00:00:00 +0000 | |||
1077 | +++ tests/cdbstest/debian/cdbstest1.install 2010-04-21 20:29:14 +0000 | |||
1078 | @@ -0,0 +1,1 @@ | |||
1079 | 1 | /usr/bin/crash | ||
1080 | 0 | 2 | ||
1081 | === added file 'tests/cdbstest/debian/cdbstest2.install' | |||
1082 | --- tests/cdbstest/debian/cdbstest2.install 1970-01-01 00:00:00 +0000 | |||
1083 | +++ tests/cdbstest/debian/cdbstest2.install 2010-04-21 20:29:14 +0000 | |||
1084 | @@ -0,0 +1,1 @@ | |||
1085 | 1 | /usr/bin/crash2 | ||
1086 | 0 | 2 | ||
1087 | === added file 'tests/cdbstest/debian/changelog' | |||
1088 | --- tests/cdbstest/debian/changelog 1970-01-01 00:00:00 +0000 | |||
1089 | +++ tests/cdbstest/debian/changelog 2010-04-21 20:29:14 +0000 | |||
1090 | @@ -0,0 +1,5 @@ | |||
1091 | 1 | cdbstest (2.3-1) foo; urgency=low | ||
1092 | 2 | |||
1093 | 3 | * Initial release. | ||
1094 | 4 | |||
1095 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
1096 | 0 | 6 | ||
1097 | === added file 'tests/cdbstest/debian/compat' | |||
1098 | --- tests/cdbstest/debian/compat 1970-01-01 00:00:00 +0000 | |||
1099 | +++ tests/cdbstest/debian/compat 2010-04-21 20:29:14 +0000 | |||
1100 | @@ -0,0 +1,1 @@ | |||
1101 | 1 | 5 | ||
1102 | 0 | 2 | ||
1103 | === added file 'tests/cdbstest/debian/control' | |||
1104 | --- tests/cdbstest/debian/control 1970-01-01 00:00:00 +0000 | |||
1105 | +++ tests/cdbstest/debian/control 2010-04-21 20:29:14 +0000 | |||
1106 | @@ -0,0 +1,31 @@ | |||
1107 | 1 | Source: cdbstest | ||
1108 | 2 | Section: utils | ||
1109 | 3 | Priority: extra | ||
1110 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
1111 | 5 | Build-Depends: cdbs, debhelper (>= 4.1.0) | ||
1112 | 6 | Standards-Version: 3.7.2 | ||
1113 | 7 | |||
1114 | 8 | Package: cdbstest1 | ||
1115 | 9 | Architecture: any | ||
1116 | 10 | Depends: ${shlibs:Depends} | ||
1117 | 11 | Description: crash with a SIGSEGV | ||
1118 | 12 | Test package | ||
1119 | 13 | |||
1120 | 14 | Package: cdbstest2 | ||
1121 | 15 | Architecture: any | ||
1122 | 16 | Depends: ${shlibs:Depends} | ||
1123 | 17 | Description: crash with a SIGFPE | ||
1124 | 18 | Test package | ||
1125 | 19 | |||
1126 | 20 | Package: cdbstestempty | ||
1127 | 21 | Architecture: any | ||
1128 | 22 | Depends: ${shlibs:Depends} | ||
1129 | 23 | Description: dummy arch-any package | ||
1130 | 24 | Test package | ||
1131 | 25 | |||
1132 | 26 | Package: cdbstestall | ||
1133 | 27 | Architecture: all | ||
1134 | 28 | Depends: ${shlibs:Depends} | ||
1135 | 29 | Description: dummy arch-all package | ||
1136 | 30 | Test package | ||
1137 | 31 | |||
1138 | 0 | 32 | ||
1139 | === added file 'tests/cdbstest/debian/copyright' | |||
1140 | --- tests/cdbstest/debian/copyright 1970-01-01 00:00:00 +0000 | |||
1141 | +++ tests/cdbstest/debian/copyright 2010-04-21 20:29:14 +0000 | |||
1142 | @@ -0,0 +1,1 @@ | |||
1143 | 1 | foo | ||
1144 | 0 | 2 | ||
1145 | === added file 'tests/cdbstest/debian/rules' | |||
1146 | --- tests/cdbstest/debian/rules 1970-01-01 00:00:00 +0000 | |||
1147 | +++ tests/cdbstest/debian/rules 2010-04-21 20:29:14 +0000 | |||
1148 | @@ -0,0 +1,10 @@ | |||
1149 | 1 | #!/usr/bin/make -f | ||
1150 | 2 | include /usr/share/cdbs/1/rules/debhelper.mk | ||
1151 | 3 | include /usr/share/cdbs/1/class/makefile.mk | ||
1152 | 4 | |||
1153 | 5 | CFLAGS := -O0 -g | ||
1154 | 6 | |||
1155 | 7 | DEB_DH_INSTALL_SOURCEDIR=debian/tmp | ||
1156 | 8 | DEB_MAKE_BUILD_TARGET=all | ||
1157 | 9 | DEB_MAKE_CLEAN_TARGET=clean | ||
1158 | 10 | DEB_MAKE_INSTALL_TARGET=install DESTDIR=$(DEB_DESTDIR) | ||
1159 | 0 | 11 | ||
1160 | === added directory 'tests/dhtest' | |||
1161 | === added directory 'tests/dhtest.archspecific' | |||
1162 | === added file 'tests/dhtest.archspecific/Makefile' | |||
1163 | --- tests/dhtest.archspecific/Makefile 1970-01-01 00:00:00 +0000 | |||
1164 | +++ tests/dhtest.archspecific/Makefile 2010-04-21 20:29:14 +0000 | |||
1165 | @@ -0,0 +1,18 @@ | |||
1166 | 1 | CFLAGS= -g -Wall -W -O0 | ||
1167 | 2 | |||
1168 | 3 | LIBNAME=crashrep | ||
1169 | 4 | |||
1170 | 5 | all: crash crash2 | ||
1171 | 6 | |||
1172 | 7 | crash: crash.o | ||
1173 | 8 | $(CC) $^ -o $@ | ||
1174 | 9 | |||
1175 | 10 | crash2: crash2.o | ||
1176 | 11 | $(CC) $^ -o $@ | ||
1177 | 12 | |||
1178 | 13 | clean: | ||
1179 | 14 | rm -f *.o crash crash2 | ||
1180 | 15 | |||
1181 | 16 | install: all | ||
1182 | 17 | install -d $(DESTDIR)/usr/bin | ||
1183 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
1184 | 0 | 19 | ||
1185 | === added file 'tests/dhtest.archspecific/crash.c' | |||
1186 | --- tests/dhtest.archspecific/crash.c 1970-01-01 00:00:00 +0000 | |||
1187 | +++ tests/dhtest.archspecific/crash.c 2010-04-21 20:29:14 +0000 | |||
1188 | @@ -0,0 +1,34 @@ | |||
1189 | 1 | /* crash.c - demo program for libcrashreport | ||
1190 | 2 | |||
1191 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1192 | 4 | |||
1193 | 5 | This file is public domain. | ||
1194 | 6 | */ | ||
1195 | 7 | |||
1196 | 8 | #include <stdio.h> | ||
1197 | 9 | |||
1198 | 10 | void h(char* p) { | ||
1199 | 11 | p[1] = 'a'; | ||
1200 | 12 | } | ||
1201 | 13 | |||
1202 | 14 | int g( int x, int y ) | ||
1203 | 15 | { | ||
1204 | 16 | char* s = NULL; | ||
1205 | 17 | h(s); | ||
1206 | 18 | return x+y; | ||
1207 | 19 | } | ||
1208 | 20 | |||
1209 | 21 | int f( int x ) | ||
1210 | 22 | { | ||
1211 | 23 | return g( x, 42 ); | ||
1212 | 24 | } | ||
1213 | 25 | |||
1214 | 26 | int | ||
1215 | 27 | main() | ||
1216 | 28 | { | ||
1217 | 29 | int x; | ||
1218 | 30 | |||
1219 | 31 | x = f(1); | ||
1220 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
1221 | 33 | return 0; | ||
1222 | 34 | } | ||
1223 | 0 | 35 | ||
1224 | === added file 'tests/dhtest.archspecific/crash2.c' | |||
1225 | --- tests/dhtest.archspecific/crash2.c 1970-01-01 00:00:00 +0000 | |||
1226 | +++ tests/dhtest.archspecific/crash2.c 2010-04-21 20:29:14 +0000 | |||
1227 | @@ -0,0 +1,39 @@ | |||
1228 | 1 | /* crash.c - demo program for libcrashreport | ||
1229 | 2 | |||
1230 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1231 | 4 | |||
1232 | 5 | This file is public domain. | ||
1233 | 6 | */ | ||
1234 | 7 | |||
1235 | 8 | #include <stdio.h> | ||
1236 | 9 | #include <math.h> | ||
1237 | 10 | #include <signal.h> | ||
1238 | 11 | |||
1239 | 12 | double h() | ||
1240 | 13 | { | ||
1241 | 14 | double a = 1./0; | ||
1242 | 15 | if (isinf(a)) | ||
1243 | 16 | raise(SIGFPE); | ||
1244 | 17 | return a; | ||
1245 | 18 | } | ||
1246 | 19 | |||
1247 | 20 | int g( int x, int y ) | ||
1248 | 21 | { | ||
1249 | 22 | |||
1250 | 23 | return x+y+(int) h(); | ||
1251 | 24 | } | ||
1252 | 25 | |||
1253 | 26 | int f( int x ) | ||
1254 | 27 | { | ||
1255 | 28 | return g( x, 42 ); | ||
1256 | 29 | } | ||
1257 | 30 | |||
1258 | 31 | int | ||
1259 | 32 | main() | ||
1260 | 33 | { | ||
1261 | 34 | int x; | ||
1262 | 35 | |||
1263 | 36 | x = f(1); | ||
1264 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
1265 | 38 | return 0; | ||
1266 | 39 | } | ||
1267 | 0 | 40 | ||
1268 | === added directory 'tests/dhtest.archspecific/debian' | |||
1269 | === added file 'tests/dhtest.archspecific/debian/changelog' | |||
1270 | --- tests/dhtest.archspecific/debian/changelog 1970-01-01 00:00:00 +0000 | |||
1271 | +++ tests/dhtest.archspecific/debian/changelog 2010-04-21 20:29:14 +0000 | |||
1272 | @@ -0,0 +1,5 @@ | |||
1273 | 1 | dhtest.archspecific (1) foo; urgency=low | ||
1274 | 2 | |||
1275 | 3 | * Initial release. | ||
1276 | 4 | |||
1277 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 15 Aug 2006 17:14:42 +0200 | ||
1278 | 0 | 6 | ||
1279 | === added file 'tests/dhtest.archspecific/debian/compat' | |||
1280 | --- tests/dhtest.archspecific/debian/compat 1970-01-01 00:00:00 +0000 | |||
1281 | +++ tests/dhtest.archspecific/debian/compat 2010-04-21 20:29:14 +0000 | |||
1282 | @@ -0,0 +1,1 @@ | |||
1283 | 1 | 5 | ||
1284 | 0 | 2 | ||
1285 | === added file 'tests/dhtest.archspecific/debian/control' | |||
1286 | --- tests/dhtest.archspecific/debian/control 1970-01-01 00:00:00 +0000 | |||
1287 | +++ tests/dhtest.archspecific/debian/control 2010-04-21 20:29:14 +0000 | |||
1288 | @@ -0,0 +1,31 @@ | |||
1289 | 1 | Source: dhtest.archspecific | ||
1290 | 2 | Section: utils | ||
1291 | 3 | Priority: extra | ||
1292 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
1293 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
1294 | 6 | Standards-Version: 3.7.2 | ||
1295 | 7 | |||
1296 | 8 | Package: dhtest-i386 | ||
1297 | 9 | Architecture: i386 | ||
1298 | 10 | Depends: ${shlibs:Depends} | ||
1299 | 11 | Description: crash with a SIGSEGV | ||
1300 | 12 | Test package | ||
1301 | 13 | |||
1302 | 14 | Package: dhtest64 | ||
1303 | 15 | Architecture: amd64 sparc64 | ||
1304 | 16 | Depends: ${shlibs:Depends} | ||
1305 | 17 | Description: crash with a SIGFPE | ||
1306 | 18 | Test package | ||
1307 | 19 | |||
1308 | 20 | Package: dhtest-ppc | ||
1309 | 21 | Architecture: powerpc | ||
1310 | 22 | Depends: ${shlibs:Depends} | ||
1311 | 23 | Description: crash with a SIGSEGV | ||
1312 | 24 | Test package | ||
1313 | 25 | |||
1314 | 26 | Package: dhtest-bsd | ||
1315 | 27 | Architecture: kfreebsd-i386 kfreebsd-amd64 | ||
1316 | 28 | Depends: ${shlibs:Depends} | ||
1317 | 29 | Description: crash with a SIGSEGV | ||
1318 | 30 | Test package | ||
1319 | 31 | |||
1320 | 0 | 32 | ||
1321 | === added file 'tests/dhtest.archspecific/debian/copyright' | |||
1322 | --- tests/dhtest.archspecific/debian/copyright 1970-01-01 00:00:00 +0000 | |||
1323 | +++ tests/dhtest.archspecific/debian/copyright 2010-04-21 20:29:14 +0000 | |||
1324 | @@ -0,0 +1,1 @@ | |||
1325 | 1 | foo | ||
1326 | 0 | 2 | ||
1327 | === added file 'tests/dhtest.archspecific/debian/dhtest-i386.install' | |||
1328 | --- tests/dhtest.archspecific/debian/dhtest-i386.install 1970-01-01 00:00:00 +0000 | |||
1329 | +++ tests/dhtest.archspecific/debian/dhtest-i386.install 2010-04-21 20:29:14 +0000 | |||
1330 | @@ -0,0 +1,1 @@ | |||
1331 | 1 | /usr/bin/crash | ||
1332 | 0 | 2 | ||
1333 | === added file 'tests/dhtest.archspecific/debian/dhtest-ppc.install' | |||
1334 | --- tests/dhtest.archspecific/debian/dhtest-ppc.install 1970-01-01 00:00:00 +0000 | |||
1335 | +++ tests/dhtest.archspecific/debian/dhtest-ppc.install 2010-04-21 20:29:14 +0000 | |||
1336 | @@ -0,0 +1,1 @@ | |||
1337 | 1 | /usr/bin/crash | ||
1338 | 0 | 2 | ||
1339 | === added file 'tests/dhtest.archspecific/debian/dhtest64.install' | |||
1340 | --- tests/dhtest.archspecific/debian/dhtest64.install 1970-01-01 00:00:00 +0000 | |||
1341 | +++ tests/dhtest.archspecific/debian/dhtest64.install 2010-04-21 20:29:14 +0000 | |||
1342 | @@ -0,0 +1,1 @@ | |||
1343 | 1 | /usr/bin/crash2 | ||
1344 | 0 | 2 | ||
1345 | === added file 'tests/dhtest.archspecific/debian/rules' | |||
1346 | --- tests/dhtest.archspecific/debian/rules 1970-01-01 00:00:00 +0000 | |||
1347 | +++ tests/dhtest.archspecific/debian/rules 2010-04-21 20:29:14 +0000 | |||
1348 | @@ -0,0 +1,76 @@ | |||
1349 | 1 | #!/usr/bin/make -f | ||
1350 | 2 | |||
1351 | 3 | # Uncomment this to turn on verbose mode. | ||
1352 | 4 | #export DH_VERBOSE=1 | ||
1353 | 5 | |||
1354 | 6 | # This has to be exported to make some magic below work. | ||
1355 | 7 | export DH_OPTIONS | ||
1356 | 8 | |||
1357 | 9 | CFLAGS = -Wall -g | ||
1358 | 10 | |||
1359 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
1360 | 12 | CFLAGS += -O0 | ||
1361 | 13 | else | ||
1362 | 14 | CFLAGS += -O2 | ||
1363 | 15 | endif | ||
1364 | 16 | |||
1365 | 17 | #Architecture | ||
1366 | 18 | build: build-arch build-indep | ||
1367 | 19 | |||
1368 | 20 | build-arch: build-arch-stamp | ||
1369 | 21 | build-arch-stamp: | ||
1370 | 22 | $(MAKE) | ||
1371 | 23 | touch build-arch-stamp | ||
1372 | 24 | |||
1373 | 25 | build-indep: | ||
1374 | 26 | |||
1375 | 27 | clean: | ||
1376 | 28 | dh_testdir | ||
1377 | 29 | dh_testroot | ||
1378 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
1379 | 31 | -$(MAKE) clean | ||
1380 | 32 | dh_clean | ||
1381 | 33 | |||
1382 | 34 | install: install-indep install-arch | ||
1383 | 35 | install-indep: | ||
1384 | 36 | dh_testdir | ||
1385 | 37 | dh_testroot | ||
1386 | 38 | dh_clean -k -i | ||
1387 | 39 | dh_installdirs -i | ||
1388 | 40 | dh_install -i --sourcedir=debian/tmp | ||
1389 | 41 | |||
1390 | 42 | install-arch: | ||
1391 | 43 | dh_testdir | ||
1392 | 44 | dh_testroot | ||
1393 | 45 | dh_clean -k -s | ||
1394 | 46 | dh_installdirs -s | ||
1395 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
1396 | 48 | dh_install -s --sourcedir=debian/tmp | ||
1397 | 49 | |||
1398 | 50 | # Must not depend on anything. This is to be called by | ||
1399 | 51 | # binary-arch/binary-indep | ||
1400 | 52 | # in another 'make' thread. | ||
1401 | 53 | binary-common: | ||
1402 | 54 | dh_testdir | ||
1403 | 55 | dh_testroot | ||
1404 | 56 | dh_installchangelogs | ||
1405 | 57 | dh_installdocs | ||
1406 | 58 | dh_strip | ||
1407 | 59 | dh_compress | ||
1408 | 60 | dh_fixperms | ||
1409 | 61 | dh_installdeb | ||
1410 | 62 | dh_shlibdeps | ||
1411 | 63 | dh_gencontrol | ||
1412 | 64 | dh_md5sums | ||
1413 | 65 | dh_builddeb | ||
1414 | 66 | |||
1415 | 67 | # Build architecture independant packages using the common target. | ||
1416 | 68 | binary-indep: build-indep install-indep | ||
1417 | 69 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
1418 | 70 | |||
1419 | 71 | # Build architecture dependant packages using the common target. | ||
1420 | 72 | binary-arch: build-arch install-arch | ||
1421 | 73 | $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common | ||
1422 | 74 | |||
1423 | 75 | binary: binary-arch binary-indep | ||
1424 | 76 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
1425 | 0 | 77 | ||
1426 | === added directory 'tests/dhtest.compat1' | |||
1427 | === added file 'tests/dhtest.compat1/Makefile' | |||
1428 | --- tests/dhtest.compat1/Makefile 1970-01-01 00:00:00 +0000 | |||
1429 | +++ tests/dhtest.compat1/Makefile 2010-04-21 20:29:14 +0000 | |||
1430 | @@ -0,0 +1,18 @@ | |||
1431 | 1 | CFLAGS= -g -Wall -W -O0 | ||
1432 | 2 | |||
1433 | 3 | LIBNAME=crashrep | ||
1434 | 4 | |||
1435 | 5 | all: crash crash2 | ||
1436 | 6 | |||
1437 | 7 | crash: crash.o | ||
1438 | 8 | $(CC) $^ -o $@ | ||
1439 | 9 | |||
1440 | 10 | crash2: crash2.o | ||
1441 | 11 | $(CC) $^ -o $@ | ||
1442 | 12 | |||
1443 | 13 | clean: | ||
1444 | 14 | rm -f *.o crash crash2 | ||
1445 | 15 | |||
1446 | 16 | install: all | ||
1447 | 17 | install -d $(DESTDIR)/usr/bin | ||
1448 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
1449 | 0 | 19 | ||
1450 | === added file 'tests/dhtest.compat1/crash.c' | |||
1451 | --- tests/dhtest.compat1/crash.c 1970-01-01 00:00:00 +0000 | |||
1452 | +++ tests/dhtest.compat1/crash.c 2010-04-21 20:29:14 +0000 | |||
1453 | @@ -0,0 +1,34 @@ | |||
1454 | 1 | /* crash.c - demo program for libcrashreport | ||
1455 | 2 | |||
1456 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1457 | 4 | |||
1458 | 5 | This file is public domain. | ||
1459 | 6 | */ | ||
1460 | 7 | |||
1461 | 8 | #include <stdio.h> | ||
1462 | 9 | |||
1463 | 10 | void h(char* p) { | ||
1464 | 11 | p[1] = 'a'; | ||
1465 | 12 | } | ||
1466 | 13 | |||
1467 | 14 | int g( int x, int y ) | ||
1468 | 15 | { | ||
1469 | 16 | char* s = NULL; | ||
1470 | 17 | h(s); | ||
1471 | 18 | return x+y; | ||
1472 | 19 | } | ||
1473 | 20 | |||
1474 | 21 | int f( int x ) | ||
1475 | 22 | { | ||
1476 | 23 | return g( x, 42 ); | ||
1477 | 24 | } | ||
1478 | 25 | |||
1479 | 26 | int | ||
1480 | 27 | main() | ||
1481 | 28 | { | ||
1482 | 29 | int x; | ||
1483 | 30 | |||
1484 | 31 | x = f(1); | ||
1485 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
1486 | 33 | return 0; | ||
1487 | 34 | } | ||
1488 | 0 | 35 | ||
1489 | === added file 'tests/dhtest.compat1/crash2.c' | |||
1490 | --- tests/dhtest.compat1/crash2.c 1970-01-01 00:00:00 +0000 | |||
1491 | +++ tests/dhtest.compat1/crash2.c 2010-04-21 20:29:14 +0000 | |||
1492 | @@ -0,0 +1,39 @@ | |||
1493 | 1 | /* crash.c - demo program for libcrashreport | ||
1494 | 2 | |||
1495 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1496 | 4 | |||
1497 | 5 | This file is public domain. | ||
1498 | 6 | */ | ||
1499 | 7 | |||
1500 | 8 | #include <stdio.h> | ||
1501 | 9 | #include <math.h> | ||
1502 | 10 | #include <signal.h> | ||
1503 | 11 | |||
1504 | 12 | double h() | ||
1505 | 13 | { | ||
1506 | 14 | double a = 1./0; | ||
1507 | 15 | if (isinf(a)) | ||
1508 | 16 | raise(SIGFPE); | ||
1509 | 17 | return a; | ||
1510 | 18 | } | ||
1511 | 19 | |||
1512 | 20 | int g( int x, int y ) | ||
1513 | 21 | { | ||
1514 | 22 | |||
1515 | 23 | return x+y+(int) h(); | ||
1516 | 24 | } | ||
1517 | 25 | |||
1518 | 26 | int f( int x ) | ||
1519 | 27 | { | ||
1520 | 28 | return g( x, 42 ); | ||
1521 | 29 | } | ||
1522 | 30 | |||
1523 | 31 | int | ||
1524 | 32 | main() | ||
1525 | 33 | { | ||
1526 | 34 | int x; | ||
1527 | 35 | |||
1528 | 36 | x = f(1); | ||
1529 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
1530 | 38 | return 0; | ||
1531 | 39 | } | ||
1532 | 0 | 40 | ||
1533 | === added directory 'tests/dhtest.compat1/debian' | |||
1534 | === added file 'tests/dhtest.compat1/debian/changelog' | |||
1535 | --- tests/dhtest.compat1/debian/changelog 1970-01-01 00:00:00 +0000 | |||
1536 | +++ tests/dhtest.compat1/debian/changelog 2010-04-21 20:29:14 +0000 | |||
1537 | @@ -0,0 +1,5 @@ | |||
1538 | 1 | dhtest.compat1 (2:3.4) foo; urgency=low | ||
1539 | 2 | |||
1540 | 3 | * Initial release. | ||
1541 | 4 | |||
1542 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
1543 | 0 | 6 | ||
1544 | === added file 'tests/dhtest.compat1/debian/control' | |||
1545 | --- tests/dhtest.compat1/debian/control 1970-01-01 00:00:00 +0000 | |||
1546 | +++ tests/dhtest.compat1/debian/control 2010-04-21 20:29:14 +0000 | |||
1547 | @@ -0,0 +1,25 @@ | |||
1548 | 1 | Source: dhtest.compat1 | ||
1549 | 2 | Section: utils | ||
1550 | 3 | Priority: extra | ||
1551 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
1552 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
1553 | 6 | Standards-Version: 3.7.2 | ||
1554 | 7 | |||
1555 | 8 | Package: dhtest1 | ||
1556 | 9 | Architecture: any | ||
1557 | 10 | Depends: ${shlibs:Depends} | ||
1558 | 11 | Description: crash with a SIGSEGV | ||
1559 | 12 | Test package | ||
1560 | 13 | |||
1561 | 14 | Package: dhtest2 | ||
1562 | 15 | Architecture: any | ||
1563 | 16 | Depends: ${shlibs:Depends} | ||
1564 | 17 | Description: crash with a SIGFPE | ||
1565 | 18 | Test package | ||
1566 | 19 | |||
1567 | 20 | Package: dhtestall | ||
1568 | 21 | Architecture: all | ||
1569 | 22 | Depends: ${shlibs:Depends} | ||
1570 | 23 | Description: dummy arch-all package | ||
1571 | 24 | Test package | ||
1572 | 25 | |||
1573 | 0 | 26 | ||
1574 | === added file 'tests/dhtest.compat1/debian/copyright' | |||
1575 | --- tests/dhtest.compat1/debian/copyright 1970-01-01 00:00:00 +0000 | |||
1576 | +++ tests/dhtest.compat1/debian/copyright 2010-04-21 20:29:14 +0000 | |||
1577 | @@ -0,0 +1,1 @@ | |||
1578 | 1 | foo | ||
1579 | 0 | 2 | ||
1580 | === added file 'tests/dhtest.compat1/debian/rules' | |||
1581 | --- tests/dhtest.compat1/debian/rules 1970-01-01 00:00:00 +0000 | |||
1582 | +++ tests/dhtest.compat1/debian/rules 2010-04-21 20:29:14 +0000 | |||
1583 | @@ -0,0 +1,75 @@ | |||
1584 | 1 | #!/usr/bin/make -f | ||
1585 | 2 | |||
1586 | 3 | # Uncomment this to turn on verbose mode. | ||
1587 | 4 | #export DH_VERBOSE=1 | ||
1588 | 5 | |||
1589 | 6 | # This has to be exported to make some magic below work. | ||
1590 | 7 | export DH_OPTIONS | ||
1591 | 8 | |||
1592 | 9 | CFLAGS = -Wall -g | ||
1593 | 10 | |||
1594 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
1595 | 12 | CFLAGS += -O0 | ||
1596 | 13 | else | ||
1597 | 14 | CFLAGS += -O2 | ||
1598 | 15 | endif | ||
1599 | 16 | |||
1600 | 17 | #Architecture | ||
1601 | 18 | build: build-arch build-indep | ||
1602 | 19 | |||
1603 | 20 | build-arch: build-arch-stamp | ||
1604 | 21 | build-arch-stamp: | ||
1605 | 22 | $(MAKE) | ||
1606 | 23 | touch build-arch-stamp | ||
1607 | 24 | |||
1608 | 25 | build-indep: | ||
1609 | 26 | |||
1610 | 27 | clean: | ||
1611 | 28 | dh_testdir | ||
1612 | 29 | dh_testroot | ||
1613 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
1614 | 31 | -$(MAKE) clean | ||
1615 | 32 | dh_clean | ||
1616 | 33 | |||
1617 | 34 | install: install-indep install-arch | ||
1618 | 35 | install-indep: | ||
1619 | 36 | dh_testdir | ||
1620 | 37 | dh_testroot | ||
1621 | 38 | dh_clean -k -i | ||
1622 | 39 | dh_installdirs -i | ||
1623 | 40 | |||
1624 | 41 | install-arch: | ||
1625 | 42 | dh_testdir | ||
1626 | 43 | dh_testroot | ||
1627 | 44 | dh_clean -k -s | ||
1628 | 45 | dh_installdirs -s | ||
1629 | 46 | install -D -m 755 crash debian/tmp/usr/bin/crash | ||
1630 | 47 | install -D -m 755 crash2 debian/dhtest2/usr/bin/crash2 | ||
1631 | 48 | |||
1632 | 49 | # Must not depend on anything. This is to be called by | ||
1633 | 50 | # binary-arch/binary-indep | ||
1634 | 51 | # in another 'make' thread. | ||
1635 | 52 | binary-common: | ||
1636 | 53 | dh_testdir | ||
1637 | 54 | dh_testroot | ||
1638 | 55 | dh_installchangelogs | ||
1639 | 56 | dh_installdocs | ||
1640 | 57 | dh_strip | ||
1641 | 58 | dh_compress | ||
1642 | 59 | dh_fixperms | ||
1643 | 60 | dh_installdeb | ||
1644 | 61 | dh_shlibdeps | ||
1645 | 62 | dh_gencontrol | ||
1646 | 63 | dh_md5sums | ||
1647 | 64 | dh_builddeb | ||
1648 | 65 | |||
1649 | 66 | # Build architecture independant packages using the common target. | ||
1650 | 67 | binary-indep: build-indep install-indep | ||
1651 | 68 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
1652 | 69 | |||
1653 | 70 | # Build architecture dependant packages using the common target. | ||
1654 | 71 | binary-arch: build-arch install-arch | ||
1655 | 72 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
1656 | 73 | |||
1657 | 74 | binary: binary-arch binary-indep | ||
1658 | 75 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
1659 | 0 | 76 | ||
1660 | === added directory 'tests/dhtest.compat1override' | |||
1661 | === added file 'tests/dhtest.compat1override/Makefile' | |||
1662 | --- tests/dhtest.compat1override/Makefile 1970-01-01 00:00:00 +0000 | |||
1663 | +++ tests/dhtest.compat1override/Makefile 2010-04-21 20:29:14 +0000 | |||
1664 | @@ -0,0 +1,18 @@ | |||
1665 | 1 | CFLAGS= -g -Wall -W -O0 | ||
1666 | 2 | |||
1667 | 3 | LIBNAME=crashrep | ||
1668 | 4 | |||
1669 | 5 | all: crash crash2 | ||
1670 | 6 | |||
1671 | 7 | crash: crash.o | ||
1672 | 8 | $(CC) $^ -o $@ | ||
1673 | 9 | |||
1674 | 10 | crash2: crash2.o | ||
1675 | 11 | $(CC) $^ -o $@ | ||
1676 | 12 | |||
1677 | 13 | clean: | ||
1678 | 14 | rm -f *.o crash crash2 | ||
1679 | 15 | |||
1680 | 16 | install: all | ||
1681 | 17 | install -d $(DESTDIR)/usr/bin | ||
1682 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
1683 | 0 | 19 | ||
1684 | === added file 'tests/dhtest.compat1override/crash.c' | |||
1685 | --- tests/dhtest.compat1override/crash.c 1970-01-01 00:00:00 +0000 | |||
1686 | +++ tests/dhtest.compat1override/crash.c 2010-04-21 20:29:14 +0000 | |||
1687 | @@ -0,0 +1,34 @@ | |||
1688 | 1 | /* crash.c - demo program for libcrashreport | ||
1689 | 2 | |||
1690 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1691 | 4 | |||
1692 | 5 | This file is public domain. | ||
1693 | 6 | */ | ||
1694 | 7 | |||
1695 | 8 | #include <stdio.h> | ||
1696 | 9 | |||
1697 | 10 | void h(char* p) { | ||
1698 | 11 | p[1] = 'a'; | ||
1699 | 12 | } | ||
1700 | 13 | |||
1701 | 14 | int g( int x, int y ) | ||
1702 | 15 | { | ||
1703 | 16 | char* s = NULL; | ||
1704 | 17 | h(s); | ||
1705 | 18 | return x+y; | ||
1706 | 19 | } | ||
1707 | 20 | |||
1708 | 21 | int f( int x ) | ||
1709 | 22 | { | ||
1710 | 23 | return g( x, 42 ); | ||
1711 | 24 | } | ||
1712 | 25 | |||
1713 | 26 | int | ||
1714 | 27 | main() | ||
1715 | 28 | { | ||
1716 | 29 | int x; | ||
1717 | 30 | |||
1718 | 31 | x = f(1); | ||
1719 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
1720 | 33 | return 0; | ||
1721 | 34 | } | ||
1722 | 0 | 35 | ||
1723 | === added file 'tests/dhtest.compat1override/crash2.c' | |||
1724 | --- tests/dhtest.compat1override/crash2.c 1970-01-01 00:00:00 +0000 | |||
1725 | +++ tests/dhtest.compat1override/crash2.c 2010-04-21 20:29:14 +0000 | |||
1726 | @@ -0,0 +1,39 @@ | |||
1727 | 1 | /* crash.c - demo program for libcrashreport | ||
1728 | 2 | |||
1729 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1730 | 4 | |||
1731 | 5 | This file is public domain. | ||
1732 | 6 | */ | ||
1733 | 7 | |||
1734 | 8 | #include <stdio.h> | ||
1735 | 9 | #include <math.h> | ||
1736 | 10 | #include <signal.h> | ||
1737 | 11 | |||
1738 | 12 | double h() | ||
1739 | 13 | { | ||
1740 | 14 | double a = 1./0; | ||
1741 | 15 | if (isinf(a)) | ||
1742 | 16 | raise(SIGFPE); | ||
1743 | 17 | return a; | ||
1744 | 18 | } | ||
1745 | 19 | |||
1746 | 20 | int g( int x, int y ) | ||
1747 | 21 | { | ||
1748 | 22 | |||
1749 | 23 | return x+y+(int) h(); | ||
1750 | 24 | } | ||
1751 | 25 | |||
1752 | 26 | int f( int x ) | ||
1753 | 27 | { | ||
1754 | 28 | return g( x, 42 ); | ||
1755 | 29 | } | ||
1756 | 30 | |||
1757 | 31 | int | ||
1758 | 32 | main() | ||
1759 | 33 | { | ||
1760 | 34 | int x; | ||
1761 | 35 | |||
1762 | 36 | x = f(1); | ||
1763 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
1764 | 38 | return 0; | ||
1765 | 39 | } | ||
1766 | 0 | 40 | ||
1767 | === added directory 'tests/dhtest.compat1override/debian' | |||
1768 | === added file 'tests/dhtest.compat1override/debian/changelog' | |||
1769 | --- tests/dhtest.compat1override/debian/changelog 1970-01-01 00:00:00 +0000 | |||
1770 | +++ tests/dhtest.compat1override/debian/changelog 2010-04-21 20:29:14 +0000 | |||
1771 | @@ -0,0 +1,5 @@ | |||
1772 | 1 | dhtest.compat1override (2:3.4) foo; urgency=low | ||
1773 | 2 | |||
1774 | 3 | * Initial release. | ||
1775 | 4 | |||
1776 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
1777 | 0 | 6 | ||
1778 | === added file 'tests/dhtest.compat1override/debian/compat' | |||
1779 | --- tests/dhtest.compat1override/debian/compat 1970-01-01 00:00:00 +0000 | |||
1780 | +++ tests/dhtest.compat1override/debian/compat 2010-04-21 20:29:14 +0000 | |||
1781 | @@ -0,0 +1,1 @@ | |||
1782 | 1 | 4 | ||
1783 | 0 | 2 | ||
1784 | === added file 'tests/dhtest.compat1override/debian/control' | |||
1785 | --- tests/dhtest.compat1override/debian/control 1970-01-01 00:00:00 +0000 | |||
1786 | +++ tests/dhtest.compat1override/debian/control 2010-04-21 20:29:14 +0000 | |||
1787 | @@ -0,0 +1,25 @@ | |||
1788 | 1 | Source: dhtest.compat1override | ||
1789 | 2 | Section: utils | ||
1790 | 3 | Priority: extra | ||
1791 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
1792 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
1793 | 6 | Standards-Version: 3.7.2 | ||
1794 | 7 | |||
1795 | 8 | Package: dhtest1 | ||
1796 | 9 | Architecture: any | ||
1797 | 10 | Depends: ${shlibs:Depends} | ||
1798 | 11 | Description: crash with a SIGSEGV | ||
1799 | 12 | Test package | ||
1800 | 13 | |||
1801 | 14 | Package: dhtest2 | ||
1802 | 15 | Architecture: any | ||
1803 | 16 | Depends: ${shlibs:Depends} | ||
1804 | 17 | Description: crash with a SIGFPE | ||
1805 | 18 | Test package | ||
1806 | 19 | |||
1807 | 20 | Package: dhtestall | ||
1808 | 21 | Architecture: all | ||
1809 | 22 | Depends: ${shlibs:Depends} | ||
1810 | 23 | Description: dummy arch-all package | ||
1811 | 24 | Test package | ||
1812 | 25 | |||
1813 | 0 | 26 | ||
1814 | === added file 'tests/dhtest.compat1override/debian/copyright' | |||
1815 | --- tests/dhtest.compat1override/debian/copyright 1970-01-01 00:00:00 +0000 | |||
1816 | +++ tests/dhtest.compat1override/debian/copyright 2010-04-21 20:29:14 +0000 | |||
1817 | @@ -0,0 +1,1 @@ | |||
1818 | 1 | foo | ||
1819 | 0 | 2 | ||
1820 | === added file 'tests/dhtest.compat1override/debian/rules' | |||
1821 | --- tests/dhtest.compat1override/debian/rules 1970-01-01 00:00:00 +0000 | |||
1822 | +++ tests/dhtest.compat1override/debian/rules 2010-04-21 20:29:14 +0000 | |||
1823 | @@ -0,0 +1,77 @@ | |||
1824 | 1 | #!/usr/bin/make -f | ||
1825 | 2 | |||
1826 | 3 | # Uncomment this to turn on verbose mode. | ||
1827 | 4 | #export DH_VERBOSE=1 | ||
1828 | 5 | |||
1829 | 6 | # This has to be exported to make some magic below work. | ||
1830 | 7 | export DH_OPTIONS | ||
1831 | 8 | |||
1832 | 9 | export DH_COMPAT=1 | ||
1833 | 10 | |||
1834 | 11 | CFLAGS = -Wall -g | ||
1835 | 12 | |||
1836 | 13 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
1837 | 14 | CFLAGS += -O0 | ||
1838 | 15 | else | ||
1839 | 16 | CFLAGS += -O2 | ||
1840 | 17 | endif | ||
1841 | 18 | |||
1842 | 19 | #Architecture | ||
1843 | 20 | build: build-arch build-indep | ||
1844 | 21 | |||
1845 | 22 | build-arch: build-arch-stamp | ||
1846 | 23 | build-arch-stamp: | ||
1847 | 24 | $(MAKE) | ||
1848 | 25 | touch build-arch-stamp | ||
1849 | 26 | |||
1850 | 27 | build-indep: | ||
1851 | 28 | |||
1852 | 29 | clean: | ||
1853 | 30 | dh_testdir | ||
1854 | 31 | dh_testroot | ||
1855 | 32 | rm -f build-arch-stamp build-indep-stamp | ||
1856 | 33 | -$(MAKE) clean | ||
1857 | 34 | dh_clean | ||
1858 | 35 | |||
1859 | 36 | install: install-indep install-arch | ||
1860 | 37 | install-indep: | ||
1861 | 38 | dh_testdir | ||
1862 | 39 | dh_testroot | ||
1863 | 40 | dh_clean -k -i | ||
1864 | 41 | dh_installdirs -i | ||
1865 | 42 | |||
1866 | 43 | install-arch: | ||
1867 | 44 | dh_testdir | ||
1868 | 45 | dh_testroot | ||
1869 | 46 | dh_clean -k -s | ||
1870 | 47 | dh_installdirs -s | ||
1871 | 48 | install -D -m 755 crash debian/tmp/usr/bin/crash | ||
1872 | 49 | install -D -m 755 crash2 debian/dhtest2/usr/bin/crash2 | ||
1873 | 50 | |||
1874 | 51 | # Must not depend on anything. This is to be called by | ||
1875 | 52 | # binary-arch/binary-indep | ||
1876 | 53 | # in another 'make' thread. | ||
1877 | 54 | binary-common: | ||
1878 | 55 | dh_testdir | ||
1879 | 56 | dh_testroot | ||
1880 | 57 | dh_installchangelogs | ||
1881 | 58 | dh_installdocs | ||
1882 | 59 | dh_strip | ||
1883 | 60 | dh_compress | ||
1884 | 61 | dh_fixperms | ||
1885 | 62 | dh_installdeb | ||
1886 | 63 | dh_shlibdeps | ||
1887 | 64 | dh_gencontrol | ||
1888 | 65 | dh_md5sums | ||
1889 | 66 | dh_builddeb | ||
1890 | 67 | |||
1891 | 68 | # Build architecture independant packages using the common target. | ||
1892 | 69 | binary-indep: build-indep install-indep | ||
1893 | 70 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
1894 | 71 | |||
1895 | 72 | # Build architecture dependant packages using the common target. | ||
1896 | 73 | binary-arch: build-arch install-arch | ||
1897 | 74 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
1898 | 75 | |||
1899 | 76 | binary: binary-arch binary-indep | ||
1900 | 77 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
1901 | 0 | 78 | ||
1902 | === added directory 'tests/dhtest.compatenvvar' | |||
1903 | === added file 'tests/dhtest.compatenvvar/Makefile' | |||
1904 | --- tests/dhtest.compatenvvar/Makefile 1970-01-01 00:00:00 +0000 | |||
1905 | +++ tests/dhtest.compatenvvar/Makefile 2010-04-21 20:29:14 +0000 | |||
1906 | @@ -0,0 +1,18 @@ | |||
1907 | 1 | CFLAGS= -g -Wall -W -O0 | ||
1908 | 2 | |||
1909 | 3 | LIBNAME=crashrep | ||
1910 | 4 | |||
1911 | 5 | all: crash crash2 | ||
1912 | 6 | |||
1913 | 7 | crash: crash.o | ||
1914 | 8 | $(CC) $^ -o $@ | ||
1915 | 9 | |||
1916 | 10 | crash2: crash2.o | ||
1917 | 11 | $(CC) $^ -o $@ | ||
1918 | 12 | |||
1919 | 13 | clean: | ||
1920 | 14 | rm -f *.o crash crash2 | ||
1921 | 15 | |||
1922 | 16 | install: all | ||
1923 | 17 | install -d $(DESTDIR)/usr/bin | ||
1924 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
1925 | 0 | 19 | ||
1926 | === added file 'tests/dhtest.compatenvvar/crash.c' | |||
1927 | --- tests/dhtest.compatenvvar/crash.c 1970-01-01 00:00:00 +0000 | |||
1928 | +++ tests/dhtest.compatenvvar/crash.c 2010-04-21 20:29:14 +0000 | |||
1929 | @@ -0,0 +1,34 @@ | |||
1930 | 1 | /* crash.c - demo program for libcrashreport | ||
1931 | 2 | |||
1932 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1933 | 4 | |||
1934 | 5 | This file is public domain. | ||
1935 | 6 | */ | ||
1936 | 7 | |||
1937 | 8 | #include <stdio.h> | ||
1938 | 9 | |||
1939 | 10 | void h(char* p) { | ||
1940 | 11 | p[1] = 'a'; | ||
1941 | 12 | } | ||
1942 | 13 | |||
1943 | 14 | int g( int x, int y ) | ||
1944 | 15 | { | ||
1945 | 16 | char* s = NULL; | ||
1946 | 17 | h(s); | ||
1947 | 18 | return x+y; | ||
1948 | 19 | } | ||
1949 | 20 | |||
1950 | 21 | int f( int x ) | ||
1951 | 22 | { | ||
1952 | 23 | return g( x, 42 ); | ||
1953 | 24 | } | ||
1954 | 25 | |||
1955 | 26 | int | ||
1956 | 27 | main() | ||
1957 | 28 | { | ||
1958 | 29 | int x; | ||
1959 | 30 | |||
1960 | 31 | x = f(1); | ||
1961 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
1962 | 33 | return 0; | ||
1963 | 34 | } | ||
1964 | 0 | 35 | ||
1965 | === added file 'tests/dhtest.compatenvvar/crash2.c' | |||
1966 | --- tests/dhtest.compatenvvar/crash2.c 1970-01-01 00:00:00 +0000 | |||
1967 | +++ tests/dhtest.compatenvvar/crash2.c 2010-04-21 20:29:14 +0000 | |||
1968 | @@ -0,0 +1,39 @@ | |||
1969 | 1 | /* crash.c - demo program for libcrashreport | ||
1970 | 2 | |||
1971 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
1972 | 4 | |||
1973 | 5 | This file is public domain. | ||
1974 | 6 | */ | ||
1975 | 7 | |||
1976 | 8 | #include <stdio.h> | ||
1977 | 9 | #include <math.h> | ||
1978 | 10 | #include <signal.h> | ||
1979 | 11 | |||
1980 | 12 | double h() | ||
1981 | 13 | { | ||
1982 | 14 | double a = 1./0; | ||
1983 | 15 | if (isinf(a)) | ||
1984 | 16 | raise(SIGFPE); | ||
1985 | 17 | return a; | ||
1986 | 18 | } | ||
1987 | 19 | |||
1988 | 20 | int g( int x, int y ) | ||
1989 | 21 | { | ||
1990 | 22 | |||
1991 | 23 | return x+y+(int) h(); | ||
1992 | 24 | } | ||
1993 | 25 | |||
1994 | 26 | int f( int x ) | ||
1995 | 27 | { | ||
1996 | 28 | return g( x, 42 ); | ||
1997 | 29 | } | ||
1998 | 30 | |||
1999 | 31 | int | ||
2000 | 32 | main() | ||
2001 | 33 | { | ||
2002 | 34 | int x; | ||
2003 | 35 | |||
2004 | 36 | x = f(1); | ||
2005 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
2006 | 38 | return 0; | ||
2007 | 39 | } | ||
2008 | 0 | 40 | ||
2009 | === added directory 'tests/dhtest.compatenvvar/debian' | |||
2010 | === added file 'tests/dhtest.compatenvvar/debian/changelog' | |||
2011 | --- tests/dhtest.compatenvvar/debian/changelog 1970-01-01 00:00:00 +0000 | |||
2012 | +++ tests/dhtest.compatenvvar/debian/changelog 2010-04-21 20:29:14 +0000 | |||
2013 | @@ -0,0 +1,5 @@ | |||
2014 | 1 | dhtest.compatenvvar (1:2.3-1) foo; urgency=low | ||
2015 | 2 | |||
2016 | 3 | * Initial release. | ||
2017 | 4 | |||
2018 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
2019 | 0 | 6 | ||
2020 | === added file 'tests/dhtest.compatenvvar/debian/control' | |||
2021 | --- tests/dhtest.compatenvvar/debian/control 1970-01-01 00:00:00 +0000 | |||
2022 | +++ tests/dhtest.compatenvvar/debian/control 2010-04-21 20:29:14 +0000 | |||
2023 | @@ -0,0 +1,13 @@ | |||
2024 | 1 | Source: dhtest.compatenvvar | ||
2025 | 2 | Section: utils | ||
2026 | 3 | Priority: extra | ||
2027 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
2028 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
2029 | 6 | Standards-Version: 3.7.2 | ||
2030 | 7 | |||
2031 | 8 | Package: dhtest1 | ||
2032 | 9 | Architecture: any | ||
2033 | 10 | Depends: ${shlibs:Depends} | ||
2034 | 11 | Description: crash with a SIGSEGV | ||
2035 | 12 | Test package | ||
2036 | 13 | |||
2037 | 0 | 14 | ||
2038 | === added file 'tests/dhtest.compatenvvar/debian/copyright' | |||
2039 | --- tests/dhtest.compatenvvar/debian/copyright 1970-01-01 00:00:00 +0000 | |||
2040 | +++ tests/dhtest.compatenvvar/debian/copyright 2010-04-21 20:29:14 +0000 | |||
2041 | @@ -0,0 +1,1 @@ | |||
2042 | 1 | foo | ||
2043 | 0 | 2 | ||
2044 | === added file 'tests/dhtest.compatenvvar/debian/rules' | |||
2045 | --- tests/dhtest.compatenvvar/debian/rules 1970-01-01 00:00:00 +0000 | |||
2046 | +++ tests/dhtest.compatenvvar/debian/rules 2010-04-21 20:29:14 +0000 | |||
2047 | @@ -0,0 +1,64 @@ | |||
2048 | 1 | #!/usr/bin/make -f | ||
2049 | 2 | |||
2050 | 3 | # Uncomment this to turn on verbose mode. | ||
2051 | 4 | #export DH_VERBOSE=1 | ||
2052 | 5 | |||
2053 | 6 | export DH_COMPAT=3 | ||
2054 | 7 | |||
2055 | 8 | # This has to be exported to make some magic below work. | ||
2056 | 9 | export DH_OPTIONS | ||
2057 | 10 | |||
2058 | 11 | CFLAGS = -Wall -g | ||
2059 | 12 | |||
2060 | 13 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
2061 | 14 | CFLAGS += -O0 | ||
2062 | 15 | else | ||
2063 | 16 | CFLAGS += -O2 | ||
2064 | 17 | endif | ||
2065 | 18 | |||
2066 | 19 | #Architecture | ||
2067 | 20 | build: build-arch build-indep | ||
2068 | 21 | |||
2069 | 22 | build-arch: build-arch-stamp | ||
2070 | 23 | build-arch-stamp: | ||
2071 | 24 | $(MAKE) | ||
2072 | 25 | touch build-arch-stamp | ||
2073 | 26 | |||
2074 | 27 | build-indep: | ||
2075 | 28 | |||
2076 | 29 | clean: | ||
2077 | 30 | dh_testdir | ||
2078 | 31 | dh_testroot | ||
2079 | 32 | rm -f build-arch-stamp build-indep-stamp | ||
2080 | 33 | -$(MAKE) clean | ||
2081 | 34 | dh_clean | ||
2082 | 35 | |||
2083 | 36 | install: install-arch | ||
2084 | 37 | |||
2085 | 38 | install-arch: | ||
2086 | 39 | dh_testdir | ||
2087 | 40 | dh_testroot | ||
2088 | 41 | dh_clean -k -s | ||
2089 | 42 | dh_installdirs -s | ||
2090 | 43 | $(MAKE) install DESTDIR=$(CURDIR)/debian/dhtest1 | ||
2091 | 44 | |||
2092 | 45 | # install hardlink | ||
2093 | 46 | ln debian/dhtest1/usr/bin/crash debian/dhtest1/usr/bin/crashl | ||
2094 | 47 | |||
2095 | 48 | # Build architecture dependant packages using the common target. | ||
2096 | 49 | binary-arch: build-arch install-arch | ||
2097 | 50 | dh_testdir | ||
2098 | 51 | dh_testroot | ||
2099 | 52 | dh_installchangelogs | ||
2100 | 53 | dh_installdocs | ||
2101 | 54 | dh_strip | ||
2102 | 55 | dh_compress | ||
2103 | 56 | dh_fixperms | ||
2104 | 57 | dh_installdeb | ||
2105 | 58 | dh_shlibdeps | ||
2106 | 59 | dh_gencontrol | ||
2107 | 60 | dh_md5sums | ||
2108 | 61 | dh_builddeb | ||
2109 | 62 | |||
2110 | 63 | binary: binary-arch binary-indep | ||
2111 | 64 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
2112 | 0 | 65 | ||
2113 | === added directory 'tests/dhtest.dbg' | |||
2114 | === added file 'tests/dhtest.dbg/Makefile' | |||
2115 | --- tests/dhtest.dbg/Makefile 1970-01-01 00:00:00 +0000 | |||
2116 | +++ tests/dhtest.dbg/Makefile 2010-04-21 20:29:14 +0000 | |||
2117 | @@ -0,0 +1,18 @@ | |||
2118 | 1 | CFLAGS= -g -Wall -W -O0 | ||
2119 | 2 | |||
2120 | 3 | LIBNAME=crashrep | ||
2121 | 4 | |||
2122 | 5 | all: crash crash2 | ||
2123 | 6 | |||
2124 | 7 | crash: crash.o | ||
2125 | 8 | $(CC) $^ -o $@ | ||
2126 | 9 | |||
2127 | 10 | crash2: crash2.o | ||
2128 | 11 | $(CC) $^ -o $@ | ||
2129 | 12 | |||
2130 | 13 | clean: | ||
2131 | 14 | rm -f *.o crash crash2 | ||
2132 | 15 | |||
2133 | 16 | install: all | ||
2134 | 17 | install -d $(DESTDIR)/usr/bin | ||
2135 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
2136 | 0 | 19 | ||
2137 | === added file 'tests/dhtest.dbg/crash.c' | |||
2138 | --- tests/dhtest.dbg/crash.c 1970-01-01 00:00:00 +0000 | |||
2139 | +++ tests/dhtest.dbg/crash.c 2010-04-21 20:29:14 +0000 | |||
2140 | @@ -0,0 +1,34 @@ | |||
2141 | 1 | /* crash.c - demo program for libcrashreport | ||
2142 | 2 | |||
2143 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2144 | 4 | |||
2145 | 5 | This file is public domain. | ||
2146 | 6 | */ | ||
2147 | 7 | |||
2148 | 8 | #include <stdio.h> | ||
2149 | 9 | |||
2150 | 10 | void h(char* p) { | ||
2151 | 11 | p[1] = 'a'; | ||
2152 | 12 | } | ||
2153 | 13 | |||
2154 | 14 | int g( int x, int y ) | ||
2155 | 15 | { | ||
2156 | 16 | char* s = NULL; | ||
2157 | 17 | h(s); | ||
2158 | 18 | return x+y; | ||
2159 | 19 | } | ||
2160 | 20 | |||
2161 | 21 | int f( int x ) | ||
2162 | 22 | { | ||
2163 | 23 | return g( x, 42 ); | ||
2164 | 24 | } | ||
2165 | 25 | |||
2166 | 26 | int | ||
2167 | 27 | main() | ||
2168 | 28 | { | ||
2169 | 29 | int x; | ||
2170 | 30 | |||
2171 | 31 | x = f(1); | ||
2172 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
2173 | 33 | return 0; | ||
2174 | 34 | } | ||
2175 | 0 | 35 | ||
2176 | === added file 'tests/dhtest.dbg/crash2.c' | |||
2177 | --- tests/dhtest.dbg/crash2.c 1970-01-01 00:00:00 +0000 | |||
2178 | +++ tests/dhtest.dbg/crash2.c 2010-04-21 20:29:14 +0000 | |||
2179 | @@ -0,0 +1,39 @@ | |||
2180 | 1 | /* crash.c - demo program for libcrashreport | ||
2181 | 2 | |||
2182 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2183 | 4 | |||
2184 | 5 | This file is public domain. | ||
2185 | 6 | */ | ||
2186 | 7 | |||
2187 | 8 | #include <stdio.h> | ||
2188 | 9 | #include <math.h> | ||
2189 | 10 | #include <signal.h> | ||
2190 | 11 | |||
2191 | 12 | double h() | ||
2192 | 13 | { | ||
2193 | 14 | double a = 1./0; | ||
2194 | 15 | if (isinf(a)) | ||
2195 | 16 | raise(SIGFPE); | ||
2196 | 17 | return a; | ||
2197 | 18 | } | ||
2198 | 19 | |||
2199 | 20 | int g( int x, int y ) | ||
2200 | 21 | { | ||
2201 | 22 | |||
2202 | 23 | return x+y+(int) h(); | ||
2203 | 24 | } | ||
2204 | 25 | |||
2205 | 26 | int f( int x ) | ||
2206 | 27 | { | ||
2207 | 28 | return g( x, 42 ); | ||
2208 | 29 | } | ||
2209 | 30 | |||
2210 | 31 | int | ||
2211 | 32 | main() | ||
2212 | 33 | { | ||
2213 | 34 | int x; | ||
2214 | 35 | |||
2215 | 36 | x = f(1); | ||
2216 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
2217 | 38 | return 0; | ||
2218 | 39 | } | ||
2219 | 0 | 40 | ||
2220 | === added directory 'tests/dhtest.dbg/debian' | |||
2221 | === added file 'tests/dhtest.dbg/debian/changelog' | |||
2222 | --- tests/dhtest.dbg/debian/changelog 1970-01-01 00:00:00 +0000 | |||
2223 | +++ tests/dhtest.dbg/debian/changelog 2010-04-21 20:29:14 +0000 | |||
2224 | @@ -0,0 +1,5 @@ | |||
2225 | 1 | dhtest.dbg (2) foo; urgency=low | ||
2226 | 2 | |||
2227 | 3 | * Initial release. | ||
2228 | 4 | |||
2229 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
2230 | 0 | 6 | ||
2231 | === added file 'tests/dhtest.dbg/debian/compat' | |||
2232 | --- tests/dhtest.dbg/debian/compat 1970-01-01 00:00:00 +0000 | |||
2233 | +++ tests/dhtest.dbg/debian/compat 2010-04-21 20:29:14 +0000 | |||
2234 | @@ -0,0 +1,1 @@ | |||
2235 | 1 | 5 | ||
2236 | 0 | 2 | ||
2237 | === added file 'tests/dhtest.dbg/debian/control' | |||
2238 | --- tests/dhtest.dbg/debian/control 1970-01-01 00:00:00 +0000 | |||
2239 | +++ tests/dhtest.dbg/debian/control 2010-04-21 20:29:14 +0000 | |||
2240 | @@ -0,0 +1,31 @@ | |||
2241 | 1 | Source: dhtest.dbg | ||
2242 | 2 | Section: utils | ||
2243 | 3 | Priority: extra | ||
2244 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
2245 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
2246 | 6 | Standards-Version: 3.7.2 | ||
2247 | 7 | |||
2248 | 8 | Package: dhtest1 | ||
2249 | 9 | Architecture: any | ||
2250 | 10 | Depends: ${shlibs:Depends} | ||
2251 | 11 | Description: crash with a SIGSEGV | ||
2252 | 12 | Test package | ||
2253 | 13 | |||
2254 | 14 | Package: dhtest1-dbg | ||
2255 | 15 | Architecture: any | ||
2256 | 16 | Depends: dhtest1 (= ${Source-Version}) | ||
2257 | 17 | Description: crash with a SIGSEGV (debug symbols) | ||
2258 | 18 | Test package (debug symbols) | ||
2259 | 19 | |||
2260 | 20 | Package: dhtest2 | ||
2261 | 21 | Architecture: any | ||
2262 | 22 | Depends: ${shlibs:Depends} | ||
2263 | 23 | Description: crash with a SIGFPE | ||
2264 | 24 | Test package | ||
2265 | 25 | |||
2266 | 26 | Package: dhtestall | ||
2267 | 27 | Architecture: all | ||
2268 | 28 | Depends: ${shlibs:Depends} | ||
2269 | 29 | Description: dummy arch-all package | ||
2270 | 30 | Test package | ||
2271 | 31 | |||
2272 | 0 | 32 | ||
2273 | === added file 'tests/dhtest.dbg/debian/copyright' | |||
2274 | --- tests/dhtest.dbg/debian/copyright 1970-01-01 00:00:00 +0000 | |||
2275 | +++ tests/dhtest.dbg/debian/copyright 2010-04-21 20:29:14 +0000 | |||
2276 | @@ -0,0 +1,1 @@ | |||
2277 | 1 | foo | ||
2278 | 0 | 2 | ||
2279 | === added file 'tests/dhtest.dbg/debian/dhtest1.install' | |||
2280 | --- tests/dhtest.dbg/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
2281 | +++ tests/dhtest.dbg/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
2282 | @@ -0,0 +1,1 @@ | |||
2283 | 1 | /usr/bin/crash | ||
2284 | 0 | 2 | ||
2285 | === added file 'tests/dhtest.dbg/debian/dhtest2.install' | |||
2286 | --- tests/dhtest.dbg/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
2287 | +++ tests/dhtest.dbg/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
2288 | @@ -0,0 +1,1 @@ | |||
2289 | 1 | /usr/bin/crash2 | ||
2290 | 0 | 2 | ||
2291 | === added file 'tests/dhtest.dbg/debian/rules' | |||
2292 | --- tests/dhtest.dbg/debian/rules 1970-01-01 00:00:00 +0000 | |||
2293 | +++ tests/dhtest.dbg/debian/rules 2010-04-21 20:29:14 +0000 | |||
2294 | @@ -0,0 +1,87 @@ | |||
2295 | 1 | #!/usr/bin/make -f | ||
2296 | 2 | |||
2297 | 3 | # Uncomment this to turn on verbose mode. | ||
2298 | 4 | #export DH_VERBOSE=1 | ||
2299 | 5 | |||
2300 | 6 | # This has to be exported to make some magic below work. | ||
2301 | 7 | export DH_OPTIONS | ||
2302 | 8 | |||
2303 | 9 | CFLAGS = -Wall -g | ||
2304 | 10 | |||
2305 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
2306 | 12 | CFLAGS += -O0 | ||
2307 | 13 | else | ||
2308 | 14 | CFLAGS += -O2 | ||
2309 | 15 | endif | ||
2310 | 16 | |||
2311 | 17 | #Architecture | ||
2312 | 18 | build: build-arch build-indep | ||
2313 | 19 | |||
2314 | 20 | build-arch: build-arch-stamp | ||
2315 | 21 | build-arch-stamp: | ||
2316 | 22 | $(MAKE) | ||
2317 | 23 | touch build-arch-stamp | ||
2318 | 24 | |||
2319 | 25 | build-indep: | ||
2320 | 26 | |||
2321 | 27 | clean: | ||
2322 | 28 | dh_testdir | ||
2323 | 29 | dh_testroot | ||
2324 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
2325 | 31 | -$(MAKE) clean | ||
2326 | 32 | dh_clean | ||
2327 | 33 | |||
2328 | 34 | install: install-indep install-arch | ||
2329 | 35 | install-indep: | ||
2330 | 36 | dh_testdir | ||
2331 | 37 | dh_testroot | ||
2332 | 38 | dh_clean -k -i | ||
2333 | 39 | dh_installdirs -i | ||
2334 | 40 | dh_install -i --sourcedir=debian/tmp | ||
2335 | 41 | |||
2336 | 42 | install-arch: | ||
2337 | 43 | dh_testdir | ||
2338 | 44 | dh_testroot | ||
2339 | 45 | dh_clean -k -s | ||
2340 | 46 | dh_installdirs -s | ||
2341 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
2342 | 48 | dh_install -s --sourcedir=debian/tmp | ||
2343 | 49 | |||
2344 | 50 | # Must not depend on anything. This is to be called by | ||
2345 | 51 | # binary-arch/binary-indep | ||
2346 | 52 | # in another 'make' thread. | ||
2347 | 53 | binary-common: | ||
2348 | 54 | |||
2349 | 55 | # Build architecture independant packages using the common target. | ||
2350 | 56 | binary-indep: build-indep install-indep | ||
2351 | 57 | dh_testdir -i | ||
2352 | 58 | dh_testroot -i | ||
2353 | 59 | dh_installchangelogs -i | ||
2354 | 60 | dh_installdocs -i | ||
2355 | 61 | dh_strip -i | ||
2356 | 62 | dh_compress -i | ||
2357 | 63 | dh_fixperms -i | ||
2358 | 64 | dh_installdeb -i | ||
2359 | 65 | dh_shlibdeps -i | ||
2360 | 66 | dh_gencontrol -i | ||
2361 | 67 | dh_md5sums -i | ||
2362 | 68 | dh_builddeb -i | ||
2363 | 69 | |||
2364 | 70 | # Build architecture dependant packages using the common target. | ||
2365 | 71 | binary-arch: build-arch install-arch | ||
2366 | 72 | dh_testdir -a | ||
2367 | 73 | dh_testroot -a | ||
2368 | 74 | dh_installchangelogs -a | ||
2369 | 75 | dh_installdocs -a | ||
2370 | 76 | dh_strip -Ndhtest1 -a | ||
2371 | 77 | dh_strip -pdhtest1 --dbg-package=dhtest1-dbg | ||
2372 | 78 | dh_compress -a | ||
2373 | 79 | dh_fixperms -a | ||
2374 | 80 | dh_installdeb -a | ||
2375 | 81 | dh_shlibdeps -a | ||
2376 | 82 | dh_gencontrol -a | ||
2377 | 83 | dh_md5sums -a | ||
2378 | 84 | dh_builddeb -a | ||
2379 | 85 | |||
2380 | 86 | binary: binary-arch binary-indep | ||
2381 | 87 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
2382 | 0 | 88 | ||
2383 | === added directory 'tests/dhtest.dbg2' | |||
2384 | === added file 'tests/dhtest.dbg2/Makefile' | |||
2385 | --- tests/dhtest.dbg2/Makefile 1970-01-01 00:00:00 +0000 | |||
2386 | +++ tests/dhtest.dbg2/Makefile 2010-04-21 20:29:14 +0000 | |||
2387 | @@ -0,0 +1,18 @@ | |||
2388 | 1 | CFLAGS= -g -Wall -W -O0 | ||
2389 | 2 | |||
2390 | 3 | LIBNAME=crashrep | ||
2391 | 4 | |||
2392 | 5 | all: crash crash2 | ||
2393 | 6 | |||
2394 | 7 | crash: crash.o | ||
2395 | 8 | $(CC) $^ -o $@ | ||
2396 | 9 | |||
2397 | 10 | crash2: crash2.o | ||
2398 | 11 | $(CC) $^ -o $@ | ||
2399 | 12 | |||
2400 | 13 | clean: | ||
2401 | 14 | rm -f *.o crash crash2 | ||
2402 | 15 | |||
2403 | 16 | install: all | ||
2404 | 17 | install -d $(DESTDIR)/usr/bin | ||
2405 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
2406 | 0 | 19 | ||
2407 | === added file 'tests/dhtest.dbg2/crash.c' | |||
2408 | --- tests/dhtest.dbg2/crash.c 1970-01-01 00:00:00 +0000 | |||
2409 | +++ tests/dhtest.dbg2/crash.c 2010-04-21 20:29:14 +0000 | |||
2410 | @@ -0,0 +1,34 @@ | |||
2411 | 1 | /* crash.c - demo program for libcrashreport | ||
2412 | 2 | |||
2413 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2414 | 4 | |||
2415 | 5 | This file is public domain. | ||
2416 | 6 | */ | ||
2417 | 7 | |||
2418 | 8 | #include <stdio.h> | ||
2419 | 9 | |||
2420 | 10 | void h(char* p) { | ||
2421 | 11 | p[1] = 'a'; | ||
2422 | 12 | } | ||
2423 | 13 | |||
2424 | 14 | int g( int x, int y ) | ||
2425 | 15 | { | ||
2426 | 16 | char* s = NULL; | ||
2427 | 17 | h(s); | ||
2428 | 18 | return x+y; | ||
2429 | 19 | } | ||
2430 | 20 | |||
2431 | 21 | int f( int x ) | ||
2432 | 22 | { | ||
2433 | 23 | return g( x, 42 ); | ||
2434 | 24 | } | ||
2435 | 25 | |||
2436 | 26 | int | ||
2437 | 27 | main() | ||
2438 | 28 | { | ||
2439 | 29 | int x; | ||
2440 | 30 | |||
2441 | 31 | x = f(1); | ||
2442 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
2443 | 33 | return 0; | ||
2444 | 34 | } | ||
2445 | 0 | 35 | ||
2446 | === added file 'tests/dhtest.dbg2/crash2.c' | |||
2447 | --- tests/dhtest.dbg2/crash2.c 1970-01-01 00:00:00 +0000 | |||
2448 | +++ tests/dhtest.dbg2/crash2.c 2010-04-21 20:29:14 +0000 | |||
2449 | @@ -0,0 +1,39 @@ | |||
2450 | 1 | /* crash.c - demo program for libcrashreport | ||
2451 | 2 | |||
2452 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2453 | 4 | |||
2454 | 5 | This file is public domain. | ||
2455 | 6 | */ | ||
2456 | 7 | |||
2457 | 8 | #include <stdio.h> | ||
2458 | 9 | #include <math.h> | ||
2459 | 10 | #include <signal.h> | ||
2460 | 11 | |||
2461 | 12 | double h() | ||
2462 | 13 | { | ||
2463 | 14 | double a = 1./0; | ||
2464 | 15 | if (isinf(a)) | ||
2465 | 16 | raise(SIGFPE); | ||
2466 | 17 | return a; | ||
2467 | 18 | } | ||
2468 | 19 | |||
2469 | 20 | int g( int x, int y ) | ||
2470 | 21 | { | ||
2471 | 22 | |||
2472 | 23 | return x+y+(int) h(); | ||
2473 | 24 | } | ||
2474 | 25 | |||
2475 | 26 | int f( int x ) | ||
2476 | 27 | { | ||
2477 | 28 | return g( x, 42 ); | ||
2478 | 29 | } | ||
2479 | 30 | |||
2480 | 31 | int | ||
2481 | 32 | main() | ||
2482 | 33 | { | ||
2483 | 34 | int x; | ||
2484 | 35 | |||
2485 | 36 | x = f(1); | ||
2486 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
2487 | 38 | return 0; | ||
2488 | 39 | } | ||
2489 | 0 | 40 | ||
2490 | === added directory 'tests/dhtest.dbg2/debian' | |||
2491 | === added file 'tests/dhtest.dbg2/debian/changelog' | |||
2492 | --- tests/dhtest.dbg2/debian/changelog 1970-01-01 00:00:00 +0000 | |||
2493 | +++ tests/dhtest.dbg2/debian/changelog 2010-04-21 20:29:14 +0000 | |||
2494 | @@ -0,0 +1,5 @@ | |||
2495 | 1 | dhtest.dbg2 (2) foo; urgency=low | ||
2496 | 2 | |||
2497 | 3 | * Initial release. | ||
2498 | 4 | |||
2499 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
2500 | 0 | 6 | ||
2501 | === added file 'tests/dhtest.dbg2/debian/compat' | |||
2502 | --- tests/dhtest.dbg2/debian/compat 1970-01-01 00:00:00 +0000 | |||
2503 | +++ tests/dhtest.dbg2/debian/compat 2010-04-21 20:29:14 +0000 | |||
2504 | @@ -0,0 +1,1 @@ | |||
2505 | 1 | 5 | ||
2506 | 0 | 2 | ||
2507 | === added file 'tests/dhtest.dbg2/debian/control' | |||
2508 | --- tests/dhtest.dbg2/debian/control 1970-01-01 00:00:00 +0000 | |||
2509 | +++ tests/dhtest.dbg2/debian/control 2010-04-21 20:29:14 +0000 | |||
2510 | @@ -0,0 +1,37 @@ | |||
2511 | 1 | Source: dhtest.dbg2 | ||
2512 | 2 | Section: utils | ||
2513 | 3 | Priority: extra | ||
2514 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
2515 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
2516 | 6 | Standards-Version: 3.7.2 | ||
2517 | 7 | |||
2518 | 8 | Package: dhtest1 | ||
2519 | 9 | Architecture: any | ||
2520 | 10 | Depends: ${shlibs:Depends} | ||
2521 | 11 | Description: crash with a SIGSEGV | ||
2522 | 12 | Test package | ||
2523 | 13 | |||
2524 | 14 | Package: dhtest1-dbg | ||
2525 | 15 | Architecture: any | ||
2526 | 16 | Depends: dhtest1 (= ${Source-Version}) | ||
2527 | 17 | Description: crash with a SIGSEGV (debug symbols) | ||
2528 | 18 | Test package (debug symbols) | ||
2529 | 19 | |||
2530 | 20 | Package: dhtest2 | ||
2531 | 21 | Architecture: any | ||
2532 | 22 | Depends: ${shlibs:Depends} | ||
2533 | 23 | Description: crash with a SIGFPE | ||
2534 | 24 | Test package | ||
2535 | 25 | |||
2536 | 26 | Package: dhtest2-extra | ||
2537 | 27 | Architecture: any | ||
2538 | 28 | Depends: ${shlibs:Depends} | ||
2539 | 29 | Description: crash with a SIGSEGV -- extra stuff | ||
2540 | 30 | Test package | ||
2541 | 31 | |||
2542 | 32 | Package: dhtestall | ||
2543 | 33 | Architecture: all | ||
2544 | 34 | Depends: ${shlibs:Depends} | ||
2545 | 35 | Description: dummy arch-all package | ||
2546 | 36 | Test package | ||
2547 | 37 | |||
2548 | 0 | 38 | ||
2549 | === added file 'tests/dhtest.dbg2/debian/copyright' | |||
2550 | --- tests/dhtest.dbg2/debian/copyright 1970-01-01 00:00:00 +0000 | |||
2551 | +++ tests/dhtest.dbg2/debian/copyright 2010-04-21 20:29:14 +0000 | |||
2552 | @@ -0,0 +1,1 @@ | |||
2553 | 1 | foo | ||
2554 | 0 | 2 | ||
2555 | === added file 'tests/dhtest.dbg2/debian/dhtest1.install' | |||
2556 | --- tests/dhtest.dbg2/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
2557 | +++ tests/dhtest.dbg2/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
2558 | @@ -0,0 +1,1 @@ | |||
2559 | 1 | /usr/bin/crash | ||
2560 | 0 | 2 | ||
2561 | === added file 'tests/dhtest.dbg2/debian/dhtest2.install' | |||
2562 | --- tests/dhtest.dbg2/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
2563 | +++ tests/dhtest.dbg2/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
2564 | @@ -0,0 +1,1 @@ | |||
2565 | 1 | /usr/bin/crash2 | ||
2566 | 0 | 2 | ||
2567 | === added file 'tests/dhtest.dbg2/debian/rules' | |||
2568 | --- tests/dhtest.dbg2/debian/rules 1970-01-01 00:00:00 +0000 | |||
2569 | +++ tests/dhtest.dbg2/debian/rules 2010-04-21 20:29:14 +0000 | |||
2570 | @@ -0,0 +1,89 @@ | |||
2571 | 1 | #!/usr/bin/make -f | ||
2572 | 2 | |||
2573 | 3 | # Uncomment this to turn on verbose mode. | ||
2574 | 4 | #export DH_VERBOSE=1 | ||
2575 | 5 | |||
2576 | 6 | # This has to be exported to make some magic below work. | ||
2577 | 7 | export DH_OPTIONS | ||
2578 | 8 | |||
2579 | 9 | CFLAGS = -Wall -g | ||
2580 | 10 | |||
2581 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
2582 | 12 | CFLAGS += -O0 | ||
2583 | 13 | else | ||
2584 | 14 | CFLAGS += -O2 | ||
2585 | 15 | endif | ||
2586 | 16 | |||
2587 | 17 | #Architecture | ||
2588 | 18 | build: build-arch build-indep | ||
2589 | 19 | |||
2590 | 20 | build-arch: build-arch-stamp | ||
2591 | 21 | build-arch-stamp: | ||
2592 | 22 | $(MAKE) | ||
2593 | 23 | touch build-arch-stamp | ||
2594 | 24 | |||
2595 | 25 | build-indep: | ||
2596 | 26 | |||
2597 | 27 | clean: | ||
2598 | 28 | dh_testdir | ||
2599 | 29 | dh_testroot | ||
2600 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
2601 | 31 | -$(MAKE) clean | ||
2602 | 32 | dh_clean | ||
2603 | 33 | |||
2604 | 34 | install: install-indep install-arch | ||
2605 | 35 | install-indep: | ||
2606 | 36 | dh_testdir | ||
2607 | 37 | dh_testroot | ||
2608 | 38 | dh_clean -k -i | ||
2609 | 39 | dh_installdirs -i | ||
2610 | 40 | dh_install -i --sourcedir=debian/tmp | ||
2611 | 41 | |||
2612 | 42 | install-arch: | ||
2613 | 43 | dh_testdir | ||
2614 | 44 | dh_testroot | ||
2615 | 45 | dh_clean -k -s | ||
2616 | 46 | dh_installdirs -s | ||
2617 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
2618 | 48 | dh_install -s --sourcedir=debian/tmp | ||
2619 | 49 | |||
2620 | 50 | # Must not depend on anything. This is to be called by | ||
2621 | 51 | # binary-arch/binary-indep | ||
2622 | 52 | # in another 'make' thread. | ||
2623 | 53 | binary-common: | ||
2624 | 54 | |||
2625 | 55 | # Build architecture independant packages using the common target. | ||
2626 | 56 | binary-indep: build-indep install-indep | ||
2627 | 57 | dh_testdir -i | ||
2628 | 58 | dh_testroot -i | ||
2629 | 59 | dh_installchangelogs -i | ||
2630 | 60 | dh_installdocs -i | ||
2631 | 61 | dh_strip -i | ||
2632 | 62 | dh_compress -i | ||
2633 | 63 | dh_fixperms -i | ||
2634 | 64 | dh_installdeb -i | ||
2635 | 65 | dh_shlibdeps -i | ||
2636 | 66 | dh_gencontrol -i | ||
2637 | 67 | dh_md5sums -i | ||
2638 | 68 | dh_builddeb -i | ||
2639 | 69 | |||
2640 | 70 | # Build architecture dependant packages using the common target. | ||
2641 | 71 | binary-arch: build-arch install-arch | ||
2642 | 72 | dh_testdir -a | ||
2643 | 73 | dh_testroot -a | ||
2644 | 74 | dh_installchangelogs -a | ||
2645 | 75 | dh_installdocs -a | ||
2646 | 76 | dh_strip -Ndhtest1 -Ndhtest2-extra -a | ||
2647 | 77 | dh_strip -pdhtest1 --keep-debug | ||
2648 | 78 | install -d debian/dhtest1-dbg/usr/lib/ | ||
2649 | 79 | mv debian/dhtest1/usr/lib/debug debian/dhtest1-dbg/usr/lib/ | ||
2650 | 80 | dh_compress -a | ||
2651 | 81 | dh_fixperms -a | ||
2652 | 82 | dh_installdeb -a | ||
2653 | 83 | dh_shlibdeps -a | ||
2654 | 84 | dh_gencontrol -a | ||
2655 | 85 | dh_md5sums -a | ||
2656 | 86 | dh_builddeb -a | ||
2657 | 87 | |||
2658 | 88 | binary: binary-arch binary-indep | ||
2659 | 89 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
2660 | 0 | 90 | ||
2661 | === added directory 'tests/dhtest.dbg3' | |||
2662 | === added file 'tests/dhtest.dbg3/Makefile' | |||
2663 | --- tests/dhtest.dbg3/Makefile 1970-01-01 00:00:00 +0000 | |||
2664 | +++ tests/dhtest.dbg3/Makefile 2010-04-21 20:29:14 +0000 | |||
2665 | @@ -0,0 +1,18 @@ | |||
2666 | 1 | CFLAGS= -g -Wall -W -O0 | ||
2667 | 2 | |||
2668 | 3 | LIBNAME=crashrep | ||
2669 | 4 | |||
2670 | 5 | all: crash crash2 | ||
2671 | 6 | |||
2672 | 7 | crash: crash.o | ||
2673 | 8 | $(CC) $^ -o $@ | ||
2674 | 9 | |||
2675 | 10 | crash2: crash2.o | ||
2676 | 11 | $(CC) $^ -o $@ | ||
2677 | 12 | |||
2678 | 13 | clean: | ||
2679 | 14 | rm -f *.o crash crash2 | ||
2680 | 15 | |||
2681 | 16 | install: all | ||
2682 | 17 | install -d $(DESTDIR)/usr/bin | ||
2683 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
2684 | 0 | 19 | ||
2685 | === added file 'tests/dhtest.dbg3/crash.c' | |||
2686 | --- tests/dhtest.dbg3/crash.c 1970-01-01 00:00:00 +0000 | |||
2687 | +++ tests/dhtest.dbg3/crash.c 2010-04-21 20:29:14 +0000 | |||
2688 | @@ -0,0 +1,34 @@ | |||
2689 | 1 | /* crash.c - demo program for libcrashreport | ||
2690 | 2 | |||
2691 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2692 | 4 | |||
2693 | 5 | This file is public domain. | ||
2694 | 6 | */ | ||
2695 | 7 | |||
2696 | 8 | #include <stdio.h> | ||
2697 | 9 | |||
2698 | 10 | void h(char* p) { | ||
2699 | 11 | p[1] = 'a'; | ||
2700 | 12 | } | ||
2701 | 13 | |||
2702 | 14 | int g( int x, int y ) | ||
2703 | 15 | { | ||
2704 | 16 | char* s = NULL; | ||
2705 | 17 | h(s); | ||
2706 | 18 | return x+y; | ||
2707 | 19 | } | ||
2708 | 20 | |||
2709 | 21 | int f( int x ) | ||
2710 | 22 | { | ||
2711 | 23 | return g( x, 42 ); | ||
2712 | 24 | } | ||
2713 | 25 | |||
2714 | 26 | int | ||
2715 | 27 | main() | ||
2716 | 28 | { | ||
2717 | 29 | int x; | ||
2718 | 30 | |||
2719 | 31 | x = f(1); | ||
2720 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
2721 | 33 | return 0; | ||
2722 | 34 | } | ||
2723 | 0 | 35 | ||
2724 | === added file 'tests/dhtest.dbg3/crash2.c' | |||
2725 | --- tests/dhtest.dbg3/crash2.c 1970-01-01 00:00:00 +0000 | |||
2726 | +++ tests/dhtest.dbg3/crash2.c 2010-04-21 20:29:14 +0000 | |||
2727 | @@ -0,0 +1,39 @@ | |||
2728 | 1 | /* crash.c - demo program for libcrashreport | ||
2729 | 2 | |||
2730 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2731 | 4 | |||
2732 | 5 | This file is public domain. | ||
2733 | 6 | */ | ||
2734 | 7 | |||
2735 | 8 | #include <stdio.h> | ||
2736 | 9 | #include <math.h> | ||
2737 | 10 | #include <signal.h> | ||
2738 | 11 | |||
2739 | 12 | double h() | ||
2740 | 13 | { | ||
2741 | 14 | double a = 1./0; | ||
2742 | 15 | if (isinf(a)) | ||
2743 | 16 | raise(SIGFPE); | ||
2744 | 17 | return a; | ||
2745 | 18 | } | ||
2746 | 19 | |||
2747 | 20 | int g( int x, int y ) | ||
2748 | 21 | { | ||
2749 | 22 | |||
2750 | 23 | return x+y+(int) h(); | ||
2751 | 24 | } | ||
2752 | 25 | |||
2753 | 26 | int f( int x ) | ||
2754 | 27 | { | ||
2755 | 28 | return g( x, 42 ); | ||
2756 | 29 | } | ||
2757 | 30 | |||
2758 | 31 | int | ||
2759 | 32 | main() | ||
2760 | 33 | { | ||
2761 | 34 | int x; | ||
2762 | 35 | |||
2763 | 36 | x = f(1); | ||
2764 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
2765 | 38 | return 0; | ||
2766 | 39 | } | ||
2767 | 0 | 40 | ||
2768 | === added directory 'tests/dhtest.dbg3/debian' | |||
2769 | === added file 'tests/dhtest.dbg3/debian/changelog' | |||
2770 | --- tests/dhtest.dbg3/debian/changelog 1970-01-01 00:00:00 +0000 | |||
2771 | +++ tests/dhtest.dbg3/debian/changelog 2010-04-21 20:29:14 +0000 | |||
2772 | @@ -0,0 +1,5 @@ | |||
2773 | 1 | dhtest.dbg3 (2) foo; urgency=low | ||
2774 | 2 | |||
2775 | 3 | * Initial release. | ||
2776 | 4 | |||
2777 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
2778 | 0 | 6 | ||
2779 | === added file 'tests/dhtest.dbg3/debian/compat' | |||
2780 | --- tests/dhtest.dbg3/debian/compat 1970-01-01 00:00:00 +0000 | |||
2781 | +++ tests/dhtest.dbg3/debian/compat 2010-04-21 20:29:14 +0000 | |||
2782 | @@ -0,0 +1,1 @@ | |||
2783 | 1 | 5 | ||
2784 | 0 | 2 | ||
2785 | === added file 'tests/dhtest.dbg3/debian/control' | |||
2786 | --- tests/dhtest.dbg3/debian/control 1970-01-01 00:00:00 +0000 | |||
2787 | +++ tests/dhtest.dbg3/debian/control 2010-04-21 20:29:14 +0000 | |||
2788 | @@ -0,0 +1,31 @@ | |||
2789 | 1 | Source: dhtest.dbg3 | ||
2790 | 2 | Section: utils | ||
2791 | 3 | Priority: extra | ||
2792 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
2793 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
2794 | 6 | Standards-Version: 3.7.2 | ||
2795 | 7 | |||
2796 | 8 | Package: dhtest1 | ||
2797 | 9 | Architecture: any | ||
2798 | 10 | Depends: ${shlibs:Depends} | ||
2799 | 11 | Description: crash with a SIGSEGV | ||
2800 | 12 | Test package | ||
2801 | 13 | |||
2802 | 14 | Package: dhtest1-dbg | ||
2803 | 15 | Architecture: any | ||
2804 | 16 | Depends: dhtest1 (= ${Source-Version}) | ||
2805 | 17 | Description: crash with a SIGSEGV (debug symbols) | ||
2806 | 18 | Test package (debug symbols) | ||
2807 | 19 | |||
2808 | 20 | Package: dhtest2 | ||
2809 | 21 | Architecture: any | ||
2810 | 22 | Depends: ${shlibs:Depends} | ||
2811 | 23 | Description: crash with a SIGFPE | ||
2812 | 24 | Test package | ||
2813 | 25 | |||
2814 | 26 | Package: dhtestall | ||
2815 | 27 | Architecture: all | ||
2816 | 28 | Depends: ${shlibs:Depends} | ||
2817 | 29 | Description: dummy arch-all package | ||
2818 | 30 | Test package | ||
2819 | 31 | |||
2820 | 0 | 32 | ||
2821 | === added file 'tests/dhtest.dbg3/debian/copyright' | |||
2822 | --- tests/dhtest.dbg3/debian/copyright 1970-01-01 00:00:00 +0000 | |||
2823 | +++ tests/dhtest.dbg3/debian/copyright 2010-04-21 20:29:14 +0000 | |||
2824 | @@ -0,0 +1,1 @@ | |||
2825 | 1 | foo | ||
2826 | 0 | 2 | ||
2827 | === added file 'tests/dhtest.dbg3/debian/dhtest1.install' | |||
2828 | --- tests/dhtest.dbg3/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
2829 | +++ tests/dhtest.dbg3/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
2830 | @@ -0,0 +1,1 @@ | |||
2831 | 1 | /usr/bin/crash | ||
2832 | 0 | 2 | ||
2833 | === added file 'tests/dhtest.dbg3/debian/dhtest2.install' | |||
2834 | --- tests/dhtest.dbg3/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
2835 | +++ tests/dhtest.dbg3/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
2836 | @@ -0,0 +1,1 @@ | |||
2837 | 1 | /usr/bin/crash2 | ||
2838 | 0 | 2 | ||
2839 | === added file 'tests/dhtest.dbg3/debian/rules' | |||
2840 | --- tests/dhtest.dbg3/debian/rules 1970-01-01 00:00:00 +0000 | |||
2841 | +++ tests/dhtest.dbg3/debian/rules 2010-04-21 20:29:14 +0000 | |||
2842 | @@ -0,0 +1,86 @@ | |||
2843 | 1 | #!/usr/bin/make -f | ||
2844 | 2 | |||
2845 | 3 | # Uncomment this to turn on verbose mode. | ||
2846 | 4 | #export DH_VERBOSE=1 | ||
2847 | 5 | |||
2848 | 6 | # This has to be exported to make some magic below work. | ||
2849 | 7 | export DH_OPTIONS | ||
2850 | 8 | |||
2851 | 9 | CFLAGS = -Wall -g | ||
2852 | 10 | |||
2853 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
2854 | 12 | CFLAGS += -O0 | ||
2855 | 13 | else | ||
2856 | 14 | CFLAGS += -O2 | ||
2857 | 15 | endif | ||
2858 | 16 | |||
2859 | 17 | #Architecture | ||
2860 | 18 | build: build-arch build-indep | ||
2861 | 19 | |||
2862 | 20 | build-arch: build-arch-stamp | ||
2863 | 21 | build-arch-stamp: | ||
2864 | 22 | $(MAKE) | ||
2865 | 23 | touch build-arch-stamp | ||
2866 | 24 | |||
2867 | 25 | build-indep: | ||
2868 | 26 | |||
2869 | 27 | clean: | ||
2870 | 28 | dh_testdir | ||
2871 | 29 | dh_testroot | ||
2872 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
2873 | 31 | -$(MAKE) clean | ||
2874 | 32 | dh_clean | ||
2875 | 33 | |||
2876 | 34 | install: install-indep install-arch | ||
2877 | 35 | install-indep: | ||
2878 | 36 | dh_testdir | ||
2879 | 37 | dh_testroot | ||
2880 | 38 | dh_clean -k -i | ||
2881 | 39 | dh_installdirs -i | ||
2882 | 40 | dh_install -i --sourcedir=debian/tmp | ||
2883 | 41 | |||
2884 | 42 | install-arch: | ||
2885 | 43 | dh_testdir | ||
2886 | 44 | dh_testroot | ||
2887 | 45 | dh_clean -k -s | ||
2888 | 46 | dh_installdirs -s | ||
2889 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
2890 | 48 | dh_install -s --sourcedir=debian/tmp | ||
2891 | 49 | |||
2892 | 50 | # Must not depend on anything. This is to be called by | ||
2893 | 51 | # binary-arch/binary-indep | ||
2894 | 52 | # in another 'make' thread. | ||
2895 | 53 | binary-common: | ||
2896 | 54 | |||
2897 | 55 | # Build architecture independant packages using the common target. | ||
2898 | 56 | binary-indep: build-indep install-indep | ||
2899 | 57 | dh_testdir -i | ||
2900 | 58 | dh_testroot -i | ||
2901 | 59 | dh_installchangelogs -i | ||
2902 | 60 | dh_installdocs -i | ||
2903 | 61 | dh_strip -i | ||
2904 | 62 | dh_compress -i | ||
2905 | 63 | dh_fixperms -i | ||
2906 | 64 | dh_installdeb -i | ||
2907 | 65 | dh_shlibdeps -i | ||
2908 | 66 | dh_gencontrol -i | ||
2909 | 67 | dh_md5sums -i | ||
2910 | 68 | dh_builddeb -i | ||
2911 | 69 | |||
2912 | 70 | # Build architecture dependant packages using the common target. | ||
2913 | 71 | binary-arch: build-arch install-arch | ||
2914 | 72 | dh_testdir -a | ||
2915 | 73 | dh_testroot -a | ||
2916 | 74 | dh_installchangelogs -a | ||
2917 | 75 | dh_installdocs -a | ||
2918 | 76 | dh_strip -a --dbg-package dhtest1-dbg | ||
2919 | 77 | dh_compress -a | ||
2920 | 78 | dh_fixperms -a | ||
2921 | 79 | dh_installdeb -a | ||
2922 | 80 | dh_shlibdeps -a | ||
2923 | 81 | dh_gencontrol -a | ||
2924 | 82 | dh_md5sums -a | ||
2925 | 83 | dh_builddeb -a | ||
2926 | 84 | |||
2927 | 85 | binary: binary-arch binary-indep | ||
2928 | 86 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
2929 | 0 | 87 | ||
2930 | === added directory 'tests/dhtest.noargs' | |||
2931 | === added file 'tests/dhtest.noargs/Makefile' | |||
2932 | --- tests/dhtest.noargs/Makefile 1970-01-01 00:00:00 +0000 | |||
2933 | +++ tests/dhtest.noargs/Makefile 2010-04-21 20:29:14 +0000 | |||
2934 | @@ -0,0 +1,19 @@ | |||
2935 | 1 | CFLAGS= -g -Wall -W -O0 | ||
2936 | 2 | |||
2937 | 3 | LIBNAME=crashrep | ||
2938 | 4 | |||
2939 | 5 | all: crash crash2 | ||
2940 | 6 | |||
2941 | 7 | crash: crash.o | ||
2942 | 8 | $(CC) $^ -o $@ | ||
2943 | 9 | objcopy --add-gnu-debuglink=$@ $@ | ||
2944 | 10 | |||
2945 | 11 | crash2: crash2.o | ||
2946 | 12 | $(CC) $^ -o $@ | ||
2947 | 13 | |||
2948 | 14 | clean: | ||
2949 | 15 | rm -f *.o crash crash2 | ||
2950 | 16 | |||
2951 | 17 | install: all | ||
2952 | 18 | install -d $(DESTDIR)/usr/bin | ||
2953 | 19 | install crash crash2 $(DESTDIR)/usr/bin | ||
2954 | 0 | 20 | ||
2955 | === added file 'tests/dhtest.noargs/crash.c' | |||
2956 | --- tests/dhtest.noargs/crash.c 1970-01-01 00:00:00 +0000 | |||
2957 | +++ tests/dhtest.noargs/crash.c 2010-04-21 20:29:14 +0000 | |||
2958 | @@ -0,0 +1,34 @@ | |||
2959 | 1 | /* crash.c - demo program for libcrashreport | ||
2960 | 2 | |||
2961 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
2962 | 4 | |||
2963 | 5 | This file is public domain. | ||
2964 | 6 | */ | ||
2965 | 7 | |||
2966 | 8 | #include <stdio.h> | ||
2967 | 9 | |||
2968 | 10 | void h(char* p) { | ||
2969 | 11 | p[1] = 'a'; | ||
2970 | 12 | } | ||
2971 | 13 | |||
2972 | 14 | int g( int x, int y ) | ||
2973 | 15 | { | ||
2974 | 16 | char* s = NULL; | ||
2975 | 17 | h(s); | ||
2976 | 18 | return x+y; | ||
2977 | 19 | } | ||
2978 | 20 | |||
2979 | 21 | int f( int x ) | ||
2980 | 22 | { | ||
2981 | 23 | return g( x, 42 ); | ||
2982 | 24 | } | ||
2983 | 25 | |||
2984 | 26 | int | ||
2985 | 27 | main() | ||
2986 | 28 | { | ||
2987 | 29 | int x; | ||
2988 | 30 | |||
2989 | 31 | x = f(1); | ||
2990 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
2991 | 33 | return 0; | ||
2992 | 34 | } | ||
2993 | 0 | 35 | ||
2994 | === added file 'tests/dhtest.noargs/crash2.c' | |||
2995 | --- tests/dhtest.noargs/crash2.c 1970-01-01 00:00:00 +0000 | |||
2996 | +++ tests/dhtest.noargs/crash2.c 2010-04-21 20:29:14 +0000 | |||
2997 | @@ -0,0 +1,39 @@ | |||
2998 | 1 | /* crash.c - demo program for libcrashreport | ||
2999 | 2 | |||
3000 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3001 | 4 | |||
3002 | 5 | This file is public domain. | ||
3003 | 6 | */ | ||
3004 | 7 | |||
3005 | 8 | #include <stdio.h> | ||
3006 | 9 | #include <math.h> | ||
3007 | 10 | #include <signal.h> | ||
3008 | 11 | |||
3009 | 12 | double h() | ||
3010 | 13 | { | ||
3011 | 14 | double a = 1./0; | ||
3012 | 15 | if (isinf(a)) | ||
3013 | 16 | raise(SIGFPE); | ||
3014 | 17 | return a; | ||
3015 | 18 | } | ||
3016 | 19 | |||
3017 | 20 | int g( int x, int y ) | ||
3018 | 21 | { | ||
3019 | 22 | |||
3020 | 23 | return x+y+(int) h(); | ||
3021 | 24 | } | ||
3022 | 25 | |||
3023 | 26 | int f( int x ) | ||
3024 | 27 | { | ||
3025 | 28 | return g( x, 42 ); | ||
3026 | 29 | } | ||
3027 | 30 | |||
3028 | 31 | int | ||
3029 | 32 | main() | ||
3030 | 33 | { | ||
3031 | 34 | int x; | ||
3032 | 35 | |||
3033 | 36 | x = f(1); | ||
3034 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
3035 | 38 | return 0; | ||
3036 | 39 | } | ||
3037 | 0 | 40 | ||
3038 | === added directory 'tests/dhtest.noargs/debian' | |||
3039 | === added file 'tests/dhtest.noargs/debian/changelog' | |||
3040 | --- tests/dhtest.noargs/debian/changelog 1970-01-01 00:00:00 +0000 | |||
3041 | +++ tests/dhtest.noargs/debian/changelog 2010-04-21 20:29:14 +0000 | |||
3042 | @@ -0,0 +1,5 @@ | |||
3043 | 1 | dhtest.noargs (3.14) foo; urgency=low | ||
3044 | 2 | |||
3045 | 3 | * Initial release. | ||
3046 | 4 | |||
3047 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
3048 | 0 | 6 | ||
3049 | === added file 'tests/dhtest.noargs/debian/compat' | |||
3050 | --- tests/dhtest.noargs/debian/compat 1970-01-01 00:00:00 +0000 | |||
3051 | +++ tests/dhtest.noargs/debian/compat 2010-04-21 20:29:14 +0000 | |||
3052 | @@ -0,0 +1,1 @@ | |||
3053 | 1 | 5 | ||
3054 | 0 | 2 | ||
3055 | === added file 'tests/dhtest.noargs/debian/control' | |||
3056 | --- tests/dhtest.noargs/debian/control 1970-01-01 00:00:00 +0000 | |||
3057 | +++ tests/dhtest.noargs/debian/control 2010-04-21 20:29:14 +0000 | |||
3058 | @@ -0,0 +1,29 @@ | |||
3059 | 1 | Source: dhtest.noargs | ||
3060 | 2 | Section: utils | ||
3061 | 3 | Priority: extra | ||
3062 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
3063 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
3064 | 6 | Standards-Version: 3.7.2 | ||
3065 | 7 | |||
3066 | 8 | Package: dhtest1 | ||
3067 | 9 | Architecture: any | ||
3068 | 10 | Pre-Depends: coreutils (>= 1) | ||
3069 | 11 | Depends: ${shlibs:Depends} | ||
3070 | 12 | Suggests: foo (<< 1), | ||
3071 | 13 | bar (>= 0), baz, | ||
3072 | 14 | zip | ||
3073 | 15 | Description: crash with a SIGSEGV | ||
3074 | 16 | Test package | ||
3075 | 17 | |||
3076 | 18 | Package: dhtest2 | ||
3077 | 19 | Architecture: any | ||
3078 | 20 | Depends: ${shlibs:Depends} | ||
3079 | 21 | Description: crash with a SIGFPE | ||
3080 | 22 | Test package | ||
3081 | 23 | |||
3082 | 24 | Package: dhtestall | ||
3083 | 25 | Architecture: all | ||
3084 | 26 | Depends: ${shlibs:Depends} | ||
3085 | 27 | Description: dummy arch-all package | ||
3086 | 28 | Test package | ||
3087 | 29 | |||
3088 | 0 | 30 | ||
3089 | === added file 'tests/dhtest.noargs/debian/copyright' | |||
3090 | --- tests/dhtest.noargs/debian/copyright 1970-01-01 00:00:00 +0000 | |||
3091 | +++ tests/dhtest.noargs/debian/copyright 2010-04-21 20:29:14 +0000 | |||
3092 | @@ -0,0 +1,1 @@ | |||
3093 | 1 | foo | ||
3094 | 0 | 2 | ||
3095 | === added file 'tests/dhtest.noargs/debian/dhtest1.install' | |||
3096 | --- tests/dhtest.noargs/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
3097 | +++ tests/dhtest.noargs/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
3098 | @@ -0,0 +1,1 @@ | |||
3099 | 1 | /usr/bin/crash | ||
3100 | 0 | 2 | ||
3101 | === added file 'tests/dhtest.noargs/debian/dhtest2.install' | |||
3102 | --- tests/dhtest.noargs/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
3103 | +++ tests/dhtest.noargs/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
3104 | @@ -0,0 +1,1 @@ | |||
3105 | 1 | /usr/bin/crash2 | ||
3106 | 0 | 2 | ||
3107 | === added file 'tests/dhtest.noargs/debian/rules' | |||
3108 | --- tests/dhtest.noargs/debian/rules 1970-01-01 00:00:00 +0000 | |||
3109 | +++ tests/dhtest.noargs/debian/rules 2010-04-21 20:29:14 +0000 | |||
3110 | @@ -0,0 +1,69 @@ | |||
3111 | 1 | #!/usr/bin/make -f | ||
3112 | 2 | |||
3113 | 3 | # Uncomment this to turn on verbose mode. | ||
3114 | 4 | #export DH_VERBOSE=1 | ||
3115 | 5 | |||
3116 | 6 | # This has to be exported to make some magic below work. | ||
3117 | 7 | export DH_OPTIONS | ||
3118 | 8 | |||
3119 | 9 | CFLAGS = -Wall -g | ||
3120 | 10 | |||
3121 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
3122 | 12 | CFLAGS += -O0 | ||
3123 | 13 | else | ||
3124 | 14 | CFLAGS += -O2 | ||
3125 | 15 | endif | ||
3126 | 16 | |||
3127 | 17 | #Architecture | ||
3128 | 18 | build: build-arch build-indep | ||
3129 | 19 | |||
3130 | 20 | build-arch: build-arch-stamp | ||
3131 | 21 | build-arch-stamp: | ||
3132 | 22 | $(MAKE) | ||
3133 | 23 | touch build-arch-stamp | ||
3134 | 24 | |||
3135 | 25 | build-indep: | ||
3136 | 26 | |||
3137 | 27 | clean: | ||
3138 | 28 | dh_testdir | ||
3139 | 29 | dh_testroot | ||
3140 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
3141 | 31 | -$(MAKE) clean | ||
3142 | 32 | dh_clean | ||
3143 | 33 | |||
3144 | 34 | install: install-indep install-arch | ||
3145 | 35 | install-indep: | ||
3146 | 36 | dh_testdir | ||
3147 | 37 | dh_testroot | ||
3148 | 38 | dh_clean -k -i | ||
3149 | 39 | dh_installdirs -i | ||
3150 | 40 | dh_install -i --sourcedir=debian/tmp | ||
3151 | 41 | |||
3152 | 42 | install-arch: | ||
3153 | 43 | dh_testdir | ||
3154 | 44 | dh_testroot | ||
3155 | 45 | dh_clean -k -s | ||
3156 | 46 | dh_installdirs -s | ||
3157 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
3158 | 48 | dh_install -s --sourcedir=debian/tmp | ||
3159 | 49 | |||
3160 | 50 | # Build architecture independant packages using the common target. | ||
3161 | 51 | binary-indep: build-indep install-indep | ||
3162 | 52 | |||
3163 | 53 | # Build architecture dependant packages using the common target. | ||
3164 | 54 | binary-arch: build-arch install-arch | ||
3165 | 55 | dh_testdir | ||
3166 | 56 | dh_testroot | ||
3167 | 57 | dh_installchangelogs | ||
3168 | 58 | dh_installdocs | ||
3169 | 59 | dh_strip | ||
3170 | 60 | dh_compress | ||
3171 | 61 | dh_fixperms | ||
3172 | 62 | dh_installdeb | ||
3173 | 63 | dh_shlibdeps | ||
3174 | 64 | dh_gencontrol | ||
3175 | 65 | dh_md5sums | ||
3176 | 66 | dh_builddeb | ||
3177 | 67 | |||
3178 | 68 | binary: binary-arch binary-indep | ||
3179 | 69 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
3180 | 0 | 70 | ||
3181 | === added directory 'tests/dhtest.nostrip' | |||
3182 | === added file 'tests/dhtest.nostrip/Makefile' | |||
3183 | --- tests/dhtest.nostrip/Makefile 1970-01-01 00:00:00 +0000 | |||
3184 | +++ tests/dhtest.nostrip/Makefile 2010-04-21 20:29:14 +0000 | |||
3185 | @@ -0,0 +1,19 @@ | |||
3186 | 1 | CFLAGS= -g -Wall -W -O0 | ||
3187 | 2 | |||
3188 | 3 | LIBNAME=crashrep | ||
3189 | 4 | |||
3190 | 5 | all: crash crash2 | ||
3191 | 6 | |||
3192 | 7 | crash: crash.o | ||
3193 | 8 | $(CC) $^ -o $@ | ||
3194 | 9 | |||
3195 | 10 | crash2: crash2.o | ||
3196 | 11 | $(CC) $^ -o $@ | ||
3197 | 12 | |||
3198 | 13 | clean: | ||
3199 | 14 | rm -f *.o crash crash2 | ||
3200 | 15 | |||
3201 | 16 | install: all | ||
3202 | 17 | install -d $(DESTDIR)/usr/bin | ||
3203 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
3204 | 19 | cp -a $(DESTDIR)/usr/bin/crash2 $(DESTDIR)/usr/bin/crash3 | ||
3205 | 0 | 20 | ||
3206 | === added file 'tests/dhtest.nostrip/crash.c' | |||
3207 | --- tests/dhtest.nostrip/crash.c 1970-01-01 00:00:00 +0000 | |||
3208 | +++ tests/dhtest.nostrip/crash.c 2010-04-21 20:29:14 +0000 | |||
3209 | @@ -0,0 +1,34 @@ | |||
3210 | 1 | /* crash.c - demo program for libcrashreport | ||
3211 | 2 | |||
3212 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3213 | 4 | |||
3214 | 5 | This file is public domain. | ||
3215 | 6 | */ | ||
3216 | 7 | |||
3217 | 8 | #include <stdio.h> | ||
3218 | 9 | |||
3219 | 10 | void h(char* p) { | ||
3220 | 11 | p[1] = 'a'; | ||
3221 | 12 | } | ||
3222 | 13 | |||
3223 | 14 | int g( int x, int y ) | ||
3224 | 15 | { | ||
3225 | 16 | char* s = NULL; | ||
3226 | 17 | h(s); | ||
3227 | 18 | return x+y; | ||
3228 | 19 | } | ||
3229 | 20 | |||
3230 | 21 | int f( int x ) | ||
3231 | 22 | { | ||
3232 | 23 | return g( x, 42 ); | ||
3233 | 24 | } | ||
3234 | 25 | |||
3235 | 26 | int | ||
3236 | 27 | main() | ||
3237 | 28 | { | ||
3238 | 29 | int x; | ||
3239 | 30 | |||
3240 | 31 | x = f(1); | ||
3241 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
3242 | 33 | return 0; | ||
3243 | 34 | } | ||
3244 | 0 | 35 | ||
3245 | === added file 'tests/dhtest.nostrip/crash2.c' | |||
3246 | --- tests/dhtest.nostrip/crash2.c 1970-01-01 00:00:00 +0000 | |||
3247 | +++ tests/dhtest.nostrip/crash2.c 2010-04-21 20:29:14 +0000 | |||
3248 | @@ -0,0 +1,39 @@ | |||
3249 | 1 | /* crash.c - demo program for libcrashreport | ||
3250 | 2 | |||
3251 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3252 | 4 | |||
3253 | 5 | This file is public domain. | ||
3254 | 6 | */ | ||
3255 | 7 | |||
3256 | 8 | #include <stdio.h> | ||
3257 | 9 | #include <math.h> | ||
3258 | 10 | #include <signal.h> | ||
3259 | 11 | |||
3260 | 12 | double h() | ||
3261 | 13 | { | ||
3262 | 14 | double a = 1./0; | ||
3263 | 15 | if (isinf(a)) | ||
3264 | 16 | raise(SIGFPE); | ||
3265 | 17 | return a; | ||
3266 | 18 | } | ||
3267 | 19 | |||
3268 | 20 | int g( int x, int y ) | ||
3269 | 21 | { | ||
3270 | 22 | |||
3271 | 23 | return x+y+(int) h(); | ||
3272 | 24 | } | ||
3273 | 25 | |||
3274 | 26 | int f( int x ) | ||
3275 | 27 | { | ||
3276 | 28 | return g( x, 42 ); | ||
3277 | 29 | } | ||
3278 | 30 | |||
3279 | 31 | int | ||
3280 | 32 | main() | ||
3281 | 33 | { | ||
3282 | 34 | int x; | ||
3283 | 35 | |||
3284 | 36 | x = f(1); | ||
3285 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
3286 | 38 | return 0; | ||
3287 | 39 | } | ||
3288 | 0 | 40 | ||
3289 | === added directory 'tests/dhtest.nostrip/debian' | |||
3290 | === added file 'tests/dhtest.nostrip/debian/changelog' | |||
3291 | --- tests/dhtest.nostrip/debian/changelog 1970-01-01 00:00:00 +0000 | |||
3292 | +++ tests/dhtest.nostrip/debian/changelog 2010-04-21 20:29:14 +0000 | |||
3293 | @@ -0,0 +1,5 @@ | |||
3294 | 1 | dhtest.nostrip (1:2.3-1) foo; urgency=low | ||
3295 | 2 | |||
3296 | 3 | * Initial release. | ||
3297 | 4 | |||
3298 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
3299 | 0 | 6 | ||
3300 | === added file 'tests/dhtest.nostrip/debian/compat' | |||
3301 | --- tests/dhtest.nostrip/debian/compat 1970-01-01 00:00:00 +0000 | |||
3302 | +++ tests/dhtest.nostrip/debian/compat 2010-04-21 20:29:14 +0000 | |||
3303 | @@ -0,0 +1,1 @@ | |||
3304 | 1 | 5 | ||
3305 | 0 | 2 | ||
3306 | === added file 'tests/dhtest.nostrip/debian/control' | |||
3307 | --- tests/dhtest.nostrip/debian/control 1970-01-01 00:00:00 +0000 | |||
3308 | +++ tests/dhtest.nostrip/debian/control 2010-04-21 20:29:14 +0000 | |||
3309 | @@ -0,0 +1,30 @@ | |||
3310 | 1 | Source: dhtest.nostrip | ||
3311 | 2 | Section: utils | ||
3312 | 3 | Priority: extra | ||
3313 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
3314 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
3315 | 6 | Standards-Version: 3.7.2 | ||
3316 | 7 | |||
3317 | 8 | Package: dhtest1 | ||
3318 | 9 | Architecture: any | ||
3319 | 10 | Depends: ${shlibs:Depends}, coreutils (>> ${foo}) | ||
3320 | 11 | Recommends: dhtest2 (>> ${foo}) | ||
3321 | 12 | Suggests: dhtestall (>= ${foo}), ${bar}-core | ||
3322 | 13 | Conflicts: dhtestall (<< ${foo}) | ||
3323 | 14 | Replaces: dhtestall (<< ${foo}) | ||
3324 | 15 | Breaks: dhtestall (<< ${foo}) | ||
3325 | 16 | Description: crash with a SIGSEGV | ||
3326 | 17 | Test package | ||
3327 | 18 | |||
3328 | 19 | Package: dhtest2-nostrip | ||
3329 | 20 | Architecture: any | ||
3330 | 21 | Depends: ${shlibs:Depends} | ||
3331 | 22 | Description: crash with a SIGFPE | ||
3332 | 23 | Test package | ||
3333 | 24 | |||
3334 | 25 | Package: dhtestall | ||
3335 | 26 | Architecture: all | ||
3336 | 27 | Depends: ${shlibs:Depends} | ||
3337 | 28 | Description: dummy arch-all package | ||
3338 | 29 | Test package | ||
3339 | 30 | |||
3340 | 0 | 31 | ||
3341 | === added file 'tests/dhtest.nostrip/debian/copyright' | |||
3342 | --- tests/dhtest.nostrip/debian/copyright 1970-01-01 00:00:00 +0000 | |||
3343 | +++ tests/dhtest.nostrip/debian/copyright 2010-04-21 20:29:14 +0000 | |||
3344 | @@ -0,0 +1,1 @@ | |||
3345 | 1 | foo | ||
3346 | 0 | 2 | ||
3347 | === added file 'tests/dhtest.nostrip/debian/dhtest1.install' | |||
3348 | --- tests/dhtest.nostrip/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
3349 | +++ tests/dhtest.nostrip/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
3350 | @@ -0,0 +1,1 @@ | |||
3351 | 1 | /usr/bin/crash | ||
3352 | 0 | 2 | ||
3353 | === added file 'tests/dhtest.nostrip/debian/dhtest2-nostrip.install' | |||
3354 | --- tests/dhtest.nostrip/debian/dhtest2-nostrip.install 1970-01-01 00:00:00 +0000 | |||
3355 | +++ tests/dhtest.nostrip/debian/dhtest2-nostrip.install 2010-04-21 20:29:14 +0000 | |||
3356 | @@ -0,0 +1,2 @@ | |||
3357 | 1 | /usr/bin/crash2 | ||
3358 | 2 | /usr/bin/crash3 | ||
3359 | 0 | 3 | ||
3360 | === added file 'tests/dhtest.nostrip/debian/rules' | |||
3361 | --- tests/dhtest.nostrip/debian/rules 1970-01-01 00:00:00 +0000 | |||
3362 | +++ tests/dhtest.nostrip/debian/rules 2010-04-21 20:29:14 +0000 | |||
3363 | @@ -0,0 +1,84 @@ | |||
3364 | 1 | #!/usr/bin/make -f | ||
3365 | 2 | |||
3366 | 3 | # Uncomment this to turn on verbose mode. | ||
3367 | 4 | #export DH_VERBOSE=1 | ||
3368 | 5 | |||
3369 | 6 | # This has to be exported to make some magic below work. | ||
3370 | 7 | export DH_OPTIONS | ||
3371 | 8 | |||
3372 | 9 | CFLAGS = -Wall -g | ||
3373 | 10 | |||
3374 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
3375 | 12 | CFLAGS += -O0 | ||
3376 | 13 | else | ||
3377 | 14 | CFLAGS += -O2 | ||
3378 | 15 | endif | ||
3379 | 16 | |||
3380 | 17 | #Architecture | ||
3381 | 18 | build: build-arch build-indep | ||
3382 | 19 | |||
3383 | 20 | build-arch: build-arch-stamp | ||
3384 | 21 | build-arch-stamp: | ||
3385 | 22 | $(MAKE) | ||
3386 | 23 | touch build-arch-stamp | ||
3387 | 24 | |||
3388 | 25 | build-indep: | ||
3389 | 26 | |||
3390 | 27 | clean: | ||
3391 | 28 | dh_testdir | ||
3392 | 29 | dh_testroot | ||
3393 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
3394 | 31 | -$(MAKE) clean | ||
3395 | 32 | dh_clean | ||
3396 | 33 | |||
3397 | 34 | install: install-indep install-arch | ||
3398 | 35 | install-indep: | ||
3399 | 36 | dh_testdir | ||
3400 | 37 | dh_testroot | ||
3401 | 38 | dh_clean -k -i | ||
3402 | 39 | dh_installdirs -i | ||
3403 | 40 | dh_install -i --sourcedir=debian/tmp | ||
3404 | 41 | |||
3405 | 42 | install-arch: | ||
3406 | 43 | dh_testdir | ||
3407 | 44 | dh_testroot | ||
3408 | 45 | dh_clean -k -s | ||
3409 | 46 | dh_installdirs -s | ||
3410 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
3411 | 48 | dh_install -s --sourcedir=debian/tmp | ||
3412 | 49 | |||
3413 | 50 | # Must not depend on anything. This is to be called by | ||
3414 | 51 | # binary-arch/binary-indep | ||
3415 | 52 | # in another 'make' thread. | ||
3416 | 53 | binary-common: | ||
3417 | 54 | dh_testdir | ||
3418 | 55 | dh_testroot | ||
3419 | 56 | dh_installchangelogs | ||
3420 | 57 | dh_installdocs | ||
3421 | 58 | dh_strip -Xcrash2 -X crash3 | ||
3422 | 59 | dh_compress | ||
3423 | 60 | dh_fixperms | ||
3424 | 61 | dh_installdeb | ||
3425 | 62 | dh_shlibdeps | ||
3426 | 63 | dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' | ||
3427 | 64 | dh_md5sums | ||
3428 | 65 | dh_builddeb | ||
3429 | 66 | |||
3430 | 67 | # Build architecture independant packages using the common target. | ||
3431 | 68 | binary-indep: build-indep install-indep | ||
3432 | 69 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
3433 | 70 | |||
3434 | 71 | # Build architecture dependant packages using the common target. | ||
3435 | 72 | binary-arch: build-arch install-arch | ||
3436 | 73 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
3437 | 74 | if ! cmp -s ./crash2 debian/dhtest2-nostrip/usr/bin/crash2; then \ | ||
3438 | 75 | echo "crash2 was invalidly touched" >&2; \ | ||
3439 | 76 | exit 1; \ | ||
3440 | 77 | fi | ||
3441 | 78 | if ! cmp -s ./crash2 debian/dhtest2-nostrip/usr/bin/crash3; then \ | ||
3442 | 79 | echo "crash3 was invalidly touched" >&2; \ | ||
3443 | 80 | exit 1; \ | ||
3444 | 81 | fi | ||
3445 | 82 | |||
3446 | 83 | binary: binary-arch binary-indep | ||
3447 | 84 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
3448 | 0 | 85 | ||
3449 | === added directory 'tests/dhtest.samename' | |||
3450 | === added file 'tests/dhtest.samename/Makefile' | |||
3451 | --- tests/dhtest.samename/Makefile 1970-01-01 00:00:00 +0000 | |||
3452 | +++ tests/dhtest.samename/Makefile 2010-04-21 20:29:14 +0000 | |||
3453 | @@ -0,0 +1,18 @@ | |||
3454 | 1 | CFLAGS= -g -Wall -W -O0 | ||
3455 | 2 | |||
3456 | 3 | LIBNAME=crashrep | ||
3457 | 4 | |||
3458 | 5 | all: crash crash2 | ||
3459 | 6 | |||
3460 | 7 | crash: crash.o | ||
3461 | 8 | $(CC) $^ -o $@ | ||
3462 | 9 | |||
3463 | 10 | crash2: crash2.o | ||
3464 | 11 | $(CC) $^ -o $@ | ||
3465 | 12 | |||
3466 | 13 | clean: | ||
3467 | 14 | rm -f *.o crash crash2 | ||
3468 | 15 | |||
3469 | 16 | install: all | ||
3470 | 17 | install -d $(DESTDIR)/usr/bin | ||
3471 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
3472 | 0 | 19 | ||
3473 | === added file 'tests/dhtest.samename/crash.c' | |||
3474 | --- tests/dhtest.samename/crash.c 1970-01-01 00:00:00 +0000 | |||
3475 | +++ tests/dhtest.samename/crash.c 2010-04-21 20:29:14 +0000 | |||
3476 | @@ -0,0 +1,34 @@ | |||
3477 | 1 | /* crash.c - demo program for libcrashreport | ||
3478 | 2 | |||
3479 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3480 | 4 | |||
3481 | 5 | This file is public domain. | ||
3482 | 6 | */ | ||
3483 | 7 | |||
3484 | 8 | #include <stdio.h> | ||
3485 | 9 | |||
3486 | 10 | void h(char* p) { | ||
3487 | 11 | p[1] = 'a'; | ||
3488 | 12 | } | ||
3489 | 13 | |||
3490 | 14 | int g( int x, int y ) | ||
3491 | 15 | { | ||
3492 | 16 | char* s = NULL; | ||
3493 | 17 | h(s); | ||
3494 | 18 | return x+y; | ||
3495 | 19 | } | ||
3496 | 20 | |||
3497 | 21 | int f( int x ) | ||
3498 | 22 | { | ||
3499 | 23 | return g( x, 42 ); | ||
3500 | 24 | } | ||
3501 | 25 | |||
3502 | 26 | int | ||
3503 | 27 | main() | ||
3504 | 28 | { | ||
3505 | 29 | int x; | ||
3506 | 30 | |||
3507 | 31 | x = f(1); | ||
3508 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
3509 | 33 | return 0; | ||
3510 | 34 | } | ||
3511 | 0 | 35 | ||
3512 | === added file 'tests/dhtest.samename/crash2.c' | |||
3513 | --- tests/dhtest.samename/crash2.c 1970-01-01 00:00:00 +0000 | |||
3514 | +++ tests/dhtest.samename/crash2.c 2010-04-21 20:29:14 +0000 | |||
3515 | @@ -0,0 +1,39 @@ | |||
3516 | 1 | /* crash.c - demo program for libcrashreport | ||
3517 | 2 | |||
3518 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3519 | 4 | |||
3520 | 5 | This file is public domain. | ||
3521 | 6 | */ | ||
3522 | 7 | |||
3523 | 8 | #include <stdio.h> | ||
3524 | 9 | #include <math.h> | ||
3525 | 10 | #include <signal.h> | ||
3526 | 11 | |||
3527 | 12 | double h() | ||
3528 | 13 | { | ||
3529 | 14 | double a = 1./0; | ||
3530 | 15 | if (isinf(a)) | ||
3531 | 16 | raise(SIGFPE); | ||
3532 | 17 | return a; | ||
3533 | 18 | } | ||
3534 | 19 | |||
3535 | 20 | int g( int x, int y ) | ||
3536 | 21 | { | ||
3537 | 22 | |||
3538 | 23 | return x+y+(int) h(); | ||
3539 | 24 | } | ||
3540 | 25 | |||
3541 | 26 | int f( int x ) | ||
3542 | 27 | { | ||
3543 | 28 | return g( x, 42 ); | ||
3544 | 29 | } | ||
3545 | 30 | |||
3546 | 31 | int | ||
3547 | 32 | main() | ||
3548 | 33 | { | ||
3549 | 34 | int x; | ||
3550 | 35 | |||
3551 | 36 | x = f(1); | ||
3552 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
3553 | 38 | return 0; | ||
3554 | 39 | } | ||
3555 | 0 | 40 | ||
3556 | === added directory 'tests/dhtest.samename/debian' | |||
3557 | === added file 'tests/dhtest.samename/debian/changelog' | |||
3558 | --- tests/dhtest.samename/debian/changelog 1970-01-01 00:00:00 +0000 | |||
3559 | +++ tests/dhtest.samename/debian/changelog 2010-04-21 20:29:14 +0000 | |||
3560 | @@ -0,0 +1,5 @@ | |||
3561 | 1 | dhtest.samename (1:2.3-1) foo; urgency=low | ||
3562 | 2 | |||
3563 | 3 | * Initial release. | ||
3564 | 4 | |||
3565 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
3566 | 0 | 6 | ||
3567 | === added file 'tests/dhtest.samename/debian/compat' | |||
3568 | --- tests/dhtest.samename/debian/compat 1970-01-01 00:00:00 +0000 | |||
3569 | +++ tests/dhtest.samename/debian/compat 2010-04-21 20:29:14 +0000 | |||
3570 | @@ -0,0 +1,1 @@ | |||
3571 | 1 | 5 | ||
3572 | 0 | 2 | ||
3573 | === added file 'tests/dhtest.samename/debian/control' | |||
3574 | --- tests/dhtest.samename/debian/control 1970-01-01 00:00:00 +0000 | |||
3575 | +++ tests/dhtest.samename/debian/control 2010-04-21 20:29:14 +0000 | |||
3576 | @@ -0,0 +1,29 @@ | |||
3577 | 1 | Source: dhtest.samename | ||
3578 | 2 | Section: utils | ||
3579 | 3 | Priority: extra | ||
3580 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
3581 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
3582 | 6 | Standards-Version: 3.7.2 | ||
3583 | 7 | |||
3584 | 8 | Package: dhtest | ||
3585 | 9 | Architecture: any | ||
3586 | 10 | Depends: ${shlibs:Depends}, coreutils (>> ${foo}) | ||
3587 | 11 | Recommends: dhtest.samename (>> ${foo}) | ||
3588 | 12 | Suggests: dhtestall (>= ${foo}), ${bar}-core | ||
3589 | 13 | Conflicts: dhtestall (<< ${foo}) | ||
3590 | 14 | Replaces: dhtestall (<< ${foo}) | ||
3591 | 15 | Breaks: dhtestall (<< ${foo}) | ||
3592 | 16 | Description: crash with a SIGSEGV | ||
3593 | 17 | Test package | ||
3594 | 18 | |||
3595 | 19 | Package: dhtest.samename | ||
3596 | 20 | Architecture: any | ||
3597 | 21 | Depends: ${shlibs:Depends} | ||
3598 | 22 | Description: crash with a SIGFPE | ||
3599 | 23 | Test package | ||
3600 | 24 | |||
3601 | 25 | Package: dhtestall | ||
3602 | 26 | Architecture: all | ||
3603 | 27 | Depends: ${shlibs:Depends} | ||
3604 | 28 | Description: dummy arch-all package | ||
3605 | 29 | Test package | ||
3606 | 0 | 30 | ||
3607 | === added file 'tests/dhtest.samename/debian/copyright' | |||
3608 | --- tests/dhtest.samename/debian/copyright 1970-01-01 00:00:00 +0000 | |||
3609 | +++ tests/dhtest.samename/debian/copyright 2010-04-21 20:29:14 +0000 | |||
3610 | @@ -0,0 +1,1 @@ | |||
3611 | 1 | foo | ||
3612 | 0 | 2 | ||
3613 | === added file 'tests/dhtest.samename/debian/dhtest.samename.install' | |||
3614 | --- tests/dhtest.samename/debian/dhtest.samename.install 1970-01-01 00:00:00 +0000 | |||
3615 | +++ tests/dhtest.samename/debian/dhtest.samename.install 2010-04-21 20:29:14 +0000 | |||
3616 | @@ -0,0 +1,1 @@ | |||
3617 | 1 | /usr/bin/crash2 | ||
3618 | 0 | 2 | ||
3619 | === added file 'tests/dhtest.samename/debian/dhtest1.install' | |||
3620 | --- tests/dhtest.samename/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
3621 | +++ tests/dhtest.samename/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
3622 | @@ -0,0 +1,1 @@ | |||
3623 | 1 | /usr/bin/crash | ||
3624 | 0 | 2 | ||
3625 | === added file 'tests/dhtest.samename/debian/rules' | |||
3626 | --- tests/dhtest.samename/debian/rules 1970-01-01 00:00:00 +0000 | |||
3627 | +++ tests/dhtest.samename/debian/rules 2010-04-21 20:29:14 +0000 | |||
3628 | @@ -0,0 +1,76 @@ | |||
3629 | 1 | #!/usr/bin/make -f | ||
3630 | 2 | |||
3631 | 3 | # Uncomment this to turn on verbose mode. | ||
3632 | 4 | #export DH_VERBOSE=1 | ||
3633 | 5 | |||
3634 | 6 | # This has to be exported to make some magic below work. | ||
3635 | 7 | export DH_OPTIONS | ||
3636 | 8 | |||
3637 | 9 | CFLAGS = -Wall -g | ||
3638 | 10 | |||
3639 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
3640 | 12 | CFLAGS += -O0 | ||
3641 | 13 | else | ||
3642 | 14 | CFLAGS += -O2 | ||
3643 | 15 | endif | ||
3644 | 16 | |||
3645 | 17 | #Architecture | ||
3646 | 18 | build: build-arch build-indep | ||
3647 | 19 | |||
3648 | 20 | build-arch: build-arch-stamp | ||
3649 | 21 | build-arch-stamp: | ||
3650 | 22 | $(MAKE) | ||
3651 | 23 | touch build-arch-stamp | ||
3652 | 24 | |||
3653 | 25 | build-indep: | ||
3654 | 26 | |||
3655 | 27 | clean: | ||
3656 | 28 | dh_testdir | ||
3657 | 29 | dh_testroot | ||
3658 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
3659 | 31 | -$(MAKE) clean | ||
3660 | 32 | dh_clean | ||
3661 | 33 | |||
3662 | 34 | install: install-indep install-arch | ||
3663 | 35 | install-indep: | ||
3664 | 36 | dh_testdir | ||
3665 | 37 | dh_testroot | ||
3666 | 38 | dh_clean -k -i | ||
3667 | 39 | dh_installdirs -i | ||
3668 | 40 | dh_install -i --sourcedir=debian/tmp | ||
3669 | 41 | |||
3670 | 42 | install-arch: | ||
3671 | 43 | dh_testdir | ||
3672 | 44 | dh_testroot | ||
3673 | 45 | dh_clean -k -s | ||
3674 | 46 | dh_installdirs -s | ||
3675 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
3676 | 48 | dh_install -s --sourcedir=debian/tmp | ||
3677 | 49 | |||
3678 | 50 | # Must not depend on anything. This is to be called by | ||
3679 | 51 | # binary-arch/binary-indep | ||
3680 | 52 | # in another 'make' thread. | ||
3681 | 53 | binary-common: | ||
3682 | 54 | dh_testdir | ||
3683 | 55 | dh_testroot | ||
3684 | 56 | dh_installchangelogs | ||
3685 | 57 | dh_installdocs | ||
3686 | 58 | dh_strip | ||
3687 | 59 | dh_compress | ||
3688 | 60 | dh_fixperms | ||
3689 | 61 | dh_installdeb | ||
3690 | 62 | dh_shlibdeps | ||
3691 | 63 | dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' | ||
3692 | 64 | dh_md5sums | ||
3693 | 65 | dh_builddeb | ||
3694 | 66 | |||
3695 | 67 | # Build architecture independant packages using the common target. | ||
3696 | 68 | binary-indep: build-indep install-indep | ||
3697 | 69 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
3698 | 70 | |||
3699 | 71 | # Build architecture dependant packages using the common target. | ||
3700 | 72 | binary-arch: build-arch install-arch | ||
3701 | 73 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
3702 | 74 | |||
3703 | 75 | binary: binary-arch binary-indep | ||
3704 | 76 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
3705 | 0 | 77 | ||
3706 | === added directory 'tests/dhtest.tmpdirarg' | |||
3707 | === added file 'tests/dhtest.tmpdirarg/Makefile' | |||
3708 | --- tests/dhtest.tmpdirarg/Makefile 1970-01-01 00:00:00 +0000 | |||
3709 | +++ tests/dhtest.tmpdirarg/Makefile 2010-04-21 20:29:14 +0000 | |||
3710 | @@ -0,0 +1,18 @@ | |||
3711 | 1 | CFLAGS= -g -Wall -W -O0 | ||
3712 | 2 | |||
3713 | 3 | LIBNAME=crashrep | ||
3714 | 4 | |||
3715 | 5 | all: crash crash2 | ||
3716 | 6 | |||
3717 | 7 | crash: crash.o | ||
3718 | 8 | $(CC) $^ -o $@ | ||
3719 | 9 | |||
3720 | 10 | crash2: crash2.o | ||
3721 | 11 | $(CC) $^ -o $@ | ||
3722 | 12 | |||
3723 | 13 | clean: | ||
3724 | 14 | rm -f *.o crash crash2 | ||
3725 | 15 | |||
3726 | 16 | install: all | ||
3727 | 17 | install -d $(DESTDIR)/usr/bin | ||
3728 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
3729 | 0 | 19 | ||
3730 | === added file 'tests/dhtest.tmpdirarg/crash.c' | |||
3731 | --- tests/dhtest.tmpdirarg/crash.c 1970-01-01 00:00:00 +0000 | |||
3732 | +++ tests/dhtest.tmpdirarg/crash.c 2010-04-21 20:29:14 +0000 | |||
3733 | @@ -0,0 +1,34 @@ | |||
3734 | 1 | /* crash.c - demo program for libcrashreport | ||
3735 | 2 | |||
3736 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3737 | 4 | |||
3738 | 5 | This file is public domain. | ||
3739 | 6 | */ | ||
3740 | 7 | |||
3741 | 8 | #include <stdio.h> | ||
3742 | 9 | |||
3743 | 10 | void h(char* p) { | ||
3744 | 11 | p[1] = 'a'; | ||
3745 | 12 | } | ||
3746 | 13 | |||
3747 | 14 | int g( int x, int y ) | ||
3748 | 15 | { | ||
3749 | 16 | char* s = NULL; | ||
3750 | 17 | h(s); | ||
3751 | 18 | return x+y; | ||
3752 | 19 | } | ||
3753 | 20 | |||
3754 | 21 | int f( int x ) | ||
3755 | 22 | { | ||
3756 | 23 | return g( x, 42 ); | ||
3757 | 24 | } | ||
3758 | 25 | |||
3759 | 26 | int | ||
3760 | 27 | main() | ||
3761 | 28 | { | ||
3762 | 29 | int x; | ||
3763 | 30 | |||
3764 | 31 | x = f(1); | ||
3765 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
3766 | 33 | return 0; | ||
3767 | 34 | } | ||
3768 | 0 | 35 | ||
3769 | === added file 'tests/dhtest.tmpdirarg/crash2.c' | |||
3770 | --- tests/dhtest.tmpdirarg/crash2.c 1970-01-01 00:00:00 +0000 | |||
3771 | +++ tests/dhtest.tmpdirarg/crash2.c 2010-04-21 20:29:14 +0000 | |||
3772 | @@ -0,0 +1,39 @@ | |||
3773 | 1 | /* crash.c - demo program for libcrashreport | ||
3774 | 2 | |||
3775 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3776 | 4 | |||
3777 | 5 | This file is public domain. | ||
3778 | 6 | */ | ||
3779 | 7 | |||
3780 | 8 | #include <stdio.h> | ||
3781 | 9 | #include <math.h> | ||
3782 | 10 | #include <signal.h> | ||
3783 | 11 | |||
3784 | 12 | double h() | ||
3785 | 13 | { | ||
3786 | 14 | double a = 1./0; | ||
3787 | 15 | if (isinf(a)) | ||
3788 | 16 | raise(SIGFPE); | ||
3789 | 17 | return a; | ||
3790 | 18 | } | ||
3791 | 19 | |||
3792 | 20 | int g( int x, int y ) | ||
3793 | 21 | { | ||
3794 | 22 | |||
3795 | 23 | return x+y+(int) h(); | ||
3796 | 24 | } | ||
3797 | 25 | |||
3798 | 26 | int f( int x ) | ||
3799 | 27 | { | ||
3800 | 28 | return g( x, 42 ); | ||
3801 | 29 | } | ||
3802 | 30 | |||
3803 | 31 | int | ||
3804 | 32 | main() | ||
3805 | 33 | { | ||
3806 | 34 | int x; | ||
3807 | 35 | |||
3808 | 36 | x = f(1); | ||
3809 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
3810 | 38 | return 0; | ||
3811 | 39 | } | ||
3812 | 0 | 40 | ||
3813 | === added directory 'tests/dhtest.tmpdirarg/debian' | |||
3814 | === added file 'tests/dhtest.tmpdirarg/debian/changelog' | |||
3815 | --- tests/dhtest.tmpdirarg/debian/changelog 1970-01-01 00:00:00 +0000 | |||
3816 | +++ tests/dhtest.tmpdirarg/debian/changelog 2010-04-21 20:29:14 +0000 | |||
3817 | @@ -0,0 +1,5 @@ | |||
3818 | 1 | dhtest.tmpdirarg (1) foo; urgency=low | ||
3819 | 2 | |||
3820 | 3 | * Initial release. | ||
3821 | 4 | |||
3822 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
3823 | 0 | 6 | ||
3824 | === added file 'tests/dhtest.tmpdirarg/debian/compat' | |||
3825 | --- tests/dhtest.tmpdirarg/debian/compat 1970-01-01 00:00:00 +0000 | |||
3826 | +++ tests/dhtest.tmpdirarg/debian/compat 2010-04-21 20:29:14 +0000 | |||
3827 | @@ -0,0 +1,1 @@ | |||
3828 | 1 | 5 | ||
3829 | 0 | 2 | ||
3830 | === added file 'tests/dhtest.tmpdirarg/debian/control' | |||
3831 | --- tests/dhtest.tmpdirarg/debian/control 1970-01-01 00:00:00 +0000 | |||
3832 | +++ tests/dhtest.tmpdirarg/debian/control 2010-04-21 20:29:14 +0000 | |||
3833 | @@ -0,0 +1,12 @@ | |||
3834 | 1 | Source: dhtest.tmpdirarg | ||
3835 | 2 | Section: utils | ||
3836 | 3 | Priority: extra | ||
3837 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
3838 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
3839 | 6 | Standards-Version: 3.7.2 | ||
3840 | 7 | |||
3841 | 8 | Package: dhtest1 | ||
3842 | 9 | Architecture: any | ||
3843 | 10 | Depends: ${shlibs:Depends} | ||
3844 | 11 | Description: crash with a SIGSEGV | ||
3845 | 12 | Test package | ||
3846 | 0 | 13 | ||
3847 | === added file 'tests/dhtest.tmpdirarg/debian/copyright' | |||
3848 | --- tests/dhtest.tmpdirarg/debian/copyright 1970-01-01 00:00:00 +0000 | |||
3849 | +++ tests/dhtest.tmpdirarg/debian/copyright 2010-04-21 20:29:14 +0000 | |||
3850 | @@ -0,0 +1,1 @@ | |||
3851 | 1 | foo | ||
3852 | 0 | 2 | ||
3853 | === added file 'tests/dhtest.tmpdirarg/debian/dhtest1.install' | |||
3854 | --- tests/dhtest.tmpdirarg/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
3855 | +++ tests/dhtest.tmpdirarg/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
3856 | @@ -0,0 +1,1 @@ | |||
3857 | 1 | /usr/bin/crash | ||
3858 | 0 | 2 | ||
3859 | === added file 'tests/dhtest.tmpdirarg/debian/rules' | |||
3860 | --- tests/dhtest.tmpdirarg/debian/rules 1970-01-01 00:00:00 +0000 | |||
3861 | +++ tests/dhtest.tmpdirarg/debian/rules 2010-04-21 20:29:14 +0000 | |||
3862 | @@ -0,0 +1,57 @@ | |||
3863 | 1 | #!/usr/bin/make -f | ||
3864 | 2 | |||
3865 | 3 | # Uncomment this to turn on verbose mode. | ||
3866 | 4 | #export DH_VERBOSE=1 | ||
3867 | 5 | |||
3868 | 6 | # This has to be exported to make some magic below work. | ||
3869 | 7 | export DH_OPTIONS | ||
3870 | 8 | |||
3871 | 9 | CFLAGS = -Wall -g | ||
3872 | 10 | |||
3873 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
3874 | 12 | CFLAGS += -O0 | ||
3875 | 13 | else | ||
3876 | 14 | CFLAGS += -O2 | ||
3877 | 15 | endif | ||
3878 | 16 | |||
3879 | 17 | build: build-arch | ||
3880 | 18 | build-arch: build-arch-stamp | ||
3881 | 19 | build-arch-stamp: | ||
3882 | 20 | $(MAKE) | ||
3883 | 21 | touch build-arch-stamp | ||
3884 | 22 | |||
3885 | 23 | clean: | ||
3886 | 24 | dh_testdir | ||
3887 | 25 | dh_testroot | ||
3888 | 26 | rm -f build-arch-stamp | ||
3889 | 27 | -$(MAKE) clean | ||
3890 | 28 | dh_clean -Pdebian/build/pkgdir | ||
3891 | 29 | rmdir debian/build 2>/dev/null || true | ||
3892 | 30 | |||
3893 | 31 | install: install-arch | ||
3894 | 32 | |||
3895 | 33 | install-arch: | ||
3896 | 34 | dh_testdir | ||
3897 | 35 | dh_testroot | ||
3898 | 36 | dh_clean -k -s | ||
3899 | 37 | dh_installdirs -s -Pdebian/build/pkgdir | ||
3900 | 38 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
3901 | 39 | dh_install -s -Pdebian/build/pkgdir --sourcedir=debian/tmp | ||
3902 | 40 | |||
3903 | 41 | # Build architecture dependant packages using the common target. | ||
3904 | 42 | binary-arch: build-arch install-arch | ||
3905 | 43 | dh_testdir -a -Pdebian/build/pkgdir | ||
3906 | 44 | dh_testroot -a -Pdebian/build/pkgdir | ||
3907 | 45 | dh_installchangelogs -a -Pdebian/build/pkgdir | ||
3908 | 46 | dh_installdocs -a -Pdebian/build/pkgdir | ||
3909 | 47 | dh_strip -a -Pdebian/build/pkgdir | ||
3910 | 48 | dh_compress -a -Pdebian/build/pkgdir | ||
3911 | 49 | dh_fixperms -a -Pdebian/build/pkgdir | ||
3912 | 50 | dh_installdeb -a -Pdebian/build/pkgdir | ||
3913 | 51 | dh_shlibdeps -a -Pdebian/build/pkgdir | ||
3914 | 52 | dh_gencontrol -a -Pdebian/build/pkgdir | ||
3915 | 53 | dh_md5sums -a -Pdebian/build/pkgdir | ||
3916 | 54 | dh_builddeb -a -Pdebian/build/pkgdir | ||
3917 | 55 | |||
3918 | 56 | binary: binary-arch binary-indep | ||
3919 | 57 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
3920 | 0 | 58 | ||
3921 | === added directory 'tests/dhtest.versionoverride' | |||
3922 | === added file 'tests/dhtest.versionoverride/Makefile' | |||
3923 | --- tests/dhtest.versionoverride/Makefile 1970-01-01 00:00:00 +0000 | |||
3924 | +++ tests/dhtest.versionoverride/Makefile 2010-04-21 20:29:14 +0000 | |||
3925 | @@ -0,0 +1,18 @@ | |||
3926 | 1 | CFLAGS= -g -Wall -W -O0 | ||
3927 | 2 | |||
3928 | 3 | LIBNAME=crashrep | ||
3929 | 4 | |||
3930 | 5 | all: crash crash2 | ||
3931 | 6 | |||
3932 | 7 | crash: crash.o | ||
3933 | 8 | $(CC) $^ -o $@ | ||
3934 | 9 | |||
3935 | 10 | crash2: crash2.o | ||
3936 | 11 | $(CC) $^ -o $@ | ||
3937 | 12 | |||
3938 | 13 | clean: | ||
3939 | 14 | rm -f *.o crash crash2 | ||
3940 | 15 | |||
3941 | 16 | install: all | ||
3942 | 17 | install -d $(DESTDIR)/usr/bin | ||
3943 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
3944 | 0 | 19 | ||
3945 | === added file 'tests/dhtest.versionoverride/crash.c' | |||
3946 | --- tests/dhtest.versionoverride/crash.c 1970-01-01 00:00:00 +0000 | |||
3947 | +++ tests/dhtest.versionoverride/crash.c 2010-04-21 20:29:14 +0000 | |||
3948 | @@ -0,0 +1,34 @@ | |||
3949 | 1 | /* crash.c - demo program for libcrashreport | ||
3950 | 2 | |||
3951 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3952 | 4 | |||
3953 | 5 | This file is public domain. | ||
3954 | 6 | */ | ||
3955 | 7 | |||
3956 | 8 | #include <stdio.h> | ||
3957 | 9 | |||
3958 | 10 | void h(char* p) { | ||
3959 | 11 | p[1] = 'a'; | ||
3960 | 12 | } | ||
3961 | 13 | |||
3962 | 14 | int g( int x, int y ) | ||
3963 | 15 | { | ||
3964 | 16 | char* s = NULL; | ||
3965 | 17 | h(s); | ||
3966 | 18 | return x+y; | ||
3967 | 19 | } | ||
3968 | 20 | |||
3969 | 21 | int f( int x ) | ||
3970 | 22 | { | ||
3971 | 23 | return g( x, 42 ); | ||
3972 | 24 | } | ||
3973 | 25 | |||
3974 | 26 | int | ||
3975 | 27 | main() | ||
3976 | 28 | { | ||
3977 | 29 | int x; | ||
3978 | 30 | |||
3979 | 31 | x = f(1); | ||
3980 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
3981 | 33 | return 0; | ||
3982 | 34 | } | ||
3983 | 0 | 35 | ||
3984 | === added file 'tests/dhtest.versionoverride/crash2.c' | |||
3985 | --- tests/dhtest.versionoverride/crash2.c 1970-01-01 00:00:00 +0000 | |||
3986 | +++ tests/dhtest.versionoverride/crash2.c 2010-04-21 20:29:14 +0000 | |||
3987 | @@ -0,0 +1,39 @@ | |||
3988 | 1 | /* crash.c - demo program for libcrashreport | ||
3989 | 2 | |||
3990 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
3991 | 4 | |||
3992 | 5 | This file is public domain. | ||
3993 | 6 | */ | ||
3994 | 7 | |||
3995 | 8 | #include <stdio.h> | ||
3996 | 9 | #include <math.h> | ||
3997 | 10 | #include <signal.h> | ||
3998 | 11 | |||
3999 | 12 | double h() | ||
4000 | 13 | { | ||
4001 | 14 | double a = 1./0; | ||
4002 | 15 | if (isinf(a)) | ||
4003 | 16 | raise(SIGFPE); | ||
4004 | 17 | return a; | ||
4005 | 18 | } | ||
4006 | 19 | |||
4007 | 20 | int g( int x, int y ) | ||
4008 | 21 | { | ||
4009 | 22 | |||
4010 | 23 | return x+y+(int) h(); | ||
4011 | 24 | } | ||
4012 | 25 | |||
4013 | 26 | int f( int x ) | ||
4014 | 27 | { | ||
4015 | 28 | return g( x, 42 ); | ||
4016 | 29 | } | ||
4017 | 30 | |||
4018 | 31 | int | ||
4019 | 32 | main() | ||
4020 | 33 | { | ||
4021 | 34 | int x; | ||
4022 | 35 | |||
4023 | 36 | x = f(1); | ||
4024 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
4025 | 38 | return 0; | ||
4026 | 39 | } | ||
4027 | 0 | 40 | ||
4028 | === added directory 'tests/dhtest.versionoverride/debian' | |||
4029 | === added file 'tests/dhtest.versionoverride/debian/changelog' | |||
4030 | --- tests/dhtest.versionoverride/debian/changelog 1970-01-01 00:00:00 +0000 | |||
4031 | +++ tests/dhtest.versionoverride/debian/changelog 2010-04-21 20:29:14 +0000 | |||
4032 | @@ -0,0 +1,5 @@ | |||
4033 | 1 | dhtest.versionoverride (1) foo; urgency=low | ||
4034 | 2 | |||
4035 | 3 | * Initial release. | ||
4036 | 4 | |||
4037 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
4038 | 0 | 6 | ||
4039 | === added file 'tests/dhtest.versionoverride/debian/compat' | |||
4040 | --- tests/dhtest.versionoverride/debian/compat 1970-01-01 00:00:00 +0000 | |||
4041 | +++ tests/dhtest.versionoverride/debian/compat 2010-04-21 20:29:14 +0000 | |||
4042 | @@ -0,0 +1,1 @@ | |||
4043 | 1 | 5 | ||
4044 | 0 | 2 | ||
4045 | === added file 'tests/dhtest.versionoverride/debian/control' | |||
4046 | --- tests/dhtest.versionoverride/debian/control 1970-01-01 00:00:00 +0000 | |||
4047 | +++ tests/dhtest.versionoverride/debian/control 2010-04-21 20:29:14 +0000 | |||
4048 | @@ -0,0 +1,18 @@ | |||
4049 | 1 | Source: dhtest.versionoverride | ||
4050 | 2 | Section: utils | ||
4051 | 3 | Priority: extra | ||
4052 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
4053 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
4054 | 6 | Standards-Version: 3.7.2 | ||
4055 | 7 | |||
4056 | 8 | Package: dhtest1 | ||
4057 | 9 | Architecture: any | ||
4058 | 10 | Depends: ${shlibs:Depends} | ||
4059 | 11 | Description: crash with a SIGSEGV | ||
4060 | 12 | Test package | ||
4061 | 13 | |||
4062 | 14 | Package: dhtest2 | ||
4063 | 15 | Architecture: any | ||
4064 | 16 | Depends: ${shlibs:Depends} | ||
4065 | 17 | Description: crash with a SIGFPE | ||
4066 | 18 | Test package | ||
4067 | 0 | 19 | ||
4068 | === added file 'tests/dhtest.versionoverride/debian/copyright' | |||
4069 | --- tests/dhtest.versionoverride/debian/copyright 1970-01-01 00:00:00 +0000 | |||
4070 | +++ tests/dhtest.versionoverride/debian/copyright 2010-04-21 20:29:14 +0000 | |||
4071 | @@ -0,0 +1,1 @@ | |||
4072 | 1 | foo | ||
4073 | 0 | 2 | ||
4074 | === added file 'tests/dhtest.versionoverride/debian/dhtest1.install' | |||
4075 | --- tests/dhtest.versionoverride/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
4076 | +++ tests/dhtest.versionoverride/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
4077 | @@ -0,0 +1,1 @@ | |||
4078 | 1 | /usr/bin/crash | ||
4079 | 0 | 2 | ||
4080 | === added file 'tests/dhtest.versionoverride/debian/dhtest2.install' | |||
4081 | --- tests/dhtest.versionoverride/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
4082 | +++ tests/dhtest.versionoverride/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
4083 | @@ -0,0 +1,1 @@ | |||
4084 | 1 | /usr/bin/crash2 | ||
4085 | 0 | 2 | ||
4086 | === added file 'tests/dhtest.versionoverride/debian/rules' | |||
4087 | --- tests/dhtest.versionoverride/debian/rules 1970-01-01 00:00:00 +0000 | |||
4088 | +++ tests/dhtest.versionoverride/debian/rules 2010-04-21 20:29:14 +0000 | |||
4089 | @@ -0,0 +1,57 @@ | |||
4090 | 1 | #!/usr/bin/make -f | ||
4091 | 2 | |||
4092 | 3 | # Uncomment this to turn on verbose mode. | ||
4093 | 4 | #export DH_VERBOSE=1 | ||
4094 | 5 | |||
4095 | 6 | # This has to be exported to make some magic below work. | ||
4096 | 7 | export DH_OPTIONS | ||
4097 | 8 | |||
4098 | 9 | CFLAGS = -Wall -g | ||
4099 | 10 | |||
4100 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
4101 | 12 | CFLAGS += -O0 | ||
4102 | 13 | else | ||
4103 | 14 | CFLAGS += -O2 | ||
4104 | 15 | endif | ||
4105 | 16 | |||
4106 | 17 | #Architecture | ||
4107 | 18 | build: build-arch | ||
4108 | 19 | |||
4109 | 20 | build-arch: build-arch-stamp | ||
4110 | 21 | build-arch-stamp: | ||
4111 | 22 | $(MAKE) | ||
4112 | 23 | touch build-arch-stamp | ||
4113 | 24 | |||
4114 | 25 | clean: | ||
4115 | 26 | dh_testdir | ||
4116 | 27 | dh_testroot | ||
4117 | 28 | rm -f build-arch-stamp | ||
4118 | 29 | -$(MAKE) clean | ||
4119 | 30 | dh_clean | ||
4120 | 31 | |||
4121 | 32 | install-arch: | ||
4122 | 33 | dh_testdir | ||
4123 | 34 | dh_testroot | ||
4124 | 35 | dh_clean -k -s | ||
4125 | 36 | dh_installdirs -s | ||
4126 | 37 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
4127 | 38 | dh_install -s --sourcedir=debian/tmp | ||
4128 | 39 | |||
4129 | 40 | # Build architecture dependant packages using the common target. | ||
4130 | 41 | binary-arch: build-arch install-arch | ||
4131 | 42 | dh_testdir | ||
4132 | 43 | dh_testroot | ||
4133 | 44 | dh_installchangelogs -a | ||
4134 | 45 | dh_installdocs -a | ||
4135 | 46 | dh_strip -a | ||
4136 | 47 | dh_compress -a | ||
4137 | 48 | dh_fixperms -a | ||
4138 | 49 | dh_installdeb -a | ||
4139 | 50 | dh_shlibdeps -a | ||
4140 | 51 | dh_gencontrol -pdhtest1 | ||
4141 | 52 | dh_gencontrol -pdhtest2 -- -v1:42 | ||
4142 | 53 | dh_md5sums -a | ||
4143 | 54 | dh_builddeb -a | ||
4144 | 55 | |||
4145 | 56 | binary: binary-arch | ||
4146 | 57 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
4147 | 0 | 58 | ||
4148 | === added directory 'tests/dhtest.whitespace' | |||
4149 | === added file 'tests/dhtest.whitespace/Makefile' | |||
4150 | --- tests/dhtest.whitespace/Makefile 1970-01-01 00:00:00 +0000 | |||
4151 | +++ tests/dhtest.whitespace/Makefile 2010-04-21 20:29:14 +0000 | |||
4152 | @@ -0,0 +1,18 @@ | |||
4153 | 1 | CFLAGS= -g -Wall -W -O0 | ||
4154 | 2 | |||
4155 | 3 | LIBNAME=crashrep | ||
4156 | 4 | |||
4157 | 5 | all: crash crash2 | ||
4158 | 6 | |||
4159 | 7 | crash: crash.o | ||
4160 | 8 | $(CC) $^ -o $@ | ||
4161 | 9 | |||
4162 | 10 | crash2: crash2.o | ||
4163 | 11 | $(CC) $^ -o $@ | ||
4164 | 12 | |||
4165 | 13 | clean: | ||
4166 | 14 | rm -f *.o crash crash2 | ||
4167 | 15 | |||
4168 | 16 | install: all | ||
4169 | 17 | install -d $(DESTDIR)/usr/bin | ||
4170 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
4171 | 0 | 19 | ||
4172 | === added file 'tests/dhtest.whitespace/crash.c' | |||
4173 | --- tests/dhtest.whitespace/crash.c 1970-01-01 00:00:00 +0000 | |||
4174 | +++ tests/dhtest.whitespace/crash.c 2010-04-21 20:29:14 +0000 | |||
4175 | @@ -0,0 +1,34 @@ | |||
4176 | 1 | /* crash.c - demo program for libcrashreport | ||
4177 | 2 | |||
4178 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
4179 | 4 | |||
4180 | 5 | This file is public domain. | ||
4181 | 6 | */ | ||
4182 | 7 | |||
4183 | 8 | #include <stdio.h> | ||
4184 | 9 | |||
4185 | 10 | void h(char* p) { | ||
4186 | 11 | p[1] = 'a'; | ||
4187 | 12 | } | ||
4188 | 13 | |||
4189 | 14 | int g( int x, int y ) | ||
4190 | 15 | { | ||
4191 | 16 | char* s = NULL; | ||
4192 | 17 | h(s); | ||
4193 | 18 | return x+y; | ||
4194 | 19 | } | ||
4195 | 20 | |||
4196 | 21 | int f( int x ) | ||
4197 | 22 | { | ||
4198 | 23 | return g( x, 42 ); | ||
4199 | 24 | } | ||
4200 | 25 | |||
4201 | 26 | int | ||
4202 | 27 | main() | ||
4203 | 28 | { | ||
4204 | 29 | int x; | ||
4205 | 30 | |||
4206 | 31 | x = f(1); | ||
4207 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
4208 | 33 | return 0; | ||
4209 | 34 | } | ||
4210 | 0 | 35 | ||
4211 | === added file 'tests/dhtest.whitespace/crash2.c' | |||
4212 | --- tests/dhtest.whitespace/crash2.c 1970-01-01 00:00:00 +0000 | |||
4213 | +++ tests/dhtest.whitespace/crash2.c 2010-04-21 20:29:14 +0000 | |||
4214 | @@ -0,0 +1,39 @@ | |||
4215 | 1 | /* crash.c - demo program for libcrashreport | ||
4216 | 2 | |||
4217 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
4218 | 4 | |||
4219 | 5 | This file is public domain. | ||
4220 | 6 | */ | ||
4221 | 7 | |||
4222 | 8 | #include <stdio.h> | ||
4223 | 9 | #include <math.h> | ||
4224 | 10 | #include <signal.h> | ||
4225 | 11 | |||
4226 | 12 | double h() | ||
4227 | 13 | { | ||
4228 | 14 | double a = 1./0; | ||
4229 | 15 | if (isinf(a)) | ||
4230 | 16 | raise(SIGFPE); | ||
4231 | 17 | return a; | ||
4232 | 18 | } | ||
4233 | 19 | |||
4234 | 20 | int g( int x, int y ) | ||
4235 | 21 | { | ||
4236 | 22 | |||
4237 | 23 | return x+y+(int) h(); | ||
4238 | 24 | } | ||
4239 | 25 | |||
4240 | 26 | int f( int x ) | ||
4241 | 27 | { | ||
4242 | 28 | return g( x, 42 ); | ||
4243 | 29 | } | ||
4244 | 30 | |||
4245 | 31 | int | ||
4246 | 32 | main() | ||
4247 | 33 | { | ||
4248 | 34 | int x; | ||
4249 | 35 | |||
4250 | 36 | x = f(1); | ||
4251 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
4252 | 38 | return 0; | ||
4253 | 39 | } | ||
4254 | 0 | 40 | ||
4255 | === added directory 'tests/dhtest.whitespace/debian' | |||
4256 | === added file 'tests/dhtest.whitespace/debian/changelog' | |||
4257 | --- tests/dhtest.whitespace/debian/changelog 1970-01-01 00:00:00 +0000 | |||
4258 | +++ tests/dhtest.whitespace/debian/changelog 2010-04-21 20:29:14 +0000 | |||
4259 | @@ -0,0 +1,5 @@ | |||
4260 | 1 | dhtest.whitespace (1:2.3-1) foo; urgency=low | ||
4261 | 2 | |||
4262 | 3 | * Initial release. | ||
4263 | 4 | |||
4264 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
4265 | 0 | 6 | ||
4266 | === added file 'tests/dhtest.whitespace/debian/compat' | |||
4267 | --- tests/dhtest.whitespace/debian/compat 1970-01-01 00:00:00 +0000 | |||
4268 | +++ tests/dhtest.whitespace/debian/compat 2010-04-21 20:29:14 +0000 | |||
4269 | @@ -0,0 +1,1 @@ | |||
4270 | 1 | 5 | ||
4271 | 0 | 2 | ||
4272 | === added file 'tests/dhtest.whitespace/debian/control' | |||
4273 | --- tests/dhtest.whitespace/debian/control 1970-01-01 00:00:00 +0000 | |||
4274 | +++ tests/dhtest.whitespace/debian/control 2010-04-21 20:29:14 +0000 | |||
4275 | @@ -0,0 +1,35 @@ | |||
4276 | 1 | Source: dhtest.whitespace | ||
4277 | 2 | Section: utils | ||
4278 | 3 | Priority: extra | ||
4279 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
4280 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
4281 | 6 | Standards-Version: 3.7.2 | ||
4282 | 7 | |||
4283 | 8 | Package: dhtest1 | ||
4284 | 9 | Architecture: any | ||
4285 | 10 | Description: crash with a SIGSEGV | ||
4286 | 11 | Test package | ||
4287 | 12 | Depends: ${shlibs:Depends}, | ||
4288 | 13 | coreutils (>> ${foo}) | ||
4289 | 14 | Recommends: dhtest2 (>> ${foo}) | ||
4290 | 15 | Suggests: dhtestall (>= ${foo}), ${bar}-core | ||
4291 | 16 | Conflicts: dhtestall (<< ${foo}) | ||
4292 | 17 | Breaks: dhtestall (<< ${foo}) | ||
4293 | 18 | Replaces: dhtestall (<< ${foo}) | ||
4294 | 19 | |||
4295 | 20 | Package: dhtest2 | ||
4296 | 21 | Architecture: any | ||
4297 | 22 | Description: crash with a SIGFPE | ||
4298 | 23 | Test package | ||
4299 | 24 | Depends: ${shlibs:Depends}, | ||
4300 | 25 | coreutils, | ||
4301 | 26 | bash | ||
4302 | 27 | |||
4303 | 28 | Package: dhtestall | ||
4304 | 29 | Architecture: all | ||
4305 | 30 | Depends: ${shlibs:Depends} | ||
4306 | 31 | Description: dummy arch-all package | ||
4307 | 32 | Test package | ||
4308 | 33 | Pre-Depends: coreutils, | ||
4309 | 34 | bash, | ||
4310 | 35 | findutils | ||
4311 | 0 | 36 | ||
4312 | === added file 'tests/dhtest.whitespace/debian/copyright' | |||
4313 | --- tests/dhtest.whitespace/debian/copyright 1970-01-01 00:00:00 +0000 | |||
4314 | +++ tests/dhtest.whitespace/debian/copyright 2010-04-21 20:29:14 +0000 | |||
4315 | @@ -0,0 +1,1 @@ | |||
4316 | 1 | foo | ||
4317 | 0 | 2 | ||
4318 | === added file 'tests/dhtest.whitespace/debian/dhtest1.install' | |||
4319 | --- tests/dhtest.whitespace/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
4320 | +++ tests/dhtest.whitespace/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
4321 | @@ -0,0 +1,1 @@ | |||
4322 | 1 | /usr/bin/crash | ||
4323 | 0 | 2 | ||
4324 | === added file 'tests/dhtest.whitespace/debian/dhtest2.install' | |||
4325 | --- tests/dhtest.whitespace/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
4326 | +++ tests/dhtest.whitespace/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
4327 | @@ -0,0 +1,1 @@ | |||
4328 | 1 | /usr/bin/crash2 | ||
4329 | 0 | 2 | ||
4330 | === added file 'tests/dhtest.whitespace/debian/rules' | |||
4331 | --- tests/dhtest.whitespace/debian/rules 1970-01-01 00:00:00 +0000 | |||
4332 | +++ tests/dhtest.whitespace/debian/rules 2010-04-21 20:29:14 +0000 | |||
4333 | @@ -0,0 +1,76 @@ | |||
4334 | 1 | #!/usr/bin/make -f | ||
4335 | 2 | |||
4336 | 3 | # Uncomment this to turn on verbose mode. | ||
4337 | 4 | #export DH_VERBOSE=1 | ||
4338 | 5 | |||
4339 | 6 | # This has to be exported to make some magic below work. | ||
4340 | 7 | export DH_OPTIONS | ||
4341 | 8 | |||
4342 | 9 | CFLAGS = -Wall -g | ||
4343 | 10 | |||
4344 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
4345 | 12 | CFLAGS += -O0 | ||
4346 | 13 | else | ||
4347 | 14 | CFLAGS += -O2 | ||
4348 | 15 | endif | ||
4349 | 16 | |||
4350 | 17 | #Architecture | ||
4351 | 18 | build: build-arch build-indep | ||
4352 | 19 | |||
4353 | 20 | build-arch: build-arch-stamp | ||
4354 | 21 | build-arch-stamp: | ||
4355 | 22 | $(MAKE) | ||
4356 | 23 | touch build-arch-stamp | ||
4357 | 24 | |||
4358 | 25 | build-indep: | ||
4359 | 26 | |||
4360 | 27 | clean: | ||
4361 | 28 | dh_testdir | ||
4362 | 29 | dh_testroot | ||
4363 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
4364 | 31 | -$(MAKE) clean | ||
4365 | 32 | dh_clean | ||
4366 | 33 | |||
4367 | 34 | install: install-indep install-arch | ||
4368 | 35 | install-indep: | ||
4369 | 36 | dh_testdir | ||
4370 | 37 | dh_testroot | ||
4371 | 38 | dh_clean -k -i | ||
4372 | 39 | dh_installdirs -i | ||
4373 | 40 | dh_install -i --sourcedir=debian/tmp | ||
4374 | 41 | |||
4375 | 42 | install-arch: | ||
4376 | 43 | dh_testdir | ||
4377 | 44 | dh_testroot | ||
4378 | 45 | dh_clean -k -s | ||
4379 | 46 | dh_installdirs -s | ||
4380 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
4381 | 48 | dh_install -s --sourcedir=debian/tmp | ||
4382 | 49 | |||
4383 | 50 | # Must not depend on anything. This is to be called by | ||
4384 | 51 | # binary-arch/binary-indep | ||
4385 | 52 | # in another 'make' thread. | ||
4386 | 53 | binary-common: | ||
4387 | 54 | dh_testdir | ||
4388 | 55 | dh_testroot | ||
4389 | 56 | dh_installchangelogs | ||
4390 | 57 | dh_installdocs | ||
4391 | 58 | dh_strip | ||
4392 | 59 | dh_compress | ||
4393 | 60 | dh_fixperms | ||
4394 | 61 | dh_installdeb | ||
4395 | 62 | dh_shlibdeps | ||
4396 | 63 | dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' | ||
4397 | 64 | dh_md5sums | ||
4398 | 65 | dh_builddeb | ||
4399 | 66 | |||
4400 | 67 | # Build architecture independant packages using the common target. | ||
4401 | 68 | binary-indep: build-indep install-indep | ||
4402 | 69 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
4403 | 70 | |||
4404 | 71 | # Build architecture dependant packages using the common target. | ||
4405 | 72 | binary-arch: build-arch install-arch | ||
4406 | 73 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
4407 | 74 | |||
4408 | 75 | binary: binary-arch binary-indep | ||
4409 | 76 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
4410 | 0 | 77 | ||
4411 | === added file 'tests/dhtest/Makefile' | |||
4412 | --- tests/dhtest/Makefile 1970-01-01 00:00:00 +0000 | |||
4413 | +++ tests/dhtest/Makefile 2010-04-21 20:29:14 +0000 | |||
4414 | @@ -0,0 +1,18 @@ | |||
4415 | 1 | CFLAGS= -g -Wall -W -O0 | ||
4416 | 2 | |||
4417 | 3 | LIBNAME=crashrep | ||
4418 | 4 | |||
4419 | 5 | all: crash crash2 | ||
4420 | 6 | |||
4421 | 7 | crash: crash.o | ||
4422 | 8 | $(CC) $^ -o $@ | ||
4423 | 9 | |||
4424 | 10 | crash2: crash2.o | ||
4425 | 11 | $(CC) $^ -o $@ | ||
4426 | 12 | |||
4427 | 13 | clean: | ||
4428 | 14 | rm -f *.o crash crash2 | ||
4429 | 15 | |||
4430 | 16 | install: all | ||
4431 | 17 | install -d $(DESTDIR)/usr/bin | ||
4432 | 18 | install crash crash2 $(DESTDIR)/usr/bin | ||
4433 | 0 | 19 | ||
4434 | === added file 'tests/dhtest/crash.c' | |||
4435 | --- tests/dhtest/crash.c 1970-01-01 00:00:00 +0000 | |||
4436 | +++ tests/dhtest/crash.c 2010-04-21 20:29:14 +0000 | |||
4437 | @@ -0,0 +1,34 @@ | |||
4438 | 1 | /* crash.c - demo program for libcrashreport | ||
4439 | 2 | |||
4440 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
4441 | 4 | |||
4442 | 5 | This file is public domain. | ||
4443 | 6 | */ | ||
4444 | 7 | |||
4445 | 8 | #include <stdio.h> | ||
4446 | 9 | |||
4447 | 10 | void h(char* p) { | ||
4448 | 11 | p[1] = 'a'; | ||
4449 | 12 | } | ||
4450 | 13 | |||
4451 | 14 | int g( int x, int y ) | ||
4452 | 15 | { | ||
4453 | 16 | char* s = NULL; | ||
4454 | 17 | h(s); | ||
4455 | 18 | return x+y; | ||
4456 | 19 | } | ||
4457 | 20 | |||
4458 | 21 | int f( int x ) | ||
4459 | 22 | { | ||
4460 | 23 | return g( x, 42 ); | ||
4461 | 24 | } | ||
4462 | 25 | |||
4463 | 26 | int | ||
4464 | 27 | main() | ||
4465 | 28 | { | ||
4466 | 29 | int x; | ||
4467 | 30 | |||
4468 | 31 | x = f(1); | ||
4469 | 32 | printf( "x = %i, terminating normally now.\n", x ); | ||
4470 | 33 | return 0; | ||
4471 | 34 | } | ||
4472 | 0 | 35 | ||
4473 | === added file 'tests/dhtest/crash2.c' | |||
4474 | --- tests/dhtest/crash2.c 1970-01-01 00:00:00 +0000 | |||
4475 | +++ tests/dhtest/crash2.c 2010-04-21 20:29:14 +0000 | |||
4476 | @@ -0,0 +1,39 @@ | |||
4477 | 1 | /* crash.c - demo program for libcrashreport | ||
4478 | 2 | |||
4479 | 3 | (c) 2004 Martin Pitt <martin@piware.de> | ||
4480 | 4 | |||
4481 | 5 | This file is public domain. | ||
4482 | 6 | */ | ||
4483 | 7 | |||
4484 | 8 | #include <stdio.h> | ||
4485 | 9 | #include <math.h> | ||
4486 | 10 | #include <signal.h> | ||
4487 | 11 | |||
4488 | 12 | double h() | ||
4489 | 13 | { | ||
4490 | 14 | double a = 1./0; | ||
4491 | 15 | if (isinf(a)) | ||
4492 | 16 | raise(SIGFPE); | ||
4493 | 17 | return a; | ||
4494 | 18 | } | ||
4495 | 19 | |||
4496 | 20 | int g( int x, int y ) | ||
4497 | 21 | { | ||
4498 | 22 | |||
4499 | 23 | return x+y+(int) h(); | ||
4500 | 24 | } | ||
4501 | 25 | |||
4502 | 26 | int f( int x ) | ||
4503 | 27 | { | ||
4504 | 28 | return g( x, 42 ); | ||
4505 | 29 | } | ||
4506 | 30 | |||
4507 | 31 | int | ||
4508 | 32 | main() | ||
4509 | 33 | { | ||
4510 | 34 | int x; | ||
4511 | 35 | |||
4512 | 36 | x = f(1); | ||
4513 | 37 | printf( "x = %i, terminating normally now.\n", x ); | ||
4514 | 38 | return 0; | ||
4515 | 39 | } | ||
4516 | 0 | 40 | ||
4517 | === added directory 'tests/dhtest/debian' | |||
4518 | === added file 'tests/dhtest/debian/changelog' | |||
4519 | --- tests/dhtest/debian/changelog 1970-01-01 00:00:00 +0000 | |||
4520 | +++ tests/dhtest/debian/changelog 2010-04-21 20:29:14 +0000 | |||
4521 | @@ -0,0 +1,5 @@ | |||
4522 | 1 | dhtest (1:2.3-1) foo; urgency=low | ||
4523 | 2 | |||
4524 | 3 | * Initial release. | ||
4525 | 4 | |||
4526 | 5 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 16 Jun 2006 10:49:56 +0200 | ||
4527 | 0 | 6 | ||
4528 | === added file 'tests/dhtest/debian/compat' | |||
4529 | --- tests/dhtest/debian/compat 1970-01-01 00:00:00 +0000 | |||
4530 | +++ tests/dhtest/debian/compat 2010-04-21 20:29:14 +0000 | |||
4531 | @@ -0,0 +1,1 @@ | |||
4532 | 1 | 5 | ||
4533 | 0 | 2 | ||
4534 | === added file 'tests/dhtest/debian/control' | |||
4535 | --- tests/dhtest/debian/control 1970-01-01 00:00:00 +0000 | |||
4536 | +++ tests/dhtest/debian/control 2010-04-21 20:29:14 +0000 | |||
4537 | @@ -0,0 +1,30 @@ | |||
4538 | 1 | Source: dhtest | ||
4539 | 2 | Section: utils | ||
4540 | 3 | Priority: extra | ||
4541 | 4 | Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | ||
4542 | 5 | Build-Depends: debhelper (>= 4.1.0) | ||
4543 | 6 | Standards-Version: 3.7.2 | ||
4544 | 7 | |||
4545 | 8 | Package: dhtest1 | ||
4546 | 9 | Architecture: any | ||
4547 | 10 | Depends: ${shlibs:Depends}, coreutils (>> ${foo}) | ||
4548 | 11 | Recommends: dhtest2 (>> ${foo}) | ||
4549 | 12 | Suggests: dhtestall (>= ${foo}), ${bar}-core | ||
4550 | 13 | Conflicts: dhtestall (<< ${foo}) | ||
4551 | 14 | Replaces: dhtestall (<< ${foo}) | ||
4552 | 15 | Breaks: dhtestall (<< ${foo}) | ||
4553 | 16 | Description: crash with a SIGSEGV | ||
4554 | 17 | Test package | ||
4555 | 18 | |||
4556 | 19 | Package: dhtest2 | ||
4557 | 20 | Architecture: any | ||
4558 | 21 | Depends: ${shlibs:Depends} | ||
4559 | 22 | Description: crash with a SIGFPE | ||
4560 | 23 | Test package | ||
4561 | 24 | |||
4562 | 25 | Package: dhtestall | ||
4563 | 26 | Architecture: all | ||
4564 | 27 | Depends: ${shlibs:Depends} | ||
4565 | 28 | Description: dummy arch-all package | ||
4566 | 29 | Test package | ||
4567 | 30 | |||
4568 | 0 | 31 | ||
4569 | === added file 'tests/dhtest/debian/copyright' | |||
4570 | --- tests/dhtest/debian/copyright 1970-01-01 00:00:00 +0000 | |||
4571 | +++ tests/dhtest/debian/copyright 2010-04-21 20:29:14 +0000 | |||
4572 | @@ -0,0 +1,1 @@ | |||
4573 | 1 | foo | ||
4574 | 0 | 2 | ||
4575 | === added file 'tests/dhtest/debian/dhtest1.install' | |||
4576 | --- tests/dhtest/debian/dhtest1.install 1970-01-01 00:00:00 +0000 | |||
4577 | +++ tests/dhtest/debian/dhtest1.install 2010-04-21 20:29:14 +0000 | |||
4578 | @@ -0,0 +1,1 @@ | |||
4579 | 1 | /usr/bin/crash | ||
4580 | 0 | 2 | ||
4581 | === added file 'tests/dhtest/debian/dhtest2.install' | |||
4582 | --- tests/dhtest/debian/dhtest2.install 1970-01-01 00:00:00 +0000 | |||
4583 | +++ tests/dhtest/debian/dhtest2.install 2010-04-21 20:29:14 +0000 | |||
4584 | @@ -0,0 +1,1 @@ | |||
4585 | 1 | /usr/bin/crash2 | ||
4586 | 0 | 2 | ||
4587 | === added file 'tests/dhtest/debian/rules' | |||
4588 | --- tests/dhtest/debian/rules 1970-01-01 00:00:00 +0000 | |||
4589 | +++ tests/dhtest/debian/rules 2010-04-21 20:29:14 +0000 | |||
4590 | @@ -0,0 +1,76 @@ | |||
4591 | 1 | #!/usr/bin/make -f | ||
4592 | 2 | |||
4593 | 3 | # Uncomment this to turn on verbose mode. | ||
4594 | 4 | #export DH_VERBOSE=1 | ||
4595 | 5 | |||
4596 | 6 | # This has to be exported to make some magic below work. | ||
4597 | 7 | export DH_OPTIONS | ||
4598 | 8 | |||
4599 | 9 | CFLAGS = -Wall -g | ||
4600 | 10 | |||
4601 | 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
4602 | 12 | CFLAGS += -O0 | ||
4603 | 13 | else | ||
4604 | 14 | CFLAGS += -O2 | ||
4605 | 15 | endif | ||
4606 | 16 | |||
4607 | 17 | #Architecture | ||
4608 | 18 | build: build-arch build-indep | ||
4609 | 19 | |||
4610 | 20 | build-arch: build-arch-stamp | ||
4611 | 21 | build-arch-stamp: | ||
4612 | 22 | $(MAKE) | ||
4613 | 23 | touch build-arch-stamp | ||
4614 | 24 | |||
4615 | 25 | build-indep: | ||
4616 | 26 | |||
4617 | 27 | clean: | ||
4618 | 28 | dh_testdir | ||
4619 | 29 | dh_testroot | ||
4620 | 30 | rm -f build-arch-stamp build-indep-stamp | ||
4621 | 31 | -$(MAKE) clean | ||
4622 | 32 | dh_clean | ||
4623 | 33 | |||
4624 | 34 | install: install-indep install-arch | ||
4625 | 35 | install-indep: | ||
4626 | 36 | dh_testdir | ||
4627 | 37 | dh_testroot | ||
4628 | 38 | dh_clean -k -i | ||
4629 | 39 | dh_installdirs -i | ||
4630 | 40 | dh_install -i --sourcedir=debian/tmp | ||
4631 | 41 | |||
4632 | 42 | install-arch: | ||
4633 | 43 | dh_testdir | ||
4634 | 44 | dh_testroot | ||
4635 | 45 | dh_clean -k -s | ||
4636 | 46 | dh_installdirs -s | ||
4637 | 47 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
4638 | 48 | dh_install -s --sourcedir=debian/tmp | ||
4639 | 49 | |||
4640 | 50 | # Must not depend on anything. This is to be called by | ||
4641 | 51 | # binary-arch/binary-indep | ||
4642 | 52 | # in another 'make' thread. | ||
4643 | 53 | binary-common: | ||
4644 | 54 | dh_testdir | ||
4645 | 55 | dh_testroot | ||
4646 | 56 | dh_installchangelogs | ||
4647 | 57 | dh_installdocs | ||
4648 | 58 | dh_strip | ||
4649 | 59 | dh_compress | ||
4650 | 60 | dh_fixperms | ||
4651 | 61 | dh_installdeb | ||
4652 | 62 | dh_shlibdeps | ||
4653 | 63 | dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' | ||
4654 | 64 | dh_md5sums | ||
4655 | 65 | dh_builddeb | ||
4656 | 66 | |||
4657 | 67 | # Build architecture independant packages using the common target. | ||
4658 | 68 | binary-indep: build-indep install-indep | ||
4659 | 69 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
4660 | 70 | |||
4661 | 71 | # Build architecture dependant packages using the common target. | ||
4662 | 72 | binary-arch: build-arch install-arch | ||
4663 | 73 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common | ||
4664 | 74 | |||
4665 | 75 | binary: binary-arch binary-indep | ||
4666 | 76 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch | ||
4667 | 0 | 77 | ||
4668 | === added file 'tests/run' | |||
4669 | --- tests/run 1970-01-01 00:00:00 +0000 | |||
4670 | +++ tests/run 2010-04-21 20:29:14 +0000 | |||
4671 | @@ -0,0 +1,107 @@ | |||
4672 | 1 | #!/bin/sh -e | ||
4673 | 2 | |||
4674 | 3 | TESTSOURCES="dhtest dhtest.samename dhtest.whitespace dhtest.nostrip dhtest.noargs dhtest.archspecific dhtest.tmpdirarg dhtest.compat1 dhtest.compat1override dhtest.compatenvvar dhtest.dbg dhtest.dbg2 dhtest.dbg3 cdbstest" | ||
4675 | 4 | |||
4676 | 5 | print_result() { | ||
4677 | 6 | if [ -n "$fail" ]; then | ||
4678 | 7 | echo "FAIL: $1" | ||
4679 | 8 | echo "Output:" | ||
4680 | 9 | echo '---------------------------------------------------------------------' | ||
4681 | 10 | echo "$2" | ||
4682 | 11 | echo '---------------------------------------------------------------------' | ||
4683 | 12 | echo Please remove testsuite.tmp after examination | ||
4684 | 13 | exit 1 | ||
4685 | 14 | else | ||
4686 | 15 | echo "PASS: $1" | ||
4687 | 16 | fi | ||
4688 | 17 | unset fail | ||
4689 | 18 | return 0 | ||
4690 | 19 | } | ||
4691 | 20 | |||
4692 | 21 | # Arguments: <command> <test suite description> | ||
4693 | 22 | # execute given command, pass test if it exits successfully, fail test if not. | ||
4694 | 23 | # In the latter case, print command output and abort | ||
4695 | 24 | check_command() { | ||
4696 | 25 | out=`$1 2>&1` || fail=1 | ||
4697 | 26 | print_result "$2" "$out" | ||
4698 | 27 | } | ||
4699 | 28 | |||
4700 | 29 | # Arguments: <application deb> <corresponding dbgsym deb> | ||
4701 | 30 | check_pkg_pair() { | ||
4702 | 31 | deb="$1" | ||
4703 | 32 | ddeb="$2" | ||
4704 | 33 | mkdir unpacked | ||
4705 | 34 | dpkg -x $deb unpacked | ||
4706 | 35 | dpkg -x $ddeb unpacked | ||
4707 | 36 | |||
4708 | 37 | for bin in unpacked/usr/bin/*; do | ||
4709 | 38 | # check for debuglink section | ||
4710 | 39 | objdump -j .gnu_debuglink -s $bin | grep -q .gnu_debuglink || fail=1 | ||
4711 | 40 | print_result "$bin has .gnu_debuglink section" "`objdump -j .gnu_debuglink -s $bin`" | ||
4712 | 41 | |||
4713 | 42 | # check for good backtrace | ||
4714 | 43 | bt=`gdb --batch -ex "symbol-file unpacked/usr/lib/debug/${bin##unpacked/}" -ex run -ex 'bt' $bin` | ||
4715 | 44 | echo "$bt" | grep -q 'g (x=1, y=42)' || fail=1 | ||
4716 | 45 | print_result "$bin: executable and debug symbols produce good backtrace" "$bt" | ||
4717 | 46 | done | ||
4718 | 47 | rm -rf unpacked | ||
4719 | 48 | } | ||
4720 | 49 | |||
4721 | 50 | ROOTDIR=$(readlink -f `dirname $0`/..) | ||
4722 | 51 | cd $ROOTDIR/tests | ||
4723 | 52 | ORIGDIR=`pwd` | ||
4724 | 53 | mkdir testsuite.tmp | ||
4725 | 54 | cd testsuite.tmp | ||
4726 | 55 | |||
4727 | 56 | for s in $TESTSOURCES; do | ||
4728 | 57 | rm -rf * | ||
4729 | 58 | |||
4730 | 59 | # copy source package into test directory | ||
4731 | 60 | cp -r ../$s . | ||
4732 | 61 | |||
4733 | 62 | # build it | ||
4734 | 63 | cd $s | ||
4735 | 64 | check_command "env -u NO_PKG_MANGLE PATH=$ROOTDIR:$PATH PKG_IGNORE_CURRENTLY_BUILDING=1 fakeroot dpkg-buildpackage -us -uc -b" "Building source package $s" | ||
4736 | 65 | # clean it | ||
4737 | 66 | check_command "fakeroot debian/rules clean" "Cleaning source package $s" | ||
4738 | 67 | cd .. | ||
4739 | 68 | # check for leftovers | ||
4740 | 69 | check_command "diff -ur $s ../$s" "No leftover files after cleaning $s" | ||
4741 | 70 | |||
4742 | 71 | for deb in *.deb; do | ||
4743 | 72 | pkg=`echo $deb|cut -d_ -f1` | ||
4744 | 73 | version=`echo $deb|cut -d_ -f2` | ||
4745 | 74 | version=${version#*:} # strip off epoch | ||
4746 | 75 | arch=`echo ${deb%.deb}|cut -d_ -f3` | ||
4747 | 76 | |||
4748 | 77 | if echo $pkg | grep -q -- '-dbg$'; then | ||
4749 | 78 | check_pkg_pair "${pkg%-dbg}_${version}_${arch}.deb" "${pkg}_${version}_${arch}.deb" | ||
4750 | 79 | else | ||
4751 | 80 | if dpkg -c $deb | grep -q usr/bin && ! echo $deb | grep -q nostrip; then | ||
4752 | 81 | check_command "test -f ${pkg}-dbgsym_${version}_${arch}.ddeb" "dbgsym ddeb for $deb exists" | ||
4753 | 82 | check_pkg_pair "${pkg}_${version}_${arch}.deb" "${pkg}-dbgsym_${version}_${arch}.ddeb" | ||
4754 | 83 | else | ||
4755 | 84 | check_command "test ! -f ${pkg}-dbgsym_${version}_${arch}.ddeb" "No dbgsym ddeb for $deb" | ||
4756 | 85 | fi | ||
4757 | 86 | fi | ||
4758 | 87 | done | ||
4759 | 88 | |||
4760 | 89 | # check that all existing -dbg packages are conflicted to in -dbgsym, and | ||
4761 | 90 | # that they have all other dependency fields stripped | ||
4762 | 91 | dbg_pkgs=`ls *-dbg_*deb 2>/dev/null| cut -f1 -d_` | ||
4763 | 92 | for ddeb in *.ddeb; do | ||
4764 | 93 | dpkg -I $ddeb | egrep -q '^[[:space:]]*(Pre-Depends|Recommends|Suggests|Provides|Replaces|Breaks|Essential):' && fail=1 || true | ||
4765 | 94 | print_result "$ddeb has other dependencies stripped" "`dpkg -I $ddeb`" | ||
4766 | 95 | |||
4767 | 96 | for c in $dbg_pkgs; do | ||
4768 | 97 | dpkg -I $ddeb | grep '^[[:space:]]*Conflicts: ' | grep -qw $c || fail=1 | ||
4769 | 98 | print_result "$ddeb conflicts to $c" "`dpkg -I $ddeb`" | ||
4770 | 99 | done | ||
4771 | 100 | |||
4772 | 101 | dpkg -I $ddeb | grep -q "^[[:space:]]*Source: $s\$" || fail=1 | ||
4773 | 102 | print_result "$ddeb has a correct Source field" | ||
4774 | 103 | done | ||
4775 | 104 | done | ||
4776 | 105 | |||
4777 | 106 | cd "$ORIGDIR" | ||
4778 | 107 | rm -r testsuite.tmp |
Wrong branch, using the other merge request in https:/ /code.launchpad .net/~tormodvol den/ubuntu/ lucid/pkg- create- dbgsym/ doublestrip/ +merge/ 23880
Thanks!