apport-collect: provide a package name override

Bug #333875 reported by Chris Cheney
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

It appears that apport-collect expects that there be a package named the same as the source package in launchpad to report the version number of. For openoffice.org this is generally not the case, while there is an 'openoffice.org' package it is just a meta package and most users do not have it installed. For the openoffice.org case all users would have openoffice.org-core installed. Is there some way for apport-collect to either report based off a different package name or somehow determine the version of packages that come from the source package that the user has installed?

Revision history for this message
Chris Cheney (ccheney) wrote :

As a workaround if there were a command line option I could just tell the user to use it for the openoffice.org case.

eg:

apport-collect -P openoffice.org-core (bug number)

Thanks,

Chris

Revision history for this message
Chris Cheney (ccheney) wrote :

Example apport-collect data showing the lack of version information:

https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/333474/comments/3

Revision history for this message
Martin Pitt (pitti) wrote :

If the user has deb-src lines in apt (by default still), then we should be able to grep "Binary:" out of apt-cache showsrc <package> and fake a binary package list. This would create some noise, and we can't really tell what the "primary" binary package of a source package is, but we can probably live with that.

We also need to merge all Dependencies: fields for all source packages.

Changed in apport:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Matt Zimmerman (mdz) wrote :

I was about to file a bug with the same suggestion as in comment 1, i.e. to allow the package name to be overridden, because this is useful in other cases as well.

For example, when it's not yet clear which package is at fault, it might be useful to collect information from other packages which may be relevant. For example, running ALSA package hooks for a bug currently filed against the kernel.

Revision history for this message
Chris Cheney (ccheney) wrote :

Martin,

Will this be fixed before Jaunty release? It would be very helpful especially for the openoffice.org case, which currently doesn't display the package information at all.

Thanks,

Chris

Revision history for this message
Martin Pitt (pitti) wrote :

Right, a source package name override is easy to add.

summary: - apport-collect needs to be smarter about package name to report version
+ apport-collect: provide a package name override
Changed in apport (Ubuntu):
assignee: nobody → pitti
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in apport (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.5 KiB)

This bug was fixed in the package apport - 0.146

---------------
apport (0.146) jaunty; urgency=low

  * apport/report.py, _generate_sigsegv_report(): Turn into a class method, so
    that it can be used by test cases in other modules as well. Also add
    missing Signal field.
  * apport/crashdb_impl/launchpad.py: Fully enable operation with
    staging.launchpad.net.
  * apport/crashdb_impl/launchpad.py: Add initial test suite, performing data
    upload, Python and SEGV bug reporting, report download, report updating,
    tag and duplicate handling. This happens on staging.launchpad.net.
  * apport/crashdb.py: Add new interface duplicate_of(id) to return the master
    bug of a duplicate. Also document that close_duplicate() with "None"
    master bug will un-duplicate the bug.
  * apport/crashdb_impl/{launchpad,memory}.py: Implement duplicate_of() and
    add test cases. The Launchpad test case reproduces the
    "duplicate-of-a-duplicate" regression, which now got fixed in
    python-launchpad-bugs bzr head.
  * apport/ui.py, open_url(): Also consider a sesssion as "GNOME" if gconfd-2
    is running; some variants such as UNR do not have gnome-panel; this fixes
    using the preferred browser for them. (LP: #322386)
  * debian/local/apport-collect: Add new option -p to explicitly specify a
    (binary) package name instead of guesstimating it from the bug's source
    package tasks. Document new option in debian/local/apport-collect.1.
    (LP: #333875)
  * apport/crashdb.py, duplicate_db_consolidate(): Add logging about removing
    invalidated bugs from the duplicate database, now that this actually
    works.
  * debian/local/ubuntu-bug.1: Update for the possibility to specify a package
    name or PID without any options. Also document the "ubuntu-bug linux"
    special case. (LP: #348985)
  * debian/local/ubuntu-bug.1: Add missing documentation of the case of
    specifying a path name.
  * backends/packaging-apt-dpkg.py: When unpacking source trees, try
    "debian/rules setup" last, since it is the least common variant.
  * debian/local/ubuntu-fat-chroot: Divert away
    /usr/lib/xulrunner-1.9.1b3/xulrunner-bin. It is called on debian/rules
    patch in xulrunner-1.9.1 and hangs eternally in the fakechroots. This is
    only a temporary kludge, though, until the next xulrunner version lands.
  * apport/crashdb_impl/launchpad.py: Add test case: Update a bug report which
    got marked as a duplicate during processing. This reproduces #349407.
  * apport/crashdb_impl/launchpad.py, update(): Intercept and ignore IOErrors
    when changing the bug priority. This happens if a bug gets duplicated
    underneath us. (LP: #349407)
  * apport/crashdb.py, get_crashdb(): Print syntax errors from parsing
    conf.d/*.conf to stderr.
  * apport/crashdb_impl/launchpad.py: Support new CrashDB option "project"
    which can be set to a LP project name to file bugs against that project
    instead of the distribution. Add test case for filing crash bug against a
    project, updating it, duplicating/unduplicating it, and determining fixed
    version. (LP: #338835)
  * bin/crash-digger: If apport-retrace exits with 99, consider it a transient
   ...

Read more...

Changed in apport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.