public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Beniamino Galvani <bgalvani@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kea] rawhide: Run scriptlet in %pre instead of %pretrans
Date: Mon, 10 Aug 2026 09:16:56 GMT [thread overview]
Message-ID: <178635341643.1.7736906205837462848.rpms-kea-db7990d7d6bf@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kea
Branch : rawhide
Commit : db7990d7d6bf308736d40efcfeee06a53a81615d
Author : Beniamino Galvani <bgalvani@redhat.com>
Date : 2026-08-10T08:21:01+02:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kea/c/db7990d7d6bf308736d40efcfeee06a53a81615d?branch=rawhide
Log:
Run scriptlet in %pre instead of %pretrans
From the rpm documentation:
Note that the %pretrans scriptlet will, in the particular case of
system installation, run before anything at all has been
installed. This implies that it cannot have any dependencies at
all. For this reason, %pretrans is best avoided, but if used it MUST
(by necessity) be written in Lua.
When kea is part of the initial installation, if fails with:
Transaction failed: Rpm transaction failed.
- /bin/sh is needed by kea-3.2.0-3.fc45.x86_64
To fix this, run the scriptlet in %pre instead which is still executed
before the old package is removed.
---
diff --git a/kea.spec b/kea.spec
index 23fa711..e54a397 100644
--- a/kea.spec
+++ b/kea.spec
@@ -229,7 +229,7 @@ install -dm 0750 %{buildroot}%{_rundir}/kea/
mkdir -p %{buildroot}%{_localstatedir}/log
install -dm 0750 %{buildroot}%{_localstatedir}/log/kea/
-%pretrans
+%pre
if [ $1 -ge 2 ]; then
# kea-ctrl-agent was removed in 3.2.0; stop any running instance on upgrade
systemctl disable --now kea-ctrl-agent.service >/dev/null 2>&1 || :
reply other threads:[~2026-08-10 9:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178635341643.1.7736906205837462848.rpms-kea-db7990d7d6bf@fedoraproject.org \
--to=bgalvani@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox