gdb and python-xdg required dependencies for apport?

Bug #354172 reported by Mathias Gug
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Martin Pitt

Bug Description

Binary package hint: apport

While installing apport on an ubuntu-standard jaunty vm, the following packages were installed:

mathiaz@t-mysql:~$ sudo apt-get install apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gdb python-apport python-launchpad-bugs python-libxml2 python-problem-report
Suggested packages:
  apport-gtk apport-qt python-launchpadlib gdb-doc python-libxml2-dbg
The following NEW packages will be installed:
  apport gdb python-apport python-launchpad-bugs python-libxml2
  python-problem-report python-xdg
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 3929kB of archives.
After this operation, 11.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y

While we're thinking about installing apport by default on ubuntu server, I don't think gdb and python-xdg should be available on a default Ubuntu Server system.

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

python-xdg was added for bug 177095, but I verified that the code doesn't fail any more if it isn't installed, so this can go (it will stay on apport-gtk).

gdb needs to stay, I'm afraid, since otherwise you cannot call gdb to create the Stacktrace, Registers, etc. fields, which many hooks, bug report default title, and other things depend on.

Changed in apport (Ubuntu):
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

gdb dropped to Recommends: now.

Changed in apport (Ubuntu):
assignee: nobody → pitti
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.0 KiB)

This bug was fixed in the package apport - 1.1-0ubuntu1

apport (1.1-0ubuntu1) karmic; urgency=low

  * New upstream release:
    - Drop some remaining distro specific pieces of code from non-backends.
    - Add hookutils methods for attaching relevant packages, greatly improve
      attach_alsa() for sound problem debugging.
    - Move launchpad crash database implementation from ever-breaking
      python-launchpad-bugs (screenscraping) to launchpadlib (official and
      stable Launchpad API). (LP: #353879)
    - Add new field which gets set on add_proc_info() and can be
      used by hooks.
    - Properly clean up all generated files, install missing
      mimetypes/text-x-apport.svg icon symlink.
    - Add README file.
    - Add translations from Launchpad.
    - Remove preloadlib/*; it's undermaintained, and not really useful any
      more these days.
    - Various bug fixes; most visible being the misnamed
      etc/default/apport.default file (which should just be
  * Merge some bug fixes from trunk:
    - Send and read Date: field again, reverting r1128; it is
      useful after all. (LP: #349139)
    -, add_proc_info(): Only add ProcAttrCurrent if it is not
    - Detect invalid PIDs (such as for kernel processes) and give a
      friendly error message. (LP: #360608)
    -, add_hooks_info(): Always run common hooks, and run source
      package hooks if we do not have a binary package name. (LP: #350131)
    - Consider socket errors when connecting as transient, so
      that crash-digger doesn't stop completely on them.
  * Drop debian/apport.README.Debian, superseded by upstream README.
  * Drop debian/apport.links, done by upstream now.
  * debian/rules, debian/apport.preinst: Drop upgrade fix for misnamed default
    file again, was only necessary for intra-Jaunty upgrades.
  * debian/control: python-launchpad-bugs → python-launchpadlib dependencies.
  * debian/local/apport-collect: Drop launchpadlib login code, just use the
    CrashDatabase implementation from apport/crashdb_impl/
  * Make package backportable to hardy and intrepid:
    - debian/control: Relax python-central buil-dependency to 0.5.6.
    - debian/rules: Determine DH_PYCENTRAL value ("include-links" vs.
      "nomove") based on the installed pycentral version.
    - debian/rules: Only supply --install-layout=deb when Python version is
  * apport/ Add docstring for attach_hardware, thanks Matt
    Zimmerman! (Merged from lp:~mdz/apport/hookutils)
  * apport/crashdb_impl/ Support older wadllib API
    where bug.date_created was a string instead of a datetime object.
    (Cherrypicked from trunk).
  * debian/control: Drop apport dependency to python-xdg, it's not required.
    (LP: #354172)
  * debian/control: Drop gdb from Depends: to Recommends:. (LP: #354172)
  * debian/local/apport-collect: Print a friendly error message instead of
    crashing if the bug number is not an integer. (LP: #351050)
  * debian/local/apport-collect: Change incomplete tasks back to "New" ...


Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Steve Beattie (sbeattie) wrote :

gdb is still being pulled in by python-apport's Recommends: on it; per discussions with Martin, this recommends can be moved to the gui packages, so that apport/ubuntu-bug can be installed by default on ubuntu-server without pulling in gdb.

Attached is a debdiff to do this; I've verified that on ubuntu-server, gdb doesn't get pulled in. On an amd64 install, installing apport and dependencies results in a little over 3MB used in additional disk space.

Changed in apport (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, Steve! Committed to bzr.

Changed in apport (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package apport - 1.8.1-0ubuntu1

apport (1.8.1-0ubuntu1) karmic; urgency=low

  * New upstream bug fix release:
    - data/general-hooks/ Check $HOME, not /home for enough space.
      (LP: #422658)
    - Intercept httplib2.ServerNotFoundError as well, to avoid
      crashes when being offline. (LP: #396276)
    - apport-cli: Save reports with .apport extension instead of .txt. Thanks
      to Steve Beattie! (LP: #401983)
    -, likely_packaged(): Ignored crashes in /var, packages don't
      ship executables there, and it creates false positives. (LP: #414368)
    -, get_modified_files(): Fix crash with empty lines.
      (LP: #408280)
    - Use installed version instead of candidate
      version where appropriate. This also fixes a crash where an obsolete
      package is not available any more. (LP: #423511)
    -, attach_gconf(): Fix crash with keys which do not have a
      schema default. (LP: #422277)
    - Remove LP #353805 workaround, seems fixed now.
    - Talk to staging if $APPORT_STAGING is set.
    - Explicitly supply content_type for addAttachment, current
      wadllib requires it now.
    - Paper over inexplicable import error.
      (LP: #348250)
    - Protect against nonexisting sys.argv.
      (LP: #418051)
    - apport/, load_report(): Check that report has ProblemType field.
      (LP: #198543)
    - Fix handling of complete vs. reduced report size. (LP: #92653).
      This also fixes a race condition crash with os.path.getsize().
      (LP: #348137)
    - fi.po: Fix mistranslation of "&Cancel". (LP: #355303)
    - apport-{gtk,kde}: Check for having $DISPLAY at startup to avoid crashes.
      (LP: #411276)
    -, add_gdb_info(): Fix race condition in unlink_core, thanks to
      Tommi Komulainen! (LP: #397945)
    -, load_report(): Robustify check whether program is still
      installed. (LP: #329184)
    -, install_retracing_packages(): Install package for
      ExecutablePath/InterpreterPath if missing; this can happen with package
      hooks which reassing package
    - Add a comment when marking a bug as a duplicate.
      (LP: #418871)
  * Move gdb dependency from apport to GUI packages to avoid pulling in gdb on
    Ubuntu server. Thanks to Steve Beattie! (LP: #354172)
  * ubuntu-bug: Fix handling of .crash file arguments, thanks to Marco
    Rodrigues for pointing this out! (LP: #422881)
  * debian/local/apport-collect: Set content_type and description, wadllib
    requires them now. (LP: #423512) Also drop the ASCII reencoding
    workaround, this doesn't seem to be necessary any more.
  * apport/, attach_conffiles(): Fix crash with obsolete
    conffiles. (LP: #412132)
  * debian/local/apport-collect: Do not upload data if the affected package
    isn't installed and there is no source package hook available either.
    (LP: #417277)
  * debian/local/ubuntu-bug: Accept .apport extension, too; thanks to Steve


Changed in apport (Ubuntu):
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

Related blueprints

Remote bug watches

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