Merge ~hyask/ubuntu/+source/klibc:master into ubuntu/+source/klibc:ubuntu/devel

Proposed by Skia
Status: Merged
Merged at revision: 243f91ad418ed26b35a6dbe8885239c8f90adda7
Proposed branch: ~hyask/ubuntu/+source/klibc:master
Merge into: ubuntu/+source/klibc:ubuntu/devel
Diff against target: 65 lines (+30/-4)
3 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/initramfs-tools/hooks/klibc-utils (+20/-3)
Reviewer Review Type Date Requested Status
Paride Legovini (community) Approve
Review via email: mp+457608@code.launchpad.net

Description of the change

As discussed, this is a request for sponsorship.

Fixes https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/2046336

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

This is basically OK, the only thing that is off are the meta-tags in the 69c40f46cc6dd commit message. Basically they need to be in separate lines:

Closes: #12345
LP: #12345

Note that the Debian one (the Closes:) also needs the # sign. This way dch will generate the changelog entry correctly. Your changelog entry currently has:

  (Closes: 1055694, #2046336)

but that won't close the LP bug because it doesn't match the `LP: #nnnnnn` format.

Adding the Debian bug reference won't change anything in practice, but I think it's nice to have a reference to the upstream Debian bug in the changelog, so +1 for that.

review: Needs Fixing
Revision history for this message
Paride Legovini (paride) :
review: Approve
Revision history for this message
Paride Legovini (paride) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading klibc_2.0.13-2ubuntu1.dsc: done.
  Uploading klibc_2.0.13-2ubuntu1.debian.tar.xz: done.
  Uploading klibc_2.0.13-2ubuntu1_source.buildinfo: done.
  Uploading klibc_2.0.13-2ubuntu1_source.changes: done.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 3c45edb..812a3bf 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+klibc (2.0.13-2ubuntu1) noble; urgency=medium
7+
8+ [ Klaus Frank ]
9+ * d/i/h/klibc-utils: Fix compatibility issue with busybox and improve verbose debug output.
10+ (Closes: #1055694) (LP: #2046336)
11+
12+ -- Florent 'Skia' Jacquet <florent.jacquet@canonical.com> Fri, 15 Dec 2023 16:08:42 +0100
13+
14 klibc (2.0.13-2) unstable; urgency=medium
15
16 * d/rules: Handle loong64 architecture (thanks to Peng Fan)
17diff --git a/debian/control b/debian/control
18index 42699cb..90c376e 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,6 +1,7 @@
22 Source: klibc
23 Priority: optional
24-Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
27 Uploaders: Ben Hutchings <benh@debian.org>, maximilian attems <maks@debian.org>
28 Build-Depends: debhelper-compat (= 12), linux-libc-dev, m4 [sparc]
29 Section: libs
30diff --git a/debian/initramfs-tools/hooks/klibc-utils b/debian/initramfs-tools/hooks/klibc-utils
31index 18e438b..dfd7545 100755
32--- a/debian/initramfs-tools/hooks/klibc-utils
33+++ b/debian/initramfs-tools/hooks/klibc-utils
34@@ -26,11 +26,28 @@ for src in /usr/lib/klibc/bin/*; do
35 # Don't install; these will not be needed
36 ;;
37 *)
38- # Don't install commands that already exist in /bin or /sbin
39- if ! [ -e "${DESTDIR}/sbin/$command" ]; then
40- cp -pnL "$src" "${DESTDIR}/bin"
41+ # Don't install commands that already exist in /bin
42+ if ! [ -e "${DESTDIR}/bin/$command" ]; then
43+ if [ "${verbose?}" = "y" ]; then
44+ echo "Adding binary-link ${DESTDIR}/bin/$command"
45+ fi
46+ cp -pnL "${src}" "${DESTDIR}/bin"
47+ else
48+ # Suppress our log output when busybox is enabled and
49+ # it belongs to busybox
50+ # We don't want to write a logentry for this when
51+ # the user configured busybox to take priority
52+ if [ "${BUSYBOX}" = "n" ] || [ -z "${BUSYBOXDIR}" ] || [ "$(basename $(realpath "${DESTDIR}/bin/$command"))" != "busybox" ]; then
53+ if [ "${verbose?}" = "y" ]; then
54+ echo "Skipping existing ${DESTDIR}/bin/$command"
55+ fi
56+ fi
57 fi
58 ;;
59 esac
60 done
61+
62+if [ "${verbose?}" = "y" ]; then
63+ echo "Adding libraries-link ${DESTDIR}/lib/klibc-*.so"
64+fi
65 cp -pL /lib/klibc-*.so "${DESTDIR}/lib"

Subscribers

People subscribed via source and target branches

to all changes: