[debhelper-devel] Bug#813266: debhelper: dh_auto_configure assumes install paths to be re-evaluated
Isaac Jurado
diptongo at gmail.com
Sat Jan 30 23:19:29 UTC 2016
Package: debhelper
Version: 9.20150101
Severity: normal
Tags: patch
Dear Maintainer,
The dh_auto_configure invokes "configure" scripts assuming some arguments like
"--bindir" and "--installdir" will be re-evaluated by configure. Apparently,
this is the behaviour of those generated by autoconf.
However, there are other utilities that generate configure scripts that follow
conventions similar to autoconf, e.g., MakeKit. But those configure scripts use
the given "--bindir" like arguments verbatim.
So, for example, dh_auto_configure invokes configure with "--prefix=/usr" and
"--bindir=${prefix}/bin" among others. Autoconf generated scripts will
internally expand the value, resulting in "--bindir=/usr/bin". On the other
hand, MakeKit generated configure will not perform any variable expansion,
trying to use "${prefix}/bin" as the path for binaries.
The fix is as trivial as expanding "$prefix" from the Perl code, since the scope
of its usage is very small. It has been generated fom revision 56591da4f.
Please find the patch attached.
-- System Information:
Debian Release: 8.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debhelper depends on:
ii binutils 2.25-5
ii dpkg 1.17.26
ii dpkg-dev 1.17.26
ii file 1:5.22+15-2+deb8u1
ii libdpkg-perl 1.17.26
ii man-db 2.7.0.2-5
ii perl 5.20.2-3+deb8u3
ii po-debconf 1.0.16+nmu3
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none>
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.patch
Type: text/x-diff
Size: 2234 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20160131/e305be3d/attachment.patch>
More information about the debhelper-devel
mailing list