[debhelper-devel] [debhelper] 01/02: Revert "dh_auto_configure: Expand ${prefix} uses"

Niels Thykier nthykier at moszumanska.debian.org
Mon Jul 31 19:00:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit c6142ba93b5c987801b1aa2860710c0a1354cbd4
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Jul 31 18:58:02 2017 +0000

    Revert "dh_auto_configure: Expand ${prefix} uses"
    
    This reverts commit eb6e510ef52430c6edb96b28879fa4f64fbcafdb.
---
 Debian/Debhelper/Buildsystem/autoconf.pm | 17 ++++++++---------
 debian/changelog                         |  4 ++++
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/Debian/Debhelper/Buildsystem/autoconf.pm b/Debian/Debhelper/Buildsystem/autoconf.pm
index b542584..e31951b 100644
--- a/Debian/Debhelper/Buildsystem/autoconf.pm
+++ b/Debian/Debhelper/Buildsystem/autoconf.pm
@@ -31,12 +31,11 @@ sub configure {
 
 	# Standard set of options for configure.
 	my @opts;
-	my $prefix="/usr";
 	push @opts, "--build=" . dpkg_architecture_value("DEB_BUILD_GNU_TYPE");
-	push @opts, "--prefix=$prefix";
-	push @opts, "--includedir=$prefix/include";
-	push @opts, "--mandir=$prefix/share/man";
-	push @opts, "--infodir=$prefix/share/info";
+	push @opts, "--prefix=/usr";
+	push @opts, "--includedir=\${prefix}/include";
+	push @opts, "--mandir=\${prefix}/share/man";
+	push @opts, "--infodir=\${prefix}/share/info";
 	push @opts, "--sysconfdir=/etc";
 	push @opts, "--localstatedir=/var";
 	if (defined $ENV{DH_QUIET} && $ENV{DH_QUIET} ne "") {
@@ -47,15 +46,15 @@ sub configure {
 	my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH");
 	if (! compat(8)) {
 		if (defined $multiarch) {
-			push @opts, "--libdir=${prefix}/lib/$multiarch";
-			push @opts, "--libexecdir=${prefix}/lib/$multiarch";
+			push @opts, "--libdir=\${prefix}/lib/$multiarch";
+			push @opts, "--libexecdir=\${prefix}/lib/$multiarch";
 		}
 		else {
-			push @opts, "--libexecdir=${prefix}/lib";
+			push @opts, "--libexecdir=\${prefix}/lib";
 		}
 	}
 	else {
-		push @opts, "--libexecdir=${prefix}/lib/" . sourcepackage();
+		push @opts, "--libexecdir=\${prefix}/lib/" . sourcepackage();
 	}
 	push @opts, "--runstatedir=/run" if not compat(10);
 	push @opts, "--disable-maintainer-mode";
diff --git a/debian/changelog b/debian/changelog
index c796ed9..d39fc9c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ debhelper (10.7.1) UNRELEASED; urgency=medium
     (like the documentation promises).
   * dh: Ensure that we do not fork a shell for running a simple
     command.
+  * autoconf: Revert expansion of ${var} variables passed to
+    configure as several packages implicitly assume that are not
+    expanded.  E.g. liblockfile relies on ${prefix} being
+    unexpanded for DESTDIR to work.  Reopens: #813266
 
  -- Niels Thykier <niels at thykier.net>  Sun, 30 Jul 2017 10:27:46 +0000
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list