~seb128/ubuntu/+source/apport:desktop-installer-noble

Last commit made on 2024-07-11
Get this branch:
git clone -b desktop-installer-noble https://git.launchpad.net/~seb128/ubuntu/+source/apport
Only Sebastien Bacher can upload to this branch. If you are Sebastien Bacher please log in for upload directions.

Branch merges

Branch information

Name:
desktop-installer-noble
Repository:
lp:~seb128/ubuntu/+source/apport

Recent commits

66a8516... by Sebastien Bacher

Fix some issues in the hook for ubuntu-desktop-bootstrap (lp: #2072751)

ee0457f... by Benjamin Drung

Release apport 2.28.1-0ubuntu3.1

Signed-off-by: Benjamin Drung <email address hidden>

2b3d24a... by Benjamin Drung

report: Fix retracing crashes on Ubuntu noble

Retracing crashes from Ubuntu 24.04 (noble) can fail with (test case
`test_retrace_system_sandbox_gdb_sandbox`):

```
ERROR: [Errno 2] No such file or directory: '/tmp/apport_sandbox_8s5bjkjo/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2'
```

Let `subprocess.run` find the correct path to `ld-linux-x86-64.so.2` by
letting it search through all library paths.

Add system tests for apport-retrace: One set of tests for retracing the
same release and one set of tests for retracing crashes of a different
release (in this case jammy).

Bug-Ubuntu: https://launchpad.net/bugs/2067120
Forwarded: https://github.com/canonical/apport/pull/341
Signed-off-by: Benjamin Drung <email address hidden>

1b80324... by Benjamin Drung

whoopsie-upload-all: exit with 0 if whoopsie is disabled

`apport-autoreport.service` fails if auto-reporting is disabled:

```
$ systemctl status apport-autoreport.service
× apport-autoreport.service - Process error reports when automatic reporting is enabled
     Loaded: loaded (/usr/lib/systemd/system/apport-autoreport.service; static)
     Active: failed (Result: exit-code) since Thu 2024-06-13 21:55:08 CEST; 1h 9min ago
TriggeredBy: ● apport-autoreport.timer
             ● apport-autoreport.path
    Process: 1059564 ExecStart=/usr/share/apport/whoopsie-upload-all --timeout 20 (code=exited, status=1/FAILURE)
   Main PID: 1059564 (code=exited, status=1/FAILURE)
        CPU: 86ms

Jun 13 21:55:08 host systemd[1]: Starting apport-autoreport.service - Process error reports when automatic reporting is enabled...
Jun 13 21:55:08 host whoopsie-upload-all[1059564]: ERROR: whoopsie.path is not enabled
Jun 13 21:55:08 host systemd[1]: apport-autoreport.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:55:08 host systemd[1]: apport-autoreport.service: Failed with result 'exit-code'.
Jun 13 21:55:08 host systemd[1]: Failed to start apport-autoreport.service - Process error reports when automatic reporting is enabled.
```

Change the log message to info level and exit with 0 in that case.

Bug: https://launchpad.net/bugs/2069360
Forwarded: https://github.com/canonical/apport/pull/355
Signed-off-by: Benjamin Drung <email address hidden>

88f9eb7... by Benjamin Drung

apport: create /var/crash with setgid permission

In case `/var/crash` exists, let `apport --start` not modify the
permission of the directory. Otherwise the permission might be changed
to an unwanted mode (see discussion in the linked bug).

Create `/var/crash` with mode 3777 instead of 1777 to have the `setgid`
permission set. The `setgid` permission causes crash files created in
`/var/crash` to inherit its group ownership.

Bug: https://launchpad.net/bugs/2066995
Signed-off-by: Benjamin Drung <email address hidden>

c49aafa... by Chris Peterson

subiquity: handle missing log for version inspect

The subiquity package hook relies on parsing the version information out
of one of the log files. The contents of this file are only available if
the permission elevation prompt works. Change to conditionally update
the version only if the log contents were retrieve successfully.

LP: #2067775

4de12f1... by Chris Peterson

subiquity: typing updates

06d3deb... by Chris Peterson

subiquity: modify revision logic for permissions

Change the get_revision logic to accept the contents of the log
instead of reading it directly. This way we don't have to do a
permissions prompt just to get the revision information.

8c2490b... by Chris Peterson

subiquity: refactor logic to determine revision

a7f07c7... by Chris Peterson

subiquity: add journal logs

* d/package-hooks/subiquity.py:
  - Add journal logs