aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libcouchbase
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2017-04-25 10:23:06 +0800
committerdanfe <danfe@FreeBSD.org>2017-04-25 10:23:06 +0800
commit71b21d0aa085724be33d84cb3dd79a37ab147cf5 (patch)
treecca71a8db9a5c0ac5f4cbca2d6a8f21b094f1447 /databases/libcouchbase
parentc5772052059d0532eb3030d2e24a6604fdd68e33 (diff)
downloadfreebsd-ports-gnome-71b21d0aa085724be33d84cb3dd79a37ab147cf5.tar.gz
freebsd-ports-gnome-71b21d0aa085724be33d84cb3dd79a37ab147cf5.tar.zst
freebsd-ports-gnome-71b21d0aa085724be33d84cb3dd79a37ab147cf5.zip
Do not pass `-f' when removing temporary directory: it is not needed,
and rm(1) command call looks safer without it.
Diffstat (limited to 'databases/libcouchbase')
-rw-r--r--databases/libcouchbase/files/patch-cmake_dtrace-instr-link.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/databases/libcouchbase/files/patch-cmake_dtrace-instr-link.pl b/databases/libcouchbase/files/patch-cmake_dtrace-instr-link.pl
index 8bf549873458..743fcee62d20 100644
--- a/databases/libcouchbase/files/patch-cmake_dtrace-instr-link.pl
+++ b/databases/libcouchbase/files/patch-cmake_dtrace-instr-link.pl
@@ -16,7 +16,7 @@
+# Copy .o files to a temporary location before DTrace messes with them
+chomp(my $tmpdir = `mktemp -d -t $$`);
+if (system("tar cf - @O_FILES | tar xf - -C $tmpdir") != 0) {
-+ system("rm -rf $tmpdir");
++ system("rm -r $tmpdir");
+ exit(1);
+}
+
@@ -38,7 +38,7 @@
print "$HDR: Creating instrumented DTrace object: @args";
if (system(@args) != 0) {
-+ system("rm -rf $tmpdir");
++ system("rm -r $tmpdir");
exit(1);
}
@@ -47,5 +47,5 @@
print "$HDR: Linking with instrumented DTrace object: @ARGV";
-exit(system(@ARGV));
+my $rc = system(@ARGV);
-+system("rm -rf $tmpdir");
++system("rm -r $tmpdir");
+exit($rc);