Hello community, here is the log from the commit of package ntfs-3g_ntfsprogs for openSUSE:Factory checked in at 2017-04-11 09:29:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ntfs-3g_ntfsprogs (Old) and /work/SRC/openSUSE:Factory/.ntfs-3g_ntfsprogs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ntfs-3g_ntfsprogs" Tue Apr 11 09:29:54 2017 rev:23 rq:485792 version:2016.2.22 Changes: -------- --- /work/SRC/openSUSE:Factory/ntfs-3g_ntfsprogs/ntfs-3g_ntfsprogs.changes 2016-08-22 10:06:28.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ntfs-3g_ntfsprogs.new/ntfs-3g_ntfsprogs.changes 2017-04-11 09:29:55.726200093 +0200 @@ -1,0 +2,5 @@ +Sat Apr 01 10:32:33 UTC 2017 - zenitur@ya.ru + +- Fix SLES 11 build. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ntfs-3g_ntfsprogs.spec ++++++ --- /var/tmp/diff_new_pack.zsFjwE/_old 2017-04-11 09:29:56.654069050 +0200 +++ /var/tmp/diff_new_pack.zsFjwE/_new 2017-04-11 09:29:56.658068486 +0200 @@ -27,7 +27,8 @@ Source: http://tuxera.com/opensource/%{name}-%{version}.tgz Source2: 21-storage-ntfs-3g.fdi Url: http://www.tuxera.com/community/ntfs-3g-download/ -%if 0%{?sles_version} +# SLES 11 is still supported +%if 0%{?sles_version} && 0%{?suse_version} == 1110 BuildRequires: fuse-devel >= 2.6.0 %else BuildRequires: pkgconfig(fuse) >= 2.6.0 @@ -134,10 +135,15 @@ # 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 +%if 0%{?sles_version} && 0%{?suse_version} == 1110 +# Touch ghost files +touch %{buildroot}/sbin/mount.ntfs %{buildroot}%{_mandir}/man8/mount.ntfs.8 +%else # 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} +%endif %check TESTFS=$(mktemp) || exit 1 @@ -146,6 +152,15 @@ src/ntfs-3g.probe --readwrite $TESTFS rm -v $TESTFS +# Workaround old bug in 11.1/11.2 packages that always removed the symlinks in +# %postun. +%if 0%{?sles_version} && 0%{?suse_version} == 1110 +%posttrans -n ntfs-3g +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 +%endif + %post -n ntfs-3g # If the mount.ntfs group is in automatic mode, then this will also switch all # symlinks automatically @@ -175,8 +190,10 @@ %{_bindir}/ntfs-3g.usermap %{_bindir}/lowntfs-3g %ghost /sbin/mount.ntfs +%if 0%{?suse_version} > 1110 %ghost %{_sysconfdir}/alternatives/mount.ntfs %ghost %{_sysconfdir}/alternatives/mount.ntfs.8%{?ext_man} +%endif /sbin/mount.ntfs-3g /sbin/mount.lowntfs-3g %{_mandir}/man8/mount.lowntfs-3g.8%{?ext_man}