summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch')
-rw-r--r--meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch b/meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch
new file mode 100644
index 0000000000..fae10b333e
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/new_rt_path_for_test-driver.patch
@@ -0,0 +1,35 @@
1Set relative to top_builddir path in Makefile to access test-driver
2
3Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
4Upstream-Status: Pending
5
6--- a/bin/automake.in
7+++ b/bin/automake.in
8@@ -272,6 +272,9 @@
9 # $AM_CONFIG_AUX_DIR is prefixed with $(top_srcdir), so it can be used
10 # in Makefiles.
11 my $am_config_aux_dir = '';
12+# Directory used at runtime like running test-driver that should not
13+# depend on $(top_srcdir)
14+my $am_config_rt_aux_dir = '';
15
16 # Directory to search for AC_LIBSOURCE files, as set by AC_CONFIG_LIBOBJ_DIR
17 # in configure.ac.
18@@ -4700,7 +4703,7 @@
19 {
20 require_conf_file ("parallel-tests", FOREIGN, 'test-driver');
21 define_variable ("${pfx}LOG_DRIVER",
22- "\$(SHELL) $am_config_aux_dir/test-driver",
23+ "\$(SHELL) $am_config_rt_aux_dir/test-driver",
24 INTERNAL);
25 }
26 my $driver = '$(' . $pfx . 'LOG_DRIVER)';
27@@ -7284,6 +7287,10 @@
28 $am_config_aux_dir =
29 '$(top_srcdir)' . ($config_aux_dir eq '.' ? "" : "/$config_aux_dir");
30 $am_config_aux_dir =~ s,/*$,,;
31+
32+ $am_config_rt_aux_dir =
33+ '$(top_builddir)' . ($config_aux_dir eq '.' ? "" : "/$config_aux_dir");
34+ $am_config_rt_aux_dir =~ s,/*$,,;
35 }