On Thu, Jul 13, 2023 at 8:01 AM Martin-Éric Racine <martin-eric.rac...@iki.fi> wrote: > > On Thu, Jul 13, 2023 at 3:21 AM Andreas Beckmann <a...@debian.org> wrote: > > > > On 11/07/2023 07.05, Martin-Éric Racine wrote: > > >> This is what I would push to stable-proposed-updates (see attachment). > > >> Would this do the trick? If yes, I can upload to Mentors. If not, > > >> please explain. > > > > > > Package waiting on Mentors. > > > > Looks good. Minor nitpicks: > > - in d/changelog: use "bookworm" instead of "stable-proposed-updates" > > - close the bug #1037190 > > > > Can you put the commits in a new debian/bookworm branch on salsa, > > starting from tag debian/9.4.1-24? > > > > I'll sponsor that upload for you. > > E: dhcpcd5 changes: bad-distribution-in-changes-file bookworm > > Re-uploaded to Mentors.
Scratch that. Mentors doesn'r know about any release newer than Bullseye and rejected the upload. Debdiff attached. Martin-Éric PS: I don't know how to fork a branch on Git. My Git skills are minimal.
diff -Nru dhcpcd5-9.4.1/debian/changelog dhcpcd5-9.4.1/debian/changelog --- dhcpcd5-9.4.1/debian/changelog 2023-05-29 10:45:31.000000000 +0300 +++ dhcpcd5-9.4.1/debian/changelog 2023-07-13 07:56:52.000000000 +0300 @@ -1,6 +1,16 @@ +dhcpcd5 (9.4.1-24+deb12u1) bookworm; urgency=medium + + * Backported Wheezy upgrade mitigation from unstable (Closes: #1037190). + + Include /usr/share/dpkg/pkg-info.mk needed for target version mingling. + + Add epoch to bin:dhcpcd via override_dh_gencontrol. + Wheezy had (1:3.2.3-11+deb7u1) so reintroduce the epoch for one target. + + Add dhcpcd.preinst by Andreas Beckmann to clean up upgrade leftovers. + + -- Martin-Éric Racine <martin-eric.rac...@iki.fi> Thu, 13 Jul 2023 07:56:52 +0300 + dhcpcd5 (9.4.1-24) unstable; urgency=medium - * Upload to unstable + * Upload to unstable. -- Martin-Éric Racine <martin-eric.rac...@iki.fi> Mon, 29 May 2023 15:45:31 +0800 diff -Nru dhcpcd5-9.4.1/debian/copyright dhcpcd5-9.4.1/debian/copyright --- dhcpcd5-9.4.1/debian/copyright 2023-05-24 16:29:33.000000000 +0300 +++ dhcpcd5-9.4.1/debian/copyright 2023-07-09 22:09:15.000000000 +0300 @@ -4,7 +4,7 @@ Upstream-Contact: Roy Marples <r...@marples.name> Files: * -Copyright: 2006-2018 Roy Marples <r...@marples.name> +Copyright: 2006-2023 Roy Marples <r...@marples.name> 1999, 2016 The NetBSD Foundation, Inc. 2005 Colin Percival 2005 The DragonFly Project. All rights reserved. @@ -68,6 +68,7 @@ 2015 Daniel Echeverry <epsilo...@gmail.com> 2018 Scott Leggett <sc...@sl.id.au> 2022-2023 Martin-Éric Racine <martin-eric.rac...@iki.fi> + 2023 Andreas Beckmann <a...@debian.org> License: BSD-2 Files: debian/hooks/* diff -Nru dhcpcd5-9.4.1/debian/dhcpcd.preinst dhcpcd5-9.4.1/debian/dhcpcd.preinst --- dhcpcd5-9.4.1/debian/dhcpcd.preinst 1970-01-01 02:00:00.000000000 +0200 +++ dhcpcd5-9.4.1/debian/dhcpcd.preinst 2023-07-09 22:07:22.000000000 +0300 @@ -0,0 +1,14 @@ +#!/bin/sh +# As per Debian bug #1037190. +# Copyright 2023 Andreas Beckmann <a...@debian.org> +set -e +if dpkg --compare-versions "$2" lt-nl "1:9.4.1-24+deb12u1~" ; then + # Cleanup leftovers from dhcpcd 1:3.* in Wheezy. + # Can be removed after Trixie is released. + update-alternatives --remove dhcpcd /sbin/dhcpcd3 + if [ -d /etc/dhcpc ]; then + test ! -h /etc/dhcpc/resolv.conf || rm -fv /etc/dhcpc/resolv.conf + rmdir --ignore-fail-on-non-empty /etc/dhcpc + fi +fi +#DEBHELPER# diff -Nru dhcpcd5-9.4.1/debian/rules dhcpcd5-9.4.1/debian/rules --- dhcpcd5-9.4.1/debian/rules 2023-05-24 16:29:33.000000000 +0300 +++ dhcpcd5-9.4.1/debian/rules 2023-07-09 22:14:37.000000000 +0300 @@ -1,4 +1,5 @@ #!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all @@ -12,8 +13,12 @@ --libexecdir=/usr/lib/dhcpcd \ --rundir=/run/dhcpcd -# avoid starting the unconfigured service as it may break connectivity +# Wheezy had (1:3.2.3-11+deb7u1) so reintroduce the epoch for one target. +override_dh_gencontrol: + dh_gencontrol --package=dhcpcd -- -v1:$(DEB_VERSION_UPSTREAM_REVISION) + dh_gencontrol --remaining-packages +# Avoid starting the unconfigured service as it may break connectivity. override_dh_installinit: dh_installinit --name=dhcpcd --no-start