Skip to content

Commit

Permalink
Respect --localstatedir for /var/db parent directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Jun 22, 2012
1 parent 116a106 commit 4248b1b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 3 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2012-06-22 Roland McGrath <roland@hack.frob.com>

* configure.in (libc_cv_localstatedir): New substituted variable.
* configure: Regenerated.
* config.make.in (localstatedir): New variable, substituted from
libc_cv_localstatedir.
* Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
* sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
${prefix}/var to /var when we change ${prefix}/etc to /etc.
* sysdeps/gnu/configure: Regenerated.

2012-06-21 Jeff Law <law@redhat.com>

[BZ #14277]
Expand Down
2 changes: 1 addition & 1 deletion Makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ inst_sysconfdir = $(install_root)$(sysconfdir)

# Directory for the database files and Makefile for nss_db.
ifndef vardbdir
vardbdir = /var/db
vardbdir = $(localstatedir)/db
endif
inst_vardbdir = $(install_root)$(vardbdir)

Expand Down
1 change: 1 addition & 0 deletions config.make.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rootsbindir = @libc_cv_rootsbindir@
infodir = @infodir@
includedir = @includedir@
datarootdir = @datarootdir@
localstatedir = @libc_cv_localstatedir@

# Should we use and build ldconfig?
use-ldconfig = @use_ldconfig@
Expand Down
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ libc_cv_cc_sse4
libc_cv_cpp_asm_debuginfo
libc_cv_forced_unwind
libc_cv_rootsbindir
libc_cv_localstatedir
libc_cv_sysconfdir
libc_cv_localedir
libc_cv_slibdir
Expand Down Expand Up @@ -7448,6 +7449,7 @@ fi
use_ldconfig=no
ldd_rewrite_script=no
libc_cv_sysconfdir=$sysconfdir
libc_cv_localstatedir=$localstatedir
libc_cv_gcc_unwind_find_fde=no
libc_cv_idn=no

Expand Down Expand Up @@ -7511,6 +7513,7 @@ fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
Expand Down
2 changes: 2 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,7 @@ AC_SUBST(libc_extra_cflags)
use_ldconfig=no
ldd_rewrite_script=no
libc_cv_sysconfdir=$sysconfdir
libc_cv_localstatedir=$localstatedir
libc_cv_gcc_unwind_find_fde=no
libc_cv_idn=no

Expand Down Expand Up @@ -2159,6 +2160,7 @@ AC_SUBST(old_glibc_headers)
AC_SUBST(libc_cv_slibdir)
AC_SUBST(libc_cv_localedir)
AC_SUBST(libc_cv_sysconfdir)
AC_SUBST(libc_cv_localstatedir)
AC_SUBST(libc_cv_rootsbindir)
AC_SUBST(libc_cv_forced_unwind)

Expand Down
8 changes: 7 additions & 1 deletion sysdeps/gnu/configure
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ case "$prefix" in
libc_cv_slibdir=/lib
;;
esac
# Allow the user to override the path with --sysconfdir
# Allow the user to override the path with --sysconfdir.
if test "$sysconfdir" = '${prefix}/etc'; then
libc_cv_sysconfdir=/etc
else
libc_cv_sysconfdir=$sysconfdir
fi
# Allow the user to override the path with --localstatedir.
if test "$localstatedir" = '${prefix}/var'; then
libc_cv_localstatedir=/var
else
libc_cv_localstatedir=$localstatedir
fi
libc_cv_rootsbindir=/sbin
;;
esac
8 changes: 7 additions & 1 deletion sysdeps/gnu/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ case "$prefix" in
libc_cv_slibdir=/lib
;;
esac
# Allow the user to override the path with --sysconfdir
# Allow the user to override the path with --sysconfdir.
if test "$sysconfdir" = '${prefix}/etc'; then
libc_cv_sysconfdir=/etc
else
libc_cv_sysconfdir=$sysconfdir
fi
# Allow the user to override the path with --localstatedir.
if test "$localstatedir" = '${prefix}/var'; then
libc_cv_localstatedir=/var
else
libc_cv_localstatedir=$localstatedir
fi
libc_cv_rootsbindir=/sbin
;;
esac

0 comments on commit 4248b1b

Please sign in to comment.