| Summary: | dnsmasq package : rpm post script bug : "Failed to try-restart dnsmasq.service.service: Unit dnsmasq.service.service not found." | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | PC LX <mageia> |
| Component: | RPM Packages | Assignee: | Julien Moragny <julien.moragny> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | dnsmasq-2.87-1.mga9.src.rpm | CVE: | |
| Status comment: | |||
|
Description
PC LX
2022-11-06 11:01:18 CET
# rpm -q --scripts dnsmasq preinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin postinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq preuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq.service postuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-user dnsmasq $1 dnsmasq Looks like the preuninstall scriplet should not have the ".service". Assigning to Julien, the registered maintainer. Problem is also present in Mageia 8, so the only way to avoid this during upgrade is update it in Mageia 8, which will trigger the error message there when the update is installed there. CC:
(none) =>
davidwhodgins I'm not the registered maintainer, it's probably a mistake. Sorry, assigning to the correct Julien. Assignee:
gouessej =>
julien.moragny Retesting upgrading from Mageia 8 to Mageia 9/cauldron. This issue is still present.
# LANGUAGE=C urpmi dnsmasq
http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/release/dnsmasq-2.87-1.mga9.x86_64.rpm
installing dnsmasq-2.87-1.mga9.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ##############
1/1: dnsmasq ##############
Warning: Problems encountered when activating services.
Please check and enable manually if necessary.
Service units affected: dnsmasq.service.service
# rpm -q dnsmasq
dnsmasq-2.87-1.mga9
# rpm -q --scripts dnsmasq
preinstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin
postinstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq.service
preuninstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq.service
postuninstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/del-user dnsmasq $1 dnsmasq
Hello, I just pushed dnsmasq 2.87-2 to cauldron which fix the issue with upgrading. for 8, it only impacts uninstallation where the service is not stopped when uninstalled. I'll submit an update to 8 if no other problem emerge with cauldron after some days. regards julien This issue seems to be fixed in cauldron and no other issues found on the quick tests I did.
# uname -a
Linux vm-jupiter-mageia-9 6.0.8-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Fri Nov 11 15:23:14 UTC 2022 x86_64 GNU/Linux
# urpmi dnsmasq
$MIRRORLIST: media/core/release/dnsmasq-2.87-2.mga9.x86_64.rpm
installing dnsmasq-2.87-2.mga9.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ##############
1/1: dnsmasq ##############
# rpm -q dnsmasq
dnsmasq-2.87-2.mga9
# rpm -q --scripts dnsmasq
preinstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin
postinstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq
preuninstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq
# urpme dnsmasq
removing dnsmasq-2.87-2.mga9.x86_64
removing package dnsmasq-2.87-2.mga9.x86_64
1/1: removing dnsmasq-2.87-2.mga9.x86_64
###############
|