On Debian systems numad gets installed to /usr/bin. However some people
use usrmerge[0] which links /bin to /usr/bin. By changing the lookup
order we make sure the daemon is always found in /usr/bin (with or
without usrmerge installed).
This allows packages built on systems with usrmerge to run on systems
without usrmerge which would otherwise fail since /bin/numad would be
hardcoded into libvirt.
Originally-Submitted-By: Guilhem Moulin
References:
http://bugs.debian.org/843878
[0]:
https://packages.debian.org/sid/usrmerge
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 3ff4c42..65bcd4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1392,7 +1392,7 @@ AC_ARG_WITH([numad],
if test "$with_numad" != "no" ; then
fail=0
- AC_PATH_PROG([NUMAD], [numad], [], [/bin:/usr/bin:/usr/sbin])
+ AC_PATH_PROG([NUMAD], [numad], [], [/usr/bin:/bin:/usr/sbin])
if test "$with_numad" = "check"; then
test "$with_numactl" = "yes" || fail=1
--
2.10.2