]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
run: Don't export unnecessary paths
authorAndrea Bolognani <abologna@redhat.com>
Thu, 14 Mar 2019 09:14:19 +0000 (10:14 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 15 Mar 2019 10:50:23 +0000 (11:50 +0100)
We're using virFileFindResourceFull() to locate resources
nowadays, which makes exporting these information in the
environment unnecessary: see

  virDriverLoadModule() for LIBVIRT_DRIVER_DIR
  virLockManagerPluginNew() for LIBVIRT_LOCK_MANAGER_PLUGIN_DIR
  virLockManagerLockDaemonConnectionNew() for VIRTLOCKD_PATH
  doRemoteOpen() for LIBVIRTD_PATH

As further proof that we don't need to expose the information
this way anymore, we're not even exporting VIRTLOGD_PATH, which
would be necessary if virLogManagerConnect() didn't already
take care of that for us.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
run.in

diff --git a/run.in b/run.in
index 06ad54b62b33d6e9bbe746e67762f1d39a196bc8..9a1c6ea11a94b64ea196eff2b56741838ca6dcb1 100644 (file)
--- a/run.in
+++ b/run.in
@@ -60,11 +60,6 @@ else
 fi
 export PKG_CONFIG_PATH
 
-export LIBVIRT_DRIVER_DIR="$b/src/.libs"
-export LIBVIRT_LOCK_MANAGER_PLUGIN_DIR="$b/src/.libs"
-export VIRTLOCKD_PATH="$b/src"
-export LIBVIRTD_PATH="$b/src"
-
 # This is a cheap way to find some use-after-free and uninitialized
 # read problems when using glibc.
 random_val="$(awk 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null)"