While attempting to upgrade the version of ndoutils shipped with Gentoo, I noticed that the support for DESTDIR was removed in commit 44dbc9b. The DESTDIR variable is an important part of autotools build systems, and we need it to be respected to build ndoutils from source. For an example of what goes wrong,
We pass --bindir=/usr/bin to the ./configure script.
During make install, the build system attempts to install directly to /usr/bin. That is prohibited by our sandbox, but more importantly, it changes ownership of /usr/bin to nagios:nagios and completely borks the whole system =)
While attempting to upgrade the version of ndoutils shipped with Gentoo, I noticed that the support for
DESTDIR
was removed in commit 44dbc9b. TheDESTDIR
variable is an important part of autotools build systems, and we need it to be respected to build ndoutils from source. For an example of what goes wrong,--bindir=/usr/bin
to the./configure
script.make install
, the build system attempts to install directly to/usr/bin
. That is prohibited by our sandbox, but more importantly, it changes ownership of/usr/bin
tonagios:nagios
and completely borks the whole system =)