When building glibc-2.15 for tool chain environment, glibc "make install" complains that "/var/db" cannot be accessed. I think the "prefix" is not applied.
After creating the directory, it worked. "/var/db" now contains a "Makefile".
I used as "prefix" "/opt/toolchaine", so it has to be "/opt/toolchaine/var/db".
It contains as first line:
DATABASES = $(wildcard /etc/passwd /etc/group /etc/ethers /etc/protocols \
/etc/rpc /etc/services /etc/shadow /etc/gshadow \
I believe this is by design.
You'll want to set vardbdir (see top-level Makeconfig).
ok but anyway it should consider the prefix...
glibc-2.14 didn't need /var/db it must be something new
nss_db is a new feature not in glibc 2.14 yet.
I agree with Paul in comment 1.
I don't think it should consider the prefix, /var is separate from the prefix.