[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1117735: Restarting systemd user units on package upgrade



Hello,

On Thu 04 Dec 2025 at 12:04pm +01, Jonas Smedegaard wrote:

>> > This is what I implemented:
>> >
>> > --8<---------------cut here---------------start------------->8---
>> > # At debhelper compat level 14, dh_installsystemduser will handle restarting
>> > # tag2upload-oracled on package upgrade: see #1117735.
>> > # We want this for the live service, but don't want to upgrade the whole
>> > # package to compat 14 to preserve buildability on older releases of Debian.
>> > # Debian::Debhelper::Dh_Lib::MAX_COMPAT_LEVEL has been available for a long
>> > # time; if it isn't, that won't go by silently because intcmp will exit the
>> > # build when it gets a non-numeric argument.
>> > MAX_COMPAT_LEVEL=$(shell perl -MDebian::Debhelper::Dh_Lib \
>> >                 -we'print Debian::Debhelper::Dh_Lib::MAX_COMPAT_LEVEL')
>> > override_dh_installsystemduser:
>> >         $(intcmp $(MAX_COMPAT_LEVEL),14,,DH_COMPAT=14) \
>> >                 dh_installsystemduser --name=tag2upload-oracled --no-enable
>> > --8<---------------cut here---------------end--------------->8---
>>
>> Possibly relevant: the make function intcmp was introduced in make 2022.
>
> Korrektion: upstream i 2022, I Debian kun siden december 2024!

Hrm!  That's actually fine, because then in the older releases it
expands to nothing, which is what we want.  Thanks for pointing it out.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: