[packages/mtools] Rel 2; workaround for 'mandb: bad fetch on multi key mtools 5; mandb: index cache /var/cache/man/500
arekm
arekm at pld-linux.org
Sat Jul 4 10:58:22 CEST 2026
commit b49a53f43b8fb2b4ac8e9dbd7ba8150ec0dc7ac6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Jul 4 10:56:20 2026 +0200
Rel 2; workaround for 'mandb: bad fetch on multi key mtools 5; mandb: index cache /var/cache/man/500791 corrupt'
mtools.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/mtools.spec b/mtools.spec
index 652b68d..887740f 100644
--- a/mtools.spec
+++ b/mtools.spec
@@ -7,7 +7,7 @@ Summary(pt_BR.UTF-8): Programas para acessar discos DOS sem montá-los
Summary(tr.UTF-8): Bağlama (mount) yapmadan DOS disklerine erişim sağlar
Name: mtools
Version: 4.0.49
-Release: 1
+Release: 2
License: GPL v3+
Group: Applications/File
Source0: https://ftp.gnu.org/gnu/mtools/%{name}-%{version}.tar.lz
@@ -119,6 +119,10 @@ install -d $RPM_BUILD_ROOT{%{_prefix},%{_sysconfdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# filename must match NAME mtools.conf(5) or man-db corrupts its index
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man5/mtools.5 $RPM_BUILD_ROOT%{_mandir}/man5/mtools.conf.5
+echo '.so man5/mtools.conf.5' > $RPM_BUILD_ROOT%{_mandir}/man5/mtools.5
+
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
tar -xjf %{SOURCE2} -C $RPM_BUILD_ROOT%{_mandir}
@@ -144,6 +148,7 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtools.conf
%{_mandir}/man1/m*.1*
%{_mandir}/man5/mtools.5*
+%{_mandir}/man5/mtools.conf.5*
%lang(de) %{_mandir}/de/man1/m*.1*
%lang(es) %{_mandir}/es/man1/m*.1*
%lang(fi) %{_mandir}/fi/man1/m*.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mtools.git/commitdiff/b49a53f43b8fb2b4ac8e9dbd7ba8150ec0dc7ac6
More information about the pld-cvs-commit
mailing list