On Fri, Mar 17, Michal Kubecek wrote:
On Friday, 17 March 2017 9:55 Thorsten Kukuk wrote:
The correct Requires depends on, in which pre/post install sections you are calling insserv. But normally, "Requires(pre)" is correct and "Requires:" is wrong. Because you use insserv already in a %pre* section, so insserv needs to be installed before your package will be installed.
Would that also prevent anything included in %{insserv_prereq} from being uninstalled after I install my package? My understanding of your earlier mail was that after your change, it is responsibility of any package with init scripts to make sure at least insserv-compat is installed whenever my package is installed.
It is the responsibility of any package calling packages in pre/post install sections that they are installed. Independent of if this is insserv or any other tool. That's the case since SUSE supports pre/post install scripts. So packages calling insserv in there pre/post install section and not making sure that it is installed are buggy and did only work by accident in the past, because other, correct packages did install it. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org