[FFe] apt 1.6~rc1, zstd & hook support

Bug #1763839 reported by Julian Andres Klode
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

As discussed previously, we want to have zstd support in 18.04 to evaluate and potentially enable it in later releases. We also want to add hooks for
snap integration to apt, this release is supposed to add them too.

The new features are not invasive - they are new code with a few places too hook them in. If no zstd is used, or if no hooks are registered, then there will be basically no change in behavior (or code paths).

# FEATURE: zstd
The zstd support adds a dependency on libzstd1 to libapt-pkg5.0. This should not have any effect on live images, since libzstd1 is part of the various live tasks, as btrfs-progs need it. For installed systems, this might be a new dependency (if they do not use btrfs, tor, or some other tools), so an increase of ~520 KB, as that's the size of the library and the library only depends on libc6.

This also depends on the zstd patch in dpkg being uploaded. If this unexpectedly does not happen, and I upload apt first, I'd revert it later before the release.

# FEATURE: hooks
The concrete code is still undergoing review, some option names might change for the hooks before release (e.g. pre-download might become pre-install-prompt, and the AptCli::Hooks config section only gets Install and Search lists for hooks to register, rather than individual pre-, post-, and fail- lists).

# other changes
We disable the seccomp sandbox for methods for the release, as it turns out there are still too many failure cases for it to be worthwhile to enable (NSS modules, weird libc functions calling weird syscalls, etc). People can re-enable it with a config option.

the rest is bug fixes. some change translatable strings in documentation, but fix up the translation too. A few additional strings are added to the sources.list man page ("mention mirror method in sources.list (Closes: 679580)", but I'm happy to back them out.

There are also some CI fixes, and the major cache version is bumped so we can issue updates independently for 1.5 and 1.6 apt release series.

Revision history for this message
Julian Andres Klode (juliank) wrote :
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Balint Reczey (rbalint)
description: updated
Revision history for this message
Julian Andres Klode (juliank) wrote :

Diff for 1.6~rc1 from ~beta1

description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

FFe approved.

Changed in apt (Ubuntu):
status: New → Triaged
tags: added: id-5a9f9b96fff3bd2877ffa9de
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.6~rc1

---------------
apt (1.6~rc1) unstable; urgency=medium

  [ Julian Andres Klode ]
  * Experimental support for zstd (LP: #1763839)
  * Fix debian/NEWS entry for 1.6~beta1
  * Use https for Ubuntu changelogs
  * Bump cache major version to allow different 1.5 and 1.6 updates
  * CI: Switch testing to use ubuntu:bionic for 1.6.y
  * Turn off seccomp sandboxing by default (LP: #1732030) (Closes: #890489)
  * Allow restart_syscall() syscall in seccomp sandboxes (Closes: #891644)
  * Delete /etc/dpkg/dpkg.cfg.d/excludes on Docker CI images
  * test: export GCOV_ERROR_FILE=/dev/null to make it fail less/no tests
  * apt-private: Collect not found packages in CacheSetHelperAPTGet
  * Introduce experimental new hooks for command-line tools (LP: #1763839)

  [ David Kalnischkies ]
  * remove duplicate changelog lines from 1.6~beta1 entry
  * fix communication typo in https manpage
  * set our two libapt libraries to prio:optional
  * document Acquire::AllowReleaseInfoChange without extra s

  [ jean-pierre giraud ]
  * French man pages translation (Closes: #895117)

 -- Julian Andres Klode <email address hidden> Sun, 15 Apr 2018 21:41:44 +0200

Changed in apt (Ubuntu):
status: Triaged → 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.