]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: drop the mktempd gnulib module
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 2 Oct 2019 11:09:08 +0000 (12:09 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 7 Oct 2019 10:34:24 +0000 (11:34 +0100)
The mktempd module in gnulib provides an equivalent to 'mktemp -d' on
platforms which lack this shell command. All platforms on which libvirt
runs the affected tests have 'mktemp -d' support, so the gnulib module
is not required.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
bootstrap.conf
tests/test-lib.sh

index 1fa0a38389d47f521ce34f9cd845adc4980bd2b5..9964231bb7dabf714255bab592e51aeaae27784b 100644 (file)
@@ -71,7 +71,6 @@ mgetgroups
 mkdtemp
 mkostemp
 mkostemps
-mktempd
 net_if
 netdb
 nonblocking
index ef5a47b5650cb87fdbbf4f092ee23f928cbf5a24..c19005a371f63ed4c7e20f059cc8e5cf812429ff 100644 (file)
@@ -256,8 +256,7 @@ fi
 # a partition, or to undo any other global state changes.
 cleanup_() { :; }
 
-mktempd="$abs_top_srcdir/build-aux/mktempd"
-t_=$("$SHELL" "$mktempd" "$test_dir_" lv-$this_test.XXXXXXXXXX) \
+t_=$("mktemp" "-d" "$test_dir_/lv-$this_test.XXXXXXXXXX") \
     || error_ "failed to create temporary directory in $test_dir_"
 
 # Run each test from within a temporary sub-directory named after the