On Fri, 2017-03-17 at 10:52 +0100, Michal Kubecek wrote:
I guess I wasn't clear enough earlier. I understand why having the dependency "Requires(pre): %{insserv_prereq}" is _needed_. My question rather is if it is going to be _sufficient_ even after /etc/init.d becomes part of insserv-compat and is no longer automatically present.
There is a check that unless a directory under which my package installs files is one of the "known to be always there", it should be either in my package or in one of its Requires.
It will be fine - Requires(pre) is also a Requires..
and %{insserv_prereq} translates to:
rpm -E %{insserv_prereq}
insserv sed
of which insserv is provided by:
rpm -q --whatprovides insserv
insserv-compat-0.1-17.93.noarch
So, with Requires(pre): %insserv-prereq you are fine.
(and you can't uninstall insserv-compat if some package has a
Requires(pre) on it)
cheers,
Dominique
--
Dimstar / Dominique Leuenberger