man-db (2.3.20-18.woody.4) stable-security; urgency=medium * Fix segfault caused by an unchecked strcpy() while resolving hard links (closes: #204236). -- Colin Watson Fri, 15 Aug 2003 23:44:56 +0100 man-db (2.3.20-18.woody.3) stable-security; urgency=medium * The dynamic allocation fix in 2.3.20-18.woody.1 allocated an area of memory one byte short, causing segfaults. Thanks to Robert Pinter and others for the prompt reports (closes: #204236). -- Colin Watson Tue, 5 Aug 2003 23:09:57 +0100 man-db (2.3.20-18.woody.2) stable-security; urgency=high * Fix overly permissive DEFINE command. DEFINE directives that affect code running with raised privileges are now disabled in ~/.manpath. -- Colin Watson Fri, 1 Aug 2003 22:48:42 +0100 man-db (2.3.20-18.woody.1) stable-security; urgency=high * Fix several security problems reported on BugTraq (CAN-2003-0620, closes: #203475): - Limit sscanf() calls to the appropriate buffer size while reading configuration file. - Allocate strings dynamically while finding the ultimate source of man pages, avoiding a couple of buffer overflows. - Die gracefully if MANPATH contains too many elements, as a stopgap measure until proper list handling can be added. -- Colin Watson Fri, 1 Aug 2003 01:10:30 +0100 man-db (2.3.20-18) unstable; urgency=medium * Add French debconf translation (thanks, Philippe Batailler; closes: #138375). -- Colin Watson Fri, 15 Mar 2002 01:46:57 +0000 man-db (2.3.20-17) unstable; urgency=low * Add Japanese debconf translation (thanks, Tomohiro KUBOTA; closes: #138110). -- Colin Watson Wed, 13 Mar 2002 11:08:42 +0000 man-db (2.3.20-16) unstable; urgency=low * Adjust Spanish debconf translation (thanks, David Martinez Moreno; closes: #136981). -- Colin Watson Sat, 9 Mar 2002 21:10:43 +0000 man-db (2.3.20-15) unstable; urgency=low * The "mad-db" release. * Move section 2 in front of the extensions for scripting languages in section 3 by default, at the request of the Perl maintainer. * Install DVI and PostScript versions of the manual, for ease of printing (closes: #134926). -- Colin Watson Thu, 21 Feb 2002 09:20:04 +0000 man-db (2.3.20-14) unstable; urgency=medium * Fix segfault due to reusing a freed pointer in some cases of pages with multiple names. Thanks to Eirik Fuller for an excellent piece of analysis (closes: #123130). -- Colin Watson Thu, 21 Feb 2002 01:25:17 +0000 man-db (2.3.20-13) unstable; urgency=low * Add Danish translation (thanks, Morten Brix Pedersen; closes: #122674). * Add Danish debconf translation (thanks, Claus Hindsgaul and Rune B. Broberg; closes: #126606). * Update Spanish debconf translation (thanks, José Luis González González). * Delete spurious backslashes in the less prompt string (closes: #122355). -- Colin Watson Sun, 27 Jan 2002 03:10:06 +0000 man-db (2.3.20-12) unstable; urgency=medium * Add some text to the install-setuid debconf note to explain that cat pages only work with "normal" terminal widths, to avoid the denial of service attack where you cause a cat page to be saved for a one-character-wide terminal, and that you can override its terminal width detection using $MANWIDTH. This alleviates #121997, although there's still a wishlist there to allow the width of cat pages on the system to be configurable. * Remove po/fr.gmo in the clean target: binary files can't go in the diff. -- Colin Watson Sat, 1 Dec 2001 19:41:54 +0000 man-db (2.3.20-11) unstable; urgency=low * French translation update (thanks, Laurent Pelecq). -- Colin Watson Sun, 25 Nov 2001 19:58:44 +0000 man-db (2.3.20-10) unstable; urgency=medium * copy_datum() explicitly null-terminates data returned by libdb2, which avoids some rare and hard-to-trace segfaults. Many thanks to Manuel Estrada Sainz for his patience in allowing me to use his system to debug this over a period of several weeks (closes: #115219, #117009). * Keep a private hashtable of keys we've received from the database in the btree code, and return NULL if we get one we've seen already. Although this slows down database access somewhat, I hope it should get rid of problems with looped databases for good (closes: #116785). * Avoid nested calls to strtok() (closes: #119041). * Don't try to strappend() a string to itself while processing a MANPATH containing "::" (closes: #119098). * Display a more useful error message if asked to display a directory (closes: #120047). * Stop a memory leak in decompress(). * configure detects that nroff is groff even if /bin/sh is ash. -- Colin Watson Mon, 19 Nov 2001 01:56:01 +0000 man-db (2.3.20-9) unstable; urgency=low * Drop privileges when reading temporary file to find the list of preprocessors (closes: #117037). * Axiom: any bug in man-db may be fixed by additional calls to drop_effective_privs(). -- Colin Watson Thu, 8 Nov 2001 11:34:53 +0000 man-db (2.3.20-8) unstable; urgency=low * Force build-time pager detection to return /usr/bin/pager, even if for some reason it doesn't exist (closes: #117246). * Actually remember to run autoconf this time. * Add 3tcl and 3tk sections to /etc/manpath.config as a workaround until extensions work properly (closes: #115345). -- Colin Watson Tue, 6 Nov 2001 10:46:44 +0000 man-db (2.3.20-7) unstable; urgency=high * Drop privileges throughout format_display(), and fix use of freed memory while printing the resulting error message (closes: #117168). -- Colin Watson Fri, 26 Oct 2001 15:10:05 +0100 man-db (2.3.20-6) unstable; urgency=low * Oops, meant to remove --nicelevel from cron.weekly and the postinst too. * Weaken versioned dependency on dpkg. -- Colin Watson Wed, 10 Oct 2001 21:23:21 +0100 man-db (2.3.20-5) unstable; urgency=low * Add Russian debconf translation (thanks, Ilgiz Kalmetev; closes: #114981). * Remove --nicelevel from cron.daily script until start-stop-daemon is fixed. Sorry (see #114997). -- Colin Watson Tue, 9 Oct 2001 20:06:39 +0100 man-db (2.3.20-4) unstable; urgency=medium * Release Manager: this bug has been in man-db since 2.3.18-3, and meant that new installations of woody had broken cat directories by default. It really needs to beat the base system freeze. * mandb: correctly chown newly created cat directories to man when running as root (closes: #113764). * debian/postinst: chown everything in /var/cache/man to man if upgrading from older versions. * Build with -Wall. -- Colin Watson Sun, 30 Sep 2001 14:52:25 +0100 man-db (2.3.20-3) unstable; urgency=low * Suppress spurious "pointer loop" error from apropos/whatis in certain corner cases (see #113370). -- Colin Watson Wed, 26 Sep 2001 00:04:55 +0100 man-db (2.3.20-2) unstable; urgency=medium * lexgrog: Stop the '.' no-op request from eating text on the next line (it caused problems before .SH NAME), and trim whitespace better. Urgency medium to match the recent groff upload that tickles this. * man: Drop privileges throughout local_man_loop() (closes: #111939). * Various documentation updates, including referring to man(7) from man(1) and adding some more advice to manpage.example* (thanks, Andreas Dilger; closes: #112281). * Policy version 3.5.6. -- Colin Watson Wed, 19 Sep 2001 02:18:20 +0100 man-db (2.3.20-1) unstable; urgency=low * New upstream release. - Improve lexgrog so that its output is more machine-parseable, give it a man page, and move it to /usr/bin. - mandb's --create option implies --no-purge, to avoid problems when recreating broken databases (closes: #110738, important). - man doesn't segfault if LANGUAGE is set but empty (closes: #110309). - Support 'man --html', with ESR's $BROWSER specification and David A. Wheeler's modifications for improved security (closes: #108143). - Reword part of apropos(1) (thanks, Daniel Patterson; closes: #110468). * Release Manager: we've had most of the code in this release already in the 2.3.19 series. The lexgrog changes here will be very useful for tools like lintian, perhaps in time for woody; the code affected by implementing $BROWSER was previously unsupported. * All translations (both gettext and man pages) are now very out of date. Please contact me if you can help. * debian/rules: Simplify install target; upstream clock-skew bug fixed. -- Colin Watson Fri, 7 Sep 2001 19:30:34 +0100 man-db (2.3.19-6) unstable; urgency=low * Escape shell arguments properly to cope with spaces in man page names (closes: #27492, #50107). * Honour more than one MANPATH_MAP entry per $PATH element, providing of course that the manpath exists (closes: #108979). * Set roff_device to ascii8 and LESSCHARSET to iso8859 for Korean (thanks, Ho-seok Lee; closes: #109598, #109599). * Display an error if setlocale() fails. * Switch off --html option properly, as it doesn't work very well yet anyway. The -Thtml option still works. * Fix count of purged whatis references. * src/wrapper.c: Include for initgroups(). * debian/control: Improve language of description. * debian/copyright: Minor updates. Mention Markus Armbruster. * debian/rules: Build and install /usr/lib/man-db/lexgrog; it's handy for testing purposes. -- Colin Watson Sun, 26 Aug 2001 01:20:00 +0100 man-db (2.3.19-5) unstable; urgency=low * Improve creation of temporary files by using mkstemp() rather than tempnam(), and by falling back to /tmp if $TMPDIR is unwriteable (closes: #92459, #102330). * Clean up manpage.example, and install new examples of man pages written in POD and DocBook SGML (closes: #96781). * Include /var/cache/man directory in the .deb. I probably won't install anything beneath that manually, as it's better that mandb creates them on the fly as required (closes: #75868). * Part of 2.3.18-7 accidentally got lost in 2.3.19-1. Here it is again: - configure.in falls back to standard paths for col, grap, lynx, and vgrind, so we don't need those as build dependencies any more. * Make lexgrog no longer misfire on lowercase versions of the various groff requests that indicate the use of tbl, eqn, etc. -- Colin Watson Mon, 6 Aug 2001 02:04:17 +0100 man-db (2.3.19-4) unstable; urgency=low * Look up the correct character set each time a page is displayed, not just the first time (closes: #104350). * Check for more translations of the NAME section (cs, fi, hu, nl, and pl, plus of course Latin; closes: #104352). * Add debconf translations: - German (thanks, Sebastian Rittau; closes: #104295). - Brazilian Portugese (thanks, Andre Luis Lopes; closes: #105359). -- Colin Watson Mon, 16 Jul 2001 16:48:07 +0100 man-db (2.3.19-3) unstable; urgency=low * Allow whatis entries to point to themselves. This sometimes happens when multiple names and descriptions are present, and it's easier to tolerate this. * Prepend to $LESS rather than appending to it, so that long options work (closes: #83594). * Set the modification time of each cat page to be the same as that of the corresponding man page, and regenerate cat pages if the modtime differs rather than if it's newer (closes: #22358, #93659). -- Colin Watson Tue, 10 Jul 2001 17:24:41 +0100 man-db (2.3.19-2) unstable; urgency=medium * A bracketing typo made determine_lang_table() never detect anything except the fallback language. This completely broke at least Japanese (closes: #103808). -- Colin Watson Sat, 7 Jul 2001 16:36:20 +0100 man-db (2.3.19-1) unstable; urgency=medium * The "laptop envy (damn tbm for having a nicer one than me)" release. * New upstream release. Highlights: - Security fix: make sure decisions about whether to drop privileges are never taken based on the user configuration file ~/.manpath. - The ordering of manual sections is now configurable at run-time, using SECTION directives in the configuration file. This should kill the last traces of the old 9term(1) bug (closes: #3766, yay!). - man will no longer try to keep its database caches up to date, even if it's setuid. No more speed problems, we hope! Instead, it will fall back to file globbing if database lookups fail. Whatis references will no longer work if the database isn't up to date enough to contain them, but I filed bugs on all packages this affects a while ago. - The globbing is done per-section, so newly installed manual pages will be noticed properly now (closes: #10106). - Thanks to some code from another man program, manual pages are now formatted to an appropriate line length when viewed on a terminal. Non-standard sizes aren't saved as cat pages. Page lengths are already resized with recent versions of groff (closes: #25410, #53993). - mandb(8) now documents how whatis parsing might fail (closes: #77727). - Whatis parsing treats fill requests correctly (closes: #97916) and ignores the no-op groff request '.' (closes: #101330). - Avoid infinite recursion if the database is corrupted such that an entry points to itself, which I believe shouldn't happen any more anyway (closes: #102181). - Let mandb update system databases as root as well as the man user (closes: #102250). - Downgrade warning if a manpath element doesn't exist to a debugging message (closes: #102402); likewise for the warning about relying on whatis refs being deprecated (see #102678). - Fixed some details of parsing NAME sections with multiple names in man pages with multiple symlinks to them (closes: #102678). - mandb knows how to delete obsolete entries from the database now, which should help to clean up the effects of old bugs like the above. This can be disabled with --no-purge. * Add Spanish debconf translation (thanks, Carlos Valdivia Yagüe; closes: #102156). * Add 'mandb --no-purge' invocation in cron.daily, so that apropos and whatis will continue to work mostly as expected. Since --create isn't used any more, it should be quite fast. This should alleviate most problems caused by turning off automatic database updates. A cron.weekly entry remains which also purges old database entries. * Add SECTION entries for 3pm and 3perl to make sure Perl modules come before core (this was formerly set at compile-time). * The .deb doesn't contain setuid binaries any more, so remove the lintian overrides. -- Colin Watson Thu, 5 Jul 2001 16:13:37 +0100 man-db (2.3.18-10) unstable; urgency=low * Fix handling of symlinks pointing outside a mantree to relative .so links, which should then be interpreted as pointing back inside the mantree (ugh). ult_src() relied on a restriction I removed in 2.3.17.1-5 (closes: #101559). * Fix format string bug in zsoelim (closes: #102001). * Use start-stop-daemon instead of su in cron.daily too (closes: #101892). -- Colin Watson Sat, 23 Jun 2001 16:07:39 +0100 man-db (2.3.18-9) unstable; urgency=high * While configuring, if the database is missing and we aren't setuid, don't build it; it will probably get out of date quickly anyway. This involves substantial debconf rearrangements, and I examine the seen flag so I need debconf (>= 0.5). Urgency high because the boot-floppies were having trouble with mandb starting in the background (closes: #100616). * When starting mandb in the background, use start-stop-daemon rather than su to avoid spurious syslog output. --nicelevel needs dpkg (>= 1.8.0). * manpath(1): s/semicolon/colon/ (thanks, Gordon Sadler; closes: #100362). * Comment out code supporting the man page hierarchy organization of other operating systems, as it sometimes misfires on Debian (e.g. dpkg(8) vs. dpkg.rb(1)). This will be solved more neatly upstream (closes: #99766). -- Colin Watson Wed, 13 Jun 2001 16:08:04 +0100 man-db (2.3.18-8) unstable; urgency=medium * Fix infinite loop in pathappend() if man pages are present for both a given language and that language with a country code (closes: #100119). -- Colin Watson Fri, 8 Jun 2001 18:13:36 +0100 man-db (2.3.18-7) unstable; urgency=medium * Folded in changelog entry from 2.3.16-4 security update. The backport was from upstream 2.3.18, so the vulnerability didn't apply to unstable. * Allow .PP etc. as well as .br between whatis definitions (e.g. pod2man). * Make straycats use 'col -bx' rather than 'col-bx' (thanks, Matt Kraai; closes: #98923). * The response to the above was a rather excessive exit(). straycats should now continue gracefully instead (thanks, Andrew Suffield). * Fix silly date format in man-db's English man pages. * pathappend() now eliminates duplicate manpaths (closes: #99667). * configure.in falls back to standard paths for col, grap, lynx, and vgrind, so we don't need those as build dependencies any more. * groff has been split! Depend on the base package, suggest the others. * The previous fix for #47000 only worked for read-only directories, not read-only filesystems. Fix it harder. * gettext seems to be broken with the new autoconf. Hack it for now. -- Colin Watson Wed, 6 Jun 2001 18:27:24 +0100 man-db (2.3.18-6) unstable; urgency=low * Note in man-db/build-database and man-db/rebuild-database templates that the build will happen in the background and possibly slow down installation of other packages (closes: #71931). * Bump priority of man-db/rebuild-database (not man-db/build-database) question to medium. * Various updates from CVS for autoconf 2.50. * Avoid autoconf build-dep by touching configure and stamp-h.in in build and clean (ugh - remember to run the autotools manually). * Improved configure's checks for Berkeley DB to correctly handle newer headers with dbopen() defined as a macro (thanks, Duncan Simpson). * Fix a thinko in whatis parsing that meant "foo," would sometimes be stored in the database alongside "foo". * If we can't write to a cat page (e.g. man isn't setuid), don't bother to open a compressor to /dev/null, so that man can abort straight away rather than formatting whole pages into the bit-bucket when a user quits the pager early (closes: #98528). -- Colin Watson Sat, 26 May 2001 20:26:25 +0100 man-db (2.3.18-5) unstable; urgency=low * Remove /usr/bin/man and /usr/bin/mandb on prerm remove (closes: #98221). * Stop using statoverrides in the postinst, as it's too hard to tell between maintainer-script-installed overrides and admin-installed overrides. Instead use ordinary chown/chmod (thanks, Michal Politowski; closes: #98224). -- Colin Watson Mon, 21 May 2001 22:52:05 +0100 man-db (2.3.18-4) unstable; urgency=low * Call db_stop in the postinst, just to be safe. I have a feeling redirecting stdout and stderr to /dev/null when running mandb might not be enough. * Don't remove catdirs in the postinst, even if we're upgrading from old versions that did that. * Remove some output in the postinst - whoops. Upgrades from <= 2.3.17.1-5 to 2.3.18-3 were probably broken. * If it turns out that we have to (re)build the database, ask a low-priority debconf question about it (defaulting to yes). Rebuilding should happen much less often now in any case (closes: #74579). -- Colin Watson Sun, 20 May 2001 19:34:55 +0100 man-db (2.3.18-3) unstable; urgency=low * So, I flame Peter T. Breuer on Usenet for his bug report being several bugs rolled up into one and being full of flamage itself. Then I think, well, since I'm ranting about it, I may as well see if I can fix it. Of course, it now turns out that fixing that was key to a load of other bugs. So I apologize to Peter and promise, again, to write the code before spouting off in future. :) * If opening a database or a cat page fails due to a lack of permissions (e.g. a read-only partition), recover gracefully and only complain about it in debug mode (addresses part of bug #47000). * Improved documentation of MANDB_MAP directives in /etc/manpath.config (addresses the other part of that bug, so closes: #47000). * Once man and mandb don't complain about certain classes of permission problems, it becomes easy to install them non-setuid. Since in this mode man can't write cat pages or update the database on the fly, non-setuid is the default but a debconf question asks whether to install them setuid. I hope this meets the concerns about man-db's security policy (closes: #42128). * As well as the above, the recent security updates should have made sure that man and mandb drop privileges at the right times, and so can read privately-owned directories (closes: #42479, #42791). * In non-setuid mode there's no need to use the root-squashing wrapper. I'm not going to close related bugs yet, as they're still present for those who install setuid; I still intend to split the setuid stuff out into a separate process and remove the wrapper entirely. * The postinst and cron.weekly now explicitly su to man to run mandb, since the wrapper might not be present. * If searching for a page in the database returns no output, check the filesystem anyway, as the database might not be up to date. * Tidied up parsing of multiple whatis keys in .SH NAME sections, so that each separate name gets assigned its own whatis entry correctly. Separating items in the NAME section with newlines remains unsupported, as at the moment man pages can get away with spreading their whatis description over multiple lines and I'd rather not break them gratuitously. However, multiple items will be recognized (and have been for a long time, albeit brokenly up to now) if they are separated by a .br (break) request. *roff doesn't normally do much with newlines in the middle of paragraphs in its input, so this is consistent. See bug #97916 for more details (closes: #17735). * Updated tools/config.sub to know about the sh/sheb architectures. -- Colin Watson Sat, 19 May 2001 19:29:39 +0100 man-db (2.3.18-2) unstable; urgency=medium * man would segfault if the argument to -S contained only colons, and incidentally treated an empty argument to -S wrongly. Both cases now use the standard list of sections instead (thanks, Colin Phipps and Stephen Shirley; closes: #97553, #97566). -- Colin Watson Tue, 15 May 2001 19:36:12 +0100 man-db (2.3.18-1) unstable; urgency=low * New upstream release, incorporating changes from Wilf's 2.3.11 and 2.3b12 releases as well as all my upstream-relevant changes to date. At long last the Debian diff is a manageable size. * Build the manual from the original nroff source. HTML is gone for now, until I can get satisfactory output from grohtml. * Remove build dependency on html2text as a result of the above. * Build-depend on lynx, as configure checks for its path. * jgroff no longer exists, so drop the alternative dependency on it. * Remove debian/rules cruft to generate configure, which is now definitely built upstream. * The configuration file is now partially automatically generated, and is called man_db.conf upstream. The Debian package still uses manpath.config for now to save me having to do the hacking necessary to move a conffile. * According to FHS 2.1, the location of locally installed man pages is /usr/local/share/man rather than /usr/local/man. The upstream configuration file now has /usr/local/man mapped to /var/cache/man/oldlocal and /usr/local/share/man mapped to /var/cache/man/local. Move .../local to .../oldlocal in the postinst to save regenerating cat pages. -- Colin Watson Tue, 15 May 2001 00:00:56 +0100 man-db (2.3.17.1-5) unstable; urgency=low * Formally took over upstream maintenance. No release yet, but updated debian/copyright with new location of upstream source (and also Wilf's distribution site for old sources). * Generate man-db-manual.txt from man-db-manual.html at build time using html2text, rather than including it in the diff. (The next upstream release will have both generated from the original nroff source.) * Don't run configure in the clean rule, and ignore errors due to not finding the makefile. In normal autobuilds it just wastes time. * Bumped database format version to 2.3.2. This really should have been done a long time ago. * If database information is found to be in an old format, then ignore it and use the filesystem instead. mandb will fix it up when it's run, as it is in the postinst (although this may well become optional soon). * Explicitly close the database if the version number is wrong, so that the above works. * Lower warnings about wrong version numbers to debugging messages. * All hail debootstrap for making the testing above so painless! * Taught lexgrog how to detect grap and vgrind. Preprocessor lines (with '\", see man(1)) are no longer strictly necessary for these. It's still good practice to declare what preprocessors your man page needs if it uses any - even tbl - for compatibility with older versions of man. * History updates for the man pages. * Made accessdb check for /var/cache/man in preference to /var/catman, and updated the man page accordingly. (Incidentally, I'd have preferred it if the Japanese translator hadn't improvised text that wasn't in the English version, as now I don't know how to update it to keep up with this change. Please don't do this in future.) * Fixed the --test option to mandb (it really doesn't alter existing databases now), and documented it. It should be almost feasible to use it for lintian checks now, if need be (closes: #5360). * Generate a warning if displaying a page requires going through a whatis reference with no link in the filesystem. Supporting this is necessarily a major performance hog; see policy bug #94995 for more information. * Removed code preventing symlinks outside a mantree from working. I can't see how it's a security problem, and in some situations (e.g. stow) such symlinks are useful (closes: #94642). -- Colin Watson Sat, 5 May 2001 00:19:00 +0100 man-db (2.3.17.1-4) unstable; urgency=high * Drop privileges in mandb when creating a temporary database in a user-supplied manual hierarchy. Thanks to Ethan Benson for observing this vulnerability. * This was also fixed in 2.3.16-3 in potato; folded in changelog entries from security updates. * I noticed a stray /etc/cron.weekly/catman on my system. Although it was definitely from this package, I can't quite work out from the changelog when it was removed. At any rate, it's obsolete, so clean it up. * Removed a spurious space in accessdb's usage output. * whatis/apropos: Complain and exit immediately if a key in the database is missing its value, indicating database corruption. Also disable optimized btree walk for now, as seq() seems to be more tolerant of this than get() for reasons I haven't tracked down yet (closes: #95052). -- Colin Watson Mon, 30 Apr 2001 23:53:42 +0100 man-db (2.3.17.1-3) unstable; urgency=low * Move the wrapper from /usr/bin/man-wrapper to /usr/lib/man-db/wrapper, since there's no reason to execute it directly. This also means we can lose man-wrapper(1), which wasn't terribly informative anyway. * Make "bad symlink" output quieter (2.3.17.1-1 made it noisier by mistake). * Use the latin1 character set again for the C and POSIX locales. * Updated Japanese translations (thanks, UCHIDA Norihiro; closes: #76774). The ja_JP.ujis directory is still present, as a Debian diff can't remove it. I'll remove it in the next upstream release. * The order of locale variable checking was corrected some time ago by calling setlocale(LC_ALL, ""). Added support for the case where LC_MESSAGES is set differently from other categories, and for selecting multiple locale preferences with LANGUAGE (thanks, Claudio S. Suarez Sanchez and Tomohiro KUBOTA; closes: #40743). * Correct first line of /etc/manpath.config (closes: #94090). * Make /etc/manpath.config a dpkg-handled conffile and dispose of the hack to convert old configuration files to the FHS. /usr/share/man-db/chconfig is still there if people want to use it. * util-linux (essential) has provided /usr/bin/pager since version 2.7.1-1 in September 1997. I think we can safely assume it's there now. * Don't preserve the configure script any more; just generate it each time. It should go in the next upstream tarball. * Updated --version output, and fixed configure to find the version number properly. -- Colin Watson Tue, 17 Apr 2001 15:23:30 +0100 man-db (2.3.17.1-2) unstable; urgency=low * Really fix makefile permissions. It looks like makefile was only in the Debian diff, not the .orig.tar.gz, so there's no need to preserve it to avoid a massive diff (closes: #90302 again). * Just update the database in cron.weekly rather than creating it from scratch. If the database format changes, the postinst will sort it out; if the database becomes corrupt, you're going to want to fix it more quickly than next week anyway (closes: #39842). * 'apropos -w' really does wildcard matches now (thanks, KAMBAYASHI Hiroyuki; closes: #77624). * Updated docs/ToDo (using zlib rather than gzip would be good). -- Colin Watson Sun, 1 Apr 2001 14:37:28 +0100 man-db (2.3.17.1-1) unstable; urgency=medium * New maintainer. Fabrizio, may the road rise up to meet you. * Might as well acknowledge my NMUs (closes: #41915, #60084, #60867; closes: #61198, #71797, #71932, #72292, #76107, #78086, #83019, #84128; closes: #84334, #84926, #85049, #85314, #85421, #85463, #85812, #86108; closes: #86892, #87195, #87420, #87541). * Converted to debhelper, and otherwise substantially rewrote the build process. debian/{p.skeleton,policy,source-depends} are gone, and debian/conffiles too as debhelper v3 handles that. * Unfortunately, much of the debian/ directory was in the upstream tarball, and dpkg-source ignores deletions. To get around this, I made a new "upstream" tarball, which is identical to 2.3.17 except without the debianization (hence the sub-sub-minor revision). * debian/rules: - Preserve ownership and permissions while copying files in the clean target to avoid inadvertent root ownership (closes: #90302). - Really set LDFLAGS, and pass it at the build stage rather than in configure so that I can get unstripped binaries easily. - DEB_BUILD_OPTIONS=debug was broken due to missing quotes. Fixed. * debian/{pre,post}{inst,rm}: - Reformatted somewhat and removed things debhelper does already. - Removed call to update-menus in postrm. - Only rebuild the database when the database format has changed or the database is missing, and only remove catpages on purge. Hacked preinst to deal with old packages' postrms removing catpages unconditionally. - No need to su to run mandb; man-wrapper will sort that out. - Clean up a cron job left around from the old man package in rex (closes: #67000). * Updated policy version to 3.5.2: no changes required. * Depend on bsdmainutils rather than just suggesting it. Users might legitimately want stray cats (pages, that is ...) on their system, even if they aren't installed by Debian packages (closes: #64183). * Added lintian overrides (setuid-binary /usr/lib/man-db/{man,mandb} 4755 man/root). * Clarified manpage.example (thanks, Kevin Ryde; closes: #52525). * Call setlocale() with LC_ALL rather than LC_MESSAGES (patch from GOTO Masanori; closes: #75559). If somebody with experience of locale programming could tell me whether the patch in #40743 makes sense, it would be much appreciated. * The Perl maintainer is putting core Perl module man pages in the .3perl namespace, so that should follow .3pm (to allow vendor pages to shadow core). Added that to include/manconfig.h.in. * Significantly improved man's behaviour when new packages are installed and it decides to rescan the man hierarchies. Its logic for working out what pages it had seen before and put in its database didn't quite cope with symlinks, so every link to undocumented(7) and so on got rescanned and gunzipped. Fixed the logic in all but pathological cases (.so links to symlinks, say, but Don't Do That Then). If a lot of manual pages have been changed recently, it still reads them all, but this should be a lot less painful now. -- Colin Watson Sat, 31 Mar 2001 18:07:46 +0100 man-db (2.3.17-3.2) unstable; urgency=medium * Non-maintainer upload. * Quieten cron.weekly again. Even if I'd remembered --quiet, it will still report real errors in the man page hierarchy, such as broken symlinks; there are quite a lot of those in Debian right now, and it isn't important enough to mail root about it every week (will reopen #28828, but closes: #87541). * Change to the root directory so cron.daily doesn't get "Permission denied" (closes: #87195, #87694). * More *roff and /dev/null fixes in configure. This one restores the mandoc macros so that PostScript output looks sensible again (closes: #87420). * Build-depend on grap and vgrind so we always get paths to them. * Improved description of -M option in man page (closes: #71932). * Corrected a couple of "it's" -> "its" typos. * The FHS transition took place almost two years ago, but the code for updating manpath.config is still around. The configuration file is now only updated when the previous version of man-db was earlier than 2.3.10-69j, and config_md5 is no longer dynamically updated in debian/rules based on the current build machine. Also move chconfig and config_md5 into /usr/share/man-db. -- Colin Watson Wed, 28 Feb 2001 21:02:41 +0000 man-db (2.3.17-3.1) unstable; urgency=high * Non-maintainer upload. * Apply patch for format string vulnerability (thanks, Colin Phipps and Martin Schulze; closes: #84128, #84334, #85314). * Migrate from suidregister to dpkg-statoverride (closes: #85049, #86108). * Do the 'make install' step manually in debian/rules. On a clock-skewed machine, the existing code would decide to rebuild the binaries and end up hardwiring the temporary build directory into them. This caused problems in an Alpha security upload; that was fixed binary-only, but this should prevent it recurring (closes: #85421, #85463, #85812). * Worked around change in nroff's behaviour for configure - it no longer accepts /dev/null as an input file (thanks, Fumitoshi UKAI; closes: #76107, #83019). * Updated policy version to 3.5.1: - Added build dependencies (closes: #61198). This includes a build-depends on libdb2-dev after its split from glibc in glibc 2.2, so there's now no need for special handling (closes: #41915). - Support DEB_BUILD_OPTIONS. * Clean the source package properly. As per the changelog comment in 2.3.17-2, I'll leave configure and makefile there, but other generated files need to be removed or autobuilders may have random problems. * Rename /usr/bin/wrapper to /usr/bin/man-wrapper until somebody makes it generic (closes: #60084). * Make man-db almost lintian-clean: - Strip binaries. - Wrote a brief man page for man-wrapper. - Make /usr/bin/man and /usr/bin/mandb symlinks to man-wrapper to avoid the mess of creating hardlinks in the postinst, which broke md5sums as far as lintian was concerned. With statoverrides this doesn't leave a window where man and mandb are setuid root. * Check arguments to maintainer scripts so we don't do things like calling mandb on a failed upgrade (closes: #60867). * The test '-x $(which foo)' doesn't always do something predictable. Replace it with better idioms where the maintainer scripts use it. * perl-base is essential, so no need to check for perl being available. * util-linux is essential, so no need to check for more being available. * Fix segfault where apropos couldn't find an identifying string for a man page (thanks, Les Schaffer; closes: #71797). * Don't throw away errors in cron.weekly (closes: #28828). * Make -s option to mandb really not check for stray cats (closes: #78086). * Run cron.daily as user man; mandb is already wrapped by man-wrapper, so cron.weekly is fine (thanks, Wolfram Kleff; closes: #72292). * If a gzip subprocess is interrupted and we clean up the temp file, make sure we don't try to do it again in the atexit() hook (closes: #84926). * Add another chdir() so that 'man -l' with a relative path to a compressed man page works again. -- Colin Watson Wed, 21 Feb 2001 00:54:47 +0000 man-db (2.3.17-3) unstable; urgency=low * Cadded chmod to have configure executable. Thanx to Roman Hodek. This closes: #69226. -- Fabrizio Polacco Wed, 16 Aug 2000 17:06:31 +0300 man-db (2.3.17-2) unstable; urgency=low * Commented away call to distclean_root in GNUmakefile: need to leave the Makefile and configure in the tarball. * Found and fixed subtle bug which made wrapper uselessly linked with -ldb2. When invoked by root on a system which enables group.db, then the call to initgroups() segfaults due to the libc link to libdb! This closes: #65474. -- Fabrizio Polacco Fri, 7 Apr 2000 10:50:45 +0300 man-db (2.3.17-1) unstable; urgency=low * Corrected apparent disappearing of option -e in apropos. * Corrected wrong usage of undocumented option -X which produced error when passed to filters. This is now parametrized as optional argument, defaulting to use devX75. Documented in usage : -X = -TX75, -X100 = -TX100, -X100-12 = -TX100-12. * Applyed patch submitted by Tomohiro KUBOTA: * roff_device and LESSCHARSET are determined by user environment rather than language of manpage for English manpage. * roff_device "ascii8" is used for non-English/non-ISO-8859-1 languages. Tomohiro KUBOTA Sat, 22 Apr 2000 14:48:48 +0900 closes: #62844. Because of this patch, changed versioned dependency to new groff. * Added new check for libdb in configure.in * Added /usr/local/{share/}man to config file, due to bug in FHS, thanx to Gregor Hoffleit. Closes: #61058. * Added new message catalog po file for cs (czech) (4 new messages), thanx to Vladimir Michl. * tired of people continously complaining that man behaves differently than in RedHat (which is "The Reference Linux", you all know that), I'll add tbl as default filter for man. This will fix those three or four manpages that do not take the burden to declare their dependency on the tbl formatter (usually because upstream uses RedHat and so ...). Now what would I do if someone fill a bug against this because of wasting of CPU cicles for un-necessary filtering on the hundreds of pages that do not need tbl? I would certainly agree with them. Therefore I will fix this introducing scanning of manpages a la grog in mandb, and storing the result in the database. ...[noise of hacking and debugging]... Well, I did it (use accessdb to see it!). It took 4 weekend (stolen to the implementation of man 2.4) to complete and debug. Now you can announce the world that man-db 2.3.17 knows in advance which filters to run when processing a manpage which is in the database. This rant closes: #63497; be happy!:wq -- Fabrizio Polacco Fri, 7 Apr 2000 10:50:45 +0300 man-db (2.3.16-4) stable; urgency=high * Backport another security fix from unstable. * Count how many times privileges have been dropped, and don't regain them until regain_effective_privs() is called the same number of times. The lack of nesting meant it was still possible to create files owned by uid man (thanks, Luki R.; closes: #99624). -- Colin Watson Fri, 1 Jun 2001 23:50:31 +0000 man-db (2.3.16-3) stable; urgency=high * The last upload regained privileges too early; an attacker could potentially remove execute permissions from files owned by man. My apologies for not detecting this earlier. -- Colin Watson Mon, 30 Apr 2001 19:53:05 +0000 man-db (2.3.16-2) stable; urgency=high * Security upload by new maintainer. * Drop privileges in mandb when creating a temporary database in a user-supplied manual hierarchy. Thanks to Ethan Benson for observing this vulnerability. -- Colin Watson Sun, 29 Apr 2001 23:10:24 +0100 man-db (2.3.16-1.1) stable; urgency=high * Non-maintainer upload by Security Team * Fixed unquoted throughpassing of format strings that could crash man -- Martin Schulze Thu, 8 Feb 2001 23:27:53 +0100 man-db (2.3.16-1) frozen unstable; urgency=high * Applyed patch submitted by Javier Fernandez-Sanguino Pena to permit search of trnlated manpages before giving the first english one found. Closes: #61697. * Forgot the ignore dash in tags target in debian/rules, which made it adding a non necessary source dependance. Closes: #61199. -- Fabrizio Polacco Wed, 22 Mar 2000 16:00:16 +0200 man-db (2.3.15) frozen unstable; urgency=high * Just recompiled, with an upgraded potato system. Let's see if this wipes away the grave installation problem listed in bugs #60339, #60399, #60411, #60515. In that case, I'll close these bugs by hand :-) -- Fabrizio Polacco Wed, 22 Mar 2000 16:00:16 +0200 man-db (2.3.14) frozen unstable; urgency=high * if unconfigured, it install binaries setuid root! also closes: #32213. * Forgot to put different md5sum for man and mandb in md5sums file. debsums was failing on them as they were modifyed by postinst. Closes: #59677, #60023 thanx to Lee Maguire. -- Fabrizio Polacco Mon, 6 Mar 2000 12:35:35 +0200 man-db (2.3.13) frozen unstable; urgency=low * Applied patch to avoid disappearing of index file during regeneration. Thanx to Colin Phipps, closes: #58887. * Applied patch to generate secure temporary file in straycat. Thanx to Colin Phipps, closes: #58900. -- Fabrizio Polacco Mon, 28 Feb 2000 22:09:05 +0200 man-db (2.3.12) frozen unstable; urgency=low * Applied security patch for forcing regeneration of secure temp file instead of reusing it. Thanx to Colin Phipps who audited it and submitted a patch. Closes: #58271. * Written new wrapper in C. It installs as /usr/bin/wrapper and is hardlinked to man and mandb while configuring. The package installs a one line script (as /usr/bin/man and /usr/bin/mandb) that simply inform that the package is not configured; it is removed by postinst and replaced by hardlinks with /usr/bin/wrapper. Thanx to Ethan Benson, Colin Phipps. * Simply incremented minor number, to make Josip Rodin happy. Not only it is a native Debian package, but is is also a "new upstream release"(TM) :-) (and yes, I've changed the version number also in configure.in :-) * Added explicit proto in straycat.c as now libc has canonicalize_file_name(). -- Fabrizio Polacco Tue, 22 Feb 2000 16:41:33 +0200 man-db (2.3.10-71) frozen unstable; urgency=low * after exaustive discussion of debian-devel, the wrapper script has been fixed. Thanx to Ethan Benson, Marcus Brinkman, Petr Cech. Closes #57566. * added double dependency to groff or jgroff. * added updated cs po file and a small fix to avoid a warning, thanx to the precious contribution of Vladimir Michl. -- Fabrizio Polacco Tue, 8 Feb 2000 17:01:36 +0200 man-db (2.3.10-70) frozen unstable; urgency=low * security fix: moved setuid binaries to /usr/lib/man-db and added shell wrapper to execute as user nobody when invoked by root. This would avoid having anybody running man as root, or cron running mandb. * Added more granularity in the "quietness" of mandb, and added option test to simply check the correctness of manpages, to allow lintian and/or dh_install_manpages to report warnings. * fixed a typo in spanish message catalog. Thanx to Jose Dapena Paz, closes: #56204. * added (but not enabled) new option -H (-Thtml) to take advantage of new html driver (still experimental but getting better) in groff. * as a consequence, added versioned dependency to groff >= 1.15 * corrected location of GPL in copyright file. * corrected headers in po files for it and de. -- Fabrizio Polacco Fri, 14 Jan 2000 13:49:42 +0200 man-db (2.3.10-69s) unstable; urgency=low * added symlinks for /usr/doc (in postinst and prerm). * changed installation of japanes manpages to dir "ja". * Corrected incomplete apply of HURD patch. Closes: #48052. * Changed configure.in and libdb/mydbm.h to force inclusion of correct db_185.h header. Thanx to Marcus Brinkmann. * Corrected use of setlocale in files other that man.c; closes: #48128, thanx to "David Huggins-Daines". also closes: #48495. -- Fabrizio Polacco Sat, 16 Oct 1999 03:33:23 +0300 man-db (2.3.10-69r) unstable; urgency=low * Modified utility accessdb to default to FHS location of the cache. * Reduced verbosity of mandb when -q option is used; thanx to Francesco Potorti` ; closes: #28819. * corrected location of manual in menu and use of doc-base. Thanx to "J.H.M. Dassen \(Ray\)" closes: #47434. * applied patch for locale setting (also to manpath and whatis), and for inclusion of locale dirs in path. Thanx to Michael Sobolev and to Raphael Hertzog ; closes: #46853. * Added message catalog in French, translated by Laurent Pelecq , but mainly thanx to Raphael Hertzog who made this possible (I tried several times :-) Now, when we'll get also the manpages in French? -- Fabrizio Polacco Sat, 16 Oct 1999 03:33:23 +0300 man-db (2.3.10-69p) unstable; urgency=low * added default LESSCHARSET for latin1 in case of no LANG. thanx to , closes: #46628. * Added manpages in japanese, translated by Takeo NAKANO , thanx to nabetani@kern.phys.sci.osaka-u.ac.jp, closes: #46600 -- Fabrizio Polacco Mon, 4 Oct 1999 16:15:52 +0300 man-db (2.3.10-69o) unstable; urgency=low * re-established correct behaviour for -t option, thanx to Roland Rosenfeld , closes: #46592. * this part was in 69n, but I forgot the ':' * all manpage locations doubled because of a slash :-) thanx to Lazarus Long and Wichert Akkerman. Closes: #46448, #46497. -- Fabrizio Polacco Mon, 4 Oct 1999 13:30:25 +0300 man-db (2.3.10-69m) unstable; urgency=high * grave: it looks like acting in the postinst as dpkg does for generic conffiles brakes man, which mow cannot work without that file. I don't know if this is a bug per-se (man should run even without config file), but I've changed the postinst to default on copying the current config file. Closes: #46363, #46367 (and several others, while it reaches the mirrors?) -- Fabrizio Polacco Fri, 1 Oct 1999 10:37:46 +0300 man-db (2.3.10-69k) unstable; urgency=low * problems with locale. modified check of locale directory to try all combinations. This should permit installing in xx while using LANG=xx_XX.YYY -- Fabrizio Polacco Wed, 29 Sep 1999 18:57:16 +0300 man-db (2.3.10-69j) unstable; urgency=low * made compliant to policy 3.0.1 * Gone through a quick check of all bugs (61!): Problems fixed in previous releases, but never closed: closes: #35336, #20949, #21016, #21240, #23239, #23267, #24267, #24604, #24691, #25825, #26002, #26038, #26077, #26222, #26465, #27858, #32036, #32759, #33679, #34643, #41748. * removed setuid permissions from file in tarball, as postinst handle them properly. Closes #32213. * changed the copyright file to point out that the author has passed maintainership. Also changed location of his ftp site. closes #41737, #30153. * found (and fixed) nasty bug in reading config file that segfaulted on too large files. Now stops reading and procede. * Added japanese support. Thanx to Taketoshi Sano and Fumitoshi UKAI . Closes: Bug#38107. * partially eliminated feature to display file when manpage is not found, limiting it only when the argument is a pathname containing the character '/'. closes: #41205, #41715, #45979. * created perl script /usr/lib/man-db/chconfig that scans the file in argument (the man confile) and upgrade it to FHS. Its call from postinst is checked also against perl presence. * removed /etc/manpath.config from conffiles; added in postinst automatic copy of it if the existing one isn't being modified, or using the new script to validate it and upgrade to FHS. Treat correctly absence of the config file (??) and allow insertion of keyword NOFHS in /etc/manpath.config to avoid its update. * added list of md5sums from previous conffiles, to help detect unmodified ones. Added to rules file the automatic adding of a new md5 if a new conffile is created. (so maintainers don't have to maintain it) * added Japanese message catalog, curtesy of Fumitoshi UKAI ; closes: bug#43845. * added corrected translations in Italian, thanx to Giovanni Bortolozzo * changed tests in configure.in to detect new libdb installed from glibc. Closes: bug#39646 * corrected typos in control file, thanx to Richard Braakman , closes: bug#39687 * corrected use of LANG in locale. thanx to ypwong@debian.org, closes: bug#39281. * added patch for HURD for canonicalize_file_name thanx to Marcus Brinkmann (brinkmd@debian.org), closes: bug#39039. -- Fabrizio Polacco Wed, 9 Jun 1999 10:37:29 +0300 man-db (2.3.10-69i) unstable; urgency=low * In man-db -69i: * In man-db -69FIX.1: * Added unlink of temporary file between call to tempnam and open to reduce (without completely avoiding it) the possibility that a malicious user puts a dangling symlink to let man leave a file (with a manpage inside :-) in places different that the temporary directory. Not a security risk at all, IMO. * Added secure open of temporary file in zsoelim.l , thanx to Marc Heuse . The code was not secure against a symlink attack. This didn't affect 'man', which does not excute that part of the code, but only manual execution of zsoelim. -- Fabrizio Polacco Wed, 9 Jun 1999 10:37:29 +0300 man-db (2.3.10-69h) unstable; urgency=low * In man-db -69h: * Corrected problem that did not permit finding local manpages as default (without -l , as added in version -69g) if the pathname was not an absolute pathname. (found by me :-) * avoided error message "file not found" in case of failed local search as default after failed search ob database. Thanx to , closes bug#37882. * added new czech message catalog, thanx to Vladimir Michl * updated manual page man(1), example section, to make more clear that man -k and man -f *runs* apropos and whatis. Closes: #35741. * updated usage string and manual page for apropos, to reflect the use of -r as default, and the addition of -e to get the previous behaviour. -- Fabrizio Polacco Fri, 9 Apr 1999 10:49:11 +0300 * In man-db -69g: Mon, 5 Apr 1999 20:27:12 +0300 * corrected typo in aclocal.m4 that made detection of broken pclose unavailable for configure. Thanx to UNO Takeshi for the report and the patch. Closes: #35608. * Added ability to suppose -l when no manpage is available; this enhancement was requested in bug#19999 and #23567 * Added patch to fix bug#25270 (uninitialized var which made ignore the config file) thanx to cph@martigny.ai.mit.edu (Chris Hanson) for the report and the patch. This problem was also described by Roland Rosenfeld in bug #30646. * made czech message catalog available. When for manpages? * In man-db -69f: Thu, 1 Apr 1999 16:17:58 +0300 * corrected bug in manp.c introduced in 69e (missing xstrdup). My apologizes. Closes: #35326, #35353, #35354 . I hope it fixes also #35355 and #35336, but as I wasn't able to reproduce it, I'm not able to test its fix :-) * corrected typo in mandb.8 (/omitted/emitted/) (I remember having fixed it already ... maybe I'm getting too old?) * added message catalog in czech translated last year by Vladimir.Michl@upol.cz and added using the wrong format and later forgot. How can I be forgiven? * In man-db -69e: * Corrected typo in german messages file, thanx to Christian Hammers for the hint. * added enhancement to get manpath add default values from config file to value in MANPATH env var according to presence of redundant semicolon; suggested by Peter Moulder in wishlist bug#19999. TODO: modify manpage, manual and so to describe new enhancement to $MANPATH management; trailing or leading spare semicolon make add the manpath derived from config files to the content of the var. A double semicolon in the middle of the var makes insertion of the rules derived into the var. * added management of a user conf file ~/.manpath , with the same syntax of /etc/manpath.conf, whose content is added to the default conf file. It remains to be demonstrated if handling of cache works as expected in all cases. This enhancement, binded with the previous one, gives users complete control over user managed mapages, which is quite more needed out of Linux, in other OSes. * In man-db -69d: * Wrong change in manpath.config: it built two indexes for /usr/man and /usr/share/man, and put both in /var/cache/man , so the second overwrote the first. Thanx to Matthew Eaton, closes: #34636. * In man-db -69c: * put back the config file into /etc ... :-) * found a bug in postinst that didn't rebuild the index. * In man-db -69b: * corrected lintian's error in menu file. * modifyed cron.daily * moved configuration file to /etc/menu/ created list of sections in /etc/menu/sections.list The idea is to have mandb create it when scanning manpages. * FHS compliance: - add /usr/share/man in /etc/manpath.conf - move /var/catman to /var/cache/man * user's changes need manual update. * absolutely DON'T SYMLINK /usr/man !! Otherways you'll get double entries in the database. * removed FSSTND keyword from manpath.conf and its handling in the code, as it was a hack messing up names. - start installing manpages in /usr/share/man Don't worry about old packages installing into /usr/man . man is designed to search pages on several directories! - modify {pre,post}{inst,rm} scripts. * TODO: * modify docs (manpages and manual) to reflect these changes. * raise bug to lintian to get a version that complains for manpages * in /usr/man and recognize manpages in /usr/share/man . . * In man-db -69a: Sun, 7 Mar 1999 19:32:25 +0200 * Applyed (manually) patch to handle -l option (pipe from stdin) Thanx to Peter Maydell who wrote the patch. (should fix: #3739, #21445) * Modifyed apropos (and man -k ) behaviour to make -r option the default, even in absence of the env POSIXLY_CORRECT. Added option -e (--exact ) to permit the previous behaviour, when the keywords match only full words in the descriptions. Modifyed the usage of man and apropos. Need to modify the manpages and the manual. Thanx to Ian Jackson who posted the suggestion eons ago. (should fix: #3788 ) * TODO: * To fix bug #5360 (which is not a bug in man-db) I want to create a manpage installer program that checks all the common errors in manpages like broken symlinks, wrong section, wrong location, missing of preprocessor directive in the first line and missing of .SH NAME section. This installer should also execute mandb to update the database (as when man -u is issued), as the automatic detection of new manpages doesn't work in case of multiple pages with the same name in different sections (#10106). This update should be done in background after dpkg has finished. * to fix bug #3766 ("man" acting too smart) I need to take out of the sources the list of sections, and put it into the configuration file. This is not trivial, as the list is dinamic, but mandb scans all the pages in the system to collect descriptions, so I can use that code to collect the list of sections, order it and write it somewhere (=/var/cache/man/sections). Then man sources the list. * I need to add an option to show the order in which sections are processed while searching for a page. Actually this list is hardwired in the source code. It should be in the config file AND dinamically extended by mandb (which finds new sections). Splitting the config file into a directory would improve this? Yes. * For bug #11848 I should download glib sources, apply patches and then look into "locale" source code to see how and from where it takes the informations printed in line 'ctype-codeset-name' when I issue the command 'locale -k LC_CTYPE'; then reproduce this inside man.c and check the result. --ascii option should be assumed for ISO8859 different from -0, -1, -3, -7, -9 . -- Fabrizio Polacco Sun, 7 Mar 1999 19:32:25 +0200 man-db (2.3.10-69) unstable; urgency=low * Corrected wrong set of terminal modes even when "not-a-tty". (thanx to Alessandro Rubini for the report) -- Fabrizio Polacco Sun, 29 Nov 1998 01:01:54 +0200 man-db (2.3.10-68) unstable; urgency=low * Removed correction of return code, which made man ignore symlinks. (closes: #26351 thanx to Branden Robinson ) -- Fabrizio Polacco Tue, 6 Oct 1998 17:49:28 +0300 man-db (2.3.10-67) unstable; urgency=low * Corrected messaging for dangling symlink; also added correct handling of return codes, so now there will be only one warning line for each dangling symlink. (Thanx to Joey Hess, closes: #26141) * Added forcing of umask to avoid uncorrect settings of catdirs. * Added code to check for each single subcatdir, but, due to major load, conditioned code only to mandb. That is to say that catdirs are automagically created only by mandb. * Removed "access" check in mandb which use the real user, making the setuid binary a non-sense. -- Fabrizio Polacco Sat, 29 Aug 1998 16:32:30 +0300 man-db (2.3.10-66) unstable; urgency=low * added change of ownership in creating new catman hierarchy when done by root. Thanks to Alexis Huxley for the detailed report. (closes: #24691, #25825, #26002) * corrected typo in mandb(8), tx to Richard Braakman, closes: #24296 -- Fabrizio Polacco Fri, 15 May 1998 23:20:47 +0300 man-db (2.3.10-65) frozen unstable; urgency=low * added correction to spanish translations supplied by Santiago Vila. (closes: #21240) * Added a check for the availability of the executable "mail" otherway the postinst could fail. * Modifyed the check for update-menus to be on a single line for lintian, and to have safe exit point for failure of test. * Cleaned cron.weekly from call to the no-more existent utility mkcatdirs, whose presence make people (actually me, which is even worse) think that catpages were purged weekly, which is no more the case since 2.3.10-60 Also lowered (from 7 to 6) the days of non-access to purge catpages, because the weekly access for rebuilding the database would always keep the atime lower than 7. (Thanx to Nicolás Lichtmaier for having tampered me untill I noticed that :-) -- Fabrizio Polacco Tue, 7 Apr 1998 23:27:32 +0300 man-db (2.3.10-64) frozen unstable; urgency=low * corrected bug in zsoelim.l that made it segfault (closes: #19746). solved also another bug which didn't make it uncompress files. * corrected typo in menu entry (closes: #20169) * corrected linkage of zsoelin which included -ldb2 (unused). * added Tom Christiansen's example of manpage. * added corrections to spanish message catalog (Nicolás Lichtmaier and Luis Francisco Gonzalez). * corrected propagation of option -L in whatis/apropos. -- Fabrizio Polacco Wed, 11 Mar 1998 19:10:58 +0200 man-db (2.3.10-63) unstable; urgency=low * changed i18n from catgen to gettext; I updated all po files, but there are some entries empty. * problems with i18n: added explicit check of environment instead of trusting setlocale(); now man works with translated manpages. * moved umask 022 from the shell command to the open of the temporary file, to avoid errors in case of restrictive settings, due to the open call added in -60 -- Fabrizio Polacco Sun, 1 Mar 1998 23:20:41 +0200 man-db (2.3.10-62) unstable; urgency=low * added check in configure that bsdmainutils is installed, so check for col won't fail. closes: #18661, #18665. We absolutely need source-depends, otherways autobuild won't work. Version for libc5 was correctly built, so -59bo61 is OK. * oops, wrong put of update-alternatives in postrm instead than prerm. -- Fabrizio Polacco Fri, 27 Feb 1998 10:42:04 +0200 man-db (2.3.10-61) unstable; urgency=low * man-db (2.3.10-61) unstable; urgency=low * man-db (2.3.10-59bo61) bo-unstable; urgency=low * Changed test in configure to fail if executed without a pager on a Debian system. * To avoid the error "pager: No such file" when a newer man is used without upgrading any of the pagers in the system, I have added a bogus pager "/usr/sbin/man-pager", which points to /bin/more, installed through update-alternatives with a weight very light (1). Probably the Right-Thing-To-Do (TM) is to add a VP "pager" and ask all pager installing /usr/bin/pager to Provide: it (at least util-linux). Later man-db could Depends: on it :-) -- Fabrizio Polacco Thu, 26 Feb 1998 12:15:33 +0200 man-db (2.3.10-60) unstable; urgency=low * man-db (2.3.10-60) unstable; urgency=low * man-db (2.3.10-59bo60) bo-unstable; urgency=low * created a new manpage for accessdb utility (lintian will be happy). * slightly modifyed manpath(1) manpage to reflect changes in manpath behaviour (back in version 2.3.10-39, #10039) about search for man hierarchy in the current directory. Udated english, italian and spanish pages; german ones are very old and need a complete reread. * added (in src/manp.c) creation of catman hierarchies -on-the-fly-, thus obsoleting all those scripts like mkcatdirs, and also modifying pre,post scripts. (closes: #15518, #14449); * added checks in configure.in to determine if run on a debian system, defining DEBIAN, DEBVER, DEBMAINT and putting them in config.h ; removed old way to insert debian version number in the program. * cleaned cron files (closes: #14810, #18208). * (lintian): updated the debian/copyright file for FSF address; deleted copyright of gencat utility (no more in binary). * added a safer open for temp file in create_ztemp(), closes: #16371 * corrected menu file, (closes: #17352). * added local date support for translated manpages into configure.in and in the manpages (idea by Luis Francisco Gonzalez). * added spanish manpages and catalogs (thanx to Luis Francisco Gonzalez , Enrique Zanardi and Cesar BALLARDINI ). * build linking to libdb2 -- Fabrizio Polacco Tue, 30 Dec 1997 17:13:09 +0200 man-db (2.3.10-57) unstable; urgency=high * (ver -57) => libc6 version, linked using libdb.a in libc6 and explicit -lc man-db (2.3.10-57) unstable; urgency=high * (ver -47) => still libc5 compiled under debian-1.3.1 ( =>experimental) man-db (2.3.10-47) experimental; urgency=low * changed Standards-version to 2.3.0.1 * un-debstd-ized rules, postinst and postrm. * Moved suidmanager call _before_ mandb run (should fix #14996), but debstd still add his stuff at the end: need to stop it. -- Fabrizio Polacco Tue, 18 Nov 1997 20:52:44 +0200 man-db (2.3.10-56) unstable; urgency=high * (ver -56) => libc6 version, linked using libdb1 in libc6 and explicit -lc man-db (2.3.10-56) unstable; urgency=high * (ver -46) => still libc5 compiled under debian-1.3.1 ( =>experimental) man-db (2.3.10-46b) experimental; urgency=low * found __big__ problem in libc6-dev that installs db1.85 with soname 2, while old libdb1-dev package (from bo) is linked with libc5 ... need to link statically to libdb.a to avoid future problems when _true_ db2 will be installed. * oops, in 55 (libc6) pager was left undefined (#14862, sigh) * oops, missing accessdb as promised :-) * changed tests on closed streams to detect more conditions. -- Fabrizio Polacco Sun, 16 Nov 1997 01:31:44 +0200 man-db (2.3.10-55) unstable; urgency=low * (ver -55) => libc6 version, linked using libdb1 in libc6 and explicit -lc man-db (2.3.10-55) unstable; urgency=low * (ver -45) => still libc5 compiled under debian-1.3.1 ( =>experimental) man-db (2.3.10-45) experimental; urgency=low * Added check of libdb (1 or 2) in configure.in with set of BTREE to 1 or 2, changes in CFLAGS. Conditioned inclusion of db/db.h or db_185.h to value in BTREE. * Added open of stdin/stdout/stderr in man.c in case someone like "info" closed them before exec-ing man. This corrupted the database files, and later segfault in the db library. (fixes bug#11278, #11469, #11471, #14181) * Added /opt hierarchy in src/man_db.config (etc/manpath.config) * Added tool accessdb in /usr/bin . No manual page (yet). * Added option -S (safety mode) to pic in configure.in * Changed default pager from more to "pager" in configure.in (fixes#14254, thanks to Scott K. Ellis) * Added resetting of pristine terminal setting when exiting (#14174, thanks to Herbert Xu) * Corrected error in the changelog for version 52, 53, 54 about linking against libdb2 (it was libdb from glibc2). -- Fabrizio Polacco Thu, 30 Oct 1997 00:24:55 +0200 man-db (2.3.10-44) experimental; urgency=low * (ver -54) => libc6 version, linked using libdb2 and explicit -lc man-db (2.3.10-54) unstable; urgency=low * (ver -44) => still libc5 compiled under debian-1.3.1 ( =>experimental) man-db (2.3.10-44) experimental; urgency=low * avoided bashism in debian/rules. * deleted bogus files with spaces embedded in name (#13888) * applied patch for alpha by #13851 * zsoelim.l - added new start condition to avoid expansion of .so requests inside a macro definition. (fixes #2969 and #13812) -- Fabrizio Polacco Tue, 14 Oct 1997 11:00:53 +0300 man-db (2.3.10-53) unstable; urgency=low * (ver -53) => libc6 version, linked using libdb2 and explicit -lc man-db (2.3.10-53) unstable; urgency=low * (ver -43) => still libc5 compiled under debian-1.3.1 ( =>experimental) man-db (2.3.10-43) experimental; urgency=low * added quote around var in mkcatdirs (fixes #13738, tx M.Konarski) * added removal of tempfiles from handler for SIGINT (fixes bug#13352 Thanks to John Goerzen) * changed way to call groff adding -P-g so grops can guess a page size (fixes #13563 uncorrectly assigned to groff, thx John Kallal) * solved deletion of entries in index when skipping their display (#10483) * wiped wrong message displayed when skipping display of manpage. * avoided redundant searches for section names longer than one char. -- Fabrizio Polacco Tue, 30 Sep 1997 10:52:03 +0300 man-db (2.3.10-42) experimental; urgency=low * (ver -52) => libc6 version, linked using libdb2 and explicit -lc (#11706) * (ver -42) => still libc5 compiled under debian-1.3.1 ( =>experimental) * Added removal of tempfiles via atexit(). * restored original order in search sections (3 before 2) changed by previous maintainer (don't know why) (#12192 thx Juan Cespedes) * redirecting unusefull error messages in postrm and preinst (#12224) * doesn't provide gencat anymore, but can't use libc6's gencat. (#9841) * Changed tests in postinst to work with ash (#12212 thx Herbert Xu) * Changed define of debian version for use in non-debian systems (thanx to Albert Chin-A-Young); added file include/version.h -- Fabrizio Polacco Mon, 18 Aug 1997 10:26:10 +0300 man-db (2.3.10-41) unstable; urgency=high * oops, -40 was linked against libgdbm1. (need a symlink db.h ->db/db.h * rebuild using (and dependent from) libdb1_1.85.4-4 with security fix. This shouldn't make any difference (man.db doesn't use snprintf) -- Fabrizio Polacco Sun, 17 Aug 1997 15:16:59 +0300 man-db (2.3.10-40) unstable; urgency=low * Still libc5 version. * (Italian version) Minori correzioni a mandb.m da parte di Borto. * several corrections to it's => its typos in manpages [man(1), manpath(1), zsoelim(1), mandb(8)] Fixes Bug#11440 thanx to David Damerell. * Restore correct NAMN swedish parse for whatis (bug introduced by me fixing #6497 on version -34) Thanx to John F. Bunch. (fixes bug#12069) * Fixed segfault using an empty arg to -S option (Bug#12074, Thx Herbert Thielen) * Fixed wrong manpath behaviour (Bug#10377, Thanx to Michael Lachmann) * reduced output in postinst (Bug#11902). * included execution of chmanconfig (which adds MANDB_MAP lines for lang manpages) inside mkcatdirs (which creates catdir hierarchies). -- Fabrizio Polacco Thu, 14 Aug 1997 13:16:43 +0300 man-db (2.3.10-39) unstable; urgency=low * added debian version info to option -V * corrected a couple of italian messages that didn't work (Grazie Borto) * added nlsutils in Replaces: field of control file (fixes Bug#9943) * Ugly typo in debian/rules that made .dwww-index disappear from last version (-38): my fault! (sigh) (autoBug#10130) * dropped scan of current directory if explicitly present in PATH both as an empty entry or an explicit dot; this used to left index files here and there. (fixes Bug#10039, thanks to Giuliano Procida) * allowed non "man" dirs if in manpath.config (now accepts manpages hierarchies like /usr/share/ucbman) fixes Bug#9947, thanks to Richard Kettlewell. -- Fabrizio Polacco Thu, 22 May 1997 13:04:48 +0300 man-db (2.3.10-38) frozen unstable; urgency=low * Added test -x of commands in cron.weekly (#9973), Nicolas Lichtmaier * Broken link from dwww index, thanx to David ROCHER (fixes #9792) * Corrected broken links from toc in html manual (bug#8950bis & #9725) * Added /usr/doc/man-db/Changelog.gz, NEWS, ToDo (closes bug#7506) -- Fabrizio Polacco Mon, 28 Apr 1997 12:28:33 +0300 man-db (2.3.10-37) frozen unstable; urgency=low * Added nice to postinst index rebuild (bug#8946) * Bug#8950: MANOPT parsing error corrected (Thanx to Ricardas Cepas) * Bug#8950: Changed again way to determine section names: hardcoded into manconfig.h.in , need policy to update with new ones. -- Fabrizio Polacco Tue, 22 Apr 1997 15:09:22 +0300 man-db (2.3.10-36) frozen unstable; urgency=low * Discovered and corrected a more serious bug in debian/rules in a rm statement line (this is the reason for going into frozen). * Changed clean rule in debian/rules to handle cases in which the GNUmakefile or the build markfile are missing, (bug#8822) thanks to Michael Alan Dorman * Allowed undocumented option -X to be passed to groff. -- Fabrizio Polacco Fri, 18 Apr 1997 10:05:53 +0300 man-db (2.3.10-35) frozen unstable; urgency=low * also added copyright notice for gencat program to Copyright file. * added gencat binary (fixed error in Makefile, thanks to Christian Hudon ) -- Fabrizio Polacco Sun, 13 Apr 1997 08:08:43 +0300 man-db (2.3.10-34) unstable; urgency=low * added revision March 97 of Italian manpages. * Patched lexgrog.l to recognise NAME saction in other languages: NAME, NOME, NOM, NOMBRE, BEZEICHNUNG. (Bug#6497, Herbert Thielen) * added flag -f to gzip to avoid failing of mandb on badly named files. * Fixed bug#8357 adding missing newline in the message "What manual page do you want?\n" (Thanx to Herbert Xu) * added in debian/rules command to clean index.bt built in man dir * Applied patch to process NAME section containing .IX (perl pod) thanx to Craig Wiegert (#8249) -- Fabrizio Polacco Tue, 1 Apr 1997 10:11:16 +0300 man-db (2.3.10-33) unstable; urgency=low * This will replace man package in Debian 1.3 * Corrected typo in control file * Added dwww index entry * Added html version of manual (from .me via unroff + manual edit :-( ) * Moved dependency on bsdmainutils from Depends to Suggests. * Removed failure of installation if removal of catpages failed. * Added italian manpages and message catalogs (Thanx to Giovanni Bortolozzo ) -- Fabrizio Polacco Tue, 4 Mar 1997 17:47:13 +0200 man-db (2.3.10-32) unstable; urgency=high * Due to paranoia version -31 doesn't upgrade from -30 (Oops) * in chmanconfig remove old lines instead that commenting them out. -- Fabrizio Polacco Wed, 26 Feb 1997 18:31:45 +0200 man-db (2.3.10-31) unstable; urgency=low * Corrected location of message catalogs (#7491, thanx Scott K.Ellis) from /usr/lib/locale to /usr/share/locale . -- Fabrizio Polacco Thu, 20 Feb 1997 02:17:37 +0200 man-db (2.3.10-30) unstable; urgency=low * Installed german manpages and message catalogs. * In postinst added search for languages installed to build catmans also for them. * Added /usr/sbin/chmanconfig, a perl script that updates /etc/manpath.conf for the listed language, and calls mkcatdirs to update the catdir hierarchy. This is to be used by packages that install translated manpages. * Closes Bug#5977: (strange bug in man causes magically unpredictable manpage ?) due to change in database library and my inability to reproduce this behaviour. * Changed output of these messages from stdout to stderr (#4207): "What manual page do you want from section ?"; "What manual page do you want?"; "No source manual entry for "; "No manual entry for "; * added in cron.weekly the update of catdirs hierarchy and forced complete rebuild of indexes (instead of simple update) * Installs tools/mkcatdirs in /usr/sbin ; this script can be used (and is used in postinst) to build the catman hierarchy that now is made on the fly instead than burn in the package. Modifyed to make also main catdirs (not only subdirs) * preinst and postrm both remove the whole catman hierarchy. * postinst builds the catman hierarchy using mkcatdirs or a basic set of dirs predefined, and then builds the index databases. * Provides: man, man-browser. Conflicts: man. Replaces: man. These should remove the old man package as well as the man-aeb. * Compiled using option nls=all (all locales). * Linked against libdb1 (Berkeley) instead of gdbm. * Compiled using libc5 5.4.20 * Changed name from man to man-db, to follow upstream (man_db) this also fixes bug #4885 (/usr/doc/man gets man itself confused) * Added man_db-manual-0.5.cat (which was distributed separetely) as /usr/doc/man-db-manual.txt * Rebuilt using debmake (Standards-Version: 2.1.2.2) resulting in a smaller debian/rules file (but not more explicative). -- Fabrizio Polacco Wed, 5 Feb 1997 20:01:49 +0200 man (2.3.10-18) stable unstable; urgency=low * changed the way 'man 9term' problem is handled (bug#5345) fixed badly in 2.3.10-16 (oops) * removed subdirectory debian/new that caused dpkg-source to fail :-( * Added check in preinst to warn only changing owner of catman dirs (fixes #7035 thanx to Santiago Vila Doncel and Kai Henningsen) -- Fabrizio Polacco Thu, 13 Feb 1997 12:30:12 +0200 man (2.3.10-17) stable unstable; urgency=low * fixed bug#6496: man's cron scripts should be conffiles (oops :-) -- Fabrizio Polacco Mon, 20 Jan 1997 00:48:33 +0200 man (2.3.10-16) frozen unstable; urgency=low * fixed bug#????: man segfaults when MANPATH="" (null string) changed to consider null string as var unset. * fixed bug#5833: MANPATH="" manpath -g: wrong warning. * fixed bug#5345: man 9term problem (coded Debian's policy for sections = only one digit) * fixed bug#5809: mandb -c fails on dangling symlink in cat (added code to detect dangled symlinks in stray cats) Thanx H.Thielen. * fixed bug#4372 NULL pointer dereference (Thanx Ray). * warning message for the absence of whatis fallback database downgraded to debug info because gdbm is used in this version. * setlocale continues not to work :-( * compiled using libc5 5.4.13-1 -- Fabrizio Polacco Fri, 6 Dec 1996 04:05:59 +0200 man (2.3.10-15) frozen unstable; urgency=low * fixed bug#5534 (man fails if env var SYSTEM is defined) * compiled using libc5 5.4.7-7 * due to a bug in libc5 5.4.7-7 setlocale doesn't work. -- Fabrizio Polacco Fri, 22 Nov 1996 00:04:12 +0200 man (2.3.10-14) frozen; urgency=high * changed wrong owner of catman dirs (bug #5340) * added code in preinst to detect catman's wrong owner (bug #5340) -- Fabrizio Polacco Sat, 9 Nov 1996 21:37:48 +0200 man (2.3.10-13.1) unstable; urgency=low * compressed manpages. * removed obsolete catman directories X386 and X11R5 (#3939) * added conffiles to debian structure (#4671) * built using original upstream sources + patch 2.3.10-13 * Updated to Standards-Version 2.1.1.0 -- Fabrizio Polacco Wed, 30 Oct 1996 20:02:31 +0200 Changes: Sun Jul 7 21:46:09 BST 1996 Alvar Bray * Modified to build on different architectures * 2.3.10-12 -> 2.3.10-13 Mon Jun 10 23:38:11 BST 1996 Alvar Bray * Added dependency on bsdmailutils so col is present * Modified makefiles to new dchanges format * Set priority to be routine the same as manpages pkg. * 2.3.10-11 -> 2.3.10-12 Sun Mar 31 14:45:48 BST 1996 Alvar Bray * Added fix to ult_src.c from _Mark_ * 2.3.10-10 -> 2.3.10-11 Tue Mar 5 12:18:32 GMT 1996 Alvar Bray * Removed echo in cron.weekly * 2.3.10-9 -> 2.3.10-10 Sun Feb 18 14:25:45 GMT 1996 Alvar Bray * Changed to invoke groff with latin1 device. * 2.3.10-8 -> 2.3.10-9 Sat Feb 17 16:13:07 GMT 1996 Alvar Bray * Added H J Lu bugfix provided by Michael Meskes * Changed cron job regexp to catch all .gz files * Changed to use nice in cron jobs Thu Jan 11 20:51:01 GMT 1996 Alvar Bray * Rebuilt using dynamic linking 2.3.10-7 -> 2.3.10-8 Tue Jan 9 20:46:44 GMT 1996 Alvar Bray * Added interpreter lines (#!/bin/sh) to cron job files. (#2106). * Changed find time args (#2057) in cron.daily. * 2.3.10-6 -> 2.3.10-7 (fixes dpkg dependency problem from libgdbm1.) Sat Dec 16 21:06:56 GMT 1995 Alvar Bray * changed dependency libgdbm to libgdbm1 Rebuilt against libgdbm1 packages 2.3.10-5 -> 2.3.10-6 Wed Nov 29 22:28:19 GMT 1995 Alvar Bray * changed dependency elf-libgdbm to libgdbm 2.3.10-4 -> 2.3.10-5 Mon Nov 27 20:37:47 GMT 1995 Alvar Bray * added dependency on elf-libgdbm 2.3.10-3 -> 2.3.10-4 Wed Nov 22 17:30:49 GMT 1995 Alvar Bray * Compiled for elf - added dependency on lib5c 2.3.10-2 -> 2.3.10-3 20-September-1995 Alvar Bray Patched src/util.c to fix bug#1290 (improved testing to decide if catman page need rebuilding from src man page) 2.3.10-1 -> 2.3.10-2 20-August-1995 Alvar Bray Upgraded package to the latest 2official" release. 2.3.7 -> 2.3.10-1 24-July-1995 Alvar Bray Setup to use more as the default pager. 03-July-1994 Alvar Bray Change of Maintainer. Added Extended description. 24-December-1994 Bruce Perens Added Debian GNU/Linux package maintenance system files and configure for Debian.