~ubuntu-support-team/dpkg/+git/dpkg:bullseye

Last commit made on 2023-09-13
Get this branch:
git clone -b bullseye https://git.launchpad.net/~ubuntu-support-team/dpkg/+git/dpkg

Branch merges

Branch information

Name:
bullseye
Repository:
lp:~ubuntu-support-team/dpkg/+git/dpkg

Recent commits

908b777... by Guillem Jover <email address hidden>

Release 1.20.13

642284c... by Guillem Jover <email address hidden>

po: Regenerate .pot files and merge .po files with them

adac650... by Guillem Jover <email address hidden>

arch: Add support for loong64 CPU

This is based on the LoongArch 64-bit little-endian hard-float ISA.

Closes: #1023486
Based-on-patch-by: 张丹丹 <email address hidden>
(cherry picked from commit 321e479ba142e6b05d1a27b50e4bb7900903fbf0)

bddfda9... by Guillem Jover <email address hidden>

libdpkg: Fix varbuf memory leak in pkg_source_version()

The function uses an intermediary varbuf to construct the string to then
pass to parseversion() to parse which then uses the non-freeing
allocator for any string it needs to preserve. We need to free that
intermediate varbuf otherwise we leak it.

Warned-by: gcc ASAN
Stable-Candidate: 1.20.x 1.21.x
(cherry picked from commit 740b5c881accb6c0dcc5c442a8d1ad06324735a3)

3529af4... by Guillem Jover <email address hidden>

libdpkg: Handle missing Version when formatting source:Upstream-Version

When dealing with virtual packages (such as the ones from Provides, or
for not-installed Recommends or Suggests), there might be no version
field at all, so we cannot assume we can use these when filling in the
version information in the fallback code handling the missing Source
field.

The commit that removed the check for not-installed packages missed that
this instance had not been protected, as the code in varbufversion() is
doing the correct thing, but unfortunately we are not using that because
we need to get at the upstream part, so we need to also check explicitly
for a non-NULL upstream part. This was causing a segfault.

Fixes: commit 560574b55a543d3d0a0f4e8abf0ae42f46d2a2f1
Stable-Candidates: 1.20.x 1.21.x
Reported-by: John Scott <email address hidden>
(cherry picked from commit 2c4814f7cb676c335c6372284ac95b7fc986effb)

b74a54a... by Guillem Jover <email address hidden>

test: Add new pkg-format unit tests

(cherry picked from commit d9f603f110d79393174f287d041b5e7cea7dc4c9)

bf7d547... by Guillem Jover <email address hidden>

libdpkg: Refactor pkg_format_print() out from pkg_format_show()

This will allow testing the formatting code.

(cherry picked from commit cee8e4b5a5c7cc0ccd4810c83796ec824f5ebb63)

c3ad3e4... by Guillem Jover <email address hidden>

Bump version to 1.20.13

1fd89b4... by Guillem Jover <email address hidden>

Release 1.20.12

b64e601... by Guillem Jover <email address hidden>

po: Regenerate .pot files and merge .po files with them