Skip to contentSkip to conversation

Fix configure --with-systemd-modules-load=DIR

PATCH In review Olaf Hering 3 participants 3 messages Oct 10, 2014 – Oct 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Fix configure --with-systemd-modules-load=DIR

Currently --with-systemd=DIR1 --with-systemd-modules-load=DIR2 will set both XEN_SYSTEMD_DIR and XEN_SYSTEMD_MODULES_LOAD to DIR1. The reason is that both AC_ARG_WITH() use 'systemd' as the name for the internal variable. As a result the value of the first option is also use as the value for the second option. Fix this by using another variable name.

Please rerun autogen.sh after applying this patch.

Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>

---

v2: use hyphens instead of underscores. Appears to work either way.

 m4/systemd.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
m4/systemd.m4 +1 -1
index 629d202..a832d59 100644
@@ -24,7 +24,7 @@ AC_DEFUN([AX_SYSTEMD_OPTIONS], [
 		[SYSTEMD_DIR="$withval"],[SYSTEMD_DIR=""])
 	AC_SUBST(SYSTEMD_DIR)
 
-	AC_ARG_WITH(systemd,
+	AC_ARG_WITH(systemd-modules-load,
 		AS_HELP_STRING([--with-systemd-modules-load=DIR],
 		[set directory for systemd modules load files [PREFIX/lib/modules-load.d/]]),
 		[SYSTEMD_MODULES_LOAD="$withval"], [SYSTEMD_MODULES_LOAD=""])
Acked-by on v2 1/1
#1 lore raw

Olaf Hering writes ("[PATCH v2 for-xen-4.5] Fix configure --with-systemd-modules-load=DIR"):

Quoted 5 lines

Currently --with-systemd=DIR1 --with-systemd-modules-load=DIR2 will set both XEN_SYSTEMD_DIR and XEN_SYSTEMD_MODULES_LOAD to DIR1. The reason is that both AC_ARG_WITH() use 'systemd' as the name for the internal variable. As a result the value of the first option is also use as the value for the second option. Fix this by using another variable name.

This is IMO a bugfix and therefore does not need a freeze exception. I'm not applying it right away though in case anyone wants to object.

Thanks,
Ian.

#2 lore raw
Quoted 8 lines · Ian Jackson

Olaf Hering writes ("[PATCH v2 for-xen-4.5] Fix configure --with-systemd-modules-load=DIR"):

Quoted 5 lines

Currently --with-systemd=DIR1 --with-systemd-modules-load=DIR2 will set both XEN_SYSTEMD_DIR and XEN_SYSTEMD_MODULES_LOAD to DIR1. The reason is that both AC_ARG_WITH() use 'systemd' as the name for the internal variable. As a result the value of the first option is also use as the value for the second option. Fix this by using another variable name.

Likewise.

Quoted 2 lines

This is IMO a bugfix and therefore does not need a freeze exception. I'm not applying it right away though in case anyone wants to object.

Since there were none and I've no acked it and I was on a committing streak, I threw it in.

Ian.