update to 2.6.1
- resolves: #806086
  removed hard-dependency on cron, update man db after install or update
This commit is contained in:
Peter Schiffer 2012-04-05 16:25:02 +02:00
parent 0851b90da3
commit ce87928fd7
5 changed files with 16 additions and 30 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/man-db-2.6.0.2.tar.gz
/man-db-2.6.1.tar.gz

View File

@ -1,12 +0,0 @@
diff -up trunk/src/filenames.c.double-free trunk/src/filenames.c
--- trunk/src/filenames.c.double-free 2011-01-10 21:02:05.000000000 +0100
+++ trunk/src/filenames.c 2011-10-04 16:49:42.146071708 +0200
@@ -85,6 +85,8 @@ char *filename_info (const char *file, s
char *slash = strrchr (manpage, '/');
char *base_name;
+ memset (info, 0, sizeof (struct mandata));
+
#ifdef COMP_SRC
struct compression *comp;
#endif

View File

@ -19,7 +19,7 @@ LOCKFILE=/var/lock/man-db.lock
# happen is that they will temporarily corrupt the database
[ -f $LOCKFILE ] && exit 0
trap "{ rm -f $LOCKFILE ; exit 255; }" EXIT
trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
touch $LOCKFILE
# create/update the mandb database
mandb $OPTS

View File

@ -2,8 +2,8 @@
Summary: Tools for searching and reading man pages
Name: man-db
Version: 2.6.0.2
Release: 4%{?dist}
Version: 2.6.1
Release: 1%{?dist}
# project man-db GPLv2+
# Gnulib part GPLv3+
License: GPLv2+ and GPLv3+
@ -14,14 +14,12 @@ Source1: man-db.crondaily
Source2: man-db.sysconfig
# Resolves: #655385 - use old format of nroff output
Patch1: man-db-2.5.9-sgr.patch
# Resolves: #702904 - double free or corruption
Patch2: man-db-2.6.0.2-double-free.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: man < 2.0
Provides: man-pages-reader = %{version}
Provides: man = %{version}
BuildRequires: less
Requires: less, coreutils, grep, groff-base, gzip, crontabs
Requires: less, coreutils, grep, groff-base, gzip
BuildRequires: gdbm-devel, groff, gettext, zlib-devel
BuildRequires: libpipeline-devel
@ -36,7 +34,6 @@ manual pages.
%prep
%setup -q
%patch1 -p1 -b .sgr
%patch2 -p1 -b .double-free
%build
%configure\
@ -57,13 +54,6 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
rm $RPM_BUILD_ROOT%{_bindir}/zsoelim
rm $RPM_BUILD_ROOT%{_datadir}/man/man1/zsoelim.1
# remove pages which are also in man-pages-de
rm $RPM_BUILD_ROOT%{_mandir}/de/man1/zsoelim.1
rm $RPM_BUILD_ROOT%{_mandir}/de/man1/manpath.1
rm $RPM_BUILD_ROOT%{_mandir}/de/man5/manpath.5
rm $RPM_BUILD_ROOT%{_mandir}/de/man8/catman.8
rm $RPM_BUILD_ROOT%{_mandir}/de/man8/mandb.8
# remove libtool archives
rm $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
@ -82,6 +72,10 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
%clean
rm -rf $RPM_BUILD_ROOT
# update the man db after install or update
%post
/bin/bash %{_sysconfdir}/cron.daily/man-db.cron
%files -f %{name}.lang -f %{name}-gnulib.lang
%defattr(-,root,root,-)
%doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
@ -113,12 +107,16 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/accessdb.8*
%{_mandir}/man8/catman.8*
%{_mandir}/man8/mandb.8*
%lang(de) %{_datadir}/man/de/man*/*
%lang(es) %{_datadir}/man/es/man*/*
%lang(it) %{_datadir}/man/it/man*/*
%lang(ja) %{_datadir}/man/ja/man*/*
%changelog
* Thu Apr 05 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-1
- resolves: #790771
update to 2.6.1
- resolves: #806086
removed hard-dependency on cron, update man db after install or update
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

View File

@ -1 +1 @@
2b41c96efec032d2b74ccbf2e401f93e man-db-2.6.0.2.tar.gz
79658e8695c7b9b3be1ee340d78a4692 man-db-2.6.1.tar.gz