vcswatch reports that
this package seems to have new commits in its VCS but has
not yet updated debian/changelog. You should consider updating
the Debian changelog and uploading this new version into the archive.
Here are the relevant commit logs:
commit f3a6ef17089d7ee8ae64b333fd969cc8aec3e124
Merge: 2213cf5a dd9e5630
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 22:05:01 2026 +0000
Merge branch 'json' into 'main'
json: Minor tweaks from clang-tidy
See merge request apt-team/apt!659
commit dd9e5630bfa2e9c7fe69f4d667b319512fd0a7af
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 21:05:25 2026 +0100
Fix warnings in gcc 16
Unused variables and some missing noexcept
commit 5fdd8ce7ebce3cad999a56f88e10c23a353bddfb
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 20:47:49 2026 +0100
json: Provide APT_REFLECT() macro and use it
This really cuts down on the boiler plate.
commit 9db650583c7da3f4175dce01f366f90481263eae
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 20:15:16 2026 +0100
methods/connect: fix warning with OpenSSL 4
We do not even need the clearing logic, so adapt to the new
functions without, which simplifies that transition a bit.
commit 92bc5d5408f4d1257bb74aa364596ebc27ec4250
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 20:06:03 2026 +0100
test: fix a compiler warning
commit ad802279cc168955f6d7a101ec40507a8570e382
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 19:19:44 2026 +0100
CI: Run clang-tidy for apt-core
commit 42979e9a149ca6d5ea68a630e3b030755d1283ad
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 19:44:53 2026 +0100
json: Apply [[nodiscard]] to all const methods
This allows us to enable clang-tidy for it. While a bit overzealous,
this is better than missing an std::expected error check somewhere.
commit 0455198acb70c5762193c79cd3162575c67e0ce9
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 19:40:18 2026 +0100
json: Use trailing return type consistently
With all the templates it is way cleaner.
commit 07b8f89a753ed357221eee7b680aca04cc4bf30b
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 19:10:57 2026 +0100
json: Minor tweaks from clang-tidy
Particularly make the JSON validator look memory safe
(it already was memory safe), use designated initializers
for fields, and const some stuff.
commit 2213cf5acfe63d990ff603f342e598842b2c61b0
Merge: 342699ff 74d7137a
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 17:26:32 2026 +0000
Merge branch 'json' into 'main'
Add new JSON library, remove old JSON writer
See merge request apt-team/apt!654
commit 74d7137ae7d63dfee6f878db74ab1150c62faed2
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:14:23 2026 +0100
apt-private: Remove old JSON writer
It was nice to have you friend, but you are no longer needed. I
still recall the days of when I wrote you, having used Android's
JsonWriter class at some point way before you and thinking: Oh
this is a nice stop gap to implement the hooks without introducing
a dependency.
commit c7c7f634ee060a733a9051af6b3075f8157837a6
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:10:07 2026 +0100
apt-private: Use JSON library for JSON hooks
Replace the custom JSON writer and substring handshake parsing with the
new JSON library.
This may break hooks that send invalid JSON responses since the
response parser is now strict.
commit a1eb990c362fee3526e66820552ca735a34af290
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 18:01:52 2026 +0100
apt-private: Make JSON hook cleanup exception-safe
Various simple DEFER macros that we missed that are I don't want
to say needed for the new JSON code since nothing catches the
exceptions but they certainly don't hurt.
This also ensures that we wait for hooks to complete in all
conditions which is helpful.
commit 99d6c36f24c003bec576b20e2fe29cfceb5f4bfd
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 15:51:22 2026 +0100
json: Introduce reflection
Allow structs to be a reflectable by instantiating the Reflect
template and provide Encode/Decode for Reflectable structs.
commit 71f00004d094a46e48a19d8ff3e2419331e37530
Author: Julian Andres Klode <jak@debian.org>
Date: Mon Nov 23 15:26:08 2026 +0100
json: Introduce Encode/Decode functionality
The get() function supports a `Decode` concept for custom types to
declare a conversion function, allowing uniform decoding across
all types.
To provide support for decoding into a struct, into() functions
build on the get() to store values into a variable, deducting the
type parameter from the variable;
uint64_t a;
MyStruct b;
auto res = someValue.into(a)
.and_then([&] { return someValue.into(b); });
if (not res)
// Inspect res.error for the error;
I paid some special attention to ensuring [[nodiscard]] is set
on the functions returning std::expected<void, ...> to avoid people
ignoring errors; whereas raw getters don't need it.
Likewise for Encode.
Both have support for non-primitive values too, encoding/decoding
into range-like objects in particular.
commit 14b313a0832cc99550abdd094a881187cc7070a5
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 17:51:54 2026 +0100
json: Introduce the apt-core-json library
This has been designed with a look at most modern C++23 practices;
and safety. It utilizes a View class that is an unowned reference
and a Value that is a mutating owner.
It is the first in a set of new libraries that are built as
position-independent static libraries to be linked into other
pieces. No API or ABI stability is guaranteed.
We use json-c as the backing library. We had a second implementation
using sd-json, however it's a bit wild to keep the json-c one around
just for Hurd basically, completely untested, so we only keep the
json-c backend.
The json-c tokenizer is a bit of a shit show; it accepts NUL bytes
in strings, single quoted strings, so we added some logic to detect
and reject those to only accept syntax that is within the specification.
commit 6db452cece443ecbf32606f21049631f8819011c
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 17:39:03 2026 +0100
test: Rename json_test.cc to jsonwriter_test.cc
This prepares for the new JSON library
commit 3c0b7be5ad59ed16344ca0fcf41ba0ec3ebb15d8
Author: Julian Andres Klode <jak@debian.org>
Date: Sun Nov 22 11:19:35 2026 +0100
CMake: Add some warning overrides
commit 3203defaec9ab3314312bfff8b4018cd7488667e
Author: Julian Andres Klode <jak@debian.org>
Date: Sat Nov 21 20:15:22 2026 +0100
clang-format: Do not break before lambdas or template decls
God this bugged me for ages. It's the same as Allman style
AFAICT, except it does not break lambdas and allows templates
and requires on same line.
commit 342699ffa1c52cb3fd9b9c0a9b0561ad8e46d170
Merge: d08ed246 4e0ec9da
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 20:18:58 2026 +0000
Merge branch 'acquire-fixes' into 'main'
acquire: Refactor URI decoding, fix spinning
See merge request apt-team/apt!652
commit 4e0ec9da909f0be19059047c453798e45978750f
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 14:58:16 2026 +0100
acquire: Avoid scheduler spins for deferred acquire items
Only force an immediate select when Cycle has queued new work. A retry
deferred by a conflicting URI would otherwise repeatedly trigger a
zero-timeout select until the active request finishes.
commit 761912617fa43842b0b0ed5a187682d2ded19ee9
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 14:51:13 2026 +0100
acquire: Refactor URI decoding
Factor legacy URI decoding out of Queue::FindItem into MethodURI,
providing the URI sent to methods for later scheduler checks.
commit d08ed24612619af5aa0092d209d475124bac788d
Author: Julian Andres Klode <jak@debian.org>
Date: Wed Nov 18 21:14:11 2026 +0100
Update SECURITY.md
Include OpenPGP keys in the package, offer Launchpad bugs as an easier
alternative, and encourage reporting complex multi-step processes in
bullet points rather than prose.
commit 6b11e862605da88ea4d446a418a706f3a5fe524c
Merge: 2142cf67 7702126c
Author: Julian Andres Klode <jak@debian.org>
Date: Tue Nov 17 17:55:19 2026 +0000
Merge branch 'upgrade-on-battery' into 'main'
debian: Let unattended-upgrade decide about battery power
See merge request apt-team/apt!641
commit 7702126c1c3831d9fa1b51e00a5dffbb17f6d8fa
Author: Johan Walles <johan.walles@gmail.com>
Date: Mon Oct 26 21:14:21 2026 +0100
debian: Let unattended-upgrade decide about battery power
ConditionACPower=true keeps both services from ever starting on
battery, so laptops that are only on battery while awake never get
unattended upgrades.
unattended-upgrade has checked the power source itself since 1.3
(2018), before starting and between upgrade steps, so the condition
only duplicates that check. From 2.14 on it can also upgrade above a
battery threshold, MinBatteryLevel.
apt-daily.service needs to run too, or the package lists go stale.
Refreshing them doesn't touch installed packages.
Tested on a MacBookPro16,1 on battery, with these units and
unattended-upgrades 2.12 with OnlyOnACPower "true": apt-daily.service
refreshed the package lists, and unattended-upgrade logged "System is
on battery power, stopping" without updating the upgrade stamp.
Related: https://launchpad.net/bugs/2089151
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>