[opensuse-packaging] package rename
two weeks ago I ask here on packaging mailing list how to deal with package rename, (without response) so after some investigating and talk with my colleagues I setup wiki which could be useful for others http://en.opensuse.org/Cron_rename -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Apr 30, 2010 at 02:32:03PM +0000, Michal Seben wrote:
two weeks ago I ask here on packaging mailing list how to deal with package rename, (without response) so after some investigating and talk with my colleagues I setup wiki which could be useful for others http://en.opensuse.org/Cron_rename
Some comments: - it's not zypper that splits the update into 'erase cron' and 'install cronie', but rpm. zypper just does 'rpm -U cronie', it doesn't do something else. - the simplest way to fix rc states is to add if test "$1" = 1 -a -e /usr/share/doc/packages/cron/README ; then set 2 ; fi to the top of the %post section. Any file that's in cron but not in cronie will do. - you're pretty much out of luck in regard of the %stop_on_removal in the %preun of old cron. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Some comments:
- it's not zypper that splits the update into 'erase cron' and 'install cronie', but rpm. zypper just does 'rpm -U cronie', it doesn't do something else. yes you are right, I rewritten wiki, the different behavior occurs only when you are installing package with subpackage see http://en.opensuse.org/Cron_rename#Different_behavior_of_rpm_-U_and_zypper_i...
- the simplest way to fix rc states is to add
if test "$1" = 1 -a -e /usr/share/doc/packages/cron/README ; then set 2 ; fi
thanks ! I used set 2, but I don't use /usr/share/doc/packages/cron/README file because this will not work when user use rpm --excludedocs
Cheers, Michael.
thanks for tips and feedback ! bye -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sun, May 02, 2010 at 07:04:12PM +0100, Michal ??ebe?? wrote:
thanks ! I used set 2, but I don't use /usr/share/doc/packages/cron/README file because this will not work when user use rpm --excludedocs
You can also use a file that's in cronie but not in cron. The check would be: if test -e /use/sbin/cron -a ! -e <some_cronie_file> ; then ... You can add a symlink from /usr/sbin/cronie to /usr/sbin/cron if there's no such file yet. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Michael Schroeder
-
Michal Seben
-
Michal Šebeň