Merge lp://staging/~mvo/apport/kernel-crashdump into lp://staging/~apport-hackers/apport/trunk
- kernel-crashdump
- Merge into trunk
Proposed by
Michael Vogt
Status: | Merged |
---|---|
Merge reported by: | Martin Pitt |
Merged at revision: | not available |
Proposed branch: | lp://staging/~mvo/apport/kernel-crashdump |
Merge into: | lp://staging/~apport-hackers/apport/trunk |
Diff against target: | None lines |
To merge this branch: | bzr merge lp://staging/~mvo/apport/kernel-crashdump |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Apport upstream developers | Pending | ||
Review via email: mp+8448@code.staging.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote : | # |
- 1462. By Michael Vogt
-
add crash_signature and simple test for it
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory '.bzr-builddeb' | |||
2 | === added file '.bzr-builddeb/default.conf' | |||
3 | --- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000 | |||
4 | +++ .bzr-builddeb/default.conf 2009-04-06 23:58:27 +0000 | |||
5 | @@ -0,0 +1,2 @@ | |||
6 | 1 | [BUILDDEB] | ||
7 | 2 | merge = True | ||
8 | 0 | 3 | ||
9 | === modified file 'TODO' | |||
10 | --- TODO 2009-04-11 18:37:37 +0000 | |||
11 | +++ TODO 2009-05-07 06:19:04 +0000 | |||
12 | @@ -13,3 +13,12 @@ | |||
13 | 13 | 13 | ||
14 | 14 | hooks: | 14 | hooks: |
15 | 15 | - add hooks which run during program crash, to collect more runtime data | 15 | - add hooks which run during program crash, to collect more runtime data |
16 | 16 | |||
17 | 17 | retracers: | ||
18 | 18 | - cache Contents.gz | ||
19 | 19 | |||
20 | 20 | hookutils: | ||
21 | 21 | - run hooks for related packages in attach_related_packages | ||
22 | 22 | |||
23 | 23 | apt-dpkg backend: | ||
24 | 24 | - use python-apt's Version.get_source() instead of apt-get source | ||
25 | 16 | 25 | ||
26 | === modified file 'apport/hookutils.py' | |||
27 | --- apport/hookutils.py 2009-06-12 10:19:31 +0000 | |||
28 | +++ apport/hookutils.py 2009-06-12 10:47:53 +0000 | |||
29 | @@ -63,6 +63,43 @@ | |||
30 | 63 | 63 | ||
31 | 64 | report[key] = read_file(path) | 64 | report[key] = read_file(path) |
32 | 65 | 65 | ||
33 | 66 | def attach_conffiles(report, package, conffiles=None): | ||
34 | 67 | '''Attach information about any modified or deleted conffiles''' | ||
35 | 68 | |||
36 | 69 | try: | ||
37 | 70 | dpkg = subprocess.Popen(['dpkg-query','-W','--showformat=${Conffiles}', | ||
38 | 71 | package], stdout=subprocess.PIPE, close_fds=True) | ||
39 | 72 | except OSError, e: | ||
40 | 73 | return 'Error: ' + str(e) | ||
41 | 74 | |||
42 | 75 | out = dpkg.communicate()[0] | ||
43 | 76 | if dpkg.returncode != 0: | ||
44 | 77 | return | ||
45 | 78 | |||
46 | 79 | for line in out.splitlines(): | ||
47 | 80 | if not line: | ||
48 | 81 | continue | ||
49 | 82 | path, default_md5sum = line.strip().split() | ||
50 | 83 | |||
51 | 84 | if conffiles and path not in conffiles: continue | ||
52 | 85 | |||
53 | 86 | key = 'modified.conffile.' + path_to_key(path) | ||
54 | 87 | |||
55 | 88 | if os.path.exists(path): | ||
56 | 89 | contents = open(path).read() | ||
57 | 90 | m = hashlib.md5() | ||
58 | 91 | m.update(contents) | ||
59 | 92 | calculated_md5sum = m.hexdigest() | ||
60 | 93 | |||
61 | 94 | if calculated_md5sum != default_md5sum: | ||
62 | 95 | report[key] = contents | ||
63 | 96 | statinfo = os.stat(path) | ||
64 | 97 | mtime = datetime.datetime.fromtimestamp(statinfo.st_mtime) | ||
65 | 98 | mtime_key = 'mtime.conffile.' + path_to_key(path) | ||
66 | 99 | report[mtime_key] = mtime.isoformat() | ||
67 | 100 | else: | ||
68 | 101 | report[key] = '[deleted]' | ||
69 | 102 | |||
70 | 66 | def attach_dmesg(report): | 103 | def attach_dmesg(report): |
71 | 67 | '''Attach information from the kernel ring buffer (dmesg).''' | 104 | '''Attach information from the kernel ring buffer (dmesg).''' |
72 | 68 | 105 | ||
73 | 69 | 106 | ||
74 | === added symlink 'apport/packaging_impl.py' | |||
75 | === target is '../backends/packaging-apt-dpkg.py' | |||
76 | === modified file 'apport/report.py' | |||
77 | --- apport/report.py 2009-06-23 09:53:14 +0000 | |||
78 | +++ apport/report.py 2009-07-09 11:04:18 +0000 | |||
79 | @@ -170,7 +170,12 @@ | |||
80 | 170 | appends a list of all modified files''' | 170 | appends a list of all modified files''' |
81 | 171 | 171 | ||
82 | 172 | if not package: | 172 | if not package: |
84 | 173 | package = fileutils.find_file_package(self['ExecutablePath']) | 173 | # the kernel does not have a executable path but a package |
85 | 174 | if (not "ExecutablePath" in self and | ||
86 | 175 | self["ProblemType"] == "KernelCrash"): | ||
87 | 176 | package = self["Package"] | ||
88 | 177 | else: | ||
89 | 178 | package = fileutils.find_file_package(self['ExecutablePath']) | ||
90 | 174 | if not package: | 179 | if not package: |
91 | 175 | return | 180 | return |
92 | 176 | 181 | ||
93 | @@ -393,6 +398,43 @@ | |||
94 | 393 | self['ProcEnviron'] += '\n' | 398 | self['ProcEnviron'] += '\n' |
95 | 394 | self['ProcEnviron'] += 'PATH=(custom, no user)' | 399 | self['ProcEnviron'] += 'PATH=(custom, no user)' |
96 | 395 | 400 | ||
97 | 401 | def add_kernel_crash_info(self, debugdir=None): | ||
98 | 402 | '''Add information from crash | ||
99 | 403 | |||
100 | 404 | This needs a VmCore in the Report | ||
101 | 405 | ''' | ||
102 | 406 | if not self.has_key('VmCore'): | ||
103 | 407 | return | ||
104 | 408 | unlink_core = False | ||
105 | 409 | ret = False | ||
106 | 410 | try: | ||
107 | 411 | if hasattr(self['VmCore'], 'find'): | ||
108 | 412 | (fd, core) = tempfile.mkstemp() | ||
109 | 413 | os.write(fd, self['VmCore']) | ||
110 | 414 | os.close(fd) | ||
111 | 415 | unlink_core = True | ||
112 | 416 | kver = self['Uname'].split()[1] | ||
113 | 417 | command = ["crash", | ||
114 | 418 | "/usr/lib/debug/boot/vmlinux-%s" % kver, | ||
115 | 419 | core, | ||
116 | 420 | ] | ||
117 | 421 | p = subprocess.Popen(command, | ||
118 | 422 | stdin=subprocess.PIPE, | ||
119 | 423 | stdout=subprocess.PIPE, | ||
120 | 424 | stderr=subprocess.STDOUT) | ||
121 | 425 | p.stdin.write("bt -a -f\n") | ||
122 | 426 | p.stdin.write("ps\n") | ||
123 | 427 | p.stdin.write("runq\n") | ||
124 | 428 | p.stdin.write("quit\n") | ||
125 | 429 | # FIXME: split it up nicely etc | ||
126 | 430 | out = p.stdout.read() | ||
127 | 431 | ret = (p.wait() == 0) | ||
128 | 432 | self["Stacktrace"] = out | ||
129 | 433 | finally: | ||
130 | 434 | if unlink_core: | ||
131 | 435 | os.unlink(core) | ||
132 | 436 | return ret | ||
133 | 437 | |||
134 | 396 | def add_gdb_info(self, debugdir=None): | 438 | def add_gdb_info(self, debugdir=None): |
135 | 397 | '''Add information from gdb. | 439 | '''Add information from gdb. |
136 | 398 | 440 | ||
137 | 399 | 441 | ||
138 | === modified file 'backends/packaging-apt-dpkg.py' | |||
139 | --- backends/packaging-apt-dpkg.py 2009-06-30 20:35:38 +0000 | |||
140 | +++ backends/packaging-apt-dpkg.py 2009-07-09 11:04:18 +0000 | |||
141 | @@ -323,6 +323,44 @@ | |||
142 | 323 | # TODO: Ubuntu specific | 323 | # TODO: Ubuntu specific |
143 | 324 | return 'linux-image-' + os.uname()[2] | 324 | return 'linux-image-' + os.uname()[2] |
144 | 325 | 325 | ||
145 | 326 | def _install_debug_kernel(self, report): | ||
146 | 327 | '''Install kernel debug package | ||
147 | 328 | |||
148 | 329 | Ideally this would be just another package but the kernel is | ||
149 | 330 | special in various ways currently so we can not use the apt | ||
150 | 331 | method. | ||
151 | 332 | ''' | ||
152 | 333 | import urllib, apt_pkg | ||
153 | 334 | installed = [] | ||
154 | 335 | outdated = [] | ||
155 | 336 | kver = report['Uname'].split()[1] | ||
156 | 337 | arch = report['Architecture'] | ||
157 | 338 | ver = report['Package'].split()[1] | ||
158 | 339 | debug_pkgname = 'linux-image-debug-%s' % kver | ||
159 | 340 | c = self._cache() | ||
160 | 341 | if c.has_key(debug_pkgname) and c[debug_pkgname].isInstalled: | ||
161 | 342 | #print "kernel ddeb already installed" | ||
162 | 343 | return (installed, outdated) | ||
163 | 344 | target_dir = apt_pkg.Config.FindDir("Dir::Cache::archives")+"/partial" | ||
164 | 345 | deb = "%s_%s_%s.ddeb" % (debug_pkgname, ver, arch) | ||
165 | 346 | # FIXME: this package is currently not in Packages.gz | ||
166 | 347 | url = "http://ddebs.ubuntu.com/pool/main/l/linux/%s" % deb | ||
167 | 348 | out = open(os.path.join(target_dir,deb), "w") | ||
168 | 349 | # urlretrieve does not return 404 in the headers so we use urlopen | ||
169 | 350 | u = urllib.urlopen(url) | ||
170 | 351 | if u.getcode() > 400: | ||
171 | 352 | raise IOError, "urllib returned %s for %s" % (u.getcode(), url) | ||
172 | 353 | while True: | ||
173 | 354 | block = u.read(8*1024) | ||
174 | 355 | if not block: | ||
175 | 356 | break | ||
176 | 357 | out.write(block) | ||
177 | 358 | out.flush() | ||
178 | 359 | ret = subprocess.call(["dpkg","-i",os.path.join(target_dir,deb)]) | ||
179 | 360 | if ret == 0: | ||
180 | 361 | installed.append(deb.split("_")[0]) | ||
181 | 362 | return (installed, outdated) | ||
182 | 363 | |||
183 | 326 | def install_retracing_packages(self, report, verbosity=0, | 364 | def install_retracing_packages(self, report, verbosity=0, |
184 | 327 | unpack_only=False, no_pkg=False, extra_packages=[]): | 365 | unpack_only=False, no_pkg=False, extra_packages=[]): |
185 | 328 | '''Install packages which are required to retrace a report. | 366 | '''Install packages which are required to retrace a report. |
186 | @@ -339,6 +377,10 @@ | |||
187 | 339 | 377 | ||
188 | 340 | Return a tuple (list of installed packages, string with outdated packages). | 378 | Return a tuple (list of installed packages, string with outdated packages). |
189 | 341 | ''' | 379 | ''' |
190 | 380 | if (report['ProblemType'] == 'KernelCrash' and | ||
191 | 381 | report['Package'].startswith("linux-image")): | ||
192 | 382 | return self._install_debug_kernel(report) | ||
193 | 383 | |||
194 | 342 | c = self._cache() | 384 | c = self._cache() |
195 | 343 | 385 | ||
196 | 344 | try: | 386 | try: |
197 | 345 | 387 | ||
198 | === removed file 'backends/packaging_rpm.py' | |||
199 | --- backends/packaging_rpm.py 2009-04-11 16:40:06 +0000 | |||
200 | +++ backends/packaging_rpm.py 1970-01-01 00:00:00 +0000 | |||
201 | @@ -1,309 +0,0 @@ | |||
202 | 1 | '''A partial apport.PackageInfo class implementation for RPM, as found in | ||
203 | 2 | Fedora, RHEL, openSUSE, SUSE Linux, and many other distributions. | ||
204 | 3 | |||
205 | 4 | Copyright (C) 2007 Red Hat Inc. | ||
206 | 5 | Copyright (C) 2008 Nikolay Derkach | ||
207 | 6 | Author: Will Woods <wwoods@redhat.com>, Nikolay Derkach <nderkach@gmail.com> | ||
208 | 7 | |||
209 | 8 | This program is free software; you can redistribute it and/or modify it | ||
210 | 9 | under the terms of the GNU General Public License as published by the | ||
211 | 10 | Free Software Foundation; either version 2 of the License, or (at your | ||
212 | 11 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for | ||
213 | 12 | the full text of the license. | ||
214 | 13 | ''' | ||
215 | 14 | |||
216 | 15 | # N.B. There's some distro-specific bits in here (e.g. is_distro_package()). | ||
217 | 16 | # So this is actually an abstract base class (or a template, if you like) for | ||
218 | 17 | # RPM-based distributions. | ||
219 | 18 | # A proper implementation needs to (at least) set official_keylist to a list | ||
220 | 19 | # of GPG keyids used by official packages. You might have to extend | ||
221 | 20 | # is_distro_package() as well, if you don't sign all your official packages | ||
222 | 21 | # (cough cough Fedora rawhide cough) | ||
223 | 22 | |||
224 | 23 | # It'd be convenient to use rpmUtils from yum, but I'm trying to keep this | ||
225 | 24 | # class distro-agnostic. | ||
226 | 25 | import rpm, hashlib, os, stat, subprocess | ||
227 | 26 | |||
228 | 27 | class RPMPackageInfo: | ||
229 | 28 | '''Partial apport.PackageInfo class implementation for RPM, as | ||
230 | 29 | found in Fedora, RHEL, CentOS, etc.''' | ||
231 | 30 | |||
232 | 31 | # Empty keylist. Should contain a list of key ids (8 lowercase hex digits). | ||
233 | 32 | # e.g. official_keylist = ('30c9ecf8','4f2a6fd2','897da07a','1ac70ce6') | ||
234 | 33 | official_keylist = () | ||
235 | 34 | |||
236 | 35 | def __init__(self): | ||
237 | 36 | self.ts = rpm.TransactionSet() # connect to the rpmdb | ||
238 | 37 | self._mirror = None | ||
239 | 38 | |||
240 | 39 | def get_version(self, package): | ||
241 | 40 | '''Return the installed version of a package.''' | ||
242 | 41 | hdr = self._get_header(package) | ||
243 | 42 | if hdr == None: | ||
244 | 43 | raise ValueError | ||
245 | 44 | # Note - "version" here seems to refer to the full EVR, so.. | ||
246 | 45 | if not hdr['e']: | ||
247 | 46 | return hdr['v'] + '-' + hdr['r'] | ||
248 | 47 | if not hdr['v'] or not hdr['r']: | ||
249 | 48 | return None | ||
250 | 49 | else: | ||
251 | 50 | return hdr['e'] + ':' + hdr['v'] + '-' + hdr['r'] | ||
252 | 51 | |||
253 | 52 | def get_available_version(self, package): | ||
254 | 53 | '''Return the latest available version of a package.''' | ||
255 | 54 | # used in report.py, which is used by the frontends | ||
256 | 55 | raise NotImplementedError, 'method must be implemented by distro-specific RPMPackageInfo subclass' | ||
257 | 56 | |||
258 | 57 | def get_dependencies(self, package): | ||
259 | 58 | '''Return a list of packages a package depends on.''' | ||
260 | 59 | hdr = self._get_header(package) | ||
261 | 60 | # parse this package's Requires | ||
262 | 61 | reqs=[] | ||
263 | 62 | for r in hdr['requires']: | ||
264 | 63 | if r.startswith('rpmlib') or r.startswith('uname('): | ||
265 | 64 | continue # we've got rpmlib, thanks | ||
266 | 65 | if r[0] == '/': # file requires | ||
267 | 66 | req_heads = self._get_headers_by_tag('basenames',r) | ||
268 | 67 | else: # other requires | ||
269 | 68 | req_heads = self._get_headers_by_tag('provides',r) | ||
270 | 69 | for rh in req_heads: | ||
271 | 70 | rh_envra = self._make_envra_from_header(rh) | ||
272 | 71 | if rh_envra not in reqs: | ||
273 | 72 | reqs.append(rh_envra) | ||
274 | 73 | return reqs | ||
275 | 74 | |||
276 | 75 | def get_source(self, package): | ||
277 | 76 | '''Return the source package name for a package.''' | ||
278 | 77 | hdr = self._get_header(package) | ||
279 | 78 | return hdr['sourcerpm'] | ||
280 | 79 | |||
281 | 80 | def get_architecture(self, package): | ||
282 | 81 | '''Return the architecture of a package. | ||
283 | 82 | |||
284 | 83 | This might differ on multiarch architectures (e. g. an i386 Firefox | ||
285 | 84 | package on a x86_64 system)''' | ||
286 | 85 | # Yeah, this is kind of redundant, as package is ENVRA, but I want | ||
287 | 86 | # to do this the right way (in case we change what 'package' is) | ||
288 | 87 | hdr = self._get_header(package) | ||
289 | 88 | return hdr['arch'] | ||
290 | 89 | |||
291 | 90 | def get_files(self, package): | ||
292 | 91 | '''Return list of files shipped by a package.''' | ||
293 | 92 | hdr = self._get_header(package) | ||
294 | 93 | files = [] | ||
295 | 94 | for (f, mode) in zip(hdr['filenames'],hdr['filemodes']): | ||
296 | 95 | if not stat.S_ISDIR(mode): | ||
297 | 96 | files.append(f) | ||
298 | 97 | return files | ||
299 | 98 | |||
300 | 99 | def get_modified_files(self, package): | ||
301 | 100 | '''Return list of all modified files of a package.''' | ||
302 | 101 | hdr = self._get_header(package) | ||
303 | 102 | |||
304 | 103 | files = hdr['filenames'] | ||
305 | 104 | mtimes = hdr['filemtimes'] | ||
306 | 105 | md5s = hdr['filemd5s'] | ||
307 | 106 | |||
308 | 107 | modified = [] | ||
309 | 108 | for i in xrange(len(files)): | ||
310 | 109 | # Skip files we're not tracking md5s for | ||
311 | 110 | if not md5s[i]: continue | ||
312 | 111 | # Skip files we can't read | ||
313 | 112 | if not os.access(files[i],os.R_OK): continue | ||
314 | 113 | # Skip things that aren't real files | ||
315 | 114 | s = os.stat(files[i]) | ||
316 | 115 | if not stat.S_ISREG(s.st_mode): continue | ||
317 | 116 | # Skip things that haven't been modified | ||
318 | 117 | if mtimes[i] == s.st_mtime: continue | ||
319 | 118 | # Oh boy, an actual possibly-modified file. Check the md5sum! | ||
320 | 119 | if not self._checkmd5(files[i],md5s[i]): | ||
321 | 120 | modified.append(files[i]) | ||
322 | 121 | |||
323 | 122 | return modified | ||
324 | 123 | |||
325 | 124 | def get_file_package(self, file): | ||
326 | 125 | '''Return the package a file belongs to, or None if the file is not | ||
327 | 126 | shipped by any package. | ||
328 | 127 | |||
329 | 128 | Under normal use, the 'file' argument will always be the executable | ||
330 | 129 | that crashed. | ||
331 | 130 | ''' | ||
332 | 131 | # The policy for handling files which belong to multiple packages depends on the distro | ||
333 | 132 | raise NotImplementedError, 'method must be implemented by distro-specific RPMPackageInfo subclass' | ||
334 | 133 | |||
335 | 134 | def get_system_architecture(self): | ||
336 | 135 | '''Return the architecture of the system, in the notation used by the | ||
337 | 136 | particular distribution.''' | ||
338 | 137 | rpmarch = subprocess.Popen(['rpm', '--eval', '%_target_cpu'], | ||
339 | 138 | stdout=subprocess.PIPE) | ||
340 | 139 | arch = rpmarch.communicate()[0].strip() | ||
341 | 140 | return arch | ||
342 | 141 | |||
343 | 142 | def is_distro_package(self, package): | ||
344 | 143 | '''Check if a package is a genuine distro package (True) or comes from | ||
345 | 144 | a third-party source.''' | ||
346 | 145 | # This is a list of official keys, set by the concrete subclass | ||
347 | 146 | if not self.official_keylist: | ||
348 | 147 | raise Exception, 'Subclass the RPM implementation for your distro!' | ||
349 | 148 | hdr = self._get_header(package) | ||
350 | 149 | if not hdr: | ||
351 | 150 | return False | ||
352 | 151 | # Check the GPG sig and key ID to see if this package was signed | ||
353 | 152 | # with an official key. | ||
354 | 153 | if hdr['siggpg']: | ||
355 | 154 | # Package is signed | ||
356 | 155 | keyid = hdr['siggpg'][13:17].encode('hex') | ||
357 | 156 | if keyid in self.official_keylist: | ||
358 | 157 | return True | ||
359 | 158 | return False | ||
360 | 159 | |||
361 | 160 | def set_mirror(self, url): | ||
362 | 161 | '''Explicitly set a distribution mirror URL for operations that need to | ||
363 | 162 | fetch distribution files/packages from the network. | ||
364 | 163 | |||
365 | 164 | By default, the mirror will be read from the system configuration | ||
366 | 165 | files.''' | ||
367 | 166 | # FIXME C&P from apt-dpkg implementation, might move to subclass | ||
368 | 167 | self._mirror = url | ||
369 | 168 | |||
370 | 169 | def get_source_tree(self, srcpackage, dir, version=None): | ||
371 | 170 | '''Download given source package and unpack it into dir (which should | ||
372 | 171 | be empty). | ||
373 | 172 | |||
374 | 173 | This also has to care about applying patches etc., so that dir will | ||
375 | 174 | eventually contain the actually compiled source. | ||
376 | 175 | |||
377 | 176 | If version is given, this particular version will be retrieved. | ||
378 | 177 | Otherwise this will fetch the latest available version. | ||
379 | 178 | |||
380 | 179 | Return the directory that contains the actual source root directory | ||
381 | 180 | (which might be a subdirectory of dir). Return None if the source is | ||
382 | 181 | not available.''' | ||
383 | 182 | # Used only by apport-retrace. | ||
384 | 183 | raise NotImplementedError, 'method must be implemented by distro-specific RPMPackageInfo subclass' | ||
385 | 184 | |||
386 | 185 | def compare_versions(self, ver1, ver2): | ||
387 | 186 | '''Compare two package versions. | ||
388 | 187 | |||
389 | 188 | Return -1 for ver < ver2, 0 for ver1 == ver2, and 1 for ver1 > ver2.''' | ||
390 | 189 | # Used by crashdb.py (i.e. the frontends) | ||
391 | 190 | # I could duplicate stringToVersion/compareEVR from rpmUtils.misc, | ||
392 | 191 | # but I hate duplicating code. So if you don't want to require rpmUtils | ||
393 | 192 | # you can implement this function yourself. Probably you've got | ||
394 | 193 | # equivalent code in whatever your distro uses instead of yum anyway. | ||
395 | 194 | raise NotImplementedError, 'method must be implemented by distro-specific RPMPackageInfo subclass' | ||
396 | 195 | |||
397 | 196 | def package_name_glob(self, glob): | ||
398 | 197 | '''Return known package names which match given glob.''' | ||
399 | 198 | |||
400 | 199 | raise NotImplementedError, 'TODO' | ||
401 | 200 | |||
402 | 201 | # | ||
403 | 202 | # Internal helper methods. These are only single-underscore, so you can use | ||
404 | 203 | # use them in extending/overriding the methods above in your subclasses | ||
405 | 204 | # | ||
406 | 205 | |||
407 | 206 | def _get_headers_by_tag(self,tag,arg): | ||
408 | 207 | '''Get a list of RPM headers by doing dbMatch on the given tag and | ||
409 | 208 | argument.''' | ||
410 | 209 | matches = self.ts.dbMatch(tag,arg) | ||
411 | 210 | if matches.count() == 0: | ||
412 | 211 | raise ValueError, 'Could not find package with %s: %s' % (tag,arg) | ||
413 | 212 | return [m for m in matches] | ||
414 | 213 | |||
415 | 214 | def _get_header(self,envra): | ||
416 | 215 | '''Get the RPM header that matches the given ENVRA.''' | ||
417 | 216 | |||
418 | 217 | querystr = envra | ||
419 | 218 | qlen = len(envra) | ||
420 | 219 | while qlen > 0: | ||
421 | 220 | mi = impl.ts.dbMatch('name', querystr) | ||
422 | 221 | hdrs = [m for m in mi] | ||
423 | 222 | if len(hdrs) > 0: | ||
424 | 223 | # yay! we found something | ||
425 | 224 | # Unless there's some rpmdb breakage, you should have one header | ||
426 | 225 | # here. If you do manage to have two rpms with the same ENVRA, | ||
427 | 226 | # who cares which one you get? | ||
428 | 227 | h = hdrs[0] | ||
429 | 228 | break | ||
430 | 229 | |||
431 | 230 | # remove the last char of querystr and retry the search | ||
432 | 231 | querystr = querystr[0:len(querystr)-1] | ||
433 | 232 | qlen = qlen - 1 | ||
434 | 233 | |||
435 | 234 | if qlen == 0: | ||
436 | 235 | raise ValueError, 'No headers found for this envra: %s' % envra | ||
437 | 236 | return h | ||
438 | 237 | |||
439 | 238 | def _make_envra_from_header(self,h): | ||
440 | 239 | '''Generate an ENVRA string from an rpm header''' | ||
441 | 240 | nvra="%s-%s-%s.%s" % (h['n'],h['v'],h['r'],h['arch']) | ||
442 | 241 | if h['e']: | ||
443 | 242 | envra = "%s:%s" % (h['e'],nvra) | ||
444 | 243 | else: | ||
445 | 244 | envra = nvra | ||
446 | 245 | return envra | ||
447 | 246 | |||
448 | 247 | def _checkmd5(self,filename,filemd5): | ||
449 | 248 | '''Internal function to check a file's md5sum''' | ||
450 | 249 | m = hashlib.md5() | ||
451 | 250 | f = open(filename) | ||
452 | 251 | data = f.read() | ||
453 | 252 | f.close() | ||
454 | 253 | m.update(data) | ||
455 | 254 | return (filemd5 == m.hexdigest()) | ||
456 | 255 | |||
457 | 256 | impl = RPMPackageInfo() | ||
458 | 257 | |||
459 | 258 | # | ||
460 | 259 | # Unit test | ||
461 | 260 | # | ||
462 | 261 | |||
463 | 262 | if __name__ == '__main__': | ||
464 | 263 | import unittest | ||
465 | 264 | |||
466 | 265 | class RPMPackageInfoTest(unittest.TestCase): | ||
467 | 266 | |||
468 | 267 | def test_get_dependencies(self): | ||
469 | 268 | '''get_dependencies().''' | ||
470 | 269 | |||
471 | 270 | deps = impl.get_dependencies('bash') | ||
472 | 271 | self.assertNotEqual(deps, []) | ||
473 | 272 | |||
474 | 273 | def test_get_header(self): | ||
475 | 274 | '''_get_header().''' | ||
476 | 275 | |||
477 | 276 | hdr = impl._get_header('alsa-utils') | ||
478 | 277 | self.assertEqual(hdr['n'], 'alsa-utils') | ||
479 | 278 | |||
480 | 279 | def test_get_headers_by_tag(self): | ||
481 | 280 | '''_get_headers_by_tag().''' | ||
482 | 281 | |||
483 | 282 | headersByTag = impl._get_headers_by_tag('basenames','/bin/bash') | ||
484 | 283 | self.assertEqual(len(headersByTag), 1) | ||
485 | 284 | self.assert_(headersByTag[0]['n'].startswith('bash')) | ||
486 | 285 | |||
487 | 286 | def test_get_system_architecture(self): | ||
488 | 287 | '''get_system_architecture().''' | ||
489 | 288 | |||
490 | 289 | arch = impl.get_system_architecture() | ||
491 | 290 | # must be nonempty without line breaks | ||
492 | 291 | self.assertNotEqual(arch, '') | ||
493 | 292 | self.assert_('\n' not in arch) | ||
494 | 293 | |||
495 | 294 | def test_get_version(self): | ||
496 | 295 | '''get_version().''' | ||
497 | 296 | |||
498 | 297 | ver = impl.get_version('bash') | ||
499 | 298 | self.assertNotEqual(ver, None) | ||
500 | 299 | ver = impl.get_version('alsa-utils') | ||
501 | 300 | self.assertNotEqual(ver, None) | ||
502 | 301 | |||
503 | 302 | |||
504 | 303 | # only execute if rpm is available | ||
505 | 304 | try: | ||
506 | 305 | if subprocess.call(['rpm', '--help'], stdout=subprocess.PIPE, | ||
507 | 306 | stderr=subprocess.PIPE) == 0: | ||
508 | 307 | unittest.main() | ||
509 | 308 | except OSError: | ||
510 | 309 | pass | ||
511 | 310 | 0 | ||
512 | === modified file 'bin/apport-retrace' | |||
513 | --- bin/apport-retrace 2009-04-05 18:21:18 +0000 | |||
514 | +++ bin/apport-retrace 2009-07-09 10:00:51 +0000 | |||
515 | @@ -104,8 +104,9 @@ | |||
516 | 104 | 104 | ||
517 | 105 | print '--- stack trace ---' | 105 | print '--- stack trace ---' |
518 | 106 | print report['Stacktrace'] | 106 | print report['Stacktrace'] |
521 | 107 | print '--- thread stack trace ---' | 107 | if report.has_key('ThreadedStacktrace'): |
522 | 108 | print report['ThreadStacktrace'] | 108 | print '--- thread stack trace ---' |
523 | 109 | print report['ThreadStacktrace'] | ||
524 | 109 | print '---' | 110 | print '---' |
525 | 110 | 111 | ||
526 | 111 | ch = None | 112 | ch = None |
527 | @@ -243,11 +244,16 @@ | |||
528 | 243 | 244 | ||
529 | 244 | # sanity checks | 245 | # sanity checks |
530 | 245 | required_fields = set(['CoreDump', 'ExecutablePath', 'Package']) | 246 | required_fields = set(['CoreDump', 'ExecutablePath', 'Package']) |
532 | 246 | if not required_fields.issubset(set(report.keys())): | 247 | if report['ProblemType'] == 'KernelCrash': |
533 | 248 | if not set(['Package','VmCore']).issubset(set(report.keys())): | ||
534 | 249 | print >> sys.stderr, 'report file does not contain the required fields' | ||
535 | 250 | sys.exit(0) | ||
536 | 251 | elif not required_fields.issubset(set(report.keys())): | ||
537 | 247 | print >> sys.stderr, 'report file does not contain required fields: ' + \ | 252 | print >> sys.stderr, 'report file does not contain required fields: ' + \ |
538 | 248 | ' '.join(required_fields) | 253 | ' '.join(required_fields) |
539 | 249 | sys.exit(0) | 254 | sys.exit(0) |
540 | 250 | 255 | ||
541 | 256 | |||
542 | 251 | (installed, outdated_msg) = apport.packaging.install_retracing_packages(report, | 257 | (installed, outdated_msg) = apport.packaging.install_retracing_packages(report, |
543 | 252 | options.verbose, options.unpack_only, options.no_pkg, | 258 | options.verbose, options.unpack_only, options.no_pkg, |
544 | 253 | options.extra_packages) | 259 | options.extra_packages) |
545 | @@ -265,6 +271,7 @@ | |||
546 | 265 | # regenerate gdb info | 271 | # regenerate gdb info |
547 | 266 | try: | 272 | try: |
548 | 267 | report.add_gdb_info() | 273 | report.add_gdb_info() |
549 | 274 | report.add_kernel_crash_info() | ||
550 | 268 | gen_source_stacktrace(report) | 275 | gen_source_stacktrace(report) |
551 | 269 | except AssertionError: | 276 | except AssertionError: |
552 | 270 | if outdated_msg: | 277 | if outdated_msg: |
553 | @@ -283,8 +290,9 @@ | |||
554 | 283 | if options.stdout: | 290 | if options.stdout: |
555 | 284 | print '--- stack trace ---' | 291 | print '--- stack trace ---' |
556 | 285 | print report['Stacktrace'] | 292 | print report['Stacktrace'] |
559 | 286 | print '--- thread stack trace ---' | 293 | if report.has_key('ThreadedStacktrace'): |
560 | 287 | print report['ThreadStacktrace'] | 294 | print '--- thread stack trace ---' |
561 | 295 | print report['ThreadStacktrace'] | ||
562 | 288 | if report.has_key('StacktraceSource'): | 296 | if report.has_key('StacktraceSource'): |
563 | 289 | print '--- source code stack trace ---' | 297 | print '--- source code stack trace ---' |
564 | 290 | print report['StacktraceSource'] | 298 | print report['StacktraceSource'] |
565 | 291 | 299 | ||
566 | === modified file 'bin/kernel_crashdump' | |||
567 | --- bin/kernel_crashdump 2009-06-26 06:37:25 +0000 | |||
568 | +++ bin/kernel_crashdump 2009-07-09 10:52:51 +0000 | |||
569 | @@ -23,6 +23,7 @@ | |||
570 | 23 | pr['Package'] = apport.packaging.get_kernel_package() | 23 | pr['Package'] = apport.packaging.get_kernel_package() |
571 | 24 | 24 | ||
572 | 25 | pr['VmCore'] = (vmcore_path,) | 25 | pr['VmCore'] = (vmcore_path,) |
573 | 26 | pr.add_os_info() | ||
574 | 26 | if os.path.exists(vmcore_path + '.log'): | 27 | if os.path.exists(vmcore_path + '.log'): |
575 | 27 | pr['VmCoreLog'] = (vmcore_path + '.log',) | 28 | pr['VmCoreLog'] = (vmcore_path + '.log',) |
576 | 28 | 29 | ||
577 | 29 | 30 | ||
578 | === added file 'data/general-hooks/automatix.py' | |||
579 | --- data/general-hooks/automatix.py 1970-01-01 00:00:00 +0000 | |||
580 | +++ data/general-hooks/automatix.py 2009-03-10 17:32:02 +0000 | |||
581 | @@ -0,0 +1,26 @@ | |||
582 | 1 | '''Do not send any crashes when automatix is or was installed, since it usually | ||
583 | 2 | causes a mess in the system and causes a lot of package installation failures. | ||
584 | 3 | |||
585 | 4 | Copyright (C) 2007 Canonical Ltd. | ||
586 | 5 | Author: Martin Pitt <martin.pitt@ubuntu.com> | ||
587 | 6 | |||
588 | 7 | This program is free software; you can redistribute it and/or modify it | ||
589 | 8 | under the terms of the GNU General Public License as published by the | ||
590 | 9 | Free Software Foundation; either version 2 of the License, or (at your | ||
591 | 10 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for | ||
592 | 11 | the full text of the license. | ||
593 | 12 | ''' | ||
594 | 13 | |||
595 | 14 | import apport.packaging | ||
596 | 15 | |||
597 | 16 | def add_info(report): | ||
598 | 17 | try: | ||
599 | 18 | if apport.packaging.get_version('automatix') or \ | ||
600 | 19 | apport.packaging.get_version('automatix2') or \ | ||
601 | 20 | apport.packaging.get_version('ultamatix'): | ||
602 | 21 | report['UnreportableReason'] = 'You have installed automatix or ultamatix on your \ | ||
603 | 22 | system. This is known to cause a lot of instability, thus problem reports \ | ||
604 | 23 | will not be sent to the %s developers.' % report.get('DistroRelease', | ||
605 | 24 | 'distribution').split()[0] | ||
606 | 25 | except ValueError, e: | ||
607 | 26 | return | ||
608 | 0 | 27 | ||
609 | === added file 'data/general-hooks/ubuntu.py' | |||
610 | --- data/general-hooks/ubuntu.py 1970-01-01 00:00:00 +0000 | |||
611 | +++ data/general-hooks/ubuntu.py 2009-06-03 07:42:02 +0000 | |||
612 | @@ -0,0 +1,31 @@ | |||
613 | 1 | '''Attach generally useful information, not specific to any package. | ||
614 | 2 | |||
615 | 3 | Copyright (C) 2009 Canonical Ltd. | ||
616 | 4 | Author: Matt Zimmerman <mdz@canonical.com> | ||
617 | 5 | |||
618 | 6 | This program is free software; you can redistribute it and/or modify it | ||
619 | 7 | under the terms of the GNU General Public License as published by the | ||
620 | 8 | Free Software Foundation; either version 2 of the License, or (at your | ||
621 | 9 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for | ||
622 | 10 | the full text of the license. | ||
623 | 11 | ''' | ||
624 | 12 | |||
625 | 13 | import apport.packaging | ||
626 | 14 | from apport.hookutils import * | ||
627 | 15 | |||
628 | 16 | def add_info(report): | ||
629 | 17 | # crash reports from live system installer often expose target mount | ||
630 | 18 | for f in ('ExecutablePath', 'InterpreterPath'): | ||
631 | 19 | if f in report and report[f].startswith('/target/'): | ||
632 | 20 | report[f] = report[f][7:] | ||
633 | 21 | |||
634 | 22 | # if we are running from a live system, add the build timestamp | ||
635 | 23 | attach_file_if_exists(report, '/cdrom/.disk/info', 'LiveMediaBuild') | ||
636 | 24 | |||
637 | 25 | # This includes the Ubuntu packaged kernel version | ||
638 | 26 | attach_file_if_exists(report, '/proc/version_signature', 'ProcVersionSignature') | ||
639 | 27 | |||
640 | 28 | if 'Package' in report: | ||
641 | 29 | package = report['Package'].split()[0] | ||
642 | 30 | if package and 'attach_conffiles' in dir(): | ||
643 | 31 | attach_conffiles(report, package) | ||
644 | 0 | 32 | ||
645 | === added file 'data/package-hooks/source_linux.py' | |||
646 | --- data/package-hooks/source_linux.py 1970-01-01 00:00:00 +0000 | |||
647 | +++ data/package-hooks/source_linux.py 2009-04-28 17:09:17 +0000 | |||
648 | @@ -0,0 +1,40 @@ | |||
649 | 1 | '''Apport package hook for the Linux kernel. | ||
650 | 2 | |||
651 | 3 | (c) 2008 Canonical Ltd. | ||
652 | 4 | Contributors: | ||
653 | 5 | Matt Zimmerman <mdz@canonical.com> | ||
654 | 6 | Martin Pitt <martin.pitt@canonical.com> | ||
655 | 7 | |||
656 | 8 | This program is free software; you can redistribute it and/or modify it | ||
657 | 9 | under the terms of the GNU General Public License as published by the | ||
658 | 10 | Free Software Foundation; either version 2 of the License, or (at your | ||
659 | 11 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for | ||
660 | 12 | the full text of the license. | ||
661 | 13 | ''' | ||
662 | 14 | |||
663 | 15 | import os | ||
664 | 16 | import subprocess | ||
665 | 17 | from apport.hookutils import * | ||
666 | 18 | |||
667 | 19 | def add_info(report): | ||
668 | 20 | attach_hardware(report) | ||
669 | 21 | |||
670 | 22 | attach_file_if_exists(report, "/etc/initramfs-tools/conf.d/resume", | ||
671 | 23 | key="HibernationDevice") | ||
672 | 24 | |||
673 | 25 | version_signature = report.get('ProcVersionSignature', '') | ||
674 | 26 | if not version_signature.startswith('Ubuntu '): | ||
675 | 27 | report['UnreportableReason'] = _('The running kernel is not an Ubuntu kernel') | ||
676 | 28 | return | ||
677 | 29 | |||
678 | 30 | uname_release = os.uname()[2] | ||
679 | 31 | lrm_package_name = 'linux-restricted-modules-%s' % uname_release | ||
680 | 32 | lbm_package_name = 'linux-backports-modules-%s' % uname_release | ||
681 | 33 | |||
682 | 34 | attach_related_packages(report, [lrm_package_name, lbm_package_name]) | ||
683 | 35 | |||
684 | 36 | if __name__ == '__main__': | ||
685 | 37 | report = {} | ||
686 | 38 | add_info(report) | ||
687 | 39 | for key in report: | ||
688 | 40 | print '%s: %s' % (key, report[key].split('\n', 1)[0]) | ||
689 | 0 | 41 | ||
690 | === added directory 'debian' | |||
691 | === added file 'debian/apport-gtk.install' | |||
692 | --- debian/apport-gtk.install 1970-01-01 00:00:00 +0000 | |||
693 | +++ debian/apport-gtk.install 2009-06-29 09:59:56 +0000 | |||
694 | @@ -0,0 +1,2 @@ | |||
695 | 1 | usr/share/apport/*gtk* | ||
696 | 2 | usr/share/applications/*gtk-mime* | ||
697 | 0 | 3 | ||
698 | === added file 'debian/apport-kde.install' | |||
699 | --- debian/apport-kde.install 1970-01-01 00:00:00 +0000 | |||
700 | +++ debian/apport-kde.install 2009-06-29 09:59:56 +0000 | |||
701 | @@ -0,0 +1,7 @@ | |||
702 | 1 | usr/share/apport/*kde* | ||
703 | 2 | usr/share/apport/progress.ui | ||
704 | 3 | usr/share/apport/error.ui | ||
705 | 4 | usr/share/apport/bugreport.ui | ||
706 | 5 | usr/share/apport/choices.ui | ||
707 | 6 | usr/share/applications/apport-kde-mime.desktop | ||
708 | 7 | usr/share/applications/apport-kde-mimelnk.desktop usr/share/mimelnk/text | ||
709 | 0 | 8 | ||
710 | === added file 'debian/apport-retrace.install' | |||
711 | --- debian/apport-retrace.install 1970-01-01 00:00:00 +0000 | |||
712 | +++ debian/apport-retrace.install 2009-04-05 18:30:06 +0000 | |||
713 | @@ -0,0 +1,3 @@ | |||
714 | 1 | usr/share/apport/apport-retrace usr/bin | ||
715 | 2 | usr/share/apport/dupdb-admin usr/bin | ||
716 | 3 | ../local/apport-chroot usr/bin | ||
717 | 0 | 4 | ||
718 | === added file 'debian/apport-retrace.manpages' | |||
719 | --- debian/apport-retrace.manpages 1970-01-01 00:00:00 +0000 | |||
720 | +++ debian/apport-retrace.manpages 2009-04-05 18:30:06 +0000 | |||
721 | @@ -0,0 +1,3 @@ | |||
722 | 1 | man/apport-retrace.1 | ||
723 | 2 | man/dupdb-admin.1 | ||
724 | 3 | debian/local/apport-chroot.1 | ||
725 | 0 | 4 | ||
726 | === added file 'debian/apport.install' | |||
727 | --- debian/apport.install 1970-01-01 00:00:00 +0000 | |||
728 | +++ debian/apport.install 2009-04-05 18:15:48 +0000 | |||
729 | @@ -0,0 +1,21 @@ | |||
730 | 1 | etc/default | ||
731 | 2 | etc/init.d | ||
732 | 3 | etc/cron.daily | ||
733 | 4 | usr/share/apport/apport | ||
734 | 5 | usr/share/apport/apport-checkreports | ||
735 | 6 | usr/share/apport/package_hook | ||
736 | 7 | usr/share/apport/kernel_crashdump | ||
737 | 8 | usr/share/apport/kernel_oops | ||
738 | 9 | usr/share/apport/gcc_ice_hook | ||
739 | 10 | usr/share/apport/apportcheckresume | ||
740 | 11 | usr/share/apport/apport-unpack usr/bin | ||
741 | 12 | usr/share/apport/testsuite/ | ||
742 | 13 | usr/share/doc/apport | ||
743 | 14 | usr/share/locale | ||
744 | 15 | usr/share/icons | ||
745 | 16 | usr/share/mime | ||
746 | 17 | usr/share/apport/package-hooks | ||
747 | 18 | usr/share/apport/general-hooks | ||
748 | 19 | usr/share/apport/*cli* usr/bin/ | ||
749 | 20 | ../local/ubuntu-bug usr/bin | ||
750 | 21 | ../local/apport-collect usr/bin | ||
751 | 0 | 22 | ||
752 | === added file 'debian/apport.links' | |||
753 | --- debian/apport.links 1970-01-01 00:00:00 +0000 | |||
754 | +++ debian/apport.links 2009-04-23 22:02:32 +0000 | |||
755 | @@ -0,0 +1,1 @@ | |||
756 | 1 | /usr/share/apport/package-hooks/source_linux.py /usr/share/apport/package-hooks/source_linux-meta.py | ||
757 | 0 | 2 | ||
758 | === added file 'debian/apport.logrotate' | |||
759 | --- debian/apport.logrotate 1970-01-01 00:00:00 +0000 | |||
760 | +++ debian/apport.logrotate 2006-09-10 20:59:21 +0000 | |||
761 | @@ -0,0 +1,9 @@ | |||
762 | 1 | /var/log/apport.log { | ||
763 | 2 | daily | ||
764 | 3 | rotate 7 | ||
765 | 4 | delaycompress | ||
766 | 5 | compress | ||
767 | 6 | notifempty | ||
768 | 7 | missingok | ||
769 | 8 | } | ||
770 | 9 | |||
771 | 0 | 10 | ||
772 | === added file 'debian/apport.manpages' | |||
773 | --- debian/apport.manpages 1970-01-01 00:00:00 +0000 | |||
774 | +++ debian/apport.manpages 2009-02-19 12:28:59 +0000 | |||
775 | @@ -0,0 +1,4 @@ | |||
776 | 1 | man/apport-unpack.1 | ||
777 | 2 | man/apport-cli.1 | ||
778 | 3 | debian/local/ubuntu-bug.1 | ||
779 | 4 | debian/local/apport-collect.1 | ||
780 | 0 | 5 | ||
781 | === added file 'debian/changelog' | |||
782 | --- debian/changelog 1970-01-01 00:00:00 +0000 | |||
783 | +++ debian/changelog 2009-06-30 20:39:23 +0000 | |||
784 | @@ -0,0 +1,3855 @@ | |||
785 | 1 | apport (1.5-0ubuntu2) karmic; urgency=low | ||
786 | 2 | |||
787 | 3 | * Merge fixes from trunk: | ||
788 | 4 | - packaging-apt-dpkg.py: Fix install_retracing_packages() for pre-0.7.9 | ||
789 | 5 | python-apt API. | ||
790 | 6 | - Sort the list of dependencies so it's easier to scan (LP: #391021) | ||
791 | 7 | |||
792 | 8 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 30 Jun 2009 22:39:18 +0200 | ||
793 | 9 | |||
794 | 10 | apport (1.5-0ubuntu1) karmic; urgency=low | ||
795 | 11 | |||
796 | 12 | * New upstream release: | ||
797 | 13 | - Drop all Makefiles, po/POTFILES.in, and most code from setup.py, and use | ||
798 | 14 | DistUtilsExtras.auto which "just does the right thing" for most build | ||
799 | 15 | system tasks. This requires python-distutils-extra >= 2.2, see | ||
800 | 16 | https://launchpad.net/python-distutils-extra | ||
801 | 17 | - Move all test scripts into test/, to unclutter source tree. | ||
802 | 18 | - setup.py now auto-detects the required packaging backend if | ||
803 | 19 | apport/packaging_impl.py is not manually installed. | ||
804 | 20 | * debian/control: Add python-distutils-extra build dependency. | ||
805 | 21 | * debian/rules: Drop stuff which is now properly done by the upstream build | ||
806 | 22 | system. | ||
807 | 23 | * Drop debian/apport.examples, preloadlib died long ago. | ||
808 | 24 | * Adapt debian/apport-{gtk,kde}.install to new upstream build system, which | ||
809 | 25 | now installs the .desktop files itself. | ||
810 | 26 | |||
811 | 27 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 29 Jun 2009 12:00:21 +0200 | ||
812 | 28 | |||
813 | 29 | apport (1.4-0ubuntu1) karmic; urgency=low | ||
814 | 30 | |||
815 | 31 | * New upstream release. Compared to our previous snapshot, this changes: | ||
816 | 32 | - Replace Qt4 frontend with KDE frontend, thanks to Richard Johnson! | ||
817 | 33 | - apport/ui.py, run_report_bug(): Clean up PID information collection. | ||
818 | 34 | - gtk/apport-gtk.ui: Drop invalid icon reference. (LP: #389064) | ||
819 | 35 | - ui.py: Do not reject non-distro package reports if report sets CrashDB | ||
820 | 36 | (for third-party destination). (LP: #391015) | ||
821 | 37 | - bin/kernel_crashdump: Use packaging API properly. | ||
822 | 38 | - apport-gtk.ui: Drop erroneous translatable flag from stock buttons. | ||
823 | 39 | - Update German translations. | ||
824 | 40 | * debian/*: qt → kde, add transitional package for apport-qt. | ||
825 | 41 | * Drop backends/packaging_rpm.py. We don't use it in the Ubuntu package at | ||
826 | 42 | all, and it's still in trunk. | ||
827 | 43 | * debian/rules: Drop some deprecated dh_* calls, cdbs's debhelper.mk has | ||
828 | 44 | done them for a long time. | ||
829 | 45 | * debian/control: Bump Standards-Version to 3.8.2 (no changes necessary). | ||
830 | 46 | * debian/control: Replace URLs in descriptions with proper Homepage: field. | ||
831 | 47 | |||
832 | 48 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 26 Jun 2009 10:44:54 +0200 | ||
833 | 49 | |||
834 | 50 | apport (1.3-0ubuntu2) karmic; urgency=low | ||
835 | 51 | |||
836 | 52 | * debian/local/apport-collect: Pass None as HookUI object. This will crash | ||
837 | 53 | with interactive hooks, but is a good enough immediate bandaid. | ||
838 | 54 | (LP: #385811) | ||
839 | 55 | * Merge fixes from trunk: | ||
840 | 56 | - packaging-apt-dpkg.py: Add backwards compatibility code for python-apt < | ||
841 | 57 | 0.7.9 to not break backportability. | ||
842 | 58 | - hookutils.py, command_output(): Force LC_MESSAGES=C, to avoid translated | ||
843 | 59 | output in bug reports. (LP: #383230) | ||
844 | 60 | - apport-gtk.ui: Make details window resizable, and lower default size, so | ||
845 | 61 | that it will fit on small screens. (LP: #365517) | ||
846 | 62 | |||
847 | 63 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 12 Jun 2009 12:47:59 +0200 | ||
848 | 64 | |||
849 | 65 | apport (1.3-0ubuntu1) karmic; urgency=low | ||
850 | 66 | |||
851 | 67 | * New upstream release. Compared to our bzr snapshot, this has: | ||
852 | 68 | - Interactive package hooks: | ||
853 | 69 | + Add apport.ui.HookUI class which provides GUI functionality such as | ||
854 | 70 | yes/no | ||
855 | 71 | questions or file dialogs to hooks. | ||
856 | 72 | + add_info() in package hooks now can (optionally) take a second argument | ||
857 | 73 | which is the HookUI instance. | ||
858 | 74 | + See doc/package-hooks.txt for details. | ||
859 | 75 | + See UbuntuSpec:desktop-karmic-symptom-based-bug-reporting | ||
860 | 76 | - New function apport.hookutils.root_command_output() to run a command as root, | ||
861 | 77 | through gksu/kdesudo/sudo, depending on the desktop environment. | ||
862 | 78 | |||
863 | 79 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 10 Jun 2009 16:49:13 +0200 | ||
864 | 80 | |||
865 | 81 | apport (1.2.1-0ubuntu3) karmic; urgency=low | ||
866 | 82 | |||
867 | 83 | * debian/control: Bump Standards-Version to 3.8.1 (no changes necessary). | ||
868 | 84 | * debian/control: Bump debhelper dependency for dh_icons, to satisfy | ||
869 | 85 | lintian. | ||
870 | 86 | * general-hooks/ubuntu.py: Fix IndexError crash if report does not have a | ||
871 | 87 | Package field. Check whether we actually have attach_conffiles() (which is | ||
872 | 88 | not the case when running the upstream version). | ||
873 | 89 | * Merge trunk: | ||
874 | 90 | - launchpad.py: Fix crash for unset titles. | ||
875 | 91 | - Add segfault analysis hook for quick segv reviews. Thanks to Kees Cook! | ||
876 | 92 | - run-tests: Replace hardcoded Python path with dynamically detected path. | ||
877 | 93 | |||
878 | 94 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 03 Jun 2009 09:52:03 +0200 | ||
879 | 95 | |||
880 | 96 | apport (1.2.1-0ubuntu2) karmic; urgency=low | ||
881 | 97 | |||
882 | 98 | * debian/control: Update Vcs-Bzr: for new location (moved from project | ||
883 | 99 | branch to package branch). | ||
884 | 100 | * Merge bug fixes from trunk: | ||
885 | 101 | - apport-cli: Fix report saving in "bug report" mode. (LP: #353253) | ||
886 | 102 | - Drop "UnsupportableReason" field, it is too similar to | ||
887 | 103 | UnreportableReason and just confusing. | ||
888 | 104 | - ui.py: Check UnreportableReason for run_report_bug() as well. | ||
889 | 105 | (LP: #361359) | ||
890 | 106 | - general-hooks/generic.py: Do not report problems with low free space on | ||
891 | 107 | / or /home. (LP: #381047) | ||
892 | 108 | - launchpad.py: Do not overwrite report['Title']. | ||
893 | 109 | - launchpad.py: Repair support for extra tags. | ||
894 | 110 | - New function apport.hookutils.root_command_output() to run a command as | ||
895 | 111 | root, through gksu/kdesudo/sudo, depending on the desktop environment. | ||
896 | 112 | (Part of UbuntuSpec:desktop-karmic-symptom-based-bug-reporting) | ||
897 | 113 | - launchpad.py: Fetch DpkgTerminalLog. (LP: #382589) | ||
898 | 114 | - launchpad.py: More robust download(), fixes other part of (LP: #382589) | ||
899 | 115 | - problem_report.py: Allow dashes and underscores in key names. Update | ||
900 | 116 | doc/data-format.tex accordingly. (LP: #380811) | ||
901 | 117 | |||
902 | 118 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 02 Jun 2009 11:59:41 +0200 | ||
903 | 119 | |||
904 | 120 | apport (1.2.1-0ubuntu1) karmic; urgency=low | ||
905 | 121 | |||
906 | 122 | * New upstream release: | ||
907 | 123 | - Moving away from deprecated APIs: | ||
908 | 124 | + packaging-apt-dpkg.py: Use python-apt >= 0.7.9 official API and drop | ||
909 | 125 | usage of internal symbols. | ||
910 | 126 | + hookutils.py: Drop hal related functions and queries, replace with | ||
911 | 127 | udev database, udev log file, and DMI information from sysfs. | ||
912 | 128 | + gtk UI: Convert from libglade to gtk.Builder. | ||
913 | 129 | - Bug fixes: | ||
914 | 130 | + hookutils.py: Drop /proc/version_signature collection, it is Ubuntu | ||
915 | 131 | specific. | ||
916 | 132 | + apportcheckresume: Fix log collection from pm-utils. | ||
917 | 133 | + Fix various crashes and report properties for reporting against | ||
918 | 134 | uninstalled packages. | ||
919 | 135 | * debian/control: Drop python-glade2 dependency, bump python-gtk2 dependency | ||
920 | 136 | to ensure availability of gtk.Builder. | ||
921 | 137 | * hookutils, attach_conffiles(): Remove leftover debugging spew. | ||
922 | 138 | * debian/apport-qt.install: Install the individual Qt .ui files instead of | ||
923 | 139 | *.ui, since GTK's are now also called *.ui. | ||
924 | 140 | |||
925 | 141 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 15 May 2009 11:28:34 +0200 | ||
926 | 142 | |||
927 | 143 | apport (1.1.1-0ubuntu2) karmic; urgency=low | ||
928 | 144 | |||
929 | 145 | [ Martin Pitt ] | ||
930 | 146 | * hookutils.py: Do not attach /proc/version_signature, it's Ubuntu specific. | ||
931 | 147 | (Merged from trunk). Instead, attach it in general-hooks/ubuntu.py. | ||
932 | 148 | * general-hooks/ubuntu.py: Attach package conffile information. | ||
933 | 149 | * debian/local/apport-collect: Add workaround for launchpadlib bug | ||
934 | 150 | LP#353805, to avoid crashing with non-UTF8 attachments. (LP: #368004) | ||
935 | 151 | * debian/local/apport-collect: Fix import of launchpadlib's HTTPError. | ||
936 | 152 | * apport/hookutils.py, attach_conffiles(): Ignore empty lines from | ||
937 | 153 | dpkg-query output. | ||
938 | 154 | * general-hooks/ubuntu.py: Strip off '/target' prefix from ExecutablePath | ||
939 | 155 | and InterpreterPath, to correctly process crash reports from the live | ||
940 | 156 | system installer. | ||
941 | 157 | * apport/hookutils.py, attach_conffiles(): Do not use command_output(), | ||
942 | 158 | since that causes error messages to get parsed as conffiles. Use | ||
943 | 159 | subprocess properly. | ||
944 | 160 | * backends/packaging-apt-dpkg.py: Replace deprecated python-apt properties | ||
945 | 161 | with current ones (merged from trunk). Update python-apt dependency to | ||
946 | 162 | >= 0.7.9. | ||
947 | 163 | * packaging-apt-dpkg.py, get_modified_files(): Do not show package list file | ||
948 | 164 | as modified if the package is not installed (merged from trunk). | ||
949 | 165 | (LP: #364533) | ||
950 | 166 | * backends/packaging-apt-dpkg.py, install_retracing_packages(): Fix syntax | ||
951 | 167 | error which broke the retracers. | ||
952 | 168 | |||
953 | 169 | [ Andy Whitcroft ] | ||
954 | 170 | * bin/apportcheckresume: the suspend _and_ hibernate logs are both in | ||
955 | 171 | pm-suspend.log. | ||
956 | 172 | * bin/apportcheckresume: remove redunant check for file before attaching | ||
957 | 173 | stress log. | ||
958 | 174 | |||
959 | 175 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 13 May 2009 15:22:53 +0200 | ||
960 | 176 | |||
961 | 177 | apport (1.1.1-0ubuntu1) karmic; urgency=low | ||
962 | 178 | |||
963 | 179 | [ Martin Pitt ] | ||
964 | 180 | * New upstream security update: | ||
965 | 181 | - etc/cron.daily/apport: Only attempt to remove files and symlinks, do not | ||
966 | 182 | descend into subdirectories of /var/crash/. Doing so might be exploited by | ||
967 | 183 | a race condition between find traversing a huge directory tree, changing | ||
968 | 184 | an existing subdir into a symlink to e. g. /etc/, and finally getting | ||
969 | 185 | that piped to rm. This also changes the find command to not use GNU | ||
970 | 186 | extensions. Thanks to Stephane Chazelas for discovering this! | ||
971 | 187 | (LP: #357024, CVE-2009-1295) | ||
972 | 188 | - Other fixes were already cherrypicked in the previous upload. | ||
973 | 189 | |||
974 | 190 | [ Matt Zimmerman ] | ||
975 | 191 | * package-hooks/source_linux.py: Attach info for linux-restricted-modules | ||
976 | 192 | and linux-backports-modules | ||
977 | 193 | |||
978 | 194 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 30 Apr 2009 09:08:29 +0200 | ||
979 | 195 | |||
980 | 196 | apport (1.1-0ubuntu1) karmic; urgency=low | ||
981 | 197 | |||
982 | 198 | * New upstream release: | ||
983 | 199 | - Drop some remaining distro specific pieces of code from non-backends. | ||
984 | 200 | - Add hookutils methods for attaching relevant packages, greatly improve | ||
985 | 201 | attach_alsa() for sound problem debugging. | ||
986 | 202 | - Move launchpad crash database implementation from ever-breaking | ||
987 | 203 | python-launchpad-bugs (screenscraping) to launchpadlib (official and | ||
988 | 204 | stable Launchpad API). (LP: #353879) | ||
989 | 205 | - Add new field Report.pid which gets set on add_proc_info() and can be | ||
990 | 206 | used by hooks. | ||
991 | 207 | - setup.py: Properly clean up all generated files, install missing | ||
992 | 208 | mimetypes/text-x-apport.svg icon symlink. | ||
993 | 209 | - Add README file. | ||
994 | 210 | - Add translations from Launchpad. | ||
995 | 211 | - Remove preloadlib/*; it's undermaintained, and not really useful any | ||
996 | 212 | more these days. | ||
997 | 213 | - Various bug fixes; most visible being the misnamed | ||
998 | 214 | etc/default/apport.default file (which should just be | ||
999 | 215 | etc/default/apport). | ||
1000 | 216 | * Merge some bug fixes from trunk: | ||
1001 | 217 | - launchpad.py: Send and read Date: field again, reverting r1128; it is | ||
1002 | 218 | useful after all. (LP: #349139) | ||
1003 | 219 | - report.py, add_proc_info(): Only add ProcAttrCurrent if it is not | ||
1004 | 220 | "unconfined". | ||
1005 | 221 | - ui.py: Detect invalid PIDs (such as for kernel processes) and give a | ||
1006 | 222 | friendly error message. (LP: #360608) | ||
1007 | 223 | - report.py, add_hooks_info(): Always run common hooks, and run source | ||
1008 | 224 | package hooks if we do not have a binary package name. (LP: #350131) | ||
1009 | 225 | - launchpad.py: Consider socket errors when connecting as transient, so | ||
1010 | 226 | that crash-digger doesn't stop completely on them. | ||
1011 | 227 | * Drop debian/apport.README.Debian, superseded by upstream README. | ||
1012 | 228 | * Drop debian/apport.links, done by upstream setup.py now. | ||
1013 | 229 | * debian/rules, debian/apport.preinst: Drop upgrade fix for misnamed default | ||
1014 | 230 | file again, was only necessary for intra-Jaunty upgrades. | ||
1015 | 231 | * debian/control: python-launchpad-bugs → python-launchpadlib dependencies. | ||
1016 | 232 | * debian/local/apport-collect: Drop launchpadlib login code, just use the | ||
1017 | 233 | CrashDatabase implementation from apport/crashdb_impl/launchpad.py. | ||
1018 | 234 | * Make package backportable to hardy and intrepid: | ||
1019 | 235 | - debian/control: Relax python-central buil-dependency to 0.5.6. | ||
1020 | 236 | - debian/rules: Determine DH_PYCENTRAL value ("include-links" vs. | ||
1021 | 237 | "nomove") based on the installed pycentral version. | ||
1022 | 238 | - debian/rules: Only supply --install-layout=deb when Python version is | ||
1023 | 239 | 2.6. | ||
1024 | 240 | * apport/hookutils.py: Add docstring for attach_hardware, thanks Matt | ||
1025 | 241 | Zimmerman! (Merged from lp:~mdz/apport/hookutils) | ||
1026 | 242 | * apport/crashdb_impl/launchpad.py: Support older wadllib API | ||
1027 | 243 | where bug.date_created was a string instead of a datetime object. | ||
1028 | 244 | (Cherrypicked from trunk). | ||
1029 | 245 | * debian/control: Drop apport dependency to python-xdg, it's not required. | ||
1030 | 246 | (LP: #354172) | ||
1031 | 247 | * debian/control: Drop gdb from Depends: to Recommends:. (LP: #354172) | ||
1032 | 248 | * debian/local/apport-collect: Print a friendly error message instead of | ||
1033 | 249 | crashing if the bug number is not an integer. (LP: #351050) | ||
1034 | 250 | * debian/local/apport-collect: Change incomplete tasks back to "New" after | ||
1035 | 251 | data collection. (LP: #363126) | ||
1036 | 252 | * debian/apport.links: source_linux-meta.py -> source_linux.py package hook, | ||
1037 | 253 | so that apport-collect works on "linux" source bug tasks. These get | ||
1038 | 254 | opportunistically translated into binary packages, but the binary "linux" | ||
1039 | 255 | is built by the source "linux-meta". (LP: #350131) | ||
1040 | 256 | * debian/local/setup-apport-retracer: | ||
1041 | 257 | - Use ports.ubuntu.com for non-{i386,amd64,lpia}. | ||
1042 | 258 | - Set up Jaunty by default. | ||
1043 | 259 | - Fix test for being in local unpackaged apport source tree. | ||
1044 | 260 | - Drop installation of python-launchpad-bugs. | ||
1045 | 261 | - Install bzr branches/packages necessary for launchpad, in a shared | ||
1046 | 262 | ~/launchpadlib/ tree: launchpadlib, wadllib, oauth, lazr.uri, httplib2, | ||
1047 | 263 | simplejson. | ||
1048 | 264 | - Clean up apport-chroot calling for extra packages. | ||
1049 | 265 | |||
1050 | 266 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 28 Apr 2009 10:50:49 +0200 | ||
1051 | 267 | |||
1052 | 268 | apport (1.0-0ubuntu5) jaunty; urgency=low | ||
1053 | 269 | |||
1054 | 270 | [ Martin Pitt ] | ||
1055 | 271 | * Rename etc/default/apport.default to etc/default/apport (brown paperbag), | ||
1056 | 272 | and add debian/apport.preinst to remove the apport.default file on | ||
1057 | 273 | upgrades. (LP: #361543) | ||
1058 | 274 | * debian/rules: Call dh_installinit with --onlyscripts, so that the package | ||
1059 | 275 | calls update-rc.d again. This fixes the calling of init script again, | ||
1060 | 276 | which got broken in 1.0-0ubuntu1. (LP: #361579) | ||
1061 | 277 | |||
1062 | 278 | [ Matt Zimmerman ] | ||
1063 | 279 | * package-hooks/source_linux.py: Attach /etc/initramfs-tools/conf.d/resume to | ||
1064 | 280 | show the resume device for hibernation | ||
1065 | 281 | |||
1066 | 282 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 15 Apr 2009 22:36:33 +0200 | ||
1067 | 283 | |||
1068 | 284 | apport (1.0-0ubuntu4) jaunty; urgency=low | ||
1069 | 285 | |||
1070 | 286 | * etc/default/apport.default: Disable Apport by default for the final | ||
1071 | 287 | release. | ||
1072 | 288 | |||
1073 | 289 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 14 Apr 2009 11:47:29 +0200 | ||
1074 | 290 | |||
1075 | 291 | apport (1.0-0ubuntu3) jaunty; urgency=low | ||
1076 | 292 | |||
1077 | 293 | * apport/hookutils.py: Factor out package_versions() to generate a simple | ||
1078 | 294 | text listing of relevant package versions and use it in attach_printing() | ||
1079 | 295 | * apport/hookutils.py: Add new function attach_relevant_packages() to attach | ||
1080 | 296 | version information (and perhaps eventually run hooks?) for related | ||
1081 | 297 | packages | ||
1082 | 298 | * apport/hookutils.py: Add glob matching to package_versions() | ||
1083 | 299 | * apport/hookutils.py: Add fuser info and dmesg to attach_alsa | ||
1084 | 300 | * apport/hookutils.py: Add codec info to attach_alsa | ||
1085 | 301 | |||
1086 | 302 | -- Matt Zimmerman <mdz@ubuntu.com> Thu, 09 Apr 2009 07:36:45 -0700 | ||
1087 | 303 | |||
1088 | 304 | apport (1.0-0ubuntu2) jaunty; urgency=low | ||
1089 | 305 | |||
1090 | 306 | * backends/packaging-apt-dpkg.py: Add missing shutil import. | ||
1091 | 307 | * debian/local/ubuntu-bug: Filter out -p and -P, for backwards calling | ||
1092 | 308 | compatibility. (LP: #356755) | ||
1093 | 309 | |||
1094 | 310 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 06 Apr 2009 23:04:39 -0700 | ||
1095 | 311 | |||
1096 | 312 | apport (1.0-0ubuntu1) jaunty; urgency=low | ||
1097 | 313 | |||
1098 | 314 | * Apport has a proper upstream trunk now (lp:apport) and made an 1.0 | ||
1099 | 315 | upstream release. Use this as an orig.tar.gz. This does not change any | ||
1100 | 316 | code for Jaunty, just removes the Fedora/OpenSUSE specific .spec and init | ||
1101 | 317 | scripts. | ||
1102 | 318 | * Add bzr-builddeb configuration (merge mode). | ||
1103 | 319 | * Add debian/watch for upstream releases on Launchpad. | ||
1104 | 320 | * Drop debian/python-apport.postinst, obsolete for a long time. | ||
1105 | 321 | |||
1106 | 322 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 06 Apr 2009 17:37:48 -0700 | ||
1107 | 323 | |||
1108 | 324 | apport (0.149) jaunty; urgency=low | ||
1109 | 325 | |||
1110 | 326 | Do some internal cleanup of distribution specific stuff: | ||
1111 | 327 | |||
1112 | 328 | * problem_report.py, man/apport-unpack.1: Fix description of .crash file | ||
1113 | 329 | syntax (RFC822, not "Debian control"). | ||
1114 | 330 | * Move cron.daily, init script, and default file from debian/ to etc/, and | ||
1115 | 331 | install them in setup.py. These files are appropriate for upstream | ||
1116 | 332 | installation. | ||
1117 | 333 | * Move crashdb.conf and doc/README.blacklist to etc/, to simplify setup.py. | ||
1118 | 334 | * setup.py: Move *.mo generation/installation into my_install_data class, | ||
1119 | 335 | for cleanliness. | ||
1120 | 336 | * Move installation of missing packages for retracing from | ||
1121 | 337 | bin/apport-retrace to new abstract interface apport/packaging.py, | ||
1122 | 338 | install_retracing_packages() and remove_packages(), and move the apt/dpkg | ||
1123 | 339 | code to backends/packaging-apt-dpkg.py. This removes a major piece of | ||
1124 | 340 | apt/dpkg specific code from non-backends. | ||
1125 | 341 | * bin/apport-retrace: Rename option --no-dpkg to --no-pkg and update | ||
1126 | 342 | bin/apport-chroot accordingly. | ||
1127 | 343 | * Move bin/apport-chroot and man/apport-chroot.1 to debian/local, since they | ||
1128 | 344 | are totally Debian/Ubuntu specific. | ||
1129 | 345 | * debian/local/setup-apport-retracer: Update apport-chroot and crashdb.conf | ||
1130 | 346 | paths for above changes. | ||
1131 | 347 | * apport/hookutils.py, files_in_package(): Replace dpkg-query call with | ||
1132 | 348 | packaging.get_files(), to avoid Debianism. | ||
1133 | 349 | * man/apport-retrace.1: Drop reference to "apt", simply talk about package | ||
1134 | 350 | installation. | ||
1135 | 351 | |||
1136 | 352 | Bug fixes: | ||
1137 | 353 | |||
1138 | 354 | * setup.py: Fix homepage URL. | ||
1139 | 355 | * debian/local/apport-chroot: If multiple distro IDs point to the same | ||
1140 | 356 | chroot, do not upgrade them more than once with "upgrade all". | ||
1141 | 357 | |||
1142 | 358 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 06 Apr 2009 16:06:33 -0700 | ||
1143 | 359 | |||
1144 | 360 | apport (0.148) jaunty; urgency=low | ||
1145 | 361 | |||
1146 | 362 | [ Matt Zimmerman ] | ||
1147 | 363 | * apport/hookutils.py: add attach_media_build to include information about | ||
1148 | 364 | the build of installation media in use (i.e. in a casper live CD | ||
1149 | 365 | environment) | ||
1150 | 366 | * general-hooks/ubuntu.py: use attach_media_build (LP: #351781) | ||
1151 | 367 | * bin/apportcheckresume: Use attach_file_if_exists rather than attach_file to | ||
1152 | 368 | avoid spurious error messages about non-existent log files (LP: #351973) | ||
1153 | 369 | |||
1154 | 370 | [ Martin Pitt ] | ||
1155 | 371 | * debian/local/ubuntu-bug: Drop generic passthrough of apport-{cli,gtk,kde} | ||
1156 | 372 | options since this leads to too much confusion. Instead just support a | ||
1157 | 373 | single argument and check whether it is a pid, a package name, a .crash | ||
1158 | 374 | file, or a program path. This does the right thing when calling it with a | ||
1159 | 375 | .crash file (LP: #347392) and fixes the help output (LP: #344923) Update | ||
1160 | 376 | manpage accordingly. | ||
1161 | 377 | * apport/hookutils.py: Move attach_media_build() to | ||
1162 | 378 | general-hooks/ubuntu.py, since it is Ubuntu specific. | ||
1163 | 379 | * bin/apport-retrace: Fix KeyError crash on bugs with an ExecutablePath | ||
1164 | 380 | which does not exist any more. Close the bug as invalid instead. | ||
1165 | 381 | (LP: #352331) | ||
1166 | 382 | * bin/kernel_oops: Add "kernel-oops" tag. Since both bin/kernel_oops and | ||
1167 | 383 | bin/apportcheckresume use the "kerneloops" bug class, it previously was | ||
1168 | 384 | hard to filter out the bug reports which were real oopses. (LP: #349621) | ||
1169 | 385 | |||
1170 | 386 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 01 Apr 2009 18:10:01 +0200 | ||
1171 | 387 | |||
1172 | 388 | apport (0.147) jaunty; urgency=low | ||
1173 | 389 | |||
1174 | 390 | * bin/apportcheckresume: report the pm-suspend.log/pm-hibernate.log | ||
1175 | 391 | from /var/lib. | ||
1176 | 392 | * bin/apportcheckresume: only attempt to attach the stress log if its is | ||
1177 | 393 | present. | ||
1178 | 394 | * bin/apportcheckresume, debian/apport.init: add detection for late | ||
1179 | 395 | resume hangs, those where the user thinks the system was working. | ||
1180 | 396 | (LP: #335323) | ||
1181 | 397 | |||
1182 | 398 | -- Andy Whitcroft <apw@canonical.com> Mon, 30 Mar 2009 09:47:28 +0200 | ||
1183 | 399 | |||
1184 | 400 | apport (0.146) jaunty; urgency=low | ||
1185 | 401 | |||
1186 | 402 | * apport/report.py, _generate_sigsegv_report(): Turn into a class method, so | ||
1187 | 403 | that it can be used by test cases in other modules as well. Also add | ||
1188 | 404 | missing Signal field. | ||
1189 | 405 | * apport/crashdb_impl/launchpad.py: Fully enable operation with | ||
1190 | 406 | staging.launchpad.net. | ||
1191 | 407 | * apport/crashdb_impl/launchpad.py: Add initial test suite, performing data | ||
1192 | 408 | upload, Python and SEGV bug reporting, report download, report updating, | ||
1193 | 409 | tag and duplicate handling. This happens on staging.launchpad.net. | ||
1194 | 410 | * apport/crashdb.py: Add new interface duplicate_of(id) to return the master | ||
1195 | 411 | bug of a duplicate. Also document that close_duplicate() with "None" | ||
1196 | 412 | master bug will un-duplicate the bug. | ||
1197 | 413 | * apport/crashdb_impl/{launchpad,memory}.py: Implement duplicate_of() and | ||
1198 | 414 | add test cases. The Launchpad test case reproduces the | ||
1199 | 415 | "duplicate-of-a-duplicate" regression, which now got fixed in | ||
1200 | 416 | python-launchpad-bugs bzr head. | ||
1201 | 417 | * apport/ui.py, open_url(): Also consider a sesssion as "GNOME" if gconfd-2 | ||
1202 | 418 | is running; some variants such as UNR do not have gnome-panel; this fixes | ||
1203 | 419 | using the preferred browser for them. (LP: #322386) | ||
1204 | 420 | * debian/local/apport-collect: Add new option -p to explicitly specify a | ||
1205 | 421 | (binary) package name instead of guesstimating it from the bug's source | ||
1206 | 422 | package tasks. Document new option in debian/local/apport-collect.1. | ||
1207 | 423 | (LP: #333875) | ||
1208 | 424 | * apport/crashdb.py, duplicate_db_consolidate(): Add logging about removing | ||
1209 | 425 | invalidated bugs from the duplicate database, now that this actually | ||
1210 | 426 | works. | ||
1211 | 427 | * debian/local/ubuntu-bug.1: Update for the possibility to specify a package | ||
1212 | 428 | name or PID without any options. Also document the "ubuntu-bug linux" | ||
1213 | 429 | special case. (LP: #348985) | ||
1214 | 430 | * debian/local/ubuntu-bug.1: Add missing documentation of the case of | ||
1215 | 431 | specifying a path name. | ||
1216 | 432 | * backends/packaging-apt-dpkg.py: When unpacking source trees, try | ||
1217 | 433 | "debian/rules setup" last, since it is the least common variant. | ||
1218 | 434 | * debian/local/ubuntu-fat-chroot: Divert away | ||
1219 | 435 | /usr/lib/xulrunner-1.9.1b3/xulrunner-bin. It is called on debian/rules | ||
1220 | 436 | patch in xulrunner-1.9.1 and hangs eternally in the fakechroots. This is | ||
1221 | 437 | only a temporary kludge, though, until the next xulrunner version lands. | ||
1222 | 438 | * apport/crashdb_impl/launchpad.py: Add test case: Update a bug report which | ||
1223 | 439 | got marked as a duplicate during processing. This reproduces #349407. | ||
1224 | 440 | * apport/crashdb_impl/launchpad.py, update(): Intercept and ignore IOErrors | ||
1225 | 441 | when changing the bug priority. This happens if a bug gets duplicated | ||
1226 | 442 | underneath us. (LP: #349407) | ||
1227 | 443 | * apport/crashdb.py, get_crashdb(): Print syntax errors from parsing | ||
1228 | 444 | conf.d/*.conf to stderr. | ||
1229 | 445 | * apport/crashdb_impl/launchpad.py: Support new CrashDB option "project" | ||
1230 | 446 | which can be set to a LP project name to file bugs against that project | ||
1231 | 447 | instead of the distribution. Add test case for filing crash bug against a | ||
1232 | 448 | project, updating it, duplicating/unduplicating it, and determining fixed | ||
1233 | 449 | version. (LP: #338835) | ||
1234 | 450 | * bin/crash-digger: If apport-retrace exits with 99, consider it a transient | ||
1235 | 451 | error and just stop the retracer, but don't leave the lock file behind. | ||
1236 | 452 | Add appropriate test case to test-crash-digger. | ||
1237 | 453 | * bin/apport-retrace: If apt update fails due to a "hash sum mismatch", exit | ||
1238 | 454 | with a "transient error" code, to stop (but not break) the retracing | ||
1239 | 455 | cycle. | ||
1240 | 456 | |||
1241 | 457 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 27 Mar 2009 17:01:08 +0100 | ||
1242 | 458 | |||
1243 | 459 | apport (0.145) jaunty; urgency=low | ||
1244 | 460 | |||
1245 | 461 | * apport/crashdb_impl/launchpad.py: Fix typo in previous upload. | ||
1246 | 462 | * debian/local/apport-collect: Do not crash on | ||
1247 | 463 | launchpadlib.errors.HTTPError, but give a proper error message and point | ||
1248 | 464 | out that this script needs "change anything" privileges. (LP: #338201) | ||
1249 | 465 | * apport_python_hook.py: Fix crash for already existing reports, and make | ||
1250 | 466 | behaviour equivalent to bin/apport: Silently exit for existing unseen | ||
1251 | 467 | crash report, and overwrite existing seen crash report. Add test cases. | ||
1252 | 468 | (LP: #323714) | ||
1253 | 469 | * general-hooks/automatix.py: Refuse to send bug reports when ultamatix is | ||
1254 | 470 | installed. | ||
1255 | 471 | |||
1256 | 472 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Mar 2009 18:45:34 +0100 | ||
1257 | 473 | |||
1258 | 474 | apport (0.144) jaunty; urgency=low | ||
1259 | 475 | |||
1260 | 476 | * apport/crashdb_impl/launchpad.py, mark_retrace_failed(): If report is | ||
1261 | 477 | invalid, remove CoreDump.gz and other attachments. | ||
1262 | 478 | * bin/apport-retrace: If we didn't find the ExecutablePath on the system | ||
1263 | 479 | because the package is out of date, don't crash, but close the bug as | ||
1264 | 480 | invalid. | ||
1265 | 481 | |||
1266 | 482 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Mar 2009 10:45:56 +0100 | ||
1267 | 483 | |||
1268 | 484 | apport (0.143) jaunty; urgency=low | ||
1269 | 485 | |||
1270 | 486 | * debian/apport.README.Debian: Document how to temporarily and permanently | ||
1271 | 487 | enable crash interception. | ||
1272 | 488 | * backends/packaging-apt-dpkg.py, is_distro_package(): Do not consider a | ||
1273 | 489 | package a native distro one if installed version is "None". This happens | ||
1274 | 490 | with some PPA packages. (LP: #252734) | ||
1275 | 491 | * apport/report.py, anonymize(): Move user name anonymization into the | ||
1276 | 492 | "non-root" case as well; fixes uninitialized variable. (LP: #338847) | ||
1277 | 493 | |||
1278 | 494 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 09 Mar 2009 12:16:49 +0100 | ||
1279 | 495 | |||
1280 | 496 | apport (0.142) jaunty; urgency=low | ||
1281 | 497 | |||
1282 | 498 | * apport/report.py: Do not include lsb_release's stderr in the | ||
1283 | 499 | DistroRelease: output. | ||
1284 | 500 | * apport/hookutils.py: Fix attach_printing(): | ||
1285 | 501 | - Correct spelling or "error_log". | ||
1286 | 502 | - Do not call fgrep with no file names (if /etc/cups/ppd/ is empty), since | ||
1287 | 503 | that hangs forever. | ||
1288 | 504 | * apport/report.py, _gen_stacktrace_top(): Fix parsing of stacktraces | ||
1289 | 505 | with some addresses missing. Add test cases. (LP: #269133) | ||
1290 | 506 | * apport/ui.py, run_report_bug(): Show details of collected information and | ||
1291 | 507 | give the user a chance to cancel. Previously, collected data was sent | ||
1292 | 508 | directly to Launchpad. Nowadays lots of packages have hooks, so we cannot | ||
1293 | 509 | guarantee any more that bug reports only have non-sensitive information. | ||
1294 | 510 | (LP: #195514) This also allows the user to cancel if (s)he inadvertedly | ||
1295 | 511 | clicked on "Report a problem". (LP: #279033) | ||
1296 | 512 | * apport/ui.py: Fix crash in get_complete_size() for reports that are | ||
1297 | 513 | constructed on the fly instead of loaded from a file (i. e. for bug | ||
1298 | 514 | reports). Fixes displaying of report in apport-cli. | ||
1299 | 515 | * apport/report.py: Slight robustification of test_add_gdb_info_script() | ||
1300 | 516 | test case. | ||
1301 | 517 | * debian/local/ubuntu-bug: Fix invocation with "--help". (LP: #305841) | ||
1302 | 518 | * apport/ui.py, load_report(): Clearer error message if report file does not | ||
1303 | 519 | exist. (LP: #204198) | ||
1304 | 520 | * Remove redundant verbiage from test suite docstrings. | ||
1305 | 521 | * apport/report.py, anonymize(): Fix crash when processing root-owned | ||
1306 | 522 | reports. (LP: #338033) | ||
1307 | 523 | * apport/report.py, anonymize(): Do not anonymize single-character user and | ||
1308 | 524 | host names, since they create an utter mess in bug reports, and also are | ||
1309 | 525 | very low-sensitive. | ||
1310 | 526 | * debian/apport.init: Also start apport if force_start=1 is given. This | ||
1311 | 527 | provides a convenient method of starting apport just for a session without | ||
1312 | 528 | changing the default file. Add a comment to debian/apport.default about | ||
1313 | 529 | this possibility. Thanks to Milan for the suggestion and the initial | ||
1314 | 530 | patch! (LP: #320467) | ||
1315 | 531 | * backends/packaging-apt-dpkg.py, _get_mirror(): Only consider http:// | ||
1316 | 532 | mirrors for fetching Contents.gz. (LP: #315797) | ||
1317 | 533 | |||
1318 | 534 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2009 17:01:05 +0100 | ||
1319 | 535 | |||
1320 | 536 | apport (0.141) jaunty; urgency=low | ||
1321 | 537 | |||
1322 | 538 | * apport/hookutils.py: Add cups error log to attach_printing() | ||
1323 | 539 | |||
1324 | 540 | -- Brian Murray <brian@ubuntu.com> Mon, 02 Mar 2009 10:55:53 -0800 | ||
1325 | 541 | |||
1326 | 542 | apport (0.140) jaunty; urgency=low | ||
1327 | 543 | |||
1328 | 544 | * debian/python-{apport,problem-report}.install: Fix site-packages → | ||
1329 | 545 | *-packages. | ||
1330 | 546 | * run-tests: Only check for local packaging_impl.py if running local tests. | ||
1331 | 547 | This unbreaks running tests from /usr/share/apport/testsuite/. | ||
1332 | 548 | |||
1333 | 549 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Mar 2009 11:56:59 +0100 | ||
1334 | 550 | |||
1335 | 551 | apport (0.139) jaunty; urgency=low | ||
1336 | 552 | |||
1337 | 553 | * apport/report.py, anonymize(): Do not anonymize "root". (Side | ||
1338 | 554 | issue in LP #333542) | ||
1339 | 555 | * debian/rules: Supply --install-layout=deb to setup.py. | ||
1340 | 556 | * debian/local/apport-collect: Attach new info to | ||
1341 | 557 | staging.launchpad.net if $APPORT_STAGING is defined. This makes | ||
1342 | 558 | testing easier. Describe in debian/local/apport-collect.1. | ||
1343 | 559 | * debian/local/apport-collect: Ignore ValueErrors from | ||
1344 | 560 | add_package_info(), which happens if the bug has a source package | ||
1345 | 561 | task which does not have an identically named binary package name. | ||
1346 | 562 | Slightly ugly, but it's nontrivial to do that in a sensible | ||
1347 | 563 | manner; let's just fix the crash for now, since the focus of this | ||
1348 | 564 | tool is to collect information from hooks. (LP: #334823) | ||
1349 | 565 | * apport/hookutils.py, hal_dump_udi(): Filter out serial numbers. | ||
1350 | 566 | (Mentioned in LP #107103) | ||
1351 | 567 | |||
1352 | 568 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Mar 2009 11:36:18 +0100 | ||
1353 | 569 | |||
1354 | 570 | apport (0.138) jaunty; urgency=low | ||
1355 | 571 | |||
1356 | 572 | * apport/crashdb_impl/launchpad.py: Consider an useful stack trace | ||
1357 | 573 | sufficient for automatically removing the core dump, it doesn't | ||
1358 | 574 | need to be perfect. This is in accordance with not setting the | ||
1359 | 575 | apport-failed-retrace tag for useful, but non-perfect retraces any | ||
1360 | 576 | more. | ||
1361 | 577 | * apport/hookutils.py, backends/packaging_rpm.py: Convert usage of | ||
1362 | 578 | md5 module (which is deprecated in 2.6) to hashlib. | ||
1363 | 579 | * Replace all instances of using an exception's .message attribute | ||
1364 | 580 | with str(exception), since message is deprecated in Python 2.6. | ||
1365 | 581 | * apport/hookutils.py: Add attach_printing(). Thanks to Brian Murray | ||
1366 | 582 | for the initial patch! (LP: #333582) | ||
1367 | 583 | |||
1368 | 584 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Feb 2009 22:24:31 +0100 | ||
1369 | 585 | |||
1370 | 586 | apport (0.137) jaunty; urgency=low | ||
1371 | 587 | |||
1372 | 588 | * Set python-version to all, include symlinks in the package. | ||
1373 | 589 | |||
1374 | 590 | -- Matthias Klose <doko@ubuntu.com> Tue, 24 Feb 2009 21:22:36 +0100 | ||
1375 | 591 | |||
1376 | 592 | apport (0.136) jaunty; urgency=low | ||
1377 | 593 | |||
1378 | 594 | [ Andy Whitcroft ] | ||
1379 | 595 | * bin/apportcheckresume: remove originator in suspend/hibernate/resume | ||
1380 | 596 | reporting. This was intended for debugging only and is now redundant. | ||
1381 | 597 | * bin/apportcheckresume, apport/report.py: when collecting resume failures | ||
1382 | 598 | in very early boot hal may not be running and we thus unable to obtain | ||
1383 | 599 | the machine type information. Move title generation to the reporting | ||
1384 | 600 | engine. | ||
1385 | 601 | |||
1386 | 602 | [ Martin Pitt ] | ||
1387 | 603 | * debian/local/apport-collect: Add user environment information, too | ||
1388 | 604 | (LANG, PATH, SHELL). (LP: #332578) | ||
1389 | 605 | |||
1390 | 606 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Feb 2009 14:25:21 +0100 | ||
1391 | 607 | |||
1392 | 608 | apport (0.135) jaunty; urgency=low | ||
1393 | 609 | |||
1394 | 610 | * problem_report.py, test_write_mime_text(): Add test cases for | ||
1395 | 611 | single-line and two-line UTF-8 values, single-line and two-line | ||
1396 | 612 | Unicode values and a single-line LF-terminated value. Fix handling | ||
1397 | 613 | of the latter two. | ||
1398 | 614 | * problem_report.py, test_write(): Add test cases for single-line | ||
1399 | 615 | and two-line UTF-8 and Unicode values, and fix handling of these | ||
1400 | 616 | in write(). | ||
1401 | 617 | * debian/local/apport-collect: Collect package, OS, and user | ||
1402 | 618 | information as well. (LP: #332578) | ||
1403 | 619 | * package-hooks/source_apport.py: Robustify by using hookutils, and | ||
1404 | 620 | avoid stat errors if /var/crash/* does not exist. | ||
1405 | 621 | * test-hooks: Update dodgy test for uninstalled package, | ||
1406 | 622 | libdb4.3-tcl is not available in Jaunty any more. | ||
1407 | 623 | |||
1408 | 624 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 23 Feb 2009 13:14:24 +0100 | ||
1409 | 625 | |||
1410 | 626 | apport (0.134) jaunty; urgency=low | ||
1411 | 627 | |||
1412 | 628 | * debian/local/apport-collect: Do not collect information for closed | ||
1413 | 629 | tasks. Thanks for Brian Murray for the initial patch! (LP: #331839) | ||
1414 | 630 | * apport/crashdb_impl/launchpad.py, download(): Download | ||
1415 | 631 | DpkgTerminalLog.txt attachment as well. | ||
1416 | 632 | * apport/report.py: If downloading a nonexisting bug pattern file | ||
1417 | 633 | name succeeds and returns a HTML snippet with "404 Not Found", | ||
1418 | 634 | consider this as failure. This repairs falling back to source | ||
1419 | 635 | package names. (LP: #328751) | ||
1420 | 636 | * apport/hookutils.py: Replace tabs with spaces. | ||
1421 | 637 | |||
1422 | 638 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 20 Feb 2009 11:22:15 +0100 | ||
1423 | 639 | |||
1424 | 640 | apport (0.133) jaunty; urgency=low | ||
1425 | 641 | |||
1426 | 642 | [ Andy Whitcroft ] | ||
1427 | 643 | * apport/hookutils.py: define and include a machine type from the hardware | ||
1428 | 644 | information in the report, using HAL information where available. | ||
1429 | 645 | * bin/apportcheckresume: include the machine type in the suspend/hibernate | ||
1430 | 646 | report title. They are generally machine specific. | ||
1431 | 647 | |||
1432 | 648 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 19 Feb 2009 17:49:03 +0100 | ||
1433 | 649 | |||
1434 | 650 | apport (0.132) jaunty; urgency=low | ||
1435 | 651 | |||
1436 | 652 | [ Martin Pitt ] | ||
1437 | 653 | * Add debian/local/apport-collect: Download a Launchpad bug report, | ||
1438 | 654 | get its source package, check if it has apport hooks, and if so, | ||
1439 | 655 | run and upload them. Add manpage, too. (LP: #124338) | ||
1440 | 656 | * debian/control: Add Suggests: python-launchpadlib; this is only | ||
1441 | 657 | needed by apport-collect, thus we don't need to pull that into | ||
1442 | 658 | every default installation; if it's not installed apport-collect | ||
1443 | 659 | will detect and point this out. | ||
1444 | 660 | * debian/control: Add ${misc:Depends} dependencies. | ||
1445 | 661 | |||
1446 | 662 | [ Jonathan Riddell ] | ||
1447 | 663 | * Set window icon in apport-qt | ||
1448 | 664 | |||
1449 | 665 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 19 Feb 2009 13:50:34 +0100 | ||
1450 | 666 | |||
1451 | 667 | apport (0.131) jaunty; urgency=low | ||
1452 | 668 | |||
1453 | 669 | [ Andy Whitcroft ] | ||
1454 | 670 | * bin/apportcheckresume, bin/kernel_oops, cli/apport-cli, gtk/apport-gtk, | ||
1455 | 671 | gtk/apport-gtk.glade, qt4/apport-qt: generalised the KernelOops | ||
1456 | 672 | dialog and handling to allow suspend and hibernate failures present | ||
1457 | 673 | more accurate reasons for the report. Also commonises all messages | ||
1458 | 674 | in the three implementations to simplify internationalisation. | ||
1459 | 675 | |||
1460 | 676 | [ Martin Pitt ] | ||
1461 | 677 | * po/Makefile: Fix merge-po rule to actually work again. | ||
1462 | 678 | * cli/apport-cli, qt4/apport-qt: Unify string with apport-gtk. | ||
1463 | 679 | * apport/ui.py: Drop some bogus translatable strings. | ||
1464 | 680 | * Update German translations. | ||
1465 | 681 | |||
1466 | 682 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 16 Feb 2009 19:31:41 +0100 | ||
1467 | 683 | |||
1468 | 684 | apport (0.130) jaunty; urgency=low | ||
1469 | 685 | |||
1470 | 686 | [ Martin Pitt ] | ||
1471 | 687 | * bin/kernel_crashdump: Don't crash if vmcore.log does not exist. | ||
1472 | 688 | * crashdb_impl/launchpad.py: Tag bugs with the architecture they are | ||
1473 | 689 | being reported on. | ||
1474 | 690 | * bin/crash-digger: Revert catching "database is locked" errors | ||
1475 | 691 | during consolidation, since it just hides more fundamental errors. | ||
1476 | 692 | * apport/crashdb_impl/memory.py: Improve docstrings of test suite. | ||
1477 | 693 | * bin/apport-retrace: Do not try to install -dbgsym packages with | ||
1478 | 694 | nonmatching versions, unless --unpack-only is used. Thanks to | ||
1479 | 695 | hggdh for the initial patch! (LP: #309208) | ||
1480 | 696 | |||
1481 | 697 | [ Andy Whitcroft ] | ||
1482 | 698 | * bin/apportcheckresume: modify the oops title and thereby the launchpad | ||
1483 | 699 | bug title to say suspend or hibernate. | ||
1484 | 700 | * bin/apportcheckresume: modify the tags to bin/apportcheckresume: | ||
1485 | 701 | modify the oops title and thereby the launchpad be resume+suspend or | ||
1486 | 702 | resume+hibernate as appropriate. | ||
1487 | 703 | * bin/apportcheckresume: include any non-free modules in the bug title. | ||
1488 | 704 | |||
1489 | 705 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Feb 2009 22:09:35 +0100 | ||
1490 | 706 | |||
1491 | 707 | apport (0.129) jaunty; urgency=low | ||
1492 | 708 | |||
1493 | 709 | * bin/apport-retrace: Log broken reports. | ||
1494 | 710 | * bin/apport-retrace: Do not mark bugs as invalid after they are | ||
1495 | 711 | already marked as a duplicate, since that does not work in | ||
1496 | 712 | Launchpad. | ||
1497 | 713 | * debian/local/ubuntu-fat-chroot: Symlink /target -> /, to work | ||
1498 | 714 | for crashes which appear in /target during installation. | ||
1499 | 715 | * bin/apport: Move argv length/usage help before lock check, so that | ||
1500 | 716 | it works if the user cannot lock /var/crash/.lock. Thanks to Kees | ||
1501 | 717 | Cook! | ||
1502 | 718 | * doc/package-hooks.txt: Point out apport.hookutils. | ||
1503 | 719 | * apport/ui.py: Check environment variable APPORT_REPORT_THIRDPARTY | ||
1504 | 720 | in addition to the 'thirdparty' configuration file option for | ||
1505 | 721 | overriding the "genuine distro package" check. Thanks to Oumar | ||
1506 | 722 | Aziz OUATTARA! | ||
1507 | 723 | * apport/crashdb_impl/launchpad.py: In third-party mode, report bugs | ||
1508 | 724 | against Launchpad projects. Thanks to Oumar | ||
1509 | 725 | Aziz OUATTARA for his branch! (LP: #213454) | ||
1510 | 726 | * bin/apportcheckresume: Include /var/lib/pm-utils/stress.log, too. | ||
1511 | 727 | Thanks to Andy Whitcroft for the initial patch, rewrote to use | ||
1512 | 728 | apport.hookutils. | ||
1513 | 729 | * apport/crashdb.py, init_duplicate_db(): Run an integrity check and | ||
1514 | 730 | raise exception if it fails, to avoid running the retracers on a | ||
1515 | 731 | corrupt duplicate db. Add test case to | ||
1516 | 732 | apport/crashdb_impl/memory.py. | ||
1517 | 733 | * bin/crash-digger: Create a backup of the duplicates database right | ||
1518 | 734 | after initializing it (which verifies integrity). | ||
1519 | 735 | * dupdb-admin: Add new command "consolidate". | ||
1520 | 736 | * apport/crashdb_impl/launchpad.py: Request bug lists with batch | ||
1521 | 737 | size 300, for slight speedup of consolidation. | ||
1522 | 738 | * apport/crashdb.py, duplicate_db_consolidate(): Warn about a bug | ||
1523 | 739 | which is not yet fixed, but does not appear in get_unfixed(). In | ||
1524 | 740 | Launchpad, this means that the bug does not have the | ||
1525 | 741 | 'apport-crash' tag any more; if there are many, those would be a | ||
1526 | 742 | huge time/bandwidth waste. | ||
1527 | 743 | |||
1528 | 744 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Jan 2009 16:04:16 +0100 | ||
1529 | 745 | |||
1530 | 746 | apport (0.128) jaunty; urgency=low | ||
1531 | 747 | |||
1532 | 748 | * apport/ui.py: Introduce new configuration option "thirdparty" and | ||
1533 | 749 | ignore the is_distro_package() check if it is set to true. | ||
1534 | 750 | * bin/apport-retrace: Call Cache.open() after Cache.update(). | ||
1535 | 751 | * bin/apport-retrace: If downloading a report fails (e. g. the | ||
1536 | 752 | description was invalidly modified), mark the bug as invalid with | ||
1537 | 753 | a proper explanation instead of crashing, unless we are in | ||
1538 | 754 | "stdout" or "output file" mode. | ||
1539 | 755 | * apport/crashdb_impl/launchpad.py: Apply some heuristics to attempt | ||
1540 | 756 | recovering broken descriptions as in LP #315728 (intermediate | ||
1541 | 757 | blank lines, and non-apport data append). | ||
1542 | 758 | |||
1543 | 759 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Jan 2009 17:49:55 +0100 | ||
1544 | 760 | |||
1545 | 761 | apport (0.127) jaunty; urgency=low | ||
1546 | 762 | |||
1547 | 763 | * bin/apportcheckresume, debian/apport.init: integrate with pm-utils to | ||
1548 | 764 | detect suspend/resume failures. Thanks to Steve Conklin and Andy | ||
1549 | 765 | Whitcroft. LP: #316419. | ||
1550 | 766 | |||
1551 | 767 | -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 13 Jan 2009 12:54:12 -0800 | ||
1552 | 768 | |||
1553 | 769 | apport (0.126) jaunty; urgency=low | ||
1554 | 770 | |||
1555 | 771 | * bin/apport-chroot: If --auth is specified in "login" mode, symlink | ||
1556 | 772 | the file into /tmp/auth in the fakechroot. This makes it much | ||
1557 | 773 | easier to interactively debug retracing. | ||
1558 | 774 | * bin/apport-retrace: Exit with zero for bugs which do not have a | ||
1559 | 775 | core dump, so that it does not completely stop the retracers. | ||
1560 | 776 | |||
1561 | 777 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 09 Jan 2009 22:49:48 +0100 | ||
1562 | 778 | |||
1563 | 779 | apport (0.125) jaunty; urgency=low | ||
1564 | 780 | |||
1565 | 781 | * bin/apport-chroot: Exit with apport-retraces' exit status, to | ||
1566 | 782 | propagate errors upwards to crash-digger. | ||
1567 | 783 | * bin/apport-retrace: Do not put outdated -dbgsym comments into the | ||
1568 | 784 | bug comments. | ||
1569 | 785 | * Rewrite bin/crash-digger to become much more robust and easier for | ||
1570 | 786 | retracer maintainers: | ||
1571 | 787 | - Now designed around cron-based maintenance: start, process all | ||
1572 | 788 | pending bugs, exit. This makes memory leaks irrelevant, and gets | ||
1573 | 789 | rid of all the logging, daemonizing, and looping code. | ||
1574 | 790 | - Adapt stdout/stderr reporting to be suitable for cron and | ||
1575 | 791 | redirecting stdout to a log file. | ||
1576 | 792 | - Use lock files to avoid overlapping instances and avoid damaging | ||
1577 | 793 | bugs with broken retracers after crash-digger failed. | ||
1578 | 794 | - Handle chroot upgrading, so that this does not need separate | ||
1579 | 795 | cronjobs any more. | ||
1580 | 796 | - Drop old -i option, replace with -D/--dupcheck which is a mode | ||
1581 | 797 | which *only* checks duplicates of Python crashes (no fakechroot | ||
1582 | 798 | handling). | ||
1583 | 799 | - Mark bug as retraced after apport-chroot retrace finished | ||
1584 | 800 | successfully; the process is robust enough now to avoid enless | ||
1585 | 801 | loops even if retracing fails. | ||
1586 | 802 | - Adapt test-crash-digger accordingly. | ||
1587 | 803 | - UbuntuSpec:apport-retracer-maintenance | ||
1588 | 804 | |||
1589 | 805 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 09 Jan 2009 12:14:44 +0100 | ||
1590 | 806 | |||
1591 | 807 | apport (0.124) jaunty; urgency=low | ||
1592 | 808 | |||
1593 | 809 | * debian/local/ubuntu-fat-chroot: Divert touch to touch.real and | ||
1594 | 810 | wrap it into a shell wrapper which ignores failures. Some packages | ||
1595 | 811 | use "touch -m" which fails with EPERM on directories under | ||
1596 | 812 | fakechroot. Also disable gconf-schemas and polkit-auth, since they | ||
1597 | 813 | do not work in fakechroots. | ||
1598 | 814 | * apport/crashdb_impl/launchpad.py: Allow using staging for testing. | ||
1599 | 815 | * apport/crashdb.py, mark_retrace_failed(): Add new optional | ||
1600 | 816 | argument "invalid_msg", intended for crashes which cannot be | ||
1601 | 817 | retraced properly (e. g. due to outdated packages). Implement this | ||
1602 | 818 | in apport/crashdb_impl/launchpad.py. | ||
1603 | 819 | * bin/apport-retrace: If we do not have an usable stack trace, and | ||
1604 | 820 | encounter outdated package versions in the crash, close the report | ||
1605 | 821 | as invalid with an appropriate comment. (LP: #308917) | ||
1606 | 822 | * bin/apport-retrace: Update the apt cache before looking for, and | ||
1607 | 823 | installing packages. (Part of UbuntuSpec:apport-retracer-maintenance) | ||
1608 | 824 | * debian/apport.default: Enable by default again for Jaunty. Let the | ||
1609 | 825 | flood begin! | ||
1610 | 826 | |||
1611 | 827 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 08 Jan 2009 14:05:07 +0100 | ||
1612 | 828 | |||
1613 | 829 | apport (0.123) jaunty; urgency=low | ||
1614 | 830 | |||
1615 | 831 | * bin/apport: Do not write the report into the log file if opening | ||
1616 | 832 | the report file failed; just log the error. | ||
1617 | 833 | * bin/apport: Remove a previously seen report file, so that the | ||
1618 | 834 | following creation with O_EXCL actually works. | ||
1619 | 835 | * apport/report.py, add_proc_info(): Only try to attach | ||
1620 | 836 | /proc/pid/attr/current if we are root. This works around Python | ||
1621 | 837 | segfaulting regression when encountering EPERM on read() (see | ||
1622 | 838 | LP #314065). | ||
1623 | 839 | * apport/report.py testsuite: Use "isofs" for module license check | ||
1624 | 840 | testing instead of "usbcore", since the latter is more likely to | ||
1625 | 841 | get built into the kernel. | ||
1626 | 842 | * apport/report.py, add_proc_environ(): Use "PATH=(...)" instead of | ||
1627 | 843 | "PATH: ..." notation, to be consistent with other environment | ||
1628 | 844 | variables. Unbreaks the apport test suite. | ||
1629 | 845 | |||
1630 | 846 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 05 Jan 2009 18:05:38 +0100 | ||
1631 | 847 | |||
1632 | 848 | apport (0.122) jaunty; urgency=low | ||
1633 | 849 | |||
1634 | 850 | * apport/crashdb_impl/launchpad.py: Support extra tags in the | ||
1635 | 851 | report's "Tags:" field, and set them in the Launchpad bug. | ||
1636 | 852 | Document this in doc/data-format.tex. Thanks to Steve Conklin for | ||
1637 | 853 | the patch! | ||
1638 | 854 | |||
1639 | 855 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 05 Jan 2009 10:06:49 +0100 | ||
1640 | 856 | |||
1641 | 857 | apport (0.121) jaunty; urgency=low | ||
1642 | 858 | |||
1643 | 859 | * debian/apport.init: Drop long obsolete setting of | ||
1644 | 860 | /proc/sys/kernel/crashdump-size. | ||
1645 | 861 | * debian/apport.init: Make restart actually work if the default file was | ||
1646 | 862 | changed. (LP: #292402) | ||
1647 | 863 | * apport/report.py, add_proc_environ(): Do not include verbatim $PATH, only | ||
1648 | 864 | classify it as "default" (does not appear at all then), "custom, | ||
1649 | 865 | user" (/home or /tmp in $PATH), or "custom, no user". Add appropriate test | ||
1650 | 866 | case. Update the data format documentation accordingly. (LP: #245263) | ||
1651 | 867 | |||
1652 | 868 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 08 Dec 2008 19:37:53 -0800 | ||
1653 | 869 | |||
1654 | 870 | apport (0.120) jaunty; urgency=low | ||
1655 | 871 | |||
1656 | 872 | * man/apport-cli.1: Fix "sytem" typo. (LP: #288977) | ||
1657 | 873 | * apport/fileutils.py: Add new function get_options() to read | ||
1658 | 874 | ~/.config/apport/settings. In the future, the apport-ignore.xml file will | ||
1659 | 875 | move to this directory, too. Based on idea and initial patch from Nikolay | ||
1660 | 876 | Derkach. | ||
1661 | 877 | * bin/apport: Check config option "unpackaged", and if it is set to True, | ||
1662 | 878 | create a crash dump for unpackaged programs, too. Bump apport package | ||
1663 | 879 | dependency to python-apport for this. | ||
1664 | 880 | * apport/ui.py: Fix regression introduced in in 0.115 for checking | ||
1665 | 881 | successful package name determination. | ||
1666 | 882 | * apport/report.py: Some distro portability fixes in the test suite, thanks | ||
1667 | 883 | to Nikolay Derkach! | ||
1668 | 884 | * Add OpenSUSE spec file, init script, and RPM packaging backend. Thanks to | ||
1669 | 885 | Nikolay Derkach! | ||
1670 | 886 | * apport_python_hook.py, bin/apport: Create files in a race free way to | ||
1671 | 887 | avoid symlink attacks. Thanks to Sebastian Kramer <krahmer@novell.com> for | ||
1672 | 888 | finding them! | ||
1673 | 889 | * problem_report.py test suite: Create debugging leftover which left /tmp/r | ||
1674 | 890 | behind. | ||
1675 | 891 | * apport/crashdb_impl/memory.py: Use example.com, not bug.net, since the | ||
1676 | 892 | latter actually exists now. | ||
1677 | 893 | * apport/hookutils.py: Add attach_network(), attach_alsa(), and | ||
1678 | 894 | attach_hardware(), and add proper docstrings. Thanks to Matt Zimmerman for | ||
1679 | 895 | the branch! | ||
1680 | 896 | * source_linux.py hook: Use above tool functions, which greatly simplifies | ||
1681 | 897 | the hook. | ||
1682 | 898 | * apport/report.py: Also print exceptions from binary and source package | ||
1683 | 899 | hooks, not just from common ones. | ||
1684 | 900 | * apport/report.py, add_hooks_info(): Do not print an error if a source | ||
1685 | 901 | package hook does not exist. | ||
1686 | 902 | * apport/hookutils.py, _parse_gconf_schema(): Correctly handle bool values. | ||
1687 | 903 | |||
1688 | 904 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 26 Nov 2008 19:24:23 +0100 | ||
1689 | 905 | |||
1690 | 906 | apport (0.119) intrepid; urgency=low | ||
1691 | 907 | |||
1692 | 908 | * debian/apport.default: Disable Apport by default for the final release. | ||
1693 | 909 | |||
1694 | 910 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 23 Oct 2008 09:34:41 +0200 | ||
1695 | 911 | |||
1696 | 912 | apport (0.118) intrepid; urgency=low | ||
1697 | 913 | |||
1698 | 914 | * apport/hookutils.py: add attach_gconf() function to add non-default gconf | ||
1699 | 915 | settings to a report | ||
1700 | 916 | |||
1701 | 917 | -- Matt Zimmerman <mdz@ubuntu.com> Mon, 13 Oct 2008 20:10:33 +0100 | ||
1702 | 918 | |||
1703 | 919 | apport (0.117) intrepid; urgency=low | ||
1704 | 920 | |||
1705 | 921 | * backends/packaging-apt-dpkg.py, is_distro_package(): Fix crash if | ||
1706 | 922 | apt.Cache()[pkg].origins is None. (LP: #279353) | ||
1707 | 923 | * bin/apport: Log that we are ignoring SIGABRT, since it is a common cause | ||
1708 | 924 | of confusion. | ||
1709 | 925 | * test-apport, create_test_process(): Fix race condition: wait until the | ||
1710 | 926 | child process has fully execve()ed, to avoid coredumping it while it is | ||
1711 | 927 | still running as test-apport process. | ||
1712 | 928 | * apport/crashdb_impl/launchpad.py, update(): Set source package of a bug if | ||
1713 | 929 | the reporter removed it and the task is against 'Ubuntu'. (LP: #269045) | ||
1714 | 930 | |||
1715 | 931 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 07 Oct 2008 16:38:06 +0200 | ||
1716 | 932 | |||
1717 | 933 | apport (0.116) intrepid; urgency=low | ||
1718 | 934 | |||
1719 | 935 | * Update AUTHORS and debian/copyright, Michael and Troy released their | ||
1720 | 936 | copyright to Canonical. Properly attribute them as authors in the | ||
1721 | 937 | respective files. | ||
1722 | 938 | * debian/local/ubuntu-bug: Fix quoting of the command line arguments, so | ||
1723 | 939 | that several options do not end up as one big argument when being passed | ||
1724 | 940 | to apport-{cli,gtk,qt}. This also repairs launchpad-integration. | ||
1725 | 941 | (LP: #260242) | ||
1726 | 942 | |||
1727 | 943 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 26 Sep 2008 10:32:45 +0200 | ||
1728 | 944 | |||
1729 | 945 | apport (0.115) intrepid; urgency=low | ||
1730 | 946 | |||
1731 | 947 | [ Matt Zimmerman ] | ||
1732 | 948 | * Add apport/hookutils.py with some convenience functions for writing hook | ||
1733 | 949 | scripts (work in progress) | ||
1734 | 950 | * Extend ubuntu-bug to accept a path as an argument and look up the package | ||
1735 | 951 | name | ||
1736 | 952 | * Rename kernel_hook to kernel_crashdump (there are other kernel hooks) | ||
1737 | 953 | * Change kernel crash report type to KernelCrash | ||
1738 | 954 | * Fix automatix.py to not crash when automatix isn't installed (LP: #267004) | ||
1739 | 955 | * Add bin/kernel_oops hook to capture a kernel oops (eg. via kerneloops) | ||
1740 | 956 | |||
1741 | 957 | [ Martin Pitt ] | ||
1742 | 958 | * Add AUTHORS file for collecting the list of major contributors and | ||
1743 | 959 | copyright holders. | ||
1744 | 960 | * apport/report.py: If we do not find a bug pattern file for the binary | ||
1745 | 961 | package, fall back to looking for one with the source package name. | ||
1746 | 962 | * run-tests: Provide a better error message if apport/packaging_impl.py does | ||
1747 | 963 | not exist. | ||
1748 | 964 | |||
1749 | 965 | [ Brian Murray ] | ||
1750 | 966 | * apport/crashdb_impl/launchpad.py: Add regression-retracer tag to bugs | ||
1751 | 967 | which seem to be a regression (duplicate, and crash happens in a later | ||
1752 | 968 | version than the fix). (LP: #271876) | ||
1753 | 969 | |||
1754 | 970 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 18 Sep 2008 18:18:03 -0700 | ||
1755 | 971 | |||
1756 | 972 | apport (0.114) intrepid; urgency=low | ||
1757 | 973 | |||
1758 | 974 | [ Fabien Tassin ] | ||
1759 | 975 | * apport/ui.py: Use preferred browser when it's recognized as a | ||
1760 | 976 | Mozilla browser (firefox, seamonkey, flock) or Epiphany (LP: #131350) | ||
1761 | 977 | |||
1762 | 978 | [ Oumar Aziz OUATTARA ] | ||
1763 | 979 | * apport/crashdb.py: Add support for /etc/apport/crashdb.conf.d/*.conf crash | ||
1764 | 980 | database configuration files. Document it in doc/crashdb-conf.txt. | ||
1765 | 981 | * apport/ui.py: Support a new field "CrashDB" in apport reports which select | ||
1766 | 982 | a non-default crash database. Document this in doc/package-hooks.txt. | ||
1767 | 983 | |||
1768 | 984 | [ Martin Pitt ] | ||
1769 | 985 | * apport/report.py: If a hook crashes with an exception, print it to | ||
1770 | 986 | stderr, for easier debugging of hooks. | ||
1771 | 987 | * apport/crashdb_impl/launchpad.py: If PackageArchitecture is 'all', fall | ||
1772 | 988 | back to looking at Architecture instead of not adding a | ||
1773 | 989 | needs-$ARCH-retrace tag at all. This prevented signal crashes originating | ||
1774 | 990 | from e. g. Python packages from being automatically retraced. | ||
1775 | 991 | |||
1776 | 992 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 04 Sep 2008 10:51:24 +0200 | ||
1777 | 993 | |||
1778 | 994 | apport (0.113) intrepid; urgency=low | ||
1779 | 995 | |||
1780 | 996 | * apport-qt recommends update-notifier-kde instead of adept-notifier | ||
1781 | 997 | |||
1782 | 998 | -- Anthony Mercatante <tonio@ubuntu.com> Thu, 28 Aug 2008 15:02:20 +0200 | ||
1783 | 999 | |||
1784 | 1000 | apport (0.112) intrepid; urgency=low | ||
1785 | 1001 | |||
1786 | 1002 | * apport/crashdb_impl/launchpad.py: Update attachment handling to current | ||
1787 | 1003 | python-launchpad-bugs API, thanks Markus Korn! | ||
1788 | 1004 | * apport/ui.py: Use gnome-panel as indicator for a running GNOME session; | ||
1789 | 1005 | 'gnome-session' now calls itself x-session-manager, which isn't useful | ||
1790 | 1006 | to tell apart session types. | ||
1791 | 1007 | |||
1792 | 1008 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 07 Aug 2008 17:09:49 +0200 | ||
1793 | 1009 | |||
1794 | 1010 | apport (0.111) intrepid; urgency=low | ||
1795 | 1011 | |||
1796 | 1012 | The "(Kernel) OOPS, I dumped it again!" release. | ||
1797 | 1013 | |||
1798 | 1014 | * apport/ui.py: Fix test_run_report_bug_unpackaged_pid() to work with the | ||
1799 | 1015 | installed run-tests from the package as well. | ||
1800 | 1016 | * apport/crashdb_impl/launchpad.py: Ignore broken LP bug tasks instead of | ||
1801 | 1017 | crashing on them. | ||
1802 | 1018 | * apport/report.py, add_proc_info(): Report the AppArmor or SELinux context | ||
1803 | 1019 | in a new ProcAttrCurrent field, read from /proc/pid/attr/current. | ||
1804 | 1020 | Document it in doc/data-format.tex. The field will not be added if the | ||
1805 | 1021 | proc attribute cannot be read or isn't present. Thanks to Steve Beattie | ||
1806 | 1022 | for the patch and the suggestion! | ||
1807 | 1023 | * debian/local/setup-apport-retracer: Switch to intrepid. | ||
1808 | 1024 | * debian/local/setup-apport-retracer: Fix installation of python-apt. Also | ||
1809 | 1025 | install apt, to avoid library version mismatches to python-apt. | ||
1810 | 1026 | * debian/apport.default: Enable apport by default again, now that we have | ||
1811 | 1027 | working retracers. | ||
1812 | 1028 | * apport/report.py, test_add_gdb_info_script(): Use bash, not dash as test | ||
1813 | 1029 | program for core dumping; stack trace is awkwardly bad with dash, so that | ||
1814 | 1030 | the test case cannot really work any more. | ||
1815 | 1031 | * Add package-hooks/source_linux.py: Package hook for collecting kernel | ||
1816 | 1032 | related information. By Matt Zimmerman, thank you! (LP: #251441) | ||
1817 | 1033 | * debian/local/ubuntu-bug.1: Fix documentation of -p, it specifies the | ||
1818 | 1034 | binary package name, not the source. | ||
1819 | 1035 | * apport/packaging.py: Add get_kernel_package() to return the actual Linux | ||
1820 | 1036 | kernel package name; useful if the user reports a bug against just | ||
1821 | 1037 | "linux". Implement it in backends/packaging-apt-dpkg.py. | ||
1822 | 1038 | * apport/ui.py: "Do what I mean" when filing a bug against "linux" and | ||
1823 | 1039 | report it against the actual kernel package. | ||
1824 | 1040 | * debian/local/ubuntu-bug: If just one argument is given, infer -p/-P from | ||
1825 | 1041 | the type of the argument. | ||
1826 | 1042 | * apport/ui.py: Drop the PackageArchitecture field for the uploaded report | ||
1827 | 1043 | if it is equal to Architecture. Adapt apport/crashdb_impl/launchpad.py to | ||
1828 | 1044 | fall back to Architecture, and mention the change in doc/data-format.tex. | ||
1829 | 1045 | * problem_report.py, write_mime(): Add new "skip_keys" argument to filter | ||
1830 | 1046 | out keys. Add test cases. | ||
1831 | 1047 | * apport/crashdb_impl/launchpad.py: Do not write the "Date:" field on | ||
1832 | 1048 | upload(), and fetch it from the bug metadata in download(). | ||
1833 | 1049 | * apport/crashdb_impl/launchpad.py, download(): Support reading bugs with | ||
1834 | 1050 | the "--- " separator instead of "ProblemType: ". Launchpad doesn't create | ||
1835 | 1051 | bugs that way ATM, but at least we have the reading part implemented now. | ||
1836 | 1052 | * package-hooks/source_linux.py: Drop Uname, ProcVersion, and | ||
1837 | 1053 | RunningKernelVersion fields, since they are all subsumed in the | ||
1838 | 1054 | ProcVersionSignature field. | ||
1839 | 1055 | * apport/ui.py, run_report_bug(): Strip spaces from package argument. | ||
1840 | 1056 | * apport/ui.py, add_hooks_info(): Collect OS info first, then call the | ||
1841 | 1057 | package hooks, so that the linux hook actually has a chance to delete the | ||
1842 | 1058 | Uname field. | ||
1843 | 1059 | * bin/kernel_hook, test-hooks: Throw away the original kernel hook which | ||
1844 | 1060 | we never used (and got superseded by the proper source_linux.py package | ||
1845 | 1061 | hook now). Replace it with the new logic of looking for | ||
1846 | 1062 | /var/crash/vmcore{,.log} and turning that into an apport report. | ||
1847 | 1063 | * debian/apport.init: Call kernel_hook if /var/crash/vmcore exists. | ||
1848 | 1064 | (LP: #241322) | ||
1849 | 1065 | * apport/ui.py: Collect information for "ProblemType: Kernel" as well, so | ||
1850 | 1066 | that we run the package hook. Adapt test suite to cover this. | ||
1851 | 1067 | * debian/control: Bump Standards-Version (no required changes). | ||
1852 | 1068 | * gtk/apport-gtk.glade, qt4/apport-qt: Generalize notification of kernel | ||
1853 | 1069 | crash, since it now happens after a boot, not right after the BUG/OOPS. | ||
1854 | 1070 | But in the future we want to cover both cases. | ||
1855 | 1071 | |||
1856 | 1072 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 05 Aug 2008 18:13:24 +0200 | ||
1857 | 1073 | |||
1858 | 1074 | apport (0.110) intrepid; urgency=low | ||
1859 | 1075 | |||
1860 | 1076 | * apport/chroot.py: In the test suite, copy some system binaries/libraries | ||
1861 | 1077 | into a fakechroot and exercise a lot of standard shell commands (cp, ln | ||
1862 | 1078 | -s, rm, rm -r, mkdir, echo, chmod, chown, etc.) with absolute/relative | ||
1863 | 1079 | paths. This reproduces the total breakage of rm'ing, chmod'ing, and | ||
1864 | 1080 | chown'ing absolute paths in hardy fakechroots. | ||
1865 | 1081 | * bin/crash-digger: Intercept exceptions when downloading crash reports for | ||
1866 | 1082 | duplicate checking, so that the retracer does not crash on malformed bug | ||
1867 | 1083 | reports. (LP: #205178) | ||
1868 | 1084 | * apport/packaging.py: Introduce a new function enabled() which reports | ||
1869 | 1085 | whether Apport should create crash reports. Signal crashes are controlled | ||
1870 | 1086 | by /proc/sys/kernel/core_pattern, but we need that to control whether | ||
1871 | 1087 | reports for Python, package, or kernel crashes are generated. | ||
1872 | 1088 | * backends/packaging-apt-dpkg.py: Provide implementation for | ||
1873 | 1089 | PackageInfo.enabled() for Debian/Ubuntu by evaluating /etc/default/apport. | ||
1874 | 1090 | Add various test cases for different configuration files and absent files. | ||
1875 | 1091 | * apport_python_hook.py: Do not create reports if Apport is disabled (in | ||
1876 | 1092 | /etc/default/apport). (LP: #222260) | ||
1877 | 1093 | |||
1878 | 1094 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 17 May 2008 12:44:21 +0200 | ||
1879 | 1095 | |||
1880 | 1096 | apport (0.109) intrepid; urgency=low | ||
1881 | 1097 | |||
1882 | 1098 | [ Martin Pitt ] | ||
1883 | 1099 | * debian/local/setup-apport-retracer: Update for some changes in Hardy. | ||
1884 | 1100 | |||
1885 | 1101 | [ Loic Minier ] | ||
1886 | 1102 | * apport/report.py, add_proc_info(): also strip pathnames starting with | ||
1887 | 1103 | 'cow', 'squashmnt', and 'persistmnt' to allow apport to locate the | ||
1888 | 1104 | executable pathname, additionally to 'rofs' added in 0.75. This fixes | ||
1889 | 1105 | apport for packages installed on the read-write part of the unionfs mounts | ||
1890 | 1106 | and under UME which uses different names for the mount points. Proper fix | ||
1891 | 1107 | is to rewrite the pathnames in the kernel. (LP: #224168) | ||
1892 | 1108 | |||
1893 | 1109 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 23 Apr 2008 14:30:03 +0200 | ||
1894 | 1110 | |||
1895 | 1111 | apport (0.108) hardy; urgency=low | ||
1896 | 1112 | |||
1897 | 1113 | [ Martin Pitt ] | ||
1898 | 1114 | * apport-{gtk,qt,cli}: Fix handling of file references added by package | ||
1899 | 1115 | hooks. (LP: #205163) | ||
1900 | 1116 | * backends/packaging_rpm.py: Fix dependency resolution of uname(*) in the | ||
1901 | 1117 | RPM backend. Thanks to Patryk Zawadzki! (LP: #213018) | ||
1902 | 1118 | * backends/packaging_rpm.py: Fix RPM platform parsing, thanks to Patryk | ||
1903 | 1119 | Zawadzki! (LP: #213015) | ||
1904 | 1120 | * po/de.po: Fix typo (missing space). | ||
1905 | 1121 | * debian/apport.default: Disable Apport for the final Hardy release, since | ||
1906 | 1122 | it is less useful in stable releases, and drains a lot of CPU and I/O | ||
1907 | 1123 | power on crashes. Disabling it here instead of in update-notifier/adept is | ||
1908 | 1124 | more discoverable and more centralized. | ||
1909 | 1125 | |||
1910 | 1126 | [ Daniel Hahler ] | ||
1911 | 1127 | * bin/apport-retrace: catch the same exceptions from Report.load() like | ||
1912 | 1128 | ui.load_report() does (LP: #211899) | ||
1913 | 1129 | * Fix uncaught exceptions in apport itself (LP: #215929): | ||
1914 | 1130 | - apport/REThread.py: check if "sys" exists in the except block of | ||
1915 | 1131 | REThread.run() | ||
1916 | 1132 | - apport_python_hook.py: check if "sys" exists in the finally block of | ||
1917 | 1133 | apport_excepthook | ||
1918 | 1134 | * cli/apport-cli: Fix UnboundLocalError in ui_present_crash, which rendered | ||
1919 | 1135 | apport-cli useless (for reporting crashes) (LP: #216151) | ||
1920 | 1136 | |||
1921 | 1137 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 16 Apr 2008 12:24:32 +0200 | ||
1922 | 1138 | |||
1923 | 1139 | apport (0.107) hardy; urgency=low | ||
1924 | 1140 | |||
1925 | 1141 | * cli/apport-cli: Add translator comment for difficult string. (LP: #210948) | ||
1926 | 1142 | * Update German translations. | ||
1927 | 1143 | * po/Make{vars,file}: Remove the --language=python option again, since it | ||
1928 | 1144 | breaks extracting strings from the glade. intltool-update currently does | ||
1929 | 1145 | not seem to have a way to tag a file as "language python", so add an ugly | ||
1930 | 1146 | workaround: Create temporary .py symlinks for gtk/apport-gtk & friends, | ||
1931 | 1147 | and have intltool extract them. | ||
1932 | 1148 | * apport/ui.py: Disallow filing a bug without specifying a package or a PID. | ||
1933 | 1149 | Update debian/local/ubuntu-bug.1 accordingly (apport-cli manpage was | ||
1934 | 1150 | already correct). (LP: #210348) | ||
1935 | 1151 | |||
1936 | 1152 | -- Martin Pitt <martin.pitt@ubuntu.com> Sun, 06 Apr 2008 11:44:38 -0600 | ||
1937 | 1153 | |||
1938 | 1154 | apport (0.106) hardy; urgency=low | ||
1939 | 1155 | |||
1940 | 1156 | [ Martin Pitt ] | ||
1941 | 1157 | * apport/crashdb_impl/launchpad.py: Fix spelling mistake in p-lp-bugs API | ||
1942 | 1158 | (now corrected there). | ||
1943 | 1159 | * apport_python_hook.py: Catch IndexError for invalid sys.argv[0], too. | ||
1944 | 1160 | (LP: #204940) | ||
1945 | 1161 | * apport/ui.py: Add test_run_report_bug_unpackaged_pid() test case which | ||
1946 | 1162 | reports a bug against a pid which belongs to an unpackaged program. This | ||
1947 | 1163 | reproduces LP #203764. | ||
1948 | 1164 | * apport/report.py: Drop add_hooks_info() assertion on nonexisting Package | ||
1949 | 1165 | field, return silently instead. This conforms to the behaviour of the | ||
1950 | 1166 | other add_*_info() functions and avoids nasty error handling. | ||
1951 | 1167 | * apport/ui.py: Generate proper error message when calling with -f -p PID | ||
1952 | 1168 | and PID belongs to an unpackaged program. (LP: #203764). | ||
1953 | 1169 | |||
1954 | 1170 | [ Sebastien Bacher ] | ||
1955 | 1171 | * po/Makevars: add the --language=python xgettext option so the translations | ||
1956 | 1172 | template is correctly updated on build since cdbs is using intltool-update | ||
1957 | 1173 | directly and not the corresponding makefile target | ||
1958 | 1174 | |||
1959 | 1175 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 01 Apr 2008 16:02:46 +0200 | ||
1960 | 1176 | |||
1961 | 1177 | apport (0.105) hardy; urgency=low | ||
1962 | 1178 | |||
1963 | 1179 | * apport/crashdb_impl/launchpad.py: Ignore ValueErrors when subscribing a | ||
1964 | 1180 | team, since these are usually due to the team already being subscribed. | ||
1965 | 1181 | * apport/report.py, anonymize(): Be robust against empty user names and only | ||
1966 | 1182 | anonymize fields which can potentially contain user specific data. | ||
1967 | 1183 | (LP: #195706) | ||
1968 | 1184 | * backends/packaging-apt-dpkg.py, get_architecture(): Return 'unknown' | ||
1969 | 1185 | instead of None if package architecture cannot be determined. | ||
1970 | 1186 | (LP: #198548) | ||
1971 | 1187 | * apport/ui.py, run_crash(): Intercept other IOErrors, too (such as EISDIR) | ||
1972 | 1188 | and print out proper error message instead of crashing. (LP: #201819) | ||
1973 | 1189 | * apport_python_hook.py: If the Python script has mutilated sys.argv so that | ||
1974 | 1190 | even sys.argv[0] does not exist any more, fall back into readlink()ing | ||
1975 | 1191 | /proc/pid/exe and gracefully handle the failure of that, instead of | ||
1976 | 1192 | crashing in the crash handler (ugh). Add test case. (LP: #198183) | ||
1977 | 1193 | |||
1978 | 1194 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 18 Mar 2008 23:04:57 +0100 | ||
1979 | 1195 | |||
1980 | 1196 | apport (0.104) hardy; urgency=low | ||
1981 | 1197 | |||
1982 | 1198 | [ Martin Pitt ] | ||
1983 | 1199 | * apport/crashdb_impl/launchpad.py, get_source_version(): re-escape the | ||
1984 | 1200 | package name so that it doesn't stumble over '+' and similar characters. | ||
1985 | 1201 | * apport/ui.py tests: assert that ProcEnviron is also included into bug | ||
1986 | 1202 | reports where we do not have a PID, since having the local information is | ||
1987 | 1203 | interesting and important (and acceptable in terms of personal | ||
1988 | 1204 | information). | ||
1989 | 1205 | * apport/report.py: Split out method add_proc_environ() for getting | ||
1990 | 1206 | ProcEnviron, so that we can call it separately. | ||
1991 | 1207 | * apport/ui.py, run_report_bug(): Add ProcEnviron if we do not have a pid to | ||
1992 | 1208 | file a bug against. This way, bugs filed against packages or distro also | ||
1993 | 1209 | get locale information. (LP: #198514) | ||
1994 | 1210 | * apport/fileutils.py, mark_report_seen(): Do not crash if the file does not | ||
1995 | 1211 | exist any more, because it was removed underneath us. (LP: #199932) | ||
1996 | 1212 | * apport/ui.py, test_collect_info_exepath(): Add a tuple argument and a | ||
1997 | 1213 | CompressedValue to the test report. This reproduces LP #199349. | ||
1998 | 1214 | * apport/report.py, anonymize(): Only work on string values. (LP: #199349) | ||
1999 | 1215 | * apport/ui.py: If a report has a field "Ignore", entirely ignore the report | ||
2000 | 1216 | without even presenting an explanatory error dialog (as | ||
2001 | 1217 | "UnsupportableReason" does). Document this in doc/package-hooks.txt. | ||
2002 | 1218 | (LP: #198863) | ||
2003 | 1219 | * debian/control: Bump Standards-Version (no changes necessary). | ||
2004 | 1220 | * debian/control: Fix wrongly spelt project names (Python and GTK+). Thanks | ||
2005 | 1221 | to lintian's scrutiny. | ||
2006 | 1222 | * gtk/apport-gtk-mime.desktop.in, qt4/apport-qt-mime.desktop.in: Add a main | ||
2007 | 1223 | category. | ||
2008 | 1224 | |||
2009 | 1225 | [ Kees Cook ] | ||
2010 | 1226 | * apport/report.py: fix module license checking logic (LP: #199927). | ||
2011 | 1227 | - nonfree_modules: being unable to find a module should not mean the | ||
2012 | 1228 | module is non-free. | ||
2013 | 1229 | - test_module_license_evaluation: check modinfo reporting. | ||
2014 | 1230 | * problem_report.py: Skip atime test case if file system is mounted noatime. | ||
2015 | 1231 | |||
2016 | 1232 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 13 Mar 2008 14:01:30 +0100 | ||
2017 | 1233 | |||
2018 | 1234 | apport (0.103) hardy; urgency=low | ||
2019 | 1235 | |||
2020 | 1236 | * bin/apport-unpack: Print error messages instead of crashing for problems | ||
2021 | 1237 | like nonexisting file names passed as arguments. (LP: #185273) | ||
2022 | 1238 | * backends/packaging-apt-dpkg.py, is_distro_package(): Explicitly check site | ||
2023 | 1239 | for "ppa", so that we do not automatically file bugs for PPA packages. | ||
2024 | 1240 | This works around Soyuz bug LP #140412 for the time being. | ||
2025 | 1241 | * apport/report.py: Add standard_title() test cases for Python crashes with | ||
2026 | 1242 | a custom message, and a custom message with newlines. The latter | ||
2027 | 1243 | reproduces LP #190947. | ||
2028 | 1244 | * apport/report.py, standard_title(): Do not rely on a fixed position of the | ||
2029 | 1245 | topmost function; use iteration and regular expression matching instead. | ||
2030 | 1246 | (LP: #190947) | ||
2031 | 1247 | * apport/ui.py, parse_argv(): Specify that --pid/-P argument must be an | ||
2032 | 1248 | integer, to avoid exceptions when it's not. (LP: #193494) | ||
2033 | 1249 | * apport/report.py: Use uname -srm, not -a, to hide the hostname. (part of | ||
2034 | 1250 | LP #192786); also use os.uname() instead of calling the system program. | ||
2035 | 1251 | * problem_report.py(): Make write() work for reports with CompressedValues. | ||
2036 | 1252 | Add test case. | ||
2037 | 1253 | * apport/ui.py: Add test case test_run_crash_anonymity() which asserts that | ||
2038 | 1254 | the crash dump does not contain strings which can identify the user, such | ||
2039 | 1255 | as the user name, login name, host name, and current directory. | ||
2040 | 1256 | * apport/report.py: Add method anonymize() which replaces user specific | ||
2041 | 1257 | strings with generic ones. | ||
2042 | 1258 | * apport/ui.py, thread_collect_info(): Call anonymize() on the report. | ||
2043 | 1259 | (LP: #192786) | ||
2044 | 1260 | * bin/apport-retrace: Only update a bug report with new attachments if it is | ||
2045 | 1261 | not a duplicate. (LP: #172792) | ||
2046 | 1262 | * bin/apport-retrace: Print out proper error message instead of an exception | ||
2047 | 1263 | if trying to do write operations to the bug tracker without specifying | ||
2048 | 1264 | a cookie file. (LP: #146423) | ||
2049 | 1265 | |||
2050 | 1266 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 25 Feb 2008 17:47:13 +0100 | ||
2051 | 1267 | |||
2052 | 1268 | apport (0.102) hardy; urgency=low | ||
2053 | 1269 | |||
2054 | 1270 | [ Martin Pitt ] | ||
2055 | 1271 | * problem_report.py: Support reading reports with legacy zlib | ||
2056 | 1272 | compression in 'retain compressed values' mode (as used nowadays by | ||
2057 | 1273 | apport when reporting a crash). Add a test case, too. (LP: #129616) | ||
2058 | 1274 | * debian/control, debian/rules: Switch from python-support to | ||
2059 | 1275 | python-central, and use 'nomove' option so that apport works during | ||
2060 | 1276 | upgrades, too. (LP: #121341) | ||
2061 | 1277 | * debian/rules: Use dh_icons instead of dh_iconcache. | ||
2062 | 1278 | * debian/apport.init: Do not stop apport in any runlevel (LSB header). | ||
2063 | 1279 | * apport/ui.py, run_crash(): Catch zlib.error on invalidly compressed core | ||
2064 | 1280 | dumps. (LP: #176977) | ||
2065 | 1281 | * apport/ui.py: Give a meaningful error message instead of crashing if the | ||
2066 | 1282 | package for a crash report is not installed any more. (LP: #149739) | ||
2067 | 1283 | * apport/ui.py: Do not include ProcCmdline in bug reports, since these are | ||
2068 | 1284 | not ack'ed by the user and might contain sensitive data. (LP: #132800) | ||
2069 | 1285 | * apport/ui.py: Add various test cases for crash reports whose packages have | ||
2070 | 1286 | been uninstalled between the crash and the report. This reproduces | ||
2071 | 1287 | LP #186684. | ||
2072 | 1288 | * apport/ui.py, load_report(): Produce proper error message if | ||
2073 | 1289 | executable/interpreter path do not exist any more. (LP: #186684) | ||
2074 | 1290 | * cli/apport-cli: Intercept SIGPIPE when calling sensible-pager, to avoid | ||
2075 | 1291 | crash when quitting it prematurely. (LP: #153872) | ||
2076 | 1292 | * bin/apport-checkreports: Print out a list of program names/packages which | ||
2077 | 1293 | have a pending crash report. (LP: #145117) | ||
2078 | 1294 | * apport/ui.py, run_argv(): Add return code which indicates whether any | ||
2079 | 1295 | report has been processed. | ||
2080 | 1296 | * cli/apport-cli: If no pending crash reports are present, say so and refer | ||
2081 | 1297 | to --help. (LP: #182985) | ||
2082 | 1298 | * apport/ui.py: Waive check for obsolete packages if environment defines | ||
2083 | 1299 | $APPORT_IGNORE_OBSOLETE_PACKAGES. Document this in the apport-cli manpage. | ||
2084 | 1300 | (LP: #148064) | ||
2085 | 1301 | |||
2086 | 1302 | [ Daniel Hahler ] | ||
2087 | 1303 | * .crash file integration for KDE3 (LP: #177055) | ||
2088 | 1304 | - debian/apport-qt.install: install added files qt4/apport-qt-mime.desktop | ||
2089 | 1305 | and qt4/apport-qt-mimelnk.desktop | ||
2090 | 1306 | * Fixed minor warnings/errors from desktop-file-validate in | ||
2091 | 1307 | gtk/apport-gtk-mime.desktop.in and qt4/apport-qt.desktop.in (LP: #146957) | ||
2092 | 1308 | |||
2093 | 1309 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 06 Feb 2008 12:55:53 +0100 | ||
2094 | 1310 | |||
2095 | 1311 | apport (0.101) hardy; urgency=low | ||
2096 | 1312 | |||
2097 | 1313 | * debian/control: Add python-xdg dependency to apport, since apport-cli | ||
2098 | 1314 | needs it. (LP: #177095) | ||
2099 | 1315 | * apport/ui.py: Add test case for reporting a report which has been | ||
2100 | 1316 | preprocessed by apport-retrace, i. e. has a stack trace, but no core dump | ||
2101 | 1317 | any more (reproducing LP #185084). | ||
2102 | 1318 | * apport/ui.py, run_crash(): Do not reject reports which have a stack trace, | ||
2103 | 1319 | but no core dump. (LP: #185084) | ||
2104 | 1320 | * apport/report.py: Fix test_add_gdb_info_load() test case, the temporary | ||
2105 | 1321 | executable was already deleted when gdb ran the second time. | ||
2106 | 1322 | |||
2107 | 1323 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 23 Jan 2008 17:48:06 +0000 | ||
2108 | 1324 | |||
2109 | 1325 | apport (0.100) hardy; urgency=low | ||
2110 | 1326 | |||
2111 | 1327 | * bin/crash-digger: Add option --log for logging to a file, and | ||
2112 | 1328 | --pidfile/--stop for daemonization. Add test cases to test-crash-digger. | ||
2113 | 1329 | * bin/apport: Do not re-raise exceptions about failure to create the lock | ||
2114 | 1330 | file, to avoid crashing in the case that another apport instance tries to | ||
2115 | 1331 | lock at exactly the same moment. (LP: #147237) | ||
2116 | 1332 | * apport/report.py testsuite: Check that our methods get along with binary | ||
2117 | 1333 | data which turn into CompressedValue objects after loading them from a | ||
2118 | 1334 | file. This reproduces LP #148305. | ||
2119 | 1335 | * problem_report.py, CompressedValue: Add method splitlines() since we need | ||
2120 | 1336 | it very often. Add test case to test_compressed_values(). (LP: #148305) | ||
2121 | 1337 | * problem_report.py: Add test case to check that update() works and does the | ||
2122 | 1338 | right thing with binary values and overwriting. This confirms that | ||
2123 | 1339 | importing a dictionary works. | ||
2124 | 1340 | * debian/local/setup-apport-retracer: Update for hardy. | ||
2125 | 1341 | * apport/crashdb_impl/launchpad.py: get_source_info() does not work any more | ||
2126 | 1342 | due to HTML changes in Launchpad, and not showing the component any more | ||
2127 | 1343 | on /distro/+source/package. Since we do not actually need component and | ||
2128 | 1344 | release name any more, rename it to get_source_version(), fix the regular | ||
2129 | 1345 | expression to just get the version, and adapt get_fixed_version() | ||
2130 | 1346 | accordingly. | ||
2131 | 1347 | * debian/local/setup-apport-retracer: Update default apt sources to | ||
2132 | 1348 | http://ddebs.ubuntu.com. | ||
2133 | 1349 | * apport/ui.py: Robostify cleanup of forked test processes. | ||
2134 | 1350 | * apport/ui.py: Sleep for 0.5 seconds after creating the test process in the | ||
2135 | 1351 | test suite to give /proc some time to settle down. | ||
2136 | 1352 | * bin/apport: Drop evaluation of CORE_* environment variables and mandate | ||
2137 | 1353 | calling with <pid> <signal> <core ulimit>. Drop the now obsolete | ||
2138 | 1354 | apport/elfcore.py. Adapt test-apport accordingly. | ||
2139 | 1355 | * debian/apport.init, use-local: Now call apport with %p, %s, and %c kernel | ||
2140 | 1356 | macros (since 2.6.24). Drop Edgy support from init script. | ||
2141 | 1357 | |||
2142 | 1358 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 21 Dec 2007 02:18:48 +0100 | ||
2143 | 1359 | |||
2144 | 1360 | apport (0.99) hardy; urgency=low | ||
2145 | 1361 | |||
2146 | 1362 | * cli/apport-cli, qt4/apport-qt: Fix typo 'send' -> 'sent'. | ||
2147 | 1363 | (LP: #139288) | ||
2148 | 1364 | * apport_python_hook.py: Add user info, too. Also add check for this to the | ||
2149 | 1365 | test suite. (LP: #145109) | ||
2150 | 1366 | * apport/ui.py, run_crash(): Show a proper UI error message instead of just | ||
2151 | 1367 | crashing with an exception if the crash report is inaccessible for the | ||
2152 | 1368 | invoking user. (LP: #146464) | ||
2153 | 1369 | * apport/crashdb_impl/memory.py: Implement mark_retraced(), | ||
2154 | 1370 | get_unretraced(), and get_dup_unchecked() for completeness, and define | ||
2155 | 1371 | _MemoryCrashDBTest also when not running file as __main__. This makes the | ||
2156 | 1372 | class useful for higher-level test suites. Add test cases for the new | ||
2157 | 1373 | functions. | ||
2158 | 1374 | * apport/crashdb_impl/memory.py: Support 'dummy_data' option which adds a | ||
2159 | 1375 | few dummy crashes by default. This is useful for external test suites | ||
2160 | 1376 | which cannot otherwise pre-fill the in-memory db. Add checks that this | ||
2161 | 1377 | works properly. | ||
2162 | 1378 | * bin/crash-digger: Use self.log() more consistently, and flush stdout in | ||
2163 | 1379 | log(), so that we do not lose logs on output redirection. | ||
2164 | 1380 | * Add test-crash-digger: Initial test suite for bin/crash-digger. | ||
2165 | 1381 | * apport/ui.py, run_crash(): Intercept CRC errors from the info collection | ||
2166 | 1382 | thread, which happens on broken core dumps. (LP: #132212) | ||
2167 | 1383 | * cli/apport-cli, ui_present_package_error(): Fix running of dialog, so that | ||
2168 | 1384 | reporting package problems with apport-cli actually works. (LP: #136369) | ||
2169 | 1385 | * apport/ui.py, run_crash(): Intercept ENOSPC and present a proper error | ||
2170 | 1386 | message. (LP: #145100) | ||
2171 | 1387 | * gtk/apport-gtk.glade: Fix title of upload progress window to comply to | ||
2172 | 1388 | HIG. Thanks, Bruce Cowan. (LP: #144782) | ||
2173 | 1389 | * qt4/apport-qt: Fix Unicode <-> UTF-8 conversion. Thanks, Daniel Hahler! | ||
2174 | 1390 | (LP: #148177) | ||
2175 | 1391 | * apport/ui.py: Only import xdg.DesktopEntry when a .desktop file has been | ||
2176 | 1392 | found in the affected package. This avoids the dependency on servers with | ||
2177 | 1393 | just apport-cli. Thanks, Matthias Gug! (LP: #130013) | ||
2178 | 1394 | * apport/fileutils.py: Do not fail if there are no packages installed which | ||
2179 | 1395 | have one or several .desktop files. Thanks, Matthias Gug! | ||
2180 | 1396 | |||
2181 | 1397 | -- Martin Pitt <martin.pitt@ubuntu.com> Sun, 28 Oct 2007 18:32:07 -0400 | ||
2182 | 1398 | |||
2183 | 1399 | apport (0.98) gutsy; urgency=low | ||
2184 | 1400 | |||
2185 | 1401 | [ Martin Pitt ] | ||
2186 | 1402 | * debian/local/setup-apport-retracer: launchpadBugs -> launchpadbugs | ||
2187 | 1403 | (recently renamed Python package in python-launchpad-bugs). | ||
2188 | 1404 | * apport/crashdb_impl/launchpad.py, test examples: Do not duplicate to bug | ||
2189 | 1405 | #1, that generates a huge amount of spam. Use another test bug. | ||
2190 | 1406 | * apport/crashdb_impl/launchpad.py, download(): Use Bug.description_raw, | ||
2191 | 1407 | since LP mangles spaces in .description. Bump p-lp-bugs dependency. | ||
2192 | 1408 | * apport/crashdb_impl/launchpad.py, close_duplicate(): Explicitly set the | ||
2193 | 1409 | duplicate after removing attachments, since the new LP does not allow any | ||
2194 | 1410 | modification of duplicate bugs. | ||
2195 | 1411 | * bin/crash-digger: Only consolidate the duplicate DB when -i is given (i. | ||
2196 | 1412 | e. usually only on one running instance). | ||
2197 | 1413 | |||
2198 | 1414 | [ Colin Watson ] | ||
2199 | 1415 | * Use bugs.launchpad.net for +filebug and +bugs requests. (LP: #138090) | ||
2200 | 1416 | |||
2201 | 1417 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 01 Oct 2007 14:35:07 +0200 | ||
2202 | 1418 | |||
2203 | 1419 | apport (0.97) gutsy; urgency=low | ||
2204 | 1420 | |||
2205 | 1421 | [Martin Pitt] | ||
2206 | 1422 | * problem_report.py: Coerce CompressedValue.__len__() to return an int to | ||
2207 | 1423 | work on Python 2.4, too. | ||
2208 | 1424 | * debian/local/setup-apport-retracer: Adapt ddeb apt source for the move | ||
2209 | 1425 | from ~pitti to ~ubuntu-archive. | ||
2210 | 1426 | |||
2211 | 1427 | [Markus Korn] | ||
2212 | 1428 | * port to new python-launchpad-bugs API. | ||
2213 | 1429 | |||
2214 | 1430 | [Daniel Holbach] | ||
2215 | 1431 | * small fixes to the port. | ||
2216 | 1432 | * debian/control: bumped python-launchpad-bugs Depends to >= 0.2.2. | ||
2217 | 1433 | |||
2218 | 1434 | -- Daniel Holbach <daniel.holbach@ubuntu.com> Tue, 04 Sep 2007 11:24:28 +0200 | ||
2219 | 1435 | |||
2220 | 1436 | apport (0.96) gutsy; urgency=low | ||
2221 | 1437 | |||
2222 | 1438 | * Create man pages for apport-cli, apport-chroot, and dupdb-admin. | ||
2223 | 1439 | * apport/fileutils.py, find_file_package(): Try to resolve symlinks in the | ||
2224 | 1440 | directory path. (LP: #125551) | ||
2225 | 1441 | * apport/crashdb_impl/launchpad.py, debian/local/setup-apport-retracer: Use | ||
2226 | 1442 | packaging.get_system_architecture() (which is dpkg --print-architecture on | ||
2227 | 1443 | Debian/Ubuntu) instead of uname, so that this does the right thing on lpia. | ||
2228 | 1444 | * problem_report.py, write_mime(): Use base64 encoding for gzipped | ||
2229 | 1445 | attachments, to not screw up mail servers. Thanks to Tim Yamin for this | ||
2230 | 1446 | patch! | ||
2231 | 1447 | * apport/crashdb.py: Drop the last argument (-1), since it is the default | ||
2232 | 1448 | anyway and did not yet exist on Python 2.4. | ||
2233 | 1449 | |||
2234 | 1450 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 21 Aug 2007 14:11:48 +0200 | ||
2235 | 1451 | |||
2236 | 1452 | apport (0.95) gutsy; urgency=low | ||
2237 | 1453 | |||
2238 | 1454 | * general-hooks/automatix.py: Remove hashbang, it's not an executable | ||
2239 | 1455 | script. | ||
2240 | 1456 | * apport/report.py: Support system-wide blacklisting: | ||
2241 | 1457 | /etc/apport/blacklist.d/. Add test cases. | ||
2242 | 1458 | * Add doc/README.blacklist: Document blacklist.d/, install it there in | ||
2243 | 1459 | setup.py. | ||
2244 | 1460 | * debian/rules: Blacklist wine-preloader, so that we ignore wine crashes | ||
2245 | 1461 | until an appropriate way is found to deal with them. (Point 6 of | ||
2246 | 1462 | apport-better-retracing spec.) | ||
2247 | 1463 | |||
2248 | 1464 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 11 Aug 2007 18:10:54 +0200 | ||
2249 | 1465 | |||
2250 | 1466 | apport (0.94) gutsy; urgency=low | ||
2251 | 1467 | |||
2252 | 1468 | * doc/data-format.tex: Some updates to incorporate feedback from Gnome | ||
2253 | 1469 | upstream: | ||
2254 | 1470 | - Do not talk about "Distributions" any more, but "Operating systems". | ||
2255 | 1471 | Gnome is used on non-Linux OSs, too. | ||
2256 | 1472 | - Split "DistroRelease:" field into "OS:" and "OSRelease:". | ||
2257 | 1473 | - Explicitly mention that CoreDump, StackTrace etc. can also contain | ||
2258 | 1474 | minidump output. | ||
2259 | 1475 | - Increase document version to 0.2. | ||
2260 | 1476 | * apport/report.py, obsolete_packages(): Fix crash when apt does not know an | ||
2261 | 1477 | available version of a package. (LP: #128176) | ||
2262 | 1478 | * test-apport: Add check that apport aborts immediately if another apport | ||
2263 | 1479 | instance is already running. Also test that a symlink attack on the lock | ||
2264 | 1480 | file is not possible. | ||
2265 | 1481 | * bin/apport: Abort running several apport instances at the same time, by | ||
2266 | 1482 | lockf()'ing /var/crashes/.lock and aborting on failure. (LP: #119622) | ||
2267 | 1483 | * Add bin/gcc_ice_hook: Script to create an apport report for a gcc ICE | ||
2268 | 1484 | (internal compiler exception). Add test cases to test-hooks, and ship it | ||
2269 | 1485 | in the 'apport' package. (LP: #125551) | ||
2270 | 1486 | * run-tests: In 'local' mode, only explicitly run the apt/dpkg | ||
2271 | 1487 | implementation instead of backends/*, since the RPM ones don't have tests | ||
2272 | 1488 | yet. | ||
2273 | 1489 | * apport/crashdb.py: Add a second optional parameter to upload() to specify | ||
2274 | 1490 | an upload progress callback function. Adapt the declarations in the | ||
2275 | 1491 | Launchpad and Memory implementations, too. | ||
2276 | 1492 | * apport/crashdb_impl/launchpad.py, upload(): Pass upload progress callback | ||
2277 | 1493 | handler to launchpadBugs.storeblob.upload(), which supports this since | ||
2278 | 1494 | version 0.2~39. Bump dependency to it accordingly. | ||
2279 | 1495 | * apport/ui.py, file_report(): Define an upload progress callback handler, | ||
2280 | 1496 | pass it to the crashdb upload(), and feed ui_set_upload_progress() with | ||
2281 | 1497 | some actual data. (LP: #91521) | ||
2282 | 1498 | * problem_report.py: Remove support for reading bz2 compressed binary data. | ||
2283 | 1499 | That was only relevant during edgy's development cycle. | ||
2284 | 1500 | * apport/report.py, test_add_proc_info(): Fix determination of /bin/zgrep | ||
2285 | 1501 | interpreter. | ||
2286 | 1502 | * problem_report.py: Switch encoding of binary values from bare zlib to | ||
2287 | 1503 | proper gzip format, since this is much more useful when reusing the | ||
2288 | 1504 | compressed value. Retain support for zlib-only reports. Add test cases for | ||
2289 | 1505 | both old and new encodings, and adapt the other test cases for the new | ||
2290 | 1506 | format. Update doc/data-format.tex accordingly. | ||
2291 | 1507 | * problem_report.py, write(): Add new permitted 'binary' argument value | ||
2292 | 1508 | 'compressed', which retains gzip compressed binary values instead of | ||
2293 | 1509 | unpacking them transparently. Add test cases. | ||
2294 | 1510 | * problem_report, write_mime(): Eliminate unnecessary usage of StringIO. | ||
2295 | 1511 | * problem_report, write_mime(): Make function work for compressed binary | ||
2296 | 1512 | values. Add test case. | ||
2297 | 1513 | * apport/report.py, add_gdb_info(): Make function work if CoreDump is a | ||
2298 | 1514 | compressed value. | ||
2299 | 1515 | * apport/ui.py: Load crash report with keeping compressed binaries. This | ||
2300 | 1516 | avoids loading the entire uncompressed core dump into memory, and avoids | ||
2301 | 1517 | recompressing it all over again for generating the crash database upload | ||
2302 | 1518 | MIME document. This greatly speeds up crash reporting, too. (LP: #98562) | ||
2303 | 1519 | |||
2304 | 1520 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 31 Jul 2007 21:32:00 +0200 | ||
2305 | 1521 | |||
2306 | 1522 | apport (0.93) gutsy; urgency=low | ||
2307 | 1523 | |||
2308 | 1524 | * apport/crashdb.py: Set sqlite connect timeout to two hours, instead of the | ||
2309 | 1525 | default 5 seconds. Previously, one retracer always crashed when the other | ||
2310 | 1526 | was consolidating the database. | ||
2311 | 1527 | * bin/dupdb-admin, command_dump(): Correctly interpret empty version strings | ||
2312 | 1528 | as 'fixed in unknown verrsion', not 'unfixed'. | ||
2313 | 1529 | * apport/crashdb_impl/launchpad.py: Fix typo in bug comment string. | ||
2314 | 1530 | * apport/crashdb_impl/launchpad.py: Add function get_source_info() which | ||
2315 | 1531 | parses out release, version, and component from | ||
2316 | 1532 | https://launchpad.net/$DISTRO/+source/$PACKAGE. | ||
2317 | 1533 | * apport/crashdb_impl/launchpad.py, get_fixed_version(): If a bug is fixed, | ||
2318 | 1534 | return the current version (as approximation of the version where the bug | ||
2319 | 1535 | was fixed), instead of an empty string (which meant 'fixed in unknown | ||
2320 | 1536 | version'). [apport-crash-duplicates spec] | ||
2321 | 1537 | |||
2322 | 1538 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 25 Jul 2007 17:04:27 +0200 | ||
2323 | 1539 | |||
2324 | 1540 | apport (0.92) gutsy; urgency=low | ||
2325 | 1541 | |||
2326 | 1542 | * bin/crash-digger: Do not crash if duplicate db is locked when attempting | ||
2327 | 1543 | to consolidate it. This happens often because in the DC we have two | ||
2328 | 1544 | parallel instances (for amd64 and i386). | ||
2329 | 1545 | * Move ubuntu-fat-chroot from bin/ to debian/local/, since it is so heavily | ||
2330 | 1546 | Ubuntu specific. | ||
2331 | 1547 | * debian/local/ubuntu-fat-chroot: Use diversions for the binaries we want to | ||
2332 | 1548 | disable, so that chroot upgrades do not trash the modifications. | ||
2333 | 1549 | * debian/local/setup-apport-retracer: launchpad-crash-digger -> | ||
2334 | 1550 | crash-digger. | ||
2335 | 1551 | * bin/crash-digger: Add option -i/--arch-indep-dupcheck to explicitly enable | ||
2336 | 1552 | duplicate checking of arch-independent crashes like Python exceptions. We | ||
2337 | 1553 | only want to process them on one architecture to avoid scattering the | ||
2338 | 1554 | duplicate database. | ||
2339 | 1555 | * apport/crashdb_impl/launchpad.py, get_unfixed(): Search for 'apport-crash' | ||
2340 | 1556 | tag, not 'apport'. | ||
2341 | 1557 | * bin/apport-unpack: Fix format string in error message. | ||
2342 | 1558 | * apport/ui.py, __init__(): Intercept ImportError, which can happen for | ||
2343 | 1559 | crashes during system upgrades. (LP: #124354) | ||
2344 | 1560 | * Add general-hooks/automatix.py: Refuse to send problem reports if | ||
2345 | 1561 | automatix is installed. | ||
2346 | 1562 | * doc/package-hooks.txt: Do not document UnsupportableReason, since it does | ||
2347 | 1563 | not make sense to set it in package hooks (it is checked before calling | ||
2348 | 1564 | the hooks). Hooks should use UnreportableReason only. | ||
2349 | 1565 | * apport/ui.py, test_run_crash_package(): Check that 'Package' problem | ||
2350 | 1566 | reports collect additional information, too. | ||
2351 | 1567 | * apport/ui.py, collect_info(): Collect additional information for 'Package' | ||
2352 | 1568 | problem reports, too. | ||
2353 | 1569 | * Revive preloadlib/: | ||
2354 | 1570 | - Remove PIPE_CORE #ifdefs and make them the default. We do not need to | ||
2355 | 1571 | support the Edgy kernel patches in this version any more. | ||
2356 | 1572 | - Install signal handler for SIGABRT, too. | ||
2357 | 1573 | - Read core ulimit, pass it to apport in CORE_REAL_RLIM, and set it to | ||
2358 | 1574 | zero for the program, since we do not actually want the kernel to write | ||
2359 | 1575 | core files when we pipe the core dump to apport. | ||
2360 | 1576 | - test-apport: Pass APPORT_REPORT_DIR to the manually called apport | ||
2361 | 1577 | instance in the memory clipping test; otherwise it'll write into | ||
2362 | 1578 | /var/crash/, which we do not consider in library mode. | ||
2363 | 1579 | * apport/crashdb_impl/launchpad.py, __init__(): Only do the "download bug | ||
2364 | 1580 | #2" hack if we actually have an authentication cookie. Thus, do it only on | ||
2365 | 1581 | the retracing servers, not on the client side. (LP: #125142) | ||
2366 | 1582 | * apport/report.py, crash_signature(): Generate a signature for one-line | ||
2367 | 1583 | Python tracebacks, too. This sometimes seems to happen, e. g. LP#124588. | ||
2368 | 1584 | (LP: #125020) | ||
2369 | 1585 | * apport/crashdb_impl/launchpad.py, update(): Set bug importance to Medium | ||
2370 | 1586 | if retracing was successful. (LP: #106379) | ||
2371 | 1587 | |||
2372 | 1588 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Jul 2007 21:50:34 +0200 | ||
2373 | 1589 | |||
2374 | 1590 | apport (0.91) gutsy; urgency=low | ||
2375 | 1591 | |||
2376 | 1592 | * bin/apport: Remove code that supported the Edgy kernel way of core dump | ||
2377 | 1593 | passing. Also factorize the CORE_REAL_RLIM evaluation, since it is likely | ||
2378 | 1594 | to change in the near future. | ||
2379 | 1595 | * apport/crashdb_impl/launchpad.py, close_duplicate(): Delete some | ||
2380 | 1596 | attachments, as specified in apport-crash-duplicates spec, and make the | ||
2381 | 1597 | bug public afterwards. | ||
2382 | 1598 | * apport/crashdb_impl/launchpad.py, close_duplicate(): If the master bug is | ||
2383 | 1599 | already duped to yet another bug, mark the bug to that one instead of the | ||
2384 | 1600 | master. | ||
2385 | 1601 | * apport/crashdb.py: Split out duplicate_db_last_consolidation() for getting | ||
2386 | 1602 | the date (or seconds since) the last consolidation, so that we can use it | ||
2387 | 1603 | externally. | ||
2388 | 1604 | * apport/crashdb.py: Add duplicate_db_change_master_id() to change the | ||
2389 | 1605 | master ID of a crash. Add test case to apport/crashdb_impl/memory.py. | ||
2390 | 1606 | * Add bin/dupdb-admin: Initial version of duplicate db CLI app; can dump the | ||
2391 | 1607 | db, display consolidation state, and change master bug IDs for now. Ship | ||
2392 | 1608 | it in apport-retrace. | ||
2393 | 1609 | * apport/crashdb.py, duplicate_db_last_consolidation(): Fix timedelta | ||
2394 | 1610 | seconds calculation to actually take the days into account, too. | ||
2395 | 1611 | * bin/crash-digger: Fix dumping of dup db after consolidation. | ||
2396 | 1612 | * apport/ui.py: | ||
2397 | 1613 | - test_run_report_bug_package(): Add test case for calling the UI in bug | ||
2398 | 1614 | filing mode with an invalid package name. | ||
2399 | 1615 | - run_report_bug(): Do not crash on invalid package name, generate an | ||
2400 | 1616 | error message instead. (LP: #123644) | ||
2401 | 1617 | * apport/fileutils.py, mark_report_seen(): Do not crash if the file has | ||
2402 | 1618 | already been deleted underneath us. (LP: #122347) | ||
2403 | 1619 | * apport/ui.py, run_report_bug(): Do not crash if the target process runs as | ||
2404 | 1620 | a different user. Print a proper error message instead. Add test case | ||
2405 | 1621 | test_run_report_bug_noperm_pid(). (LP: #121121) | ||
2406 | 1622 | * apport/fileutils.py, likely_packaged(): Ignore /var/lib/schroot. Add test | ||
2407 | 1623 | case. (LP: #122859) | ||
2408 | 1624 | * apport/ui.py, open_url(): Intercept weird race condition for os.close() | ||
2409 | 1625 | trying to close an already invalidated fd. (LP: #123180) | ||
2410 | 1626 | |||
2411 | 1627 | Merge the fedora branch, thanks to Will Woods <wwoods@redhat.com>: | ||
2412 | 1628 | |||
2413 | 1629 | * Add apport.init.fedora: Fedora specific init script. | ||
2414 | 1630 | * Add apport.spec: RPM build recipe. | ||
2415 | 1631 | * Add backends/packaging_rpm.py: Partial implementation of the packaging | ||
2416 | 1632 | backend for RPM which applies to all RPM-based distros. | ||
2417 | 1633 | * Add backends/packaging_fedora.py: Concrete packaging backend | ||
2418 | 1634 | implementation for Fedora. | ||
2419 | 1635 | * apport/elfcore.py: Classes for parsing general ELF files, and information | ||
2420 | 1636 | from core dumps. | ||
2421 | 1637 | * bin/apport: Fall back to reading signal number and PID directly from the | ||
2422 | 1638 | core file (via elfcore.py) if CORE_SIGNAL and CORE_PID are not defined (i. | ||
2423 | 1639 | e. when running on a non-Ubuntu kernel). | ||
2424 | 1640 | * crashdb.conf: Add stanzas for Fedora and a 'debug' database which uses the | ||
2425 | 1641 | 'memory' crashdb implementation. | ||
2426 | 1642 | |||
2427 | 1643 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 14 Jul 2007 15:08:35 +0200 | ||
2428 | 1644 | |||
2429 | 1645 | apport (0.90) gutsy; urgency=low | ||
2430 | 1646 | |||
2431 | 1647 | * apport/ui.py, load_report(): Catch IOError, too. LP: #118827 | ||
2432 | 1648 | * Merge apport-cli package into apport itself. The program itself is just 3 | ||
2433 | 1649 | kB compressed, and it's not worth wasting another 34 kB compressed | ||
2434 | 1650 | changelog for this tiny bit. | ||
2435 | 1651 | * apport/report.py, obsolete_packages(): Use the version comparison from the | ||
2436 | 1652 | packaging system instead of just testing for inequality. This catches zero | ||
2437 | 1653 | epochs. Thanks to Will Woods <wwoods@redhat.com>! | ||
2438 | 1654 | * apport/ui.py: Add option -c/--crash-file to run the UI with a particular | ||
2439 | 1655 | crash file (which can be anywhere) instead of all pending crashes in | ||
2440 | 1656 | /var/crash/. | ||
2441 | 1657 | * Add xdg-mime/apport.xml: XDG MIME type definition for .crash files. | ||
2442 | 1658 | * Add gtk/apport-gtk-mime.desktop.in: Link text/x-apport MIME type to | ||
2443 | 1659 | apport-gtk -c, so that .crash files can be reported with Gnome. | ||
2444 | 1660 | * Add debian/apport.links: Install an icon symlink for the MIME type. | ||
2445 | 1661 | * apport/ui.py: Do not ask the initial "Do you want to report this?" | ||
2446 | 1662 | question when being invoked with --crash-file. | ||
2447 | 1663 | * po/POTFILES.in: Add missing cli/apport-cli. | ||
2448 | 1664 | * po/de.po: Updated for apport-cli. | ||
2449 | 1665 | * cli/apport-cli: Add option for keeping the report file without sending it, | ||
2450 | 1666 | and to display its path. This is for sending the report later, copying | ||
2451 | 1667 | it from a server to a workstation with internet connection, etc. | ||
2452 | 1668 | * apport/crashdb_impl/launchpad.py: Simplify _subscribe_triaging_team(), now | ||
2453 | 1669 | that we do not differ between main and universe policies any more. | ||
2454 | 1670 | * apport/report.py: Support another hook directory | ||
2455 | 1671 | /usr/share/apport/general-hooks/ for scripts which are run for every | ||
2456 | 1672 | problem report. This was requested for adding e. g. AppArmor logs, etc. | ||
2457 | 1673 | Add test cases. | ||
2458 | 1674 | * Add debian/apport.dirs again to ship that hook directory. | ||
2459 | 1675 | * doc/package-hooks.txt: Document the general hooks. | ||
2460 | 1676 | |||
2461 | 1677 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Jul 2007 21:10:19 +0100 | ||
2462 | 1678 | |||
2463 | 1679 | apport (0.89) gutsy; urgency=low | ||
2464 | 1680 | |||
2465 | 1681 | Implement private crash bug handling, according to | ||
2466 | 1682 | https://wiki.ubuntu.com/CrashReporting: | ||
2467 | 1683 | |||
2468 | 1684 | * apport/crashdb_impl/launchpad.py: | ||
2469 | 1685 | - upload(): If we have an Ubuntu bug, mark it as private and only | ||
2470 | 1686 | subscribe 'apport' (the 'Apport retracing service' user). | ||
2471 | 1687 | - Add function _subscribe_triaging_team() which subscribes | ||
2472 | 1688 | ubuntu-crashes-main for source packages in Ubuntu main or restricted, or | ||
2473 | 1689 | ubuntu-crashes-universe for other packages. It does not touch non-Ubuntu | ||
2474 | 1690 | bugs, since these are not marked private by default and are outside of | ||
2475 | 1691 | the scope of this spec. | ||
2476 | 1692 | - update(), _mark_dup_checked(): Call _subscribe_triaging_team(). | ||
2477 | 1693 | - Note: This entire spec is a gross hack, and Ubuntu derivatives do not | ||
2478 | 1694 | benefit from it at all. We have to live with this until LP grows a real | ||
2479 | 1695 | crash database. | ||
2480 | 1696 | - get_distro_release(): Make this function work with private bugs, too, by | ||
2481 | 1697 | using p-lp-bugs' safe_urlopen(). | ||
2482 | 1698 | |||
2483 | 1699 | Bug fixes: | ||
2484 | 1700 | |||
2485 | 1701 | * apport/crashdb_impl/launchpad.py: Revert simplification change of 0.85: | ||
2486 | 1702 | BugList returns a set of strings, not integers; due to non-identity they | ||
2487 | 1703 | do not work with the usual set operations. | ||
2488 | 1704 | * apport/crashdb_impl/launchpad.py: Add function get_source_component() to | ||
2489 | 1705 | query Launchpad for the component of a given distribution and source | ||
2490 | 1706 | package. (This will be required for implementing crash-reporting). | ||
2491 | 1707 | * backends/packaging-apt-dpkg.py, _search_contents(): Package list is | ||
2492 | 1708 | actually comma separated, only take the first item. This fixes retracing | ||
2493 | 1709 | of e. g. #124139. | ||
2494 | 1710 | * backends/packaging-apt-dpkg.py, _search_contents(): Fix package name | ||
2495 | 1711 | parsing for non-main components. This fixes retracing of e. g. #124111. | ||
2496 | 1712 | * apport/report.py, _read_maps(): Revert ptrace hack when maps cannot be | ||
2497 | 1713 | read. maps file is now protected based on process ownership, not ptracing. | ||
2498 | 1714 | * apport/crashdb.py, apport/crashdb_impl/launchpad.py, | ||
2499 | 1715 | apport/crashdb_impl/memory.py: Remove official interface | ||
2500 | 1716 | mark_dup_checked(), as it should only be an internally used function. Add | ||
2501 | 1717 | report parameter, since we will need it there in the future. Remove | ||
2502 | 1718 | explicit call from bin/crash-digger and instead change check_duplicate() | ||
2503 | 1719 | to call it on its own. | ||
2504 | 1720 | * apport/crashdb_impl/launchpad.py, download(): Replace dodgy parsing of | ||
2505 | 1721 | fields from the description with proper code, so that multi-line fields | ||
2506 | 1722 | are read correctly, too. | ||
2507 | 1723 | |||
2508 | 1724 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 06 Jul 2007 11:19:22 +0200 | ||
2509 | 1725 | |||
2510 | 1726 | apport (0.88) gutsy; urgency=low | ||
2511 | 1727 | |||
2512 | 1728 | * po/de.po: Update. | ||
2513 | 1729 | * backends/packaging-apt-dpkg.py, _search_contents(): Do not check the | ||
2514 | 1730 | return value of zgrep. It usually errors out with 'stdout: broken pipe' | ||
2515 | 1731 | when called with -m1. | ||
2516 | 1732 | * bin/crash-digger: Mark a bug as retraced if DistroRelease: cannot be | ||
2517 | 1733 | determined. Those are bugs apport cannot handle. | ||
2518 | 1734 | * backends/packaging-apt-dpkg.py, get_source_tree(): Call apt-get source | ||
2519 | 1735 | with --assume-yes to not block on VCS confirmations. | ||
2520 | 1736 | * apport/crashdb.py: Add interface mark_retrace_failed(). Implement it in | ||
2521 | 1737 | apport/crashdb_impl/launchpad.py. | ||
2522 | 1738 | * bin/apport-retrace: If retraced report does not have a crash signature, | ||
2523 | 1739 | mark it as failed with above new function. Bump python-apport dependency | ||
2524 | 1740 | for this. | ||
2525 | 1741 | * apport/crashdb_impl/launchpad.py, update(): Delete CoreDump.gz attachment | ||
2526 | 1742 | if the retrace was successful (i. e. if the report has a crash signature). | ||
2527 | 1743 | * apport/ui.py, test_run_crash(): Set the message box title, text, and | ||
2528 | 1744 | severity as assertion message if the run_crash() test fails, so that you | ||
2529 | 1745 | know why it fails. This usually happens if libc6 or another dependency of | ||
2530 | 1746 | the test crash is out of date. | ||
2531 | 1747 | * gtk/apport-gtk.glade: Mark string as translatable. LP: #119621 | ||
2532 | 1748 | |||
2533 | 1749 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 03 Jul 2007 21:38:05 +0200 | ||
2534 | 1750 | |||
2535 | 1751 | apport (0.87) gutsy; urgency=low | ||
2536 | 1752 | |||
2537 | 1753 | * apport/report.py: | ||
2538 | 1754 | - test_gen_stacktrace_top(): Add test case for unwinding a Gnome assertion | ||
2539 | 1755 | (g_logv(), g_assert_warning() and similar), see LP #123462. | ||
2540 | 1756 | - _gen_stacktrace_top(): Generalize for unwinding multiple functions and a | ||
2541 | 1757 | set of function names, and add the Gnome assertion ones. | ||
2542 | 1758 | |||
2543 | 1759 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Jul 2007 11:00:44 +0200 | ||
2544 | 1760 | |||
2545 | 1761 | apport (0.86) gutsy; urgency=low | ||
2546 | 1762 | |||
2547 | 1763 | * test-apport: Check that apport does not create reports for emtpy core | ||
2548 | 1764 | dumps. | ||
2549 | 1765 | * problem_report.py: Introduce a fourth optional parameter "fail_on_empty" | ||
2550 | 1766 | to file pointer tuples which causes write() to raise an IOError if no data | ||
2551 | 1767 | was read. Add test cases. | ||
2552 | 1768 | * bin/apport: Enforce non-emptyness of CoreDump. | ||
2553 | 1769 | * problem_report.py: Add test case for delayed piping of data passed as file | ||
2554 | 1770 | object pointers. This was supposed to explain the reason for getting bugs | ||
2555 | 1771 | with zero-byte core dumps, but already works correctly. | ||
2556 | 1772 | * apport/report.py, check_ignored(): round the mtime to an int (just like | ||
2557 | 1773 | mark_ignore() does), to not get wrong results on file systems that support | ||
2558 | 1774 | subsecond file timestamps. This fixes running the test suite on the live | ||
2559 | 1775 | CD. | ||
2560 | 1776 | * test-apport: Clarify assertion message if /var/crash is not empty. | ||
2561 | 1777 | |||
2562 | 1778 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jun 2007 19:14:36 +0200 | ||
2563 | 1779 | |||
2564 | 1780 | apport (0.85) gutsy; urgency=low | ||
2565 | 1781 | |||
2566 | 1782 | * apport/crashdb_impl/launchpad.py: BugList.bugs is already a set, simplify | ||
2567 | 1783 | code a bit. | ||
2568 | 1784 | * debian/control: Add dpkg-dev dependency to apport-retrace, for getting | ||
2569 | 1785 | dpkg-source. | ||
2570 | 1786 | * apport/report.py, crash_signature(): Allow ':' and '~' as part of function | ||
2571 | 1787 | names to cover C++. Adapt test case to cover this. | ||
2572 | 1788 | * apport/report.py test suite: Do not assume that /bin/zgrep uses /bin/sh, | ||
2573 | 1789 | it was recently changed to use bash. Directly read the interpreter from | ||
2574 | 1790 | the shebang line. | ||
2575 | 1791 | * bin/apport-chroot, command_upgrade(): Supply -y to 'apt-get upgrade' also | ||
2576 | 1792 | in verbose mode. | ||
2577 | 1793 | * bin/apport-chroot, command_upgrade(): Run 'apt-get clean' before | ||
2578 | 1794 | regenerating the chroot tarball. | ||
2579 | 1795 | * backends/packaging-apt-dpkg.py, get_dependencies(): Fix crash when | ||
2580 | 1796 | encountering a virtual package. LP: #122274 | ||
2581 | 1797 | * apport/report.py, obsolete_packages(): Do not consider virtual packages as | ||
2582 | 1798 | obsolete. | ||
2583 | 1799 | * apport/crashdb_impl/launchpad.py: Do a bogus call to Bug() in the ctor. | ||
2584 | 1800 | This initializes python-launchpad-bugs to use a cookie for the urlopen in | ||
2585 | 1801 | BugList, so that get_unretraced() and get_dup_unchecked() return private | ||
2586 | 1802 | bugs, too. This works around LP #122126. | ||
2587 | 1803 | |||
2588 | 1804 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 25 Jun 2007 16:38:43 +0200 | ||
2589 | 1805 | |||
2590 | 1806 | apport (0.84) gutsy; urgency=low | ||
2591 | 1807 | |||
2592 | 1808 | * apport/crashdb.py: Add new abstract methods: | ||
2593 | 1809 | - get_unretraced() and mark_retraced(id) to get a list of crashes that | ||
2594 | 1810 | need to be retraced and chalk them off. | ||
2595 | 1811 | - get_dup_unchecked() and mark_dup_checked() to get a list of crashes that | ||
2596 | 1812 | need to be checked for being a duplicate and chalk them off. This is | ||
2597 | 1813 | aimed at crashes which do not need retracing, such as unhandled Python | ||
2598 | 1814 | exceptions. | ||
2599 | 1815 | * apport/crashdb_impl/launchpad.py: Implement above methods for launchpad | ||
2600 | 1816 | (moving the code from bin/launchpad-crash-digger). | ||
2601 | 1817 | * apport/crashdb_impl/launchpad.py: Set "need-duplicate-check" tag for | ||
2602 | 1818 | Python crashes. | ||
2603 | 1819 | * apport/crashdb_impl/launchpad.py, download(): Fetch Traceback.txt, too, so | ||
2604 | 1820 | that we can do duplicate checking for Python crashes. | ||
2605 | 1821 | * bin/launchpad-crash-digger: Drop Launchpad specific code and replace it | ||
2606 | 1822 | with calls to above new functions. Rename to bin/crash-digger. Also rename | ||
2607 | 1823 | all 'cookie' to 'auth' (as happened with the other applications earlier). | ||
2608 | 1824 | * bin/crash-digger: Do duplicate checking for needs-duplicate-check crash | ||
2609 | 1825 | bugs (such as Python crashes). | ||
2610 | 1826 | * bin/apport-retrace, bin/crash-digger: More language cleanup; we should | ||
2611 | 1827 | stop talking about 'bugs' and use 'crash' consistently. | ||
2612 | 1828 | |||
2613 | 1829 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 14 Jun 2007 19:50:24 +0200 | ||
2614 | 1830 | |||
2615 | 1831 | apport (0.83) gutsy; urgency=low | ||
2616 | 1832 | |||
2617 | 1833 | * apport/crashdb.py: Separate abstract from implemented functions. | ||
2618 | 1834 | * apport/crashdb.py, apport/packaging.py, apport/ui.py: Use | ||
2619 | 1835 | NotImplementedError instead of Exception in the abstract methods. | ||
2620 | 1836 | * apport/packaging.py: Add interface compare_versions() for comparing | ||
2621 | 1837 | package version numbers. | ||
2622 | 1838 | * backends/packaging-apt-dpkg.py: Implement compare_versions() using | ||
2623 | 1839 | apt.VersionCompare(), add some test cases. | ||
2624 | 1840 | * apport/report.py: Fix typo: 'none' -> 'None'. | ||
2625 | 1841 | * apport/chroot.py: Do not include /usr/local/lib and /usr/lib in | ||
2626 | 1842 | LD_LIBRARY_PATH, just /lib, so that we still use the libc from outside, | ||
2627 | 1843 | but e. g. libxml2 from inside the chroot. | ||
2628 | 1844 | |||
2629 | 1845 | https://blueprints.launchpad.net/ubuntu/+spec/apport-crash-duplicates: Merge | ||
2630 | 1846 | crash-dups branch, which implements automatic crash duplicate detection: | ||
2631 | 1847 | |||
2632 | 1848 | * apport/crashdb.py: Add methods for crash duplicate detection. | ||
2633 | 1849 | * apport/crashdb_impl/memory.py: Change internal data management to track | ||
2634 | 1850 | fixed version and duplicates. | ||
2635 | 1851 | * apport/crashdb_impl/memory.py: Add a test suite for all methods, including | ||
2636 | 1852 | the duplicate detection API of the base CrashDatabase (since it is | ||
2637 | 1853 | much easier to test it here, on an actual implementation). | ||
2638 | 1854 | * debian/pyversions: Bump minimal Python version to 2.5, since this starts | ||
2639 | 1855 | providing the sqlite3 module. | ||
2640 | 1856 | * apport/crashdb_impl/launchpad.py: Implement new methods required for crash | ||
2641 | 1857 | duplicate detection. get_fixed_version() does not approximate version | ||
2642 | 1858 | tracking yet; it just returns '' for fixed bugs (which means 'fixed, but | ||
2643 | 1859 | unknown version'). Bump python-launchpad-bugs dependency for this to | ||
2644 | 1860 | ensure the availability of Bug.mark_duplicate(). | ||
2645 | 1861 | * bin/apport-retrace: Add option --duplicate-db which specifies the path to | ||
2646 | 1862 | the duplicate sqlite database and enables duplicate detection. | ||
2647 | 1863 | * Abin/apport-chroot: Add option --duplicate-db. If a file is given, symlink | ||
2648 | 1864 | it into the chroot and pass --duplicate-db to apport-retrace. | ||
2649 | 1865 | * bin/launchpad-crash-digger: Add --duplicate-db and pass it to | ||
2650 | 1866 | apport-chroot. | ||
2651 | 1867 | * apport/crashdb.py: Track last run of duplicate_db_consolidate() in an | ||
2652 | 1868 | extra table and add a method duplicate_db_needs_consolidation() which | ||
2653 | 1869 | returns True if the last run was more than a given number of seconds ago. | ||
2654 | 1870 | Add test cases to apport/crashdb_impl/memory.py. | ||
2655 | 1871 | * bin/launchpad-crash-digger, fill_pool(): Check whether the duplicate | ||
2656 | 1872 | database needs consolidation (i. e. updating the bug states to the reality | ||
2657 | 1873 | in the bug tracker) and if so, trigger it. | ||
2658 | 1874 | |||
2659 | 1875 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 13 Jun 2007 13:09:57 +0200 | ||
2660 | 1876 | |||
2661 | 1877 | apport (0.82) gutsy; urgency=low | ||
2662 | 1878 | |||
2663 | 1879 | * Add bin/ubuntu-fat-chroot: Script to install a set of commonly needed | ||
2664 | 1880 | packages into a minimal Ubuntu chroot (as created by apport-chroot). This | ||
2665 | 1881 | requires some hacking of postinst and /usr/sbin/ files in between the | ||
2666 | 1882 | installation stages and thus deserves a script on its own. | ||
2667 | 1883 | * apport/packaging.py: | ||
2668 | 1884 | - Add "uninstalled" option to get_file_package(). If set to True, this | ||
2669 | 1885 | will do an expensive search of files/packages which are not installed. | ||
2670 | 1886 | - Add interface "set_mirror(URL)" for functions which need to retrieve | ||
2671 | 1887 | packages and data from distribution mirrors. | ||
2672 | 1888 | * backends/packaging-apt-dpkg.py: Implement "uninstalled" option and | ||
2673 | 1889 | "set_mirror(URL)", add test cases. | ||
2674 | 1890 | * bin/apport-retrace: Use "uninstalled" option now to install packages and | ||
2675 | 1891 | corresponding -dbgsyms for uninstalled files mentioned in ProcMaps | ||
2676 | 1892 | (Point 1 of apport-better-retracing spec). Bump python-apport dependency. | ||
2677 | 1893 | * apport/packaging.py: Add interface get_available_version(package). | ||
2678 | 1894 | * backends/packaging-apt-dpkg.py: Implement get_available_version(), add | ||
2679 | 1895 | shallow test case. | ||
2680 | 1896 | * apport/report.py: Add function obsolete_packages() to return packages in | ||
2681 | 1897 | Package: and Depends: which are not up to date. Add test cases. | ||
2682 | 1898 | * apport/ui.py, thread_collect_info(): For crashes, call obsolete_packages() | ||
2683 | 1899 | and set UnreportableReason: if there are any (Point 2 of | ||
2684 | 1900 | apport-better-retracing spec). | ||
2685 | 1901 | * apport/ui.py, thread_collect_info(): call standard_title() and add it to | ||
2686 | 1902 | the report as 'Title' field. This is useful if reporters modify the | ||
2687 | 1903 | default title (per request of Brian Murray, thanks). Add test case. | ||
2688 | 1904 | * apport/ui.py: Fix declaration of the test suite's | ||
2689 | 1905 | ui_set_upload_progress(). Funny that this has never been triggered before. | ||
2690 | 1906 | * apport/report.py, add_gdb_info(): Split out StacktraceTop generation into | ||
2691 | 1907 | separate funtion _gen_stacktrace_top(), so that we can test it separately. | ||
2692 | 1908 | * apport/report.py, _gen_stacktrace_top(): Step back from the crashed | ||
2693 | 1909 | program's own signal handlers, since those are generally not useful for | ||
2694 | 1910 | the purposes of StacktraceTop and only impede duplicate matching | ||
2695 | 1911 | (Point 4 of apport-better-retracing spec). Add various test cases. | ||
2696 | 1912 | * apport/report.py: Add method crash_signature() to calculate an unique | ||
2697 | 1913 | identifier of a signal or Python crash, to be used for duplicate | ||
2698 | 1914 | detection. Add various test cases. | ||
2699 | 1915 | * apport/packaging.py: Add interface get_source_tree() to fetch and unpack a | ||
2700 | 1916 | source package to a given directory, optionally specifying a particular | ||
2701 | 1917 | version. | ||
2702 | 1918 | * backends/packaging-apt-dpkg.py: Implement get_source_tree(). This has a | ||
2703 | 1919 | rather crude 'call apt-get source and guess about directories' | ||
2704 | 1920 | implementation until python-apt learns about doing this directly and more | ||
2705 | 1921 | elegantly (see LP #118788). | ||
2706 | 1922 | * bin/apport-retrace: Add gen_source_stacktrace() and a few helper functions | ||
2707 | 1923 | to construct a field 'StacktraceSource' with the source code around the | ||
2708 | 1924 | affected lines in the stack trace (as available). (Point 5 of | ||
2709 | 1925 | apport-better-retracing spec). | ||
2710 | 1926 | * apport/crashdb_impl/launchpad.py, update(): Attach StacktraceSource to the | ||
2711 | 1927 | bug if it exists. | ||
2712 | 1928 | * apport/crashdb_impl/launchpad.py: Check PackageArchitecture for 'all', to | ||
2713 | 1929 | not set a retracer tag 'need-all-retrace'. | ||
2714 | 1930 | * test-apport: Clarify assertion failure message when an unexpected core | ||
2715 | 1931 | dump is present. | ||
2716 | 1932 | * apport/report.py, get_module_license(): Do not iterate over Popen.stdout, | ||
2717 | 1933 | use communicate() instead. The latter is already fixed to not trip over | ||
2718 | 1934 | SIGINTR. (LP: #118965) | ||
2719 | 1935 | |||
2720 | 1936 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 08 Jun 2007 07:47:04 +0200 | ||
2721 | 1937 | |||
2722 | 1938 | apport (0.81) gutsy; urgency=low | ||
2723 | 1939 | |||
2724 | 1940 | * apport/report.py: Remove '[apport]' default bug title prefix. (LP: #94819) | ||
2725 | 1941 | * apport/crashdb_impl/launchpad.py: Tag new bugs with | ||
2726 | 1942 | 'apport-<problemtype>'. This replaces the former '[apport]' prefixing. | ||
2727 | 1943 | * debian/local/setup-apport-retracer: Specify a path in '.' command and | ||
2728 | 1944 | use sh again. Yay for me needing three attempts before actually RTFMing | ||
2729 | 1945 | how '.' works (which is really nasty and strange IMHO). | ||
2730 | 1946 | * bin/apport-chroot: Fix symlinks before repackaging the chroot tarball in | ||
2731 | 1947 | 'install' and 'installdeb' modes. | ||
2732 | 1948 | * debian/local/setup-apport-retracer: Install python-libxml2 and python-apt. | ||
2733 | 1949 | * bin/launchpad-crash-digger: Supply --auth instead of the deprecated | ||
2734 | 1950 | --cookie to apport-chroot. | ||
2735 | 1951 | * bin/apport-chroot: Fix identifier name in command_retrace(). | ||
2736 | 1952 | * debian/local/setup-apport-retracer: Set APPORT_CRASHDB_CONF to the local | ||
2737 | 1953 | crashdb.conf. | ||
2738 | 1954 | * bin/apport-chroot: Unset APPORT_CRASHDB_CONF for login and retrace. | ||
2739 | 1955 | * bin/launchpad-crash-digger: Check the release of a bug and whether we have | ||
2740 | 1956 | a chroot for it before untagging it. This avoids loosing tags for bugs we | ||
2741 | 1957 | do not yet have a working retracer chroot for. | ||
2742 | 1958 | * bin/apport-retrace: Do not abort with an exception if package installation | ||
2743 | 1959 | fails. Give a proper error message instead and point to -u. (LP: #115681) | ||
2744 | 1960 | * apport/crashdb_impl/launchpad.py, update(): Create a temporary directory | ||
2745 | 1961 | and use proper file names for the new attachments. With TemporaryFile(), | ||
2746 | 1962 | attachment file names ended up as '<fdopen>'. (LP: #115347) | ||
2747 | 1963 | * apport/report.py, add_os_info(): Add field 'NonfreeKernelModules' which | ||
2748 | 1964 | lists loaded kernel modules which do not have a FOSS license. This is | ||
2749 | 1965 | particularly helpful for quickly checking for restricted graphics drivers. | ||
2750 | 1966 | (LP: #103239) | ||
2751 | 1967 | * apport_python_hook.py: Move the apport.* imports into the try: block and | ||
2752 | 1968 | move the likely_packaged() test to the top, to avoid importing | ||
2753 | 1969 | apport.report and creating a Report object for non-packaged scripts. This | ||
2754 | 1970 | makes the entire code more efficient and robust against errors in the | ||
2755 | 1971 | apport modules. (LP: #109955) | ||
2756 | 1972 | * apport/report.py, add_gdb_info(): Intercept OSError from gdb invocation | ||
2757 | 1973 | (which might be segfaulting itself) and just do not put any gdb output | ||
2758 | 1974 | into the report. The automatic retracers can try their luck again. | ||
2759 | 1975 | (LP: #112501) | ||
2760 | 1976 | * bin/apport-retrace: Fix handling of packages which are still known to | ||
2761 | 1977 | /var/lib/dpkg/status, but do not have an apt record any more; treat them | ||
2762 | 1978 | like virtual packages and just issue a warning instead of falling over. | ||
2763 | 1979 | (LP: #107474) | ||
2764 | 1980 | * Add doc/data-format.tex: Documentation of the structure, encoding, and | ||
2765 | 1981 | standard keys of the Apport report file format. [apport-for-upstreams | ||
2766 | 1982 | blueprint] | ||
2767 | 1983 | * Add doc/Makefile: Build and clean rules for generating data-format.pdf. | ||
2768 | 1984 | * debian/rules, setup.py: Call doc/Makefile and install the PDF | ||
2769 | 1985 | documentation. Add texlive-latex-recommended build dependency for that. | ||
2770 | 1986 | |||
2771 | 1987 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 24 May 2007 19:39:12 +0200 | ||
2772 | 1988 | |||
2773 | 1989 | apport (0.80) gutsy; urgency=low | ||
2774 | 1990 | |||
2775 | 1991 | Collect all Launchpad specific bits in a separate class and provide an | ||
2776 | 1992 | abstract base class. This will greatly help for getting upstream acceptance | ||
2777 | 1993 | and the possibility of automatically forwarding crashes upstream | ||
2778 | 1994 | (apport-for-upstreams specification): | ||
2779 | 1995 | |||
2780 | 1996 | * Add apport/crashdb.py: Abstract crash database interface. This also offers | ||
2781 | 1997 | a factory function get_crashdb() which reads a configuration file to find | ||
2782 | 1998 | the default crash database to be used. | ||
2783 | 1999 | * Add ./crashdb.conf: Crash database configuration file, for Ubuntu on | ||
2784 | 2000 | Launchpad. Modify setup.py and debian/python-apport.install to ship it in | ||
2785 | 2001 | python-apport. | ||
2786 | 2002 | * Add apport/crashdb_impl/memory.py: Simple in-memory implementation of | ||
2787 | 2003 | crash database interface for testing. | ||
2788 | 2004 | * Add apport/crashdb_impl/launchpad.py: Launchpad implementation of crash | ||
2789 | 2005 | database interface. | ||
2790 | 2006 | * apport/ui.py: Drop LP specific bits and move towards new CrashDatabase | ||
2791 | 2007 | interface. | ||
2792 | 2008 | * apport/ui.py, test suite: Do not overwrite file_report() any more, but | ||
2793 | 2009 | use the memory CrashDatabase. This will test the actual file_report() | ||
2794 | 2010 | implementation and allows the test suite to check the precise value of | ||
2795 | 2011 | opened URLs. | ||
2796 | 2012 | * apport/{report,ui}.py: Move UserInterface.create_crash_bug_title() and its | ||
2797 | 2013 | test cases to Report.standard_title(). It is much more appropriate there | ||
2798 | 2014 | and can be used in the retracer as well. | ||
2799 | 2015 | * bin/apport-retrace: Drop LP specific bits and move to CrashDatabase | ||
2800 | 2016 | interface. Remove the --remove-tag option, we really should not have it | ||
2801 | 2017 | here; remove it from man/apport-retrace.1 as well. | ||
2802 | 2018 | * bin/apport-chroot: Drop --remove-tag option here, too. | ||
2803 | 2019 | * bin/apport-chroot: Drop LP specific bits and move to CrashDatabase | ||
2804 | 2020 | interface. | ||
2805 | 2021 | * bin/launchpad-crash-digger: Remove retracing tag directly instead of | ||
2806 | 2022 | passing --remove-tag to apport-chroot. This is a much cleaner design and | ||
2807 | 2023 | avoids infinitely looping on some weirdly failing retraces. | ||
2808 | 2024 | * debian/control: Bump some python-apport dependencies for the API changes. | ||
2809 | 2025 | |||
2810 | 2026 | Some debranding: | ||
2811 | 2027 | |||
2812 | 2028 | * setup.py: Use apport wiki home page for 'url'. | ||
2813 | 2029 | * Remove 'X-Ubuntu-Gettext-Domain' from *.desktop.in, since langpack.mk will | ||
2814 | 2030 | add it automatically now. | ||
2815 | 2031 | * *.desktop.in: Remove 'in Ubuntu' from comment. | ||
2816 | 2032 | * cli/apport-cli, qt4/apport-qt: Generalize window titles. | ||
2817 | 2033 | |||
2818 | 2034 | Other fixes: | ||
2819 | 2035 | * po/de.po: Update. | ||
2820 | 2036 | * debian/local/setup-apport-retracer: Revert back 'source' to '.' and use | ||
2821 | 2037 | bash instead of sh. POSIX sh does not seem to have a 'source' command. | ||
2822 | 2038 | |||
2823 | 2039 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 21 May 2007 19:25:31 +0200 | ||
2824 | 2040 | |||
2825 | 2041 | apport (0.79) gutsy; urgency=low | ||
2826 | 2042 | |||
2827 | 2043 | * debian/local/setup-apport-retracer: Fix '.' bashism, replace it with | ||
2828 | 2044 | 'source'. | ||
2829 | 2045 | * problem_report.py, write_mime(): Drop preamble argument, replace it with | ||
2830 | 2046 | an extra_headers dictionary. This is much easier to evaluate on clients. | ||
2831 | 2047 | * apport/ui.py: Convert to new write_mime() interface from above. This | ||
2832 | 2048 | finally automatically tags bugs with need-$ARCH-retrace. Bump | ||
2833 | 2049 | p-problem-report dependency of python-apport for this. | ||
2834 | 2050 | * apport/report.py: Change example URLs in the testsuite from launchpad to | ||
2835 | 2051 | an artificial ones to avoid the impression that it is LP specific. | ||
2836 | 2052 | * backends/packaging-apt-dpkg.py: Formally make this a subclass of | ||
2837 | 2053 | apport.packaging.PackageInfo. | ||
2838 | 2054 | * debian/control: Use code.lp.net instead of bazaar.lp.net VCS URL. | ||
2839 | 2055 | * bin/kernel_hook: Fix/improve the collected information: | ||
2840 | 2056 | - Read /proc/modules instead of lsmod. | ||
2841 | 2057 | - Fix lspci argument: -n instead of -m. | ||
2842 | 2058 | - Add /proc/cmdline. | ||
2843 | 2059 | * debian/rules: Use langpack.mk for updating the .desktop files. | ||
2844 | 2060 | * Add po/Makevars to specify the domain, to make intltool figure out the | ||
2845 | 2061 | gettext domain automatically. | ||
2846 | 2062 | * bin/kernel_hook, ./test-hooks: Do not rely on /proc/version_signature any | ||
2847 | 2063 | more, it's gone in the gutsy kernel. | ||
2848 | 2064 | |||
2849 | 2065 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 21 May 2007 15:55:10 +0200 | ||
2850 | 2066 | |||
2851 | 2067 | apport (0.78) gutsy; urgency=low | ||
2852 | 2068 | |||
2853 | 2069 | * apport/packaging.py, backends/packaging-dpkg.py: Add new interface | ||
2854 | 2070 | is_distro_package(package) which verifies the origin of a given package. | ||
2855 | 2071 | Move the dodgy hack from apport/ui.py to the backend, where it belongs to. | ||
2856 | 2072 | Also add a test case. | ||
2857 | 2073 | * debian/control: Add python-apt dependency to python-apport. | ||
2858 | 2074 | * debian/control: Remove debianutils dependency, it's essential. | ||
2859 | 2075 | * Drop backends/packaging-dpkg.py. It had some hackish usage of python-apt | ||
2860 | 2076 | anyway, since some things just cannot be figured out with dpkg alone. | ||
2861 | 2077 | Since we have to give up on that idea, implement a new clean packaging | ||
2862 | 2078 | backend 'packaging-apt-dpkg.py' which now uses python-apt and dpkg in a | ||
2863 | 2079 | clean way. | ||
2864 | 2080 | * apport/report.py, add_gdb_info(): Fix crash when Stacktrace could not be | ||
2865 | 2081 | created. (LP: #107853) | ||
2866 | 2082 | * ./test-apport: Check that crashes create a core dump (with proper ulimits) | ||
2867 | 2083 | when an unseen crash report exists already. This reproduces LP #105976. | ||
2868 | 2084 | * bin/apport: Create core dump file if aborting because an unseen crash | ||
2869 | 2085 | report already exists. (LP: #105976) | ||
2870 | 2086 | * apport/ui.py: Add a comment for translators. (LP: #104703) | ||
2871 | 2087 | * apport/ui.py, load_report(): Also catch zlib.error on invalid reports. | ||
2872 | 2088 | (LP: #103547) | ||
2873 | 2089 | * apport/report.py: Add method has_useful_stacktrace() to determine whether | ||
2874 | 2090 | the stack trace can be considered useful. The current heuristic is to | ||
2875 | 2091 | consider it useless if it either is shorter than three lines and has any | ||
2876 | 2092 | unknown function, or for longer traces, a minority of known functions. Add | ||
2877 | 2093 | test cases. | ||
2878 | 2094 | * gtk/apport-gtk, qt4/apport-qt, cli/apport-cli: Do not offer 'reduced | ||
2879 | 2095 | report' option if the stack trace is useless. (LP: #87430) Bump the | ||
2880 | 2096 | python-apport dependencies of the frontend packages to ensure that we have | ||
2881 | 2097 | has_useful_stacktrace(). | ||
2882 | 2098 | |||
2883 | 2099 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 5 May 2007 17:53:42 +0200 | ||
2884 | 2100 | |||
2885 | 2101 | apport (0.77) gutsy; urgency=low | ||
2886 | 2102 | |||
2887 | 2103 | * apport/report.py: Replace any() call with a list comprehension to work | ||
2888 | 2104 | with Python < 2.5. (LP: #104864) | ||
2889 | 2105 | * apport/report.py: Move the ctypes import to the one place where we | ||
2890 | 2106 | actually need it, and do not entirely fail if they do not exist (such as | ||
2891 | 2107 | in Python 2.4). It is only required for non-default Feisty kernels anyway. | ||
2892 | 2108 | (LP: #107662) | ||
2893 | 2109 | * apport/chroot.py: Fix test suite to work with Python 2.4's tarfile module | ||
2894 | 2110 | output format. | ||
2895 | 2111 | * debian/local/setup-apport-retracer: Generalized some feisty specific | ||
2896 | 2112 | bits, set default release to gutsy. | ||
2897 | 2113 | |||
2898 | 2114 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 23 Apr 2007 12:22:17 +0200 | ||
2899 | 2115 | |||
2900 | 2116 | apport (0.76) feisty; urgency=low | ||
2901 | 2117 | |||
2902 | 2118 | * Move python_hook.py out of the apport module to apport_python_hook.py, so | ||
2903 | 2119 | that it does not inflict the expensive import of all apport related | ||
2904 | 2120 | modules to every python program. Adapt module prefixes accordingly. | ||
2905 | 2121 | (LP: #105764) | ||
2906 | 2122 | * setup.py, debian/python-apport.install: Install apport_python_hook.py into | ||
2907 | 2123 | the python-apport binary package. | ||
2908 | 2124 | * apport/ui.py test suite: Unset locale related environment variables so | ||
2909 | 2125 | that the tests which check strings are not invalidated by translations. | ||
2910 | 2126 | |||
2911 | 2127 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Apr 2007 11:47:50 +0200 | ||
2912 | 2128 | |||
2913 | 2129 | apport (0.75) feisty; urgency=low | ||
2914 | 2130 | |||
2915 | 2131 | * apport/report.py, add_proc_info(): Chop off /rofs/ prefix from | ||
2916 | 2132 | ExecutablePath, so that crashes work on the live system, too. Arguably a | ||
2917 | 2133 | kernel bug, but probably too hard to fix at this time. (LP: #102909) | ||
2918 | 2134 | * backends/packaging-dpkg.py, get_modified_files(): Ignore empty lines in | ||
2919 | 2135 | broken .md5sums file rather than crashing on them. (LP: #102906) | ||
2920 | 2136 | |||
2921 | 2137 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 4 Apr 2007 21:51:28 +0200 | ||
2922 | 2138 | |||
2923 | 2139 | apport (0.74) feisty; urgency=low | ||
2924 | 2140 | |||
2925 | 2141 | * debian/apport-{gtk,qt}.install: Do not install .desktop files for now, | ||
2926 | 2142 | until we get a proper guided bug reporting. | ||
2927 | 2143 | * problem_report.py, write_mime(): Do not re-compress keys which already end | ||
2928 | 2144 | in .gz. Add test cases. | ||
2929 | 2145 | * test-hooks: Add a (dodgy) test case for calling package_hook on an | ||
2930 | 2146 | uninstalled package. After all, this is very likely to happen for | ||
2931 | 2147 | installation errors. This reproduces #97636. | ||
2932 | 2148 | * backends/packaging-dpkg.py, get_source(): Add a similarly dodgy fallback | ||
2933 | 2149 | to apt if the queried package is not installed. This needs to be | ||
2934 | 2150 | generalized and cleaned up later, but now is the time for unintrusive | ||
2935 | 2151 | small patches. (LP: #97636) | ||
2936 | 2152 | * test-apport: Do not fail on non-empty gdb stderr if it only consists of a | ||
2937 | 2153 | single warning (as happens on powerpc). | ||
2938 | 2154 | * apport/report.py, test_check_interpreted(): Run gedit test on an actually | ||
2939 | 2155 | existing file, reproducing the interpreter confusion reported in #102056. | ||
2940 | 2156 | * apport/report.py, _check_interpreted(): Add a whitelist of common | ||
2941 | 2157 | interpreters and check ExecutablePath against it. (LP: #102056) | ||
2942 | 2158 | * apport/ui.py: Ignore SystemError exceptions from apt, which happen on | ||
2943 | 2159 | badly formatted source.list entries. (LP: #98901) | ||
2944 | 2160 | * apport/ui.py: Fix crash on None candiateOrigin from the apt cache object. | ||
2945 | 2161 | (LP: #98961) | ||
2946 | 2162 | * gtk/apport-gtk.glade: Add window titles to progress and details dialogs. | ||
2947 | 2163 | (LP: #97640) | ||
2948 | 2164 | |||
2949 | 2165 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 4 Apr 2007 14:44:08 +0200 | ||
2950 | 2166 | |||
2951 | 2167 | apport (0.73) feisty; urgency=low | ||
2952 | 2168 | |||
2953 | 2169 | * problem_report.py, write(): Allow a third optional argument in tuple | ||
2954 | 2170 | values, which specify a maximum file size. Above it, the entire key gets | ||
2955 | 2171 | removed. Add testsuite checks for all boundary cases. | ||
2956 | 2172 | * bin/apport: Limit core dump size to 75% of usable RAM | ||
2957 | 2173 | (MemFree+Cached-Writeback). This should avoid trashing people's boxes hard | ||
2958 | 2174 | on huge core dumps. Bump dependencies on python-problem-report. Create an | ||
2959 | 2175 | expensive, but realistic check for this in test-apport. | ||
2960 | 2176 | (LP: #71560) | ||
2961 | 2177 | * apport/ui.py, run_crash(): If a signal crash report does not have a core | ||
2962 | 2178 | dump, explain that the computer has too little memory for an automatic | ||
2963 | 2179 | analysis/report of the crash. Add test suite check. | ||
2964 | 2180 | |||
2965 | 2181 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 29 Mar 2007 23:38:23 +0200 | ||
2966 | 2182 | |||
2967 | 2183 | apport (0.72) feisty; urgency=low | ||
2968 | 2184 | |||
2969 | 2185 | [ Martin Pitt ] | ||
2970 | 2186 | * bin/apport-chroot, command_create(): Install gpgv. | ||
2971 | 2187 | * bin/apport-retrace: Fix error handling in fetch_unpack(). | ||
2972 | 2188 | * Move apport-retrace.1 manpage from package apport to apport-retrace. Bump | ||
2973 | 2189 | Conflicts/Replaces accordingly. | ||
2974 | 2190 | * bin/launchpad-crash-digger, apport/ui.py: Remove the special case | ||
2975 | 2191 | 'powerpc'->'ppc' and use need-powerpc-retrace uniformly. | ||
2976 | 2192 | * debian/control: Add XS-Vcs-Bzr: header. | ||
2977 | 2193 | * apport/ui.py: Fix wrong parameter name in help message. | ||
2978 | 2194 | * Another grammar fix, thanks to Brian Murray! | ||
2979 | 2195 | |||
2980 | 2196 | [ Michael Hofmann ] | ||
2981 | 2197 | * debian/local/ubuntu-bug: Try to use apport-cli, if we do not have a | ||
2982 | 2198 | $DISPLAY, or neither Gnome nor KDE are running. | ||
2983 | 2199 | * debian/control: Recommend elinks, since it is the only text browser so far | ||
2984 | 2200 | that works with Launchpad (see #59510) | ||
2985 | 2201 | * Add debian/apport-cli.README.Debian: Describe how to integrate | ||
2986 | 2202 | apport-checkreports and apport-cli into .bashrc for crash notification on | ||
2987 | 2203 | servers. | ||
2988 | 2204 | * qt4/apport-qt: Fix undefined symbol in ui_present_package_error(). | ||
2989 | 2205 | (LP: #97282) | ||
2990 | 2206 | |||
2991 | 2207 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 29 Mar 2007 11:41:39 +0200 | ||
2992 | 2208 | |||
2993 | 2209 | apport (0.71) feisty; urgency=low | ||
2994 | 2210 | |||
2995 | 2211 | * cli/apport-cli, qt4/apport-qt: Fix bad grammar 'some minutes'. | ||
2996 | 2212 | (LP: #95296) | ||
2997 | 2213 | * problem_report.py, write_mime(): Add optional 'preamble' parameter. Add | ||
2998 | 2214 | test case. | ||
2999 | 2215 | * apport/ui.py, upload_launchpad_blob(): Set need-$ARCH-retrace tag in MIME | ||
3000 | 2216 | preamble. Bump p-problem-report dependency. (LP: #94790) | ||
3001 | 2217 | * bin/apport-retrace: In verbose mode, display the path of currently | ||
3002 | 2218 | extracting deb. | ||
3003 | 2219 | * bin/apport-retrace: Do not fall over errors of dpkg -x (which happens e. | ||
3004 | 2220 | g. on udev, where it cannot unpack /dev, since this is a symlink to the | ||
3005 | 2221 | real /dev). Merely print out a warning about it. | ||
3006 | 2222 | * apport/ui.py, run_report_bug(): Ignore ENOENT from add_proc_info(). This | ||
3007 | 2223 | happens if the user closes the application prematurely, so that /proc/pid | ||
3008 | 2224 | does not exist any more. Add test case. (LP: #95954) | ||
3009 | 2225 | * backends/packaging-dpkg.py, get_modified_files(): Ignore lines in .md5sums | ||
3010 | 2226 | files which contain a NUL byte. This Should Not Happen™, but nevertheless | ||
3011 | 2227 | did. (LP: #96050) | ||
3012 | 2228 | * apport/ui.py, doc/package-hooks.txt: Check for a field | ||
3013 | 2229 | "UnreportableReason: <text>" and display an information box that the | ||
3014 | 2230 | current crash cannot be reported because of <text>. Add test case. | ||
3015 | 2231 | Document the new field. | ||
3016 | 2232 | * apport/ui.py: Check package origin, compare it to DistroRelease:, and | ||
3017 | 2233 | report crash as unreportable if they do not match. This particularly saves | ||
3018 | 2234 | the user from uploading large reports for e. g. opera crashes, and avoids | ||
3019 | 2235 | filing Ubuntu bugs from Debian installations. (LP: #75513) | ||
3020 | 2236 | |||
3021 | 2237 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Mar 2007 18:01:24 +0200 | ||
3022 | 2238 | |||
3023 | 2239 | apport (0.70) feisty; urgency=low | ||
3024 | 2240 | |||
3025 | 2241 | [ Martin Pitt ] | ||
3026 | 2242 | * bin/apport-retrace: Add option --remove-tag to remove a Launchpad bug | ||
3027 | 2243 | tag. This is intended for an automatic Malone crash retracing system. | ||
3028 | 2244 | * debian/control: Bump python-launchpad-bugs dependency to ensure that we | ||
3029 | 2245 | have Bug.[gs]et_metadata(). | ||
3030 | 2246 | * man/apport-retrace.1: Add documentation for --confirm and --remove-tag. | ||
3031 | 2247 | * bin/apport-chroot: Add option --remove-tag and pass it to apport-retrace. | ||
3032 | 2248 | * apport/chroot.py, fix_symlinks(): Convert chroot path prefixed absolute | ||
3033 | 2249 | symlinks to relative symlinks to avoid fakechroot's weird handling of | ||
3034 | 2250 | absolute symlinks. | ||
3035 | 2251 | * Add bin/launchpad-crash-digger: Daemon for watching out for | ||
3036 | 2252 | need-$ARCH-retrace tagged Ubuntu bugs in Launchpad and calling | ||
3037 | 2253 | apport-retrace on them. | ||
3038 | 2254 | * bin/apport-retrace: Mangle bug comment with StacktraceTop to not contain | ||
3039 | 2255 | invalid UTF-8, to avoid getting Internal Server Errors from LP. | ||
3040 | 2256 | * debian/local/setup-apport-retracer: Install libc6-i686{,-dbgsym} into an | ||
3041 | 2257 | x86 chroot, to get sane x86 backtraces for crashes in libc. | ||
3042 | 2258 | * debian/local/setup-apport-retracer: | ||
3043 | 2259 | - Unpack and install python-launchpad-bugs locally if the package is not | ||
3044 | 2260 | installed. | ||
3045 | 2261 | - Link launchpad-crash-digger into the retracer's bin/ dir. | ||
3046 | 2262 | * run-tests: Run tests with python's -tt flag to catch whitespace errors. | ||
3047 | 2263 | * Replace tabs with spaces in all Python files. (LP: #93561) | ||
3048 | 2264 | * Remove trailing white space in all Python files. | ||
3049 | 2265 | * apport/report.py, add_proc_info(): Do not regard symlinks to executables | ||
3050 | 2266 | as interpreted scripts any more (such as Debian alternatives). Add test | ||
3051 | 2267 | case. (LP: #94732) | ||
3052 | 2268 | * problem_report.py: Add new method get_new() which returns a set of all | ||
3053 | 2269 | keys which have been added since load() or construction. Add test cases. | ||
3054 | 2270 | * problem_report.py: Add optional parameter only_new to write(), which | ||
3055 | 2271 | writes only the get_new() keys. Add test case. | ||
3056 | 2272 | * apport/ui.py: Remember currently processed report file and update it with | ||
3057 | 2273 | the added information, so that it becomes useful for local evaluation, | ||
3058 | 2274 | too. Bump python-problem-report dependency to ensure write()'s only_new | ||
3059 | 2275 | availability. (LP: #94678) | ||
3060 | 2276 | * apport-chroot: Add forgotten sys.exit(1) after printing the error message | ||
3061 | 2277 | about an invalid chroot specification. | ||
3062 | 2278 | * apport/ui.py, run_crash(): Check for a field "UnsupportableReason: <text>" | ||
3063 | 2279 | and display an information box that the current configuration cannot be | ||
3064 | 2280 | supported because of <text>, instead of processing and reporting the | ||
3065 | 2281 | crash. Add test case for this workflow. With special regards to our | ||
3066 | 2282 | Firefox crash triagers who want to get rid of the hundreds of | ||
3067 | 2283 | flash-related crashes. :) | ||
3068 | 2284 | * apport/report.py, add_hooks_info(): Use execfile() instead of | ||
3069 | 2285 | __import__(), since package names might conflict with module names already | ||
3070 | 2286 | imported into apport's namespace. Also search for hook named after the | ||
3071 | 2287 | source package name (prefixed with 'source_'). Add test cases. | ||
3072 | 2288 | * bin/apport-chroot: When specifying --save for login, only save the tarball | ||
3073 | 2289 | if the exit status is 0. | ||
3074 | 2290 | * bin/apport-chroot, create: Install /usr/sbin/policy-rc.d to disable init | ||
3075 | 2291 | scripts. | ||
3076 | 2292 | * bin/apport-chroot: Fixed command function selection to not abort with | ||
3077 | 2293 | 'unknown command' if the DistroRelease: was unknown. | ||
3078 | 2294 | * bin/apport-retrace: Replace --no-purge with --no-dpkg. With this option, | ||
3079 | 2295 | do not call dpkg --unpack any more, but dpkg -x, to avoid any fchmod() and | ||
3080 | 2296 | other calls which cause problems in fakechroots. | ||
3081 | 2297 | * bin/apport-retrace: Fix ordering of version numbers in warning message. | ||
3082 | 2298 | * doc/package-hooks.txt: Add some examples, document source package hook. | ||
3083 | 2299 | |||
3084 | 2300 | [ Kees Cook ] | ||
3085 | 2301 | * apport/report.py, add_proc_info(): If reading /proc/pid/maps fails, | ||
3086 | 2302 | ptrace() the target process to make it readable (proposed security | ||
3087 | 2303 | improvement in future kernels). | ||
3088 | 2304 | * bin/apport-retrace: Fix crash for packages unknown to the apt cache. | ||
3089 | 2305 | * apport/report.py, add_gdb_info(): Limit maximum backtrace depth to 2000 to | ||
3090 | 2306 | avoid infinitely looped stacks and gdb crashes. (LP: #94455) | ||
3091 | 2307 | This also caps the maximum size of information that we add to reports. | ||
3092 | 2308 | (LP: #92653) | ||
3093 | 2309 | * bin/apport-retrace: Add option -R/--rebuild-package-info, so that | ||
3094 | 2310 | apport-retrace works on unprocessed crash dumps in /var/crash. | ||
3095 | 2311 | * Some grammar corrections. | ||
3096 | 2312 | * Add package-hooks/source_apport.py: Package hook for apport itself. | ||
3097 | 2313 | Include /var/log/apport.log and the status of files in /var/crash. | ||
3098 | 2314 | |||
3099 | 2315 | [ Michael Hofmann ] | ||
3100 | 2316 | * Add cli/apport-cli, setup.py, debian/apport-cli.install, debian/control: | ||
3101 | 2317 | Add command line user interface. | ||
3102 | 2318 | * apport/ui.py, format_filesize(): Use MiB and GiB instead of MB and GB; | ||
3103 | 2319 | these are the official units. Adapt test cases. | ||
3104 | 2320 | * apport/ui.py, collect_info()/file_report(): Do not raise an exception on | ||
3105 | 2321 | KeyboardInterrupt in the subthreads. | ||
3106 | 2322 | * apport/ui.py, open_url(): Do not use gtk.MessageDialog(), but | ||
3107 | 2323 | ui_error_message(), and fix error passing so that the message is | ||
3108 | 2324 | displayed in the parent thread. | ||
3109 | 2325 | * apport/ui.py, open_url(): Check that $DISPLAY is set before considering | ||
3110 | 2326 | the KDE/Gnome web browsers. | ||
3111 | 2327 | |||
3112 | 2328 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Mar 2007 09:41:03 +0200 | ||
3113 | 2329 | |||
3114 | 2330 | apport (0.69) feisty; urgency=low | ||
3115 | 2331 | |||
3116 | 2332 | * apport-chroot: Add command 'installdeb' to conveniently install a bunch of | ||
3117 | 2333 | .debs into a chroot. | ||
3118 | 2334 | * apport-chroot: Fix 'login' and 'upgrade' commands to not require | ||
3119 | 2335 | specifying a chroot map when giving a chroot tarball path as argument. | ||
3120 | 2336 | * test-apport: Check that core dumps are written for packaged programs as | ||
3121 | 2337 | well, if ulimits want them. (Test for #92029) | ||
3122 | 2338 | * bin/apport: Call write_user_coredump() for packaged program crashes and | ||
3123 | 2339 | SIGABRT as well. (LP: #92029) | ||
3124 | 2340 | |||
3125 | 2341 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Mar 2007 17:37:23 +0100 | ||
3126 | 2342 | |||
3127 | 2343 | apport (0.68) feisty; urgency=low | ||
3128 | 2344 | |||
3129 | 2345 | [ Michael Hofmann ] | ||
3130 | 2346 | * qt4/apport-qt: Fix taskbar entry, remove an unused method. | ||
3131 | 2347 | * qt4/error.ui: Fix icon spacing. | ||
3132 | 2348 | |||
3133 | 2349 | [ Martin Pitt ] | ||
3134 | 2350 | * apport-retrace: Add option --confirm to display the retraced stack traces | ||
3135 | 2351 | and ask for confirmation before uploading them as LP bug attachments. | ||
3136 | 2352 | (LP: #91878) | ||
3137 | 2353 | * apport-chroot: Add option --confirm-attach; if given, call apport-retrace | ||
3138 | 2354 | with --confirm. | ||
3139 | 2355 | |||
3140 | 2356 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 15 Mar 2007 00:05:18 +0100 | ||
3141 | 2357 | |||
3142 | 2358 | apport (0.67) feisty; urgency=low | ||
3143 | 2359 | |||
3144 | 2360 | * debian/local/setup-apport-retracer: Add apt sources for restricted, | ||
3145 | 2361 | universe, and multiverse, too. | ||
3146 | 2362 | * po/de.po: Update from Rosetta. | ||
3147 | 2363 | * apport/report.py: Remove undefined call to error_log() in | ||
3148 | 2364 | _command_output(), replace it with raising proper exceptions. | ||
3149 | 2365 | * bin/apport-retrace: Fix 'numer' typo. (LP: #91680) | ||
3150 | 2366 | * test-apport: Check that non-packaged executables generate a core dump on | ||
3151 | 2367 | SIGABRT, too (test case for bug #92029). | ||
3152 | 2368 | * bin/apport: Move check for ignoring SIGABRT below the core dump file | ||
3153 | 2369 | writing for non-packaged binaries. (LP: #92029) | ||
3154 | 2370 | * gtk/apport-gtk.glade: | ||
3155 | 2371 | - Remove titles from the progress windows to comply with Gnome HIG and not | ||
3156 | 2372 | repeat the text content. | ||
3157 | 2373 | - Improve wording a bit. | ||
3158 | 2374 | - LP: #92114 | ||
3159 | 2375 | * gtk/apport-gtk{,.glade}: Fix signal handler name of the Cancel button in | ||
3160 | 2376 | the upload progress dialog, so that it actually works. (LP: #92115) | ||
3161 | 2377 | |||
3162 | 2378 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 14 Mar 2007 17:34:57 +0100 | ||
3163 | 2379 | |||
3164 | 2380 | apport (0.66) feisty; urgency=low | ||
3165 | 2381 | |||
3166 | 2382 | * Remove apport/MultipartPostHandler.py, this functionality moved to | ||
3167 | 2383 | python-launchpad-bugs now. Add a dependency to that package. | ||
3168 | 2384 | * apport/ui.py, upload_launchpad_blob(): Use the shiny new | ||
3169 | 2385 | launchpadBugs.storeblob.upload(). | ||
3170 | 2386 | * bin/apport-retrace: Attach retraced stack traces back to the Launchpad bug | ||
3171 | 2387 | report if no other output option is given (This corresponds to the | ||
3172 | 2388 | in-place editing when a report file is specified). Add option --cookie to | ||
3173 | 2389 | specify a Mozilla-style cookie file for the necessary Launchpad | ||
3174 | 2390 | authentication. | ||
3175 | 2391 | * man/apport-retrace.1: Document above apport-retrace changes. | ||
3176 | 2392 | * bin/apport-chroot: Add --cookie option: temporarily symlink cookie into | ||
3177 | 2393 | the chroot and pass it to apport-retrace in retrace mode. | ||
3178 | 2394 | |||
3179 | 2395 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 10 Mar 2007 15:01:57 +0100 | ||
3180 | 2396 | |||
3181 | 2397 | apport (0.65) feisty; urgency=low | ||
3182 | 2398 | |||
3183 | 2399 | * debian/local/setup-apport-retracer: | ||
3184 | 2400 | - Replace grep-dctrl with grep call, since grep-dctrl is not installed in | ||
3185 | 2401 | all the DC chroots. | ||
3186 | 2402 | - Do not download apport source from archive.u.c., instead require that | ||
3187 | 2403 | this script lives in the unpacked apport source tree. | ||
3188 | 2404 | * bin/apport-chroot: Use apt-get options -y and --allow-unauthenticated when | ||
3189 | 2405 | installing additional packages. | ||
3190 | 2406 | * bin/apport-chroot: Handle --extra-package for 'upgrade', too, to provide a | ||
3191 | 2407 | simple way of adding a package to an existing chroot tarball. | ||
3192 | 2408 | * debian/local/setup-apport-retracer: Create tarball chroots by default. | ||
3193 | 2409 | It only imposes a negligible overhead, and sharing unpacked directories | ||
3194 | 2410 | with multiple people is just too brittle. | ||
3195 | 2411 | * bin/apport-retrace: Add option --no-purge to not purge unpacked packages | ||
3196 | 2412 | after retracing. This is (only) useful with temporarily unpacked chroots, | ||
3197 | 2413 | since it's only a waste of time there. | ||
3198 | 2414 | * bin/apport-chroot: Call apport-retrace with --no-purge when retracing in a | ||
3199 | 2415 | chroot tarball. | ||
3200 | 2416 | * apport/chroot.py: Add fix_symlinks() method to remove the chroot root | ||
3201 | 2417 | directory prefix from symbolic links; they prevent function of tarball | ||
3202 | 2418 | chroots and moving around directory chroots. Add test case. | ||
3203 | 2419 | * bin/apport: Fix symlinks after creating and upgrading a chroot. | ||
3204 | 2420 | * bin/apport-chroot: Add option --save to update a tarball after logging | ||
3205 | 2421 | in to it. | ||
3206 | 2422 | |||
3207 | 2423 | -- Martin Pitt <martin.pitt@ubuntu.com> Sat, 10 Mar 2007 21:21:25 +0100 | ||
3208 | 2424 | |||
3209 | 2425 | apport (0.64) feisty; urgency=low | ||
3210 | 2426 | |||
3211 | 2427 | * bin/apport-chroot: Add 'login' command. | ||
3212 | 2428 | * bin/apport-chroot: Install apport-retrace into a newly created chroot. | ||
3213 | 2429 | * Add debian/local/setup-apport-retracer: Script to install local versions | ||
3214 | 2430 | of apport, debootstrap, fake{,ch}root libraries, and a feisty apport | ||
3215 | 2431 | fakechroot. This works OOTB on ronne's amd64 and i386 feisty chroots. The | ||
3216 | 2432 | script is not shipped in any package yet, but it's convenient to ship it | ||
3217 | 2433 | in revision control and in the source. | ||
3218 | 2434 | * apport/report.py, _check_interpreted(): When calling an interpreter with a | ||
3219 | 2435 | script name as argument, set ExecutablePath to the script instead of the | ||
3220 | 2436 | interpreter. Add test case. (LP: #88794) | ||
3221 | 2437 | * apport/report.py, search_bug_patterns(): Catch all exceptions from | ||
3222 | 2438 | urlopen(), not just IOError. Sometimes this fails with funnier errors. | ||
3223 | 2439 | (LP: #89589) | ||
3224 | 2440 | * bin/apport-retrace: Give some additional explanation when installing | ||
3225 | 2441 | packages fails. (LP: #89916) | ||
3226 | 2442 | * apport/fileutils.py, get_all_{system_,}reports(): Fix file access race | ||
3227 | 2443 | condition. (LP: #89977) | ||
3228 | 2444 | * bin/apport-retrace: Add option -p/--extra-package to install an additional | ||
3229 | 2445 | package for retracing. May be specified multiple times. Document new | ||
3230 | 2446 | option in man/apport-retrace.1. (LP: #90077) | ||
3231 | 2447 | * bin/apport-chroot: Add a similar option -p/--extra-package and install | ||
3232 | 2448 | those in the 'create' command and simply pass it to apport-retrace in the | ||
3233 | 2449 | 'retrace' command. (LP: #90077) | ||
3234 | 2450 | * bin/apport-chroot: Add a -v/--verbose option. | ||
3235 | 2451 | * bin/apport-retrace: Do not complain about missing ddebs for Arch: all | ||
3236 | 2452 | packages. | ||
3237 | 2453 | |||
3238 | 2454 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 6 Mar 2007 16:20:41 +0100 | ||
3239 | 2455 | |||
3240 | 2456 | apport (0.63) feisty; urgency=low | ||
3241 | 2457 | |||
3242 | 2458 | New feature: fakechroot support for apport-retrace | ||
3243 | 2459 | |||
3244 | 2460 | * bin/apport-retrace: | ||
3245 | 2461 | - Simplify program design and throw away the complicated debug symbol | ||
3246 | 2462 | sandbox generation, along with the -d and -C options. Instead, directly | ||
3247 | 2463 | install the missing packages and ddebs with apt. This makes the tool more | ||
3248 | 2464 | suitable for running in chroots and has often been requested anyway. | ||
3249 | 2465 | - Add option -u/--unpack-only which causes additionally installed packages | ||
3250 | 2466 | to be unpacked without being configured and purged again after | ||
3251 | 2467 | retracing. This allows apport-retrace to work under fakechroot and has | ||
3252 | 2468 | the nice side effect of speeding up package installation (we do not care | ||
3253 | 2469 | about configuration for retracing anyway). | ||
3254 | 2470 | * man/apport-retrace.1: Update description for the new behaviour, drop | ||
3255 | 2471 | documentation of the -d and -C options, and add documentation of -u. | ||
3256 | 2472 | * Add apport/chroot.py: Class for representing and working with chroots; | ||
3257 | 2473 | this uses the fakeroot and fakechroot libraries when being called as | ||
3258 | 2474 | non-root. | ||
3259 | 2475 | * Add bin/apport-chroot: CLI frontend for doing various things with | ||
3260 | 2476 | chroots (including fakeroot/fakechroot support from the Chroot class). For | ||
3261 | 2477 | now, this implements: | ||
3262 | 2478 | - create a chroot (tarball or directory) | ||
3263 | 2479 | - dist-upgrade a particular or all chroots | ||
3264 | 2480 | - apport-retrace a bug or Apport report file | ||
3265 | 2481 | * setup.py: Ship apport-chroot in scripts directory. | ||
3266 | 2482 | * Add a new package apport-retrace which ships apport-retrace and | ||
3267 | 2483 | apport-chroot and carries all the heavier dependencies (binutils, | ||
3268 | 2484 | python-launchpad-bugs, python-apt, etc.). Drop the latter two dependencies | ||
3269 | 2485 | from the apport package. This allows us to install the apport-retrace | ||
3270 | 2486 | package in fakechroots (not possible with apport itself) and avoid | ||
3271 | 2487 | unnecessary dependencies on normal desktop installations. | ||
3272 | 2488 | |||
3273 | 2489 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 5 Mar 2007 11:20:36 +0100 | ||
3274 | 2490 | |||
3275 | 2491 | apport (0.62) feisty; urgency=low | ||
3276 | 2492 | |||
3277 | 2493 | * apport/ui.py, collect_info(): Use REThread instead of Thread and raise | ||
3278 | 2494 | exceptions from it, so that errors during info collection actually become | ||
3279 | 2495 | visible. | ||
3280 | 2496 | * apport/report.py, add_proc_info(): Check that ExecutablePath actually | ||
3281 | 2497 | exists, so that invalid values from transient error conditions are ignored | ||
3282 | 2498 | (such as '/usr/bin/gnome-panel\x00\x00\x8b (deleted)'). | ||
3283 | 2499 | * apport/packaging.py: Add interface get_system_architecture() to return the | ||
3284 | 2500 | system architecture in the distro specific notation. This can differ from | ||
3285 | 2501 | get_architecture(package) on multiarch platforms such as amd64. | ||
3286 | 2502 | * backends/packaging-dpkg.py: Implement get_system_architecture() to return | ||
3287 | 2503 | dpkg --print-architecture, add a shallow test case. | ||
3288 | 2504 | * apport/report.py, add_package_info(): Rename key 'Architecture:' to | ||
3289 | 2505 | 'PackageArchitecture:' for clarity. | ||
3290 | 2506 | * apport/report.py, add_os_info(): Add system architecture as | ||
3291 | 2507 | 'Architecture:' field. | ||
3292 | 2508 | * apport/ui.py, create_crash_bug_title(): Append warning about non-native | ||
3293 | 2509 | package if package architecture does not match the system's one. | ||
3294 | 2510 | * All test suites: Remove redundant word 'behaviour' from test descriptions. | ||
3295 | 2511 | * test-hooks: Run tests on installed hooks in /usr/share/apport by default | ||
3296 | 2512 | and add a '--local' switch to test the hooks in the source tree instead. | ||
3297 | 2513 | Use this option in run-tests. | ||
3298 | 2514 | * apport/report.py, test_add_proc_info(): Change the python script test | ||
3299 | 2515 | so that it does not depend on being run in the source tree. | ||
3300 | 2516 | * run-tests: Add a 'local' command line option which runs tests on the files | ||
3301 | 2517 | and modules in the build tree. Run tests on system files/modules by | ||
3302 | 2518 | default. | ||
3303 | 2519 | * setup.py, debian/apport.install: Ship test-hooks, test-apport, and | ||
3304 | 2520 | run-tests in /usr/share/apport/testsuite/, so that the full test suite can | ||
3305 | 2521 | be run in the installed system. | ||
3306 | 2522 | * gtk/apport-gtk.desktop.in: Only show in Gnome and Xfce. | ||
3307 | 2523 | * qt4/apport-qt.desktop.in: Only show in KDE. | ||
3308 | 2524 | |||
3309 | 2525 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 1 Mar 2007 10:43:29 +0100 | ||
3310 | 2526 | |||
3311 | 2527 | apport (0.61) feisty; urgency=low | ||
3312 | 2528 | |||
3313 | 2529 | * bin/apport: | ||
3314 | 2530 | - Kernel 2.6.20-9 now sets CORE_REAL_RLIM to -1 instead of not setting it; | ||
3315 | 2531 | handle this case correctly. (LP: #87065) | ||
3316 | 2532 | - Add forgotten multiplication of CORE_REAL_RLIM with 1024, since ulimit | ||
3317 | 2533 | sets kB, not bytes. | ||
3318 | 2534 | |||
3319 | 2535 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 27 Feb 2007 16:06:11 +0100 | ||
3320 | 2536 | |||
3321 | 2537 | apport (0.60) feisty; urgency=low | ||
3322 | 2538 | |||
3323 | 2539 | * gtk/apport-gtk.glade: Reintroduce window titles. Since the crash | ||
3324 | 2540 | notifications are like alerts, title have been removed recently to comply | ||
3325 | 2541 | with Gnome HIG standards, but then the user will get 'nameless window' | ||
3326 | 2542 | buttons in the task bar. Let's have the smaller evil then. (LP: #87164) | ||
3327 | 2543 | * apport/packaging.py: Add get_architecture() interface for determining the | ||
3328 | 2544 | architecture of a particular package (which might not match the overall | ||
3329 | 2545 | system architecture on multiarch-capable systems, e. g. an i386 Firefox | ||
3330 | 2546 | package installed on amd64). | ||
3331 | 2547 | * backends/packaging-dpkg.py: Implement get_architecture() and add test | ||
3332 | 2548 | case. | ||
3333 | 2549 | * apport/report.py, add_package_info(): Add Architecture: field. | ||
3334 | 2550 | (LP: #87424) | ||
3335 | 2551 | * apport/ui.py: Already mark report as seen when we load it, not just in the | ||
3336 | 2552 | information collection thread. That way, reports will only be shown once | ||
3337 | 2553 | on systems which have /var/crash mounted noatime, too. (LP: #85809) | ||
3338 | 2554 | * apport/fileutils.py, mark_report_seen(): If os.utime() fails, and opening | ||
3339 | 2555 | the report file for reading does not change the atime (happens with | ||
3340 | 2556 | noatime mount option), don't throw an exception, just delete the report. | ||
3341 | 2557 | (other aspect of LP: #85809) | ||
3342 | 2558 | * qt4/apport-qt: Wrap gettext() into an unicode(str, 'UTF-8') call, | ||
3343 | 2559 | otherwise all non-ASCII unicode strings are broken. (LP: #87757) | ||
3344 | 2560 | |||
3345 | 2561 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Feb 2007 20:55:40 +0100 | ||
3346 | 2562 | |||
3347 | 2563 | apport (0.59) feisty; urgency=low | ||
3348 | 2564 | |||
3349 | 2565 | * apport/report.py: Check that interpreter options are discarded in | ||
3350 | 2566 | test_check_interpreted_script(). This replicates bug #87005. | ||
3351 | 2567 | * apport/report.py, _check_interpreted_script(): Filter out interpreter | ||
3352 | 2568 | command line options. This should make the detection of interpreted | ||
3353 | 2569 | scripts more robust. (LP: #87005) | ||
3354 | 2570 | * test-apport, check_crash(): Differ between expecting the program dumping | ||
3355 | 2571 | core and finding a core dump on disk, because this is not equivalent any | ||
3356 | 2572 | more with core pipelining. | ||
3357 | 2573 | * bin/apport: Write core files into a process' cwd if the process' ulimit | ||
3358 | 2574 | requests and permits it and the crashes process is not packaged, so that | ||
3359 | 2575 | developers get happy again. Test this behaviour with various ulimits in | ||
3360 | 2576 | test-apport. | ||
3361 | 2577 | * test-apport: Check that the core file written by apport is valid. This | ||
3362 | 2578 | uncovers kernel bugs like #87065 | ||
3363 | 2579 | * problem_report.py test suite: Use assertAlmostEqual() when comparing stat | ||
3364 | 2580 | times, since they are floats on some systems. | ||
3365 | 2581 | * apport/report.py, add_gdb_info(): | ||
3366 | 2582 | - Remove all the initial gdb output, which gets rid of the duplicated #0 | ||
3367 | 2583 | line. | ||
3368 | 2584 | - Replace some stray tabs with spaces. | ||
3369 | 2585 | - Thanks to Kees Cook for this! | ||
3370 | 2586 | |||
3371 | 2587 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 22 Feb 2007 19:52:52 +0100 | ||
3372 | 2588 | |||
3373 | 2589 | apport (0.58) feisty; urgency=low | ||
3374 | 2590 | |||
3375 | 2591 | * qt4/apport-qt.desktop.in move to System menu | ||
3376 | 2592 | |||
3377 | 2593 | -- Jonathan Riddell <jriddell@ubuntu.com> Tue, 20 Feb 2007 11:35:17 +0000 | ||
3378 | 2594 | |||
3379 | 2595 | apport (0.57) feisty; urgency=low | ||
3380 | 2596 | |||
3381 | 2597 | * apport/ui.py: Intercept ENOMEM and fail gracefully; there is little else | ||
3382 | 2598 | we can do at that point, and there is no point in presenting a crash | ||
3383 | 2599 | report for this. (LP: #85155) | ||
3384 | 2600 | * apport/ui.py: Ignore KeyError when deleting the CoreDump field on sending | ||
3385 | 2601 | a reduced report. This Should Not Happen™, but nevertheless did. | ||
3386 | 2602 | (LP: #86083) | ||
3387 | 2603 | * gtk/apport-gtk, qt4/apport-qt: Intercept ImportError for the non-builtin | ||
3388 | 2604 | Python modules. This usually happens for crashes when there is a | ||
3389 | 2605 | dist-upgrade active and some Python packages have not been configured yet. | ||
3390 | 2606 | (LP: #86007) | ||
3391 | 2607 | * apport/ui.py: If the problem report does not apply to a packaged program, | ||
3392 | 2608 | and we have an ExecutablePath, mention it in the error message for easier | ||
3393 | 2609 | debugging. | ||
3394 | 2610 | * apport/python_hook.py: Resolve symbolic links in ExecutablePath. | ||
3395 | 2611 | (LP: #85529) | ||
3396 | 2612 | * apport/ui.py, open_url(): Remove debugging print statement again, now | ||
3397 | 2613 | that we tracked down bug #83974. | ||
3398 | 2614 | |||
3399 | 2615 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Feb 2007 14:40:29 +0100 | ||
3400 | 2616 | |||
3401 | 2617 | apport (0.56) feisty; urgency=low | ||
3402 | 2618 | |||
3403 | 2619 | * apport/ui.py, open_url(): When being invoked as root, call gnome-open or | ||
3404 | 2620 | firefox as root through sudo instead of dropping our uid/gid and calling | ||
3405 | 2621 | it normally. The latter does not work for Firefox for some mysterious | ||
3406 | 2622 | reason. Thanks to Mika Fischer for this trick. (LP: #81207) | ||
3407 | 2623 | * Add debian/local/ubuntu-bug.1: Manpage for ubuntu-bug. Add it to | ||
3408 | 2624 | debian/apport.manpages. | ||
3409 | 2625 | * qt4/apport-qt: Add some missing features that are present in the GTK UI: | ||
3410 | 2626 | - Do not show details by default, add a button to show them. | ||
3411 | 2627 | - Add complete/reduced bug report radio buttons. | ||
3412 | 2628 | - Thanks to Michael Hofmann for this! | ||
3413 | 2629 | |||
3414 | 2630 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 15 Feb 2007 14:59:07 +0100 | ||
3415 | 2631 | |||
3416 | 2632 | apport (0.55) feisty; urgency=low | ||
3417 | 2633 | |||
3418 | 2634 | * Add debian/local/ubuntu-bug: Check for a running KDE or Gnome session, | ||
3419 | 2635 | availability of apport-gtk and -qt, and open the appropriate GUI in bug | ||
3420 | 2636 | filing mode. This makes it convenient for shell users and is also required | ||
3421 | 2637 | for proper Firefox 'Report a bug...' menu integration (see bug #85041). | ||
3422 | 2638 | * debian/apport.install: Install ubuntu-bug to /usr/bin. | ||
3423 | 2639 | * gtk/apport-gtk: Generously add some gtk.main_iteration() calls to avoid | ||
3424 | 2640 | hanging dialogs, since we do not have a main loop. | ||
3425 | 2641 | * apport/ui.py: Do not silently ignore exceptions while uploading data to | ||
3426 | 2642 | Launchpad, but intercept them and display their message in the error | ||
3427 | 2643 | dialog. (Part of LP: #84992) | ||
3428 | 2644 | * apport/ui.py: Switch from edge.launchpad.net to production launchpad.net, | ||
3429 | 2645 | since the necessary bits are now there. (LP: #84992) | ||
3430 | 2646 | |||
3431 | 2647 | -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 14 Feb 2007 13:37:52 +0100 | ||
3432 | 2648 | |||
3433 | 2649 | apport (0.54) feisty; urgency=low | ||
3434 | 2650 | |||
3435 | 2651 | * bin/apport: Re-enable, now that our kernel has been fixed to pipe complete | ||
3436 | 2652 | core dumps to us. | ||
3437 | 2653 | |||
3438 | 2654 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 13 Feb 2007 09:33:38 +0100 | ||
3439 | 2655 | |||
3440 | 2656 | apport (0.53) feisty; urgency=low | ||
3441 | 2657 | |||
3442 | 2658 | * apport/ui.py, open_url(): Remove some accidentally left-over debugging | ||
3443 | 2659 | junk. | ||
3444 | 2660 | * gtk/apport-gtk: Process pending GTK events after hiding the info | ||
3445 | 2661 | collection window to avoid a hanging dead dialog. | ||
3446 | 2662 | * gtk/apport-gtk: Do not count the lines of fields with binary data. This | ||
3447 | 2663 | particularly avoids long delays with huge core dumps. (LP: #81979) | ||
3448 | 2664 | * apport/ui.py, open_url(): Print URL to stdout, so that we can debug the | ||
3449 | 2665 | weirdness in #83974. | ||
3450 | 2666 | |||
3451 | 2667 | -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 12 Feb 2007 16:57:05 +0100 | ||
3452 | 2668 | |||
3453 | 2669 | apport (0.52) feisty; urgency=low | ||
3454 | 2670 | |||
3455 | 2671 | * apport/report.py: Fix hook directory to be | ||
3456 | 2672 | /usr/share/apport/package-hooks/, not /u/s/apport/. | ||
3457 | 2673 | * Add doc/package-hooks.txt: Document per-package hooks, ship in package | ||
3458 | 2674 | apport. | ||
3459 | 2675 | * Add debian/apport.dirs: Ship package-hooks/ directory. | ||
3460 | 2676 | * gtk/apport-gtk, qt4/apport-qt: Fix detection of binary data so that the | ||
3461 | 2677 | CoreDump is not displayed as incomprehensible gibberish any more. | ||
3462 | 2678 | * Add qt4/apport-qt.desktop.in and add it to POTFILES.in. | ||
3463 | 2679 | * bin/apport-retrace: --verbose can now be specified multiple times to | ||
3464 | 2680 | increase verbosity and debug package installation. Also, fix some quoting | ||
3465 | 2681 | bugs. Thanks to Kees Cook for this! | ||
3466 | 2682 | * qt4/apport-qt: Fix restart button handling. (LP: #84202) | ||
3467 | 2683 | * qt4/apport-qt: Do not try to call splitlines() on a report value that is a | ||
3468 | 2684 | file reference; just display the reference instead. (LP: #84196) | ||
3469 | 2685 | * bin/apport: Disable for now, since the current kernel produces cropped | ||
3470 | 2686 | core dumps and thus we get totally useless crash reports | ||
3471 | 2687 | |||
3472 | 2688 | -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 9 Feb 2007 18:58:08 +0100 | ||
3473 | 2689 | |||
3474 | 2690 | apport (0.51) feisty; urgency=low | ||
3475 | 2691 | |||
3476 | 2692 | New feature: Qt4 GUI implementation: | ||
3477 | 2693 | |||
3478 | 2694 | * Added qt4/: Qt4 implementation of the abstract user interface. Thanks to | ||
3479 | 2695 | Michael Hofmann <mh21@piware.de> for that! | ||
3480 | 2696 | * debian/copyright: Add Michael as copyright holder. | ||
3481 | 2697 | * setup.py, debian/control, debian/apport-qt.install: Packaging bits for | ||
3482 | 2698 | apport-qt. | ||
3483 | 2699 | * Move translations from apport-gtk to apport, since they are shared between | ||
3484 | 2700 | frontends. Add appropriate Conflicts/Replaces (we don't strictly need it | ||
3485 | 2701 | here because we strip them anyway, but we need that for the moving icon | ||
3486 | 2702 | anyway). | ||
3487 | 2703 | * Move icon from apport-gtk to apport, since it is/can be shared between | ||
3488 | 2704 | frontends. | ||
3489 | 2705 | |||
3490 | 2706 | Improvements: | ||
3491 | 2707 | |||
3492 | 2708 | * Replaced old apport.png icon stolen from bug-buddy with nice SVG one. | ||
3493 | 2709 | Thanks to Troy Sobotka for this! | ||
3494 | 2710 | * debian/copyright: Add Troy as copyright holder for the icon. | ||
3495 | 2711 | * bin/apport-retrace, man/apport-retrace.1: Document that report can now be | ||
3496 | 2712 | a LP bug number. | ||
3497 | 2713 | |||
3498 | 2714 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 8 Feb 2007 20:01:12 +0100 | ||
3499 | 2715 | |||
3500 | 2716 | apport (0.50) feisty; urgency=low | ||
3501 | 2717 | |||
3502 | 2718 | * gtk/apport-gtk.glade: Fix 'prolem' typo. | ||
3503 | 2719 | * bin/apport-retrace: Use python-launchpad-bugs to create a Report object | ||
3504 | 2720 | from a given Launchpad bug number (given as argument instead of the report | ||
3505 | 2721 | file path). Add appropriate p-l-b dependency. | ||
3506 | 2722 | * gtk/apport-gtk: Mark '(binary data)' string as translatable. | ||
3507 | 2723 | |||
3508 | 2724 | -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 8 Feb 2007 15:15:47 +0100 | ||
3509 | 2725 | |||
3510 | 2726 | apport (0.49) feisty; urgency=low | ||
3511 | 2727 | |||
3512 | 2728 | * gtk/apport-gtk.glade: Fix s/send/sent/ typo. Closes: LP#83061 | ||
3513 | 2729 | * apport/ui.py, create_crash_bug_title(): Cope with odd Tracebacks that are | ||
3514 | 2730 | shorter than three lines. Add test case from the bug. Closes: LP#83556 | ||
3515 | 2731 | * apport/python_hook: Do not create a report if the binary is ignored. Add | ||
3516 | 2732 | test case. Closes: LP#83566 | ||
3517 | 2733 | * gtk/apport-gtk: Do not save/alter crash dialog title any more, it's empty | ||
3518 | 2734 | now. | ||
3519 | 2735 | * apport/ui.py, open_url(): Check the user's session for | ||
3520 | 2736 | ksmserver/gnome-session to decide whether to prefer kfmclient or | ||
3521 | 2737 | gnome-open. Also, only call Firefox directly if gconf's prefered browser | ||
3522 | 2738 | is actually Firefox. Closes: LP#82007 | ||
3523 | 2739 | |||
3524 | 2740 | -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 6 Feb 2007 18:33:15 +0100 | ||
3525 | 2741 | |||
3526 | 2742 | apport (0.48) feisty; urgency=low | ||
3527 | 2743 | |||
3528 | 2744 | New feature: Infrastructure for reporting kernel Oopses: | ||
3529 | 2745 | |||
3530 | 2746 | * Add bin/kernel_hook and ship it in /usr/share/apport. The kernel can call | ||
3531 | 2747 | this on an Oops. Add a test suite for it to test-hooks. | ||
3532 | 2748 | * apport/ui.py: Add support for reporting ProblemType: Kernel reports, and | ||
3533 | 2749 | add test suite for the workflow. | ||
3534 | 2750 | * gtk/apport-gtk{,.glade}: Add implementation for ui_present_kernel_error(). | ||
3535 |
Please review/merge support for kernel crashdump retracing.
Overview: crashdump: packaging- apt-dpkg. py
* bin/kernel_
- needs the add_os_info() to get uname and architecture to make the retracing easier (and is cheap to obtain)
* bin/apport-retrace:
- small changes to make it friendlier for the kernel output
* apport/report.py
- add_kernel_info: that is not yet split up, but I think the final splitting depends on what information the kernel team wants here, it should do no harm to merge it and append later
* backends/
- uses hardcoded ddebs.ubuntu.com currently which is ugly. but kernel-image-debug packages are not in the Packages.gz so this method seems to be required for now
Thanks and feedback welcome