[PATCH] Define vardbdir relative to prefix

Ulrich Drepper drepper@gmail.com
Fri Jul 1 23:29:00 GMT 2011


On Fri, Jul 1, 2011 at 06:42, Andreas Schwab <schwab@redhat.com> wrote:
> +# Where to install data files which the programs modify
> +# while they run, and that pertain to one specific machine.
> +ifndef localstatedir
> +localstatedir = $(prefix)/var
> +endif
> +inst_localstatedir = $(install_root)$(localstatedir)
> +
>  # Directory for the database files and Makefile for nss_db.
>  ifndef vardbdir
> -vardbdir = /var/db
> +vardbdir = $(localstatedir)/db

This doesn't work because the db files are always searched for in
/var/db.  This is why the Makefiles are as they are now.

What is the reason for this proposed change?



More information about the Libc-hacker mailing list