[sudo-workers] [PATCH] pass _PATH_SUDO_PLUGIN_DIR via CPPFLAGS/Makefile so we can get multiple expansion of variables (rather than the current single expansion with `eval` that does not always work)
Mike Frysinger
vapier at gentoo.org
Wed Nov 16 10:55:31 EST 2011
# HG changeset patch
# User Mike Frysinger <vapier at gentoo.org>
# Date 1321458897 18000
# Node ID 6fcf3767baff00f252cbfda3a8dcd8b40a75a58c
# Parent b8e47f1576131d22cf828fca9360998874eed4e8
pass _PATH_SUDO_PLUGIN_DIR via CPPFLAGS/Makefile so we can get multiple expansion of variables (rather than the current single expansion with `eval` that does not always work)
diff -r b8e47f157613 -r 6fcf3767baff configure.in
--- a/configure.in Wed Nov 16 10:52:34 2011 -0500
+++ b/configure.in Wed Nov 16 10:54:57 2011 -0500
@@ -3061,8 +3061,8 @@
eval sesh_file="$libexecdir/sesh"
SUDO_DEFINE_UNQUOTED(_PATH_SUDO_SESH, "$sesh_file", [The fully qualified pathname of sesh])
fi
- eval PLUGINDIR="$with_plugindir"
- SUDO_DEFINE_UNQUOTED(_PATH_SUDO_PLUGIN_DIR, "$PLUGINDIR/")
+ PLUGINDIR="$with_plugindir"
+ CPPFLAGS="$CPPFLAGS -D_PATH_SUDO_PLUGIN_DIR=\"'$PLUGINDIR/'\""
SUDO_DEFINE_UNQUOTED(SUDOERS_PLUGIN, "sudoers${SOEXT}")
exec_prefix="$oexec_prefix"
fi
More information about the sudo-workers
mailing list