NLnetLabs / nsd

The NLnet Labs Name Server Daemon (NSD) is an authoritative, RFC compliant DNS nameserver.

Home Page:https://nlnetlabs.nl/nsd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing AC_SUBST(dbdir) breaks installation with 4.8.0

atsampson opened this issue · comments

Commit 526a8ce removed the --with-dbfile option from configure.ac. However, it accidentally removed AC_SUBST(dbdir) as well - so the use of @dbdir@ in Makefile.in won't get expanded. This will cause make install to either fail or create a nonsense directory.

Adding AC_SUBST(dbdir) fixes it, but since there's no guarantee that any files will end up there now, it may be better to remove dbdir from Makefile.in entirely?

It'd also be a good idea to test make install as part of the release process.

Thank you for the report! That escaped notice, the fix is to remove it from Makefile.in, since it is no longer used. The configure option is printed to inform the user in the help output and backwards compatibility, but there is no need for database directory or file. The commit removes the creation of the @dbdir@ directory, and also fixes dbfile references in the file edit and uninstall information, and in the nsd.conf man page that listed the database option in an example and database file under the FILES section of the man page.

Apart from briefly creating a spurious @dbdir@ directory, it does not misbehave during install for me. The fix removes that directory from being created. A test would likely not have caught it, since the mkdir command succeeds.

The additional commit fixes that for the xfrd.state and zone.list files, their directory is created at install time. This is more precise than creating the dbdir, it makes their directories also if they have been set, with configure options, to be stored at different locations.