![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package ntfs-3g_ntfsprogs for openSUSE:Factory checked in at 2016-08-22 10:06:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ntfs-3g_ntfsprogs (Old) and /work/SRC/openSUSE:Factory/.ntfs-3g_ntfsprogs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ntfs-3g_ntfsprogs" Changes: -------- --- /work/SRC/openSUSE:Factory/ntfs-3g_ntfsprogs/ntfs-3g_ntfsprogs.changes 2016-04-11 09:12:05.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ntfs-3g_ntfsprogs.new/ntfs-3g_ntfsprogs.changes 2016-08-22 10:06:28.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Aug 11 21:39:51 UTC 2016 - Greg.Freemyer@gmail.com + +- Fix update-alternatives usage. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ntfs-3g_ntfsprogs.spec ++++++ --- /var/tmp/diff_new_pack.YbzJB2/_old 2016-08-22 10:06:29.000000000 +0200 +++ /var/tmp/diff_new_pack.YbzJB2/_new 2016-08-22 10:06:29.000000000 +0200 @@ -53,11 +53,8 @@ %if 0%{?suse_version} Requires(post): update-alternatives Requires(postun): update-alternatives -# The build service fails to build the package because it doesn't really -# understand Requires(post), so use PreReq too (see bnc#439232). -PreReq: update-alternatives -%endif -%if 0%{?suse_version} > 1010 +Requires(preun): update-alternatives +Requires(postun): update-alternatives Supplements: filesystem(ntfs-3g) %endif @@ -129,7 +126,6 @@ --enable-extras \ --enable-crypto \ --enable-quarantined - make %{?_smp_mflags} %install @@ -138,8 +134,10 @@ # Hal stuff for mounting on hotplug. %{__mkdir_p} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/ %{__install} -m 644 %{SOURCE2} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/21-storage-ntfs-3g.fdi -# Touch ghost files -touch %{buildroot}/sbin/mount.ntfs %{buildroot}%{_mandir}/man8/mount.ntfs.8 +# Alternatives for mount.ntfs (binary and manpage) +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +ln -s -f %{_sysconfdir}/alternatives/mount.ntfs %{buildroot}/sbin/mount.ntfs +ln -s -f %{_sysconfdir}/alternatives/mount.ntfs.8%{ext_man} %{buildroot}%{_mandir}/man8/mount.ntfs.8%{?ext_man} %check TESTFS=$(mktemp) || exit 1 @@ -151,21 +149,14 @@ %post -n ntfs-3g # If the mount.ntfs group is in automatic mode, then this will also switch all # symlinks automatically -update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave /usr/share/man/man8/mount.ntfs.8.gz mount.ntfs.8.gz /usr/share/man/man8/mount.ntfs-3g.8.gz +update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave %{_mandir}/man8/mount.ntfs.8%{?ext_man} mount.ntfs.8%{?ext_man} %{_mandir}/man8/mount.ntfs-3g.8%{?ext_man} -%postun -n ntfs-3g +%preun -n ntfs-3g # Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed if [ ! -f /sbin/mount.ntfs-3g ]; then update-alternatives --remove mount.ntfs /sbin/mount.ntfs-3g fi -%posttrans -n ntfs-3g -# Workaround old bug in 11.1/11.2 packages that always removed the symlinks in -# %postun. Can be removed during 12.2 development. -if [ ! -f /sbin/mount.ntfs -a -f /sbin/mount.ntfs-3g ]; then - update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave /usr/share/man/man8/mount.ntfs.8.gz mount.ntfs.8.gz /usr/share/man/man8/mount.ntfs-3g.8.gz -fi - %post -n libntfs-3g%soname -p /sbin/ldconfig %postun -n libntfs-3g%soname -p /sbin/ldconfig @@ -184,6 +175,8 @@ %{_bindir}/ntfs-3g.usermap %{_bindir}/lowntfs-3g %ghost /sbin/mount.ntfs +%ghost %{_sysconfdir}/alternatives/mount.ntfs +%ghost %{_sysconfdir}/alternatives/mount.ntfs.8%{?ext_man} /sbin/mount.ntfs-3g /sbin/mount.lowntfs-3g %{_mandir}/man8/mount.lowntfs-3g.8%{?ext_man}
participants (1)
-
root@hilbert.suse.de