Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-03-05 15:36:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mksh" Changes: -------- --- /work/SRC/openSUSE:Factory/mksh/mksh.changes 2014-01-13 10:55:33.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-03-05 15:36:39.000000000 +0100 @@ -1,0 +2,6 @@ +Sat Feb 8 12:48:55 UTC 2014 - gber@opensuse.org + +- adjust update-alternative usage to packaging policy + (see http://lists.opensuse.org/opensuse-packaging/2014-02/msg00024.html) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mksh.spec ++++++ --- /var/tmp/diff_new_pack.u2Xcpv/_old 2014-03-05 15:36:40.000000000 +0100 +++ /var/tmp/diff_new_pack.u2Xcpv/_new 2014-03-05 15:36:40.000000000 +0100 @@ -33,6 +33,7 @@ BuildRequires: ed # for %%check BuildRequires: perl +BuildRequires: update-alternatives %if 0%{?suse_version} >= 1320 # replaces pdksh in openSUSE >= 13.2 Provides: pdksh = %{version} @@ -95,7 +96,7 @@ install -D -p -m 644 ${shell}.1 %{buildroot}%{_mandir}/man1/${shell}.1 ln -s %{_bindir}/${shell} %{buildroot}/bin/${shell} done -install -d %{buildroot}%{_sysconfdir} +install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives ln -s %{_sysconfdir}/bash.bashrc %{buildroot}%{_sysconfdir}/mkshrc %if 0%{?suse_version} >= 1320 # compatibility symlinks for pdksh, lksh replaces pdksh in openSUSE >= 13.2 @@ -103,10 +104,13 @@ ln -s %{_bindir}/lksh %{buildroot}%{_bindir}/pdksh ln -s %{_mandir}/man1/lksh.1%{ext_man} \ %{buildroot}%{_mandir}/man1/pdksh.1%{ext_man} -# ghost files for update-alternatives -ln -sf /bin/true %{buildroot}/bin/ksh -ln -sf /bin/true %{buildroot}/%{_bindir}/ksh -ln -sf %{_mandir}/man1/lksh.1%{ext_man} \ +# symlinks for update-alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/ksh \ + %{buildroot}%{_sysconfdir}/alternatives/usr-bin-ksh \ + %{buildroot}%{_sysconfdir}/alternatives/ksh.1%{ext_man} +ln -sf %{_sysconfdir}/alternatives/ksh %{buildroot}/bin/ksh +ln -sf %{_sysconfdir}/alternatives/usr-bin-ksh %{buildroot}/%{_bindir}/ksh +ln -sf %{_sysconfdir}/alternatives/ksh.1%{ext_man} \ %{buildroot}/%{_mandir}/man1/ksh.1%{ext_man} %endif @@ -121,9 +125,9 @@ %if 0%{?suse_version} >= 1320 %post %{_sbindir}/update-alternatives \ - --install /bin/ksh ksh /bin/lksh 15 \ + --install /bin/ksh ksh %{_bindir}/lksh 15 \ --slave %{_bindir}/ksh usr-bin-ksh %{_bindir}/lksh \ - --slave %{_mandir}/man1/ksh.1.gz ksh.1.gz %{_mandir}/man1/lksh.1%{ext_man} + --slave %{_mandir}/man1/ksh.1%{?ext_man} ksh.1%{?ext_man} %{_mandir}/man1/lksh.1%{?ext_man} %preun if test $1 -eq 0 ; then @@ -157,15 +161,18 @@ /bin/lksh %{_bindir}/mksh %{_bindir}/lksh -%{_mandir}/man1/mksh.1%{ext_man} -%{_mandir}/man1/lksh.1%{ext_man} +%{_mandir}/man1/mksh.1%{?ext_man} +%{_mandir}/man1/lksh.1%{?ext_man} %if 0%{?suse_version} >= 1320 /bin/pdksh %{_bindir}/pdksh -%{_mandir}/man1/pdksh.1%{ext_man} -%ghost %verify(not link) /bin/ksh -%ghost %verify(not link) %{_bindir}/ksh -%ghost %verify(not link) %{_mandir}/man1/ksh.1%{ext_man} +%{_mandir}/man1/pdksh.1%{?ext_man} +/bin/ksh +%{_bindir}/ksh +%{_mandir}/man1/ksh.1%{?ext_man} +%ghost %{_sysconfdir}/alternatives/ksh +%ghost %{_sysconfdir}/alternatives/usr-bin-ksh +%ghost %{_sysconfdir}/alternatives/ksh.1%{?ext_man} %endif %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org