diff --git a/man-db-2.5.2.dif b/man-db-2.5.2.dif index c1173b1..736dc5f 100644 --- a/man-db-2.5.2.dif +++ b/man-db-2.5.2.dif @@ -145,8 +145,8 @@ po/Makefile.in) AC_OUTPUT --- mk_catdirs -+++ mk_catdirs 2007-12-10 12:51:50.000000000 +0100 -@@ -0,0 +1,24 @@ ++++ mk_catdirs 2009-08-03 13:22:19.201901113 +0200 +@@ -0,0 +1,30 @@ +#!/bin/sh + +OLDPWD="`pwd`" @@ -160,17 +160,23 @@ +test -d ${CACHE} && rm -rf ${CACHE} +mkdir -p ${CACHE} + ++catman=false ++grep -qE '#[[:blank:]]*define[[:blank:]]+MAN_CATS' include/manconfig.h && catman=true +cd ${CACHE} -+eval echo ${cats} \ -+ ${locale}/${cats} \ -+ ${dirs}/${cats} \ -+ ${dirs}/${locale}/${cats} \ -+ | xargs mkdir -p ++if $catman ; then ++ eval echo ${cats} \ ++ ${locale}/${cats} \ ++ ${dirs}/${cats} \ ++ ${dirs}/${locale}/${cats} ++else ++ eval echo ${locale} \ ++ ${dirs} \ ++ ${dirs}/${locale} ++fi | xargs mkdir -p +sync +cd ${OLDPWD} + -+test "$(id -u)" -ne 0 || chown man:daemon -R ${CACHE} -+ ++test "$(id -u)" -ne 0 || chown man:man -R ${CACHE} --- include/comp_src.h.in +++ include/comp_src.h.in 2007-12-10 12:51:50.000000000 +0100 @@ -53,7 +53,7 @@ struct compression comp_list[] = { diff --git a/man.changes b/man.changes index 6c7e1a9..5903469 100644 --- a/man.changes +++ b/man.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 3 13:26:52 CEST 2009 - werner@suse.de + +- Remove catman directories from /var/cache (bnc#527434) + ------------------------------------------------------------------- Fri Jan 16 17:03:24 CET 2009 - werner@suse.de diff --git a/man.spec b/man.spec index 472bc1e..43824dc 100644 --- a/man.spec +++ b/man.spec @@ -31,7 +31,7 @@ BuildRequires: gettext-runtime gettext-tools BuildRequires: gettext gettext-devel %endif Version: 2.5.2 -Release: 18 +Release: 19 Summary: A Program for Displaying man Pages License: GPL v2 or later Url: https://savannah.nongnu.org/projects/man-db @@ -86,6 +86,7 @@ Authors: %patch10 -p0 -b .listall %patch11 -p0 -b .catp %patch12 -p0 -b .fp +%patch13 -p0 -b .fhs %patch -p0 %build @@ -286,458 +287,3 @@ test -d var/catman/ && rm -rf var/catman/ || true %{_localstatedir}/adm/fillup-templates/sysconfig.cron-man %changelog -* Fri Jan 16 2009 werner@suse.de -- Add ../share/man/ to manpath expansion mentioned by - Matt_Domsch@dell.com, done for man_db by Colin Watson -* Fri Nov 28 2008 werner@suse.de -- For listall patch: add support for multiple man pages in the - same section (bnc#448283) -- Fix bug in listall patch: initialize variable len as this may - break on some system otherwise. -* Thu Nov 20 2008 werner@suse.de -- Skip mandocdb workaround as groff now works in UTF-8 (bnc#446710) -- Replace pipe(2) with socketpair(2) to speed up mandb (bnc#381830) -* Thu Oct 02 2008 werner@suse.de -- Fix option handling for renice in cron script (bnc#431027) -* Tue Aug 12 2008 werner@suse.de -- Update to version 2.5.2 - * `man -H' (without a browser argument) was completely broken in - 2.5.1 and is now fixed. - * man no longer breaks in Japanese locales when using less. - * The --encoding option to man can now take a true character - encoding rather than a *roff device; the latter was an - unreliable, inflexible, and awkward way to select an output - encoding. The old semantics are still supported for backward - compatibility. - * Whatis parsing stops at .ie or .if conditionals. - * CJK locale specifications where the codeset component is - equivalent to but not stringwise-identical to UTF-8 (e.g. - zh_CN.utf8) are handled better. - * man(1)'s OPTIONS section is ordered more comprehensibly. - * apropos, lexgrog, man, mandb, and whatis ignore encoding - conversion errors for the last possible encoding of the source - page. This helps, for example, with pages including misencoded - non-ASCII names of authors; it usually seems better to allow - these pages to pass with small errors than to break them - entirely. -* Thu Jun 05 2008 werner@suse.de -- Show the user if there are more than one manual page found for - the stated item (fate#303433) -* Tue May 13 2008 werner@suse.de -- Avoid tab stops in section names -* Wed Apr 23 2008 werner@suse.de -- Use speedup for bnc#381830 only in mandb as man would be break -- Avoid trouble with -Wl,--as-needed therefore fore -lbz2 and -lz -* Tue Apr 22 2008 werner@suse.de -- Make libzio interface smarter, that is if used only for simple - decompression do not use a pipe (saves 30%% mandb run time) - (bnc#381830) -- Make cron.daily.do_mandb smarter, that is check if anything - has changes in the global manual paths that needs to run mandb - (bnc#381830) -- Update to bug fix version 2.5.1 - * The manual is now built automatically, avoiding some ordering - problems on 'make distclean'. - * Manual pages are converted to the proper input encoding for troff - output as well as nroff output. - * The -t, -T, -X, and -Z options to man work again; in 2.5.0, they - read input from stdin rather than from the manual page. - * apropos and whatis no longer segfault when given an explicit - locale using -L. - * man now understands that groff's ascii device takes ASCII input, - not ISO-8859-1. - * man no longer discards stderr when writing to a file or a pipe; - this was broken by an overenthusiastic change in 2.5.0. - * manconv now falls back to the next encoding in its list if any - characters in an entire 64KB block fail to decode using the - current encoding, as was originally intended. - * manconv is more careful about extracting coding: directives from - manual pages. - * Ctrl-C and Ctrl-\ now work again at the prompt issued by 'man -a'. - * There is a new --with-sections configure option to change the - default value of SECTION in the configuration file. - * Automake is now used to generate Makefiles. Among other things, - this fixes VPATH builds and some bugs in dependency generation, - and should allow building with non-GNU versions of make. - * man-db now uses the Gnulib portability library, allowing the - removal of earlier haphazard portability code. While this results - in a somewhat larger source distribution, it makes man-db easier - to maintain and should make it easier to build on systems to which - the maintainer does not have access. - * In the process of switching to Gnulib, the last vestiges of - pre-C89 support have been removed; they were documented to be - broken anyway. - * If the MANROFFOPT environment variable is set, man now appends its - value to the *roff command line. - * man now accepts a --recode option to output a source manual page - converted to a specified encoding. - * For compatibility with System V, man accepts -s as an alias for - -S, and permits sections to be comma-separated as well as - colon-separated. - * man now accepts a --warnings option to enable groff warnings. -* Tue Feb 26 2008 werner@suse.de -- Ensure to find local manual pages even in sub directories -* Wed Jan 30 2008 werner@suse.de -- Make mandb cron job ionice bnc#356792 -- Avoid assert on wrong locale man path -- Do mix bits of get_catpath() with hash tags in man db files -* Fri Jan 18 2008 mkoenig@suse.de -- Fix path in sysconfig.cron-man [#350542] -* Mon Jan 07 2008 werner@suse.de -- Remove suid root from wrapper as we do not cache manual page - anymore (bug #351988) -* Thu Dec 13 2007 werner@suse.de -- Add workaround for gettext 0.17 -* Mon Dec 10 2007 werner@suse.de -- Update to man-db 2.5.0-4 - * No temporary files anymore due usage of pipes - * Our libzio patch is simply to add due this new API - * Better UTF-8 support - * Disable straycats for now -- Add sample script mancoding to show how to use encoding tag -* Wed Sep 19 2007 werner@suse.de -- Be sure that e.g. /usr/share/man/man3p/open.3p.gz is found before - /usr/share/man/man3/open.3pm.gz by "man 3p open" (bug #310498) -* Fri Jul 27 2007 mfabian@suse.de -- change BuildRequires to make it build in the openSUSE build - service for versions <= 10.2 as well. -* Thu Jul 26 2007 mfabian@suse.de -- Bugzilla #292412 comment #47: accept both UTF-8 an legacy - encodings in the man-page sources for Japanese and Chinese - as well. -* Wed Jul 25 2007 mfabian@suse.de -- Bugzilla #292412 comment #30 and #39: improve Chinese patch. -- use %%find_lang macro -* Thu Jul 19 2007 werner@suse.de -- Add Chinese support to man (bug #292412) -* Wed Jul 18 2007 werner@suse.de -- Add workaround for html browsers which do their job in - background: do not remove the temporary files to fast (#280613) -- Update to debain patch level 6 which - * includes bug fix for CVE-2006-4250 (bug #262747) - * includes french manual pages -* Tue Apr 17 2007 werner@suse.de -- Fix heap buffer overflow (CVE-2006-4250, bug #262747) -* Mon Mar 26 2007 rguenther@suse.de -- Add libbz2-devel and libzio-devel BuildRequires -* Wed Mar 21 2007 rguenther@suse.de -- Remove unused util-linux BuildRequires, added less, zlib-devel - and gdbm-devel BuildRequires -* Thu Feb 15 2007 werner@suse.de -- Remove not used path elements (X11R6, openwin, allman) (#245692) -* Fri Feb 09 2007 werner@suse.de -- Make it build without root privileges, loosing time for texlive -* Mon Jan 29 2007 sbrabec@suse.cz -- Removed references to /opt/gnome. -* Mon Sep 04 2006 rguenther@suse.de -- Remove unused sharutils dependency. -* Mon Sep 04 2006 rguenther@suse.de -- Remove lynx build dependency. Set default for AC_PATH_PROG for - lynx to /usr/bin/lynx. -* Mon Aug 07 2006 werner@suse.de -- Make it work even with new gettext package -* Thu Aug 03 2006 sndirsch@suse.de -- read also manual pages in man4x subdirectories; required for - conflicting 'mouse' manual page and i810 driver manual page, - which has been moved to man4x directory -* Wed Jun 14 2006 werner@suse.de -- Update to man-db 2.4.3 patchlevel 3 to get the first part of bug - [#183796] fixed. -- Change lex scanner to set sperator ony onece per whatis/apropos - line to get second part of bug #183796 fixed -- Support several language types/locations -- Do not fail on verbatim macro of perl man pages on whatis/apropos -- Do not fail on DOS formated manual pages on whatis/apropos -* Fri Apr 07 2006 werner@suse.de -- Do not reset terminal if stdout is not a tty (bug #152793) -* Wed Jan 25 2006 mls@suse.de -- converted neededforbuild to BuildRequires -* Fri Jan 13 2006 schwab@suse.de -- Don't strip binaries. -* Wed Dec 14 2005 werner@suse.de -- Make cron job files word readable (bug #138549) -* Tue Dec 13 2005 werner@suse.de -- Add section 0 for header files -* Wed Jun 01 2005 kukuk@suse.de -- Make cron.daily script names LSB conform -* Thu Feb 10 2005 mfabian@suse.de -- Bugzilla #50694: add another request to tmac.andocdb: - ". char ` \N'96'" - makes sure U+0060 (GRAVE ACCENT) doesn't get replaced by - U+2018 (LEFT SINGLE QUOTATION MARK) -* Wed Sep 22 2004 werner@suse.de -- Use safe-rm for deleting straycats (bug #45612, comment #14) -* Thu Sep 09 2004 werner@suse.de -- Be ready for flex-2.5.31 -* Wed Apr 21 2004 werner@suse.de -- Use libzio together with zlib and libbz2 to support bz2 manual - pages to avoids pipe()/fork()/execve() calls in mandb/man. -* Tue Mar 16 2004 werner@suse.de -- Activate path for bug #35821 due its fixed now. -* Fri Mar 12 2004 werner@suse.de -- Be prepared for bug #35821 -* Thu Sep 04 2003 werner@suse.de -- It seems that basename(3) results shouldn't be freed even if - the manual page says they should. (bug #30093) -* Fri Aug 29 2003 werner@suse.de -- Add workaround for less using xselection even if no -A is - specified for bug #29612. Nevertheless less has to be fixed. -* Wed Aug 20 2003 werner@suse.de -- Update to 2.4.1-13 security only, due missed fixes in previous - patches. -* Fri Aug 15 2003 kukuk@suse.de -- Use same permissions for man/mandb as in permissions package -* Thu Aug 07 2003 werner@suse.de -- YaSP: Added more security -- Ensure that no version conflict happens during db purge (#28414) -* Fri Jul 11 2003 werner@suse.de -- Update to 2.4.1-10 -- Security fix: create the temporary database exclusive -* Mon Jul 07 2003 werner@suse.de -- Security fix (bug #27474) -* Fri Jun 20 2003 ro@suse.de -- fix build with current gettext -* Thu Jun 12 2003 olh@suse.de -- disable sync call in install section -* Thu Jun 12 2003 kukuk@suse.de -- /var/cache/man is part of filesystem -* Fri Jan 17 2003 mfabian@suse.de -- add another request to tmac.andocdb: ". char ' \N'39'" - makes sure U+0027 (APOSTROPHE) doesn't get replaced by - U+2019 (RIGHT SINGLE QUOTATION MARK) -* Sun Jan 12 2003 mfabian@suse.de -- fix header of de.po to enable gettext to convert to locale - encoding -- fix and update some translations in de.po -* Wed Jan 08 2003 werner@suse.de -- bug #22628 -- add missed meta data within sysconfig file -* Mon Dec 02 2002 werner@suse.de -- Make compress local manuals work if placed in a writable dir for - the user man (bug #22215). -* Fri Oct 11 2002 mfabian@suse.de -- add another request to tmac.andocdb similar to the one - in the last changelog entry to make the regular minus '-' - (without backslash) get rendered as U+002D (HYPHEN-MINUS) - in man-pages as well. -* Fri Sep 06 2002 mfabian@suse.de -- add the two lines - .if '\*[.T]'utf8' \ - . char \- \N'45' - to /usr/share/groff/site-tmac/tmac.andocdb in order to get - U+002D (HYPHEN-MINUS) instead of U+2212 (MINUS SIGN) as the - minus sign in front of options in man-pages rendered in UTF-8 - locales. U+2212 (MINUS SIGN) makes searching in man-pages for - options unnecessarily difficult. -* Fri Aug 23 2002 werner@suse.de -- Use LESSCHARSET=japanese-euc for japanese to support even konsole - (bug #18222) -* Fri Aug 16 2002 werner@suse.de -- Add PreReq (bug #17927) -* Wed Jul 31 2002 poeml@suse.de -- add ssl to the list of man sections (bug #17239) -* Sat Jul 27 2002 adrian@suse.de -- fix neededforbuild -* Wed Jun 05 2002 ro@suse.de -- run suse_update_config for subdir tools -* Fri May 10 2002 werner@suse.de -- Use buildroot (fix bug #12158) -- Don't cache utf8 formatted man pages (fix bug #16067) -* Thu Apr 04 2002 ro@suse.de -- fix for autoconf LIBOBJS vs AC_LIBOBJ -* Wed Mar 27 2002 werner@suse.de -- Add space between grep command and its options for whatis - text file fallback. -* Thu Mar 14 2002 werner@suse.de -- Use nroff asci8 character set for korean (nippon does not work). -* Wed Feb 06 2002 ro@suse.de -- sysconfig/cron_daily -> sysconfig/cron -* Thu Jan 31 2002 werner@suse.de -- Add security patch from Olaf Kirch -* Thu Jan 31 2002 ro@suse.de -- moved cron.daily scripts do_mandb and clean_catman to this pkg -* Fri Jan 11 2002 werner@suse.de -- Add security patch from Thomas Biege -* Thu Dec 20 2001 werner@suse.de -- Check existence of user man -* Tue Sep 25 2001 werner@suse.de -- Close nonsens bug report #9419 -* Tue Sep 18 2001 werner@suse.de -- Avoid possible crash in mandb -* Fri Aug 31 2001 werner@suse.de -- I vote to remove strtok() from ANSI-C: Use strsep() within - pathappend() because thew calling function add_nls_manpath() - uses strtok(). -* Wed Aug 29 2001 werner@suse.de -- More work on the whatis data base storage -* Tue Aug 28 2001 werner@suse.de -- Whatis: Avoid error messages caused by buggy manual pages - to see the wrong man pages one may use -v for verbose -* Thu Aug 16 2001 werner@suse.de -- Global UTF-8 handling instead of two different ways -* Wed Aug 15 2001 werner@suse.de -- Better UTF-8 man page handling: use curent locale even if we - overwrite man page locale. -- Sometime there is no man page path for local man page files, - therefore force language if not found. -* Mon Aug 13 2001 werner@suse.de -- Initialize variable used in lexgrog.l -* Mon Jul 30 2001 werner@suse.de -- Update to vesion 2.3.19deb4.0 -- Port libz patch to this version -- Map UTF-8 man pages to appropiate groff command -- Make it work -* Sun Jun 17 2001 bk@suse.de -- new location of tmac files is /usr/share/groff/site-tmac, - needed for groff 1.17 and does not work with older versions -* Thu Jun 07 2001 werner@suse.de -- Fix autoconf trouble -* Wed May 16 2001 werner@suse.de -- Make xcopy more handy (bug#8499) -* Tue May 15 2001 werner@suse.de -- Fix segfault on option -S parser -* Sat Apr 21 2001 schwab@suse.de -- Fix inapproriate mixing of pointer and integers. -* Mon Apr 09 2001 werner@suse.de -- Make it work -* Fri Apr 06 2001 werner@suse.de -- Use own tmac groff files to avoid page headers and footers - on ttys only -* Tue Mar 20 2001 werner@suse.de -- Avoid deleting of data bases if we've newer version around -* Mon Mar 19 2001 werner@suse.de -- Remove data bases at install time -* Mon Mar 19 2001 werner@suse.de -- Update to 2.3.17-3.2 - * Port our patches and bugfixes to this new version - * Change the wrapper to use setre(r|g)id and use - this wrapper suid root -* Thu Feb 08 2001 werner@suse.de -- Avoid error() call without format -* Mon Dec 11 2000 werner@suse.de -- Correct depth level of patch -* Mon Dec 11 2000 werner@suse.de -- Make `setlocale'zing more reliable accordingly to Andreas - Jaeger. -* Sat Dec 09 2000 mfabian@suse.de -- replaced all setlocale(LC_MESSAGES,"") with - setlocale(LC_MESSAGES,"") *and* setlocale(LC_CTYPE,""). - After the upgrade to Glibc 2.2, 8 bit characters in the - French, Czech, and Japanese messages were displayed as "?". - Changing the setlocale calls in the above way fixed it. - Messages in all languages now display correctly again. - First I replaced all setlocale(LC_MESSAGES,"") by - setlocale(LC_ALL,""), but this causes problems. In that case, - the messages display correctly, but "LANG=ja_JP man man" - incorrectly displays the English manpage. Strange. - When using both setlocale(LC_MESSAGES,"") *and* - setlocale(LC_CTYPE,"") but not setlocale(LC_ALL,""), - everything seems to work correctly. -* Wed Dec 06 2000 bk@suse.de -- added %%dir /usr/share/man/{de,es,it,ja}+man[158] to file list -* Fri Sep 15 2000 pthomas@suse.de -- Add 3C++, 3C++std and 8C++ to the list of man sections, the - Compaq man pages for C++ use these. -* Thu May 25 2000 werner@suse.de -- Fix the man path problem (hint from Michael Reichardt - ) -- Make mandir depending on the RPM macro %%_mandir -- Make zsoemlin zlib interface functions more compatible to cookie - I/O functions (type changed in new glibc 2.1 and higher) -* Thu Mar 16 2000 werner@suse.de -- Make lexgrog knowing the japanese multibyte string of section NAME -- Make flex use memory aligned tables. -* Wed Mar 08 2000 werner@suse.de -- Security fix in straycats: Check if we got a temporary file! -* Thu Mar 02 2000 ro@suse.de -- added usr/share/man/allman -* Tue Dec 14 1999 werner@suse.de -- New version 2.3.10-69s - * better NLS support -- Add all languages to /etc/manpatch.config before english default -- Make mandb usable only for root (avoid DOS attacks) -* Fri Nov 26 1999 ro@suse.de -- printout full path-name on check -* Fri Nov 26 1999 ro@suse.de -- patched configure.in to prefer gdbm -* Mon Sep 13 1999 bs@suse.de -- ran old prepare_spec on spec file to switch to new prepare_spec. -* Mon Sep 06 1999 ro@suse.de -- removed (now) conflicting redeclarations from zsoelim.l -* Thu Sep 02 1999 werner@suse.de -- Make man.c work again -- Use RPM_OPT_FLAGS -* Mon Aug 30 1999 werner@suse.de -- Few simple changes - * drop privileges before chdir back into current directory - * do not search for local man page if not given `-l' -* Mon Jul 19 1999 bs@suse.de -- fixed file list (/var/cache/man) -* Thu Jul 15 1999 werner@suse.de -- Don't use carriage return but newline in messages. -* Wed Jul 14 1999 kukuk@suse.de -- Fix %%pre section (use rm -rf) -* Mon Jul 12 1999 werner@suse.de -- Add allman sub tree to fsstnd tree -* Fri Jul 09 1999 ro@suse.de -- fixed filelist -* Tue Jul 06 1999 werner@suse.de -- Update to debian version 2.3.10-69i - * Change from /var/catman/ to /var/cache/man/ - * Make /usr/share/man/ possible - * Buildin NLS support -- Fix some debian bugs (sig handlers!) -- Add SuSE bug fixes (sig handler) and zlib feature -* Wed Jun 30 1999 werner@suse.de -- First changes for SuSE 6.2 - * Use fopencookie in zsoelim if glibc 2.1 or higher to avoid any - possible link attack in /tmp/ - * Kill all possible childs (e.g. gunzip) of zsoelim for glibc 2.0 - to be able to unlink the temporary files during signal handling. - * Use better sig and exit handling -* Fri Jun 04 1999 werner@suse.de -- Fix security leak in zsoelim -- Set sig and exit handler for removing temporary files -- ToDo: use libz instead of gzip -* Mon May 03 1999 ro@suse.de -- removed forgotten debug message -* Thu Mar 11 1999 werner@suse.de -- Use -Tlatin1 if eqn is geqn -- Remove the index.bt's in /var/catman before being installed -- Support stupid manual pages using .\" instead of '\" for - preprocessor cockies -* Thu Mar 11 1999 werner@suse.de -- Use db2 if available -* Wed Mar 10 1999 werner@suse.de -- Work around of a buffer/pointer cludge of strncat and strncpy - (glibc/axp) -- Make CAT_FILE work -- ToDo: libdb1 is broken on axp -* Wed Feb 10 1999 werner@suse.de -- Fix the SIGHUP/SIGTERM bug -- Use seteuid for LINUX_VERSION_CODE >= ((1<<16)+(1<<8)+37) -- Remove temp files for man -l even if signaled -- Fix some more possible SIGSEGV's -* Tue Sep 29 1998 ro@suse.de -- restarted from stable-man: - use usr/include/db1 and libdb1 for db lib - added HAVE_STRSEP to include/config.h.in (this file is broken) - libdb/Makefile.in, src/Makefile.in : removed -I- from CFLAGS -* Fri Aug 07 1998 bs@suse.de -- added catman dirs for es, fr & it to file list. -* Thu Aug 06 1998 bs@suse.de -- added es, fr & it. -* Wed Jul 15 1998 bs@suse.de -- fixed /usr/man/allman/de -* Wed Apr 22 1998 werner@suse.de -- Fix preprocessor handling: - was missed since libz was used instead of gzip -dc -* Thu Mar 19 1998 werner@suse.de -- Use lib(g)z for mandb - * no temporary nroff files for parsing of the manual pages - * handle only the first 4096 bytes from the first .SH down - * now zsoelim gets the gezipped man page without extension - instead a temporary nroff file - * extend lexgrog.l-2.4a to catch most pages as possible - * add -funroll-loop to the compile options, use -O2 -* Fri Jun 06 1997 bs@suse.e -- added allman stuff