Browse Source

build: Use absolute buildir pathnames in PATH variable

This makes sure that even if any subprocess changes directory, the PATH
environment variable will keep being correct.
Guillem Jover 10 years ago
parent
commit
17aeccf7d5
2 changed files with 2 additions and 1 deletions
  1. 1 1
      check.am
  2. 1 0
      debian/changelog

+ 1 - 1
check.am

@@ -25,7 +25,7 @@ check-clean:
 
 
 check-local: $(test_data) $(test_programs) $(test_scripts)
 check-local: $(test_data) $(test_programs) $(test_scripts)
 	[ -z "$(test_tmpdir)" ] || $(MKDIR_P) $(test_tmpdir)
 	[ -z "$(test_tmpdir)" ] || $(MKDIR_P) $(test_tmpdir)
-	PATH="$(top_builddir)/src:$(top_builddir)/scripts:$(top_builddir)/utils:$(PATH)" \
+	PATH="$(abs_top_builddir)/src:$(abs_top_builddir)/scripts:$(abs_top_builddir)/utils:$(PATH)" \
 	  LC_ALL=C \
 	  LC_ALL=C \
 	  $(TEST_ENV_VARS) \
 	  $(TEST_ENV_VARS) \
 	  srcdir=$(srcdir) builddir=$(builddir) \
 	  srcdir=$(srcdir) builddir=$(builddir) \

+ 1 - 0
debian/changelog

@@ -8,6 +8,7 @@ dpkg (1.18.4) UNRELEASED; urgency=low
     - Set PERL5LIB globally for the test suite to the local modules directory,
     - Set PERL5LIB globally for the test suite to the local modules directory,
       to avoid using the system modules. Regression introduced in dpkg 1.17.8.
       to avoid using the system modules. Regression introduced in dpkg 1.17.8.
       Reported by Jérémy Bobbio <lunar@debian.org>. Closes: #801329
       Reported by Jérémy Bobbio <lunar@debian.org>. Closes: #801329
+    - Use absolute buildir pathnames in PATH variable for the test suite.
   * Documentation:
   * Documentation:
     - Move description for “target architecture” from the dpkg-architecture(1)
     - Move description for “target architecture” from the dpkg-architecture(1)
       ‘-A’ option to the TERMS section. Closes: #799046
       ‘-A’ option to the TERMS section. Closes: #799046