tags 472919 fixed-upstream thanks On Thu, Mar 27, 2008 at 08:56:44AM +0100, Marc Haber wrote: > Package: man-db > Version: 2.5.1-3 > Severity: normal > > Hi, > > man-db's cron job creates an empty directory structure under > /var/cache/man/X11R6/. As far as I know, the X11R6 subtree is not used > any more in recent versions of Debian, and thus the cron job should > refrain from creating it. > > Maybe the cron job can be adapted to only create directories that are > actually used?
Thanks for your report, and sorry it took me a while to address it. I've fixed this upstream, so man-db 2.5.6 will no longer create /var/cache/man/X11R6/ unless /usr/X11R6/man/ has some content. Sun Jun 28 17:56:49 BST 2009 Colin Watson <cjwat...@debian.org> Don't create unnecessary database directories (Debian bug #472919). * src/check_mandirs.c (testmandirs): Add catpath and create arguments. Create the database when it first seems to be needed. Use mkcatdirs rather than make_database_directory. (make_database_directory): Remove. (create_db): Add catpath argument. Don't create the database here; let testmandirs do it when needed instead. (update_db): Add catpath argument. Don't create the database directory; either it exists already in which case there's nothing to do, or it's missing in which case there'll be no database to update anyway. * src/check_mandirs.h (create_db, update_db): Update prototypes. * src/mandb.c (update_db_wrapper): Add catpath argument. (mandb): Update calls to functions that now take the catpath too. * src/manp.c (add_mandb_map): Don't create the cat hierarchy here; testmandirs will do it on demand. (mkcatdirs): Make external for use by check_mandirs.c. * src/manp.h (mkcatdirs): Add prototype. * docs/NEWS: Document this. Cheers, -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org