summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdh_auto_install2
-rw-r--r--lib/Debian/Debhelper/Buildsystem/meson.pm2
-rw-r--r--t/Test/DH.pm4
-rwxr-xr-xt/debhelper-compat/syntax.t2
4 files changed, 5 insertions, 5 deletions
diff --git a/dh_auto_install b/dh_auto_install
index 1b692230..2ca13775 100755
--- a/dh_auto_install
+++ b/dh_auto_install
@@ -83,7 +83,7 @@ if (!$destdir) {
$destdir=tmpdir($dh{MAINPACKAGE});
}
}
-$destdir = File::Spec->rel2abs($destdir, cwd());
+$destdir = File::Spec->rel2abs($destdir, getcwd());
if (compat(10)) {
# Ensure that all debian/<pkg> directories exist
diff --git a/lib/Debian/Debhelper/Buildsystem/meson.pm b/lib/Debian/Debhelper/Buildsystem/meson.pm
index 2ddd0c37..a90fb703 100644
--- a/lib/Debian/Debhelper/Buildsystem/meson.pm
+++ b/lib/Debian/Debhelper/Buildsystem/meson.pm
@@ -84,7 +84,7 @@ sub configure {
# Make the file name absolute as meson will be called from the build dir.
require Cwd;
$cross_file =~ s{^\./}{};
- $cross_file = Cwd::cwd() . "/${cross_file}";
+ $cross_file = Cwd::getcwd() . "/${cross_file}";
}
push(@opts, '--cross-file', $cross_file);
}
diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 20e6e9f6..5ca9515d 100644
--- a/t/Test/DH.pm
+++ b/t/Test/DH.pm
@@ -5,7 +5,7 @@ use warnings;
use Test::More;
-use Cwd qw(cwd realpath);
+use Cwd qw(getcwd realpath);
use Errno qw(EEXIST);
use Exporter qw(import);
@@ -44,7 +44,7 @@ our @EXPORT = qw(
our ($TEST_DH_COMPAT, $ROOT_OK, $ROOT_CMD);
-my $START_DIR = cwd();
+my $START_DIR = getcwd();
my $TEST_DIR;
sub run_dh_tool {
diff --git a/t/debhelper-compat/syntax.t b/t/debhelper-compat/syntax.t
index 9c0987d6..7fe0307a 100755
--- a/t/debhelper-compat/syntax.t
+++ b/t/debhelper-compat/syntax.t
@@ -31,7 +31,7 @@ sub test_build_depends {
error("close $dir/debian/control failed: $!");
close($in);
- my $start_dir = Test::DH::cwd();
+ my $start_dir = Test::DH::getcwd();
chdir($dir) or error("chdir($dir): $!");
plan(tests => 5);