Bug#230242: dpkg's debian/rules: fails when LDFLAGS envvar contains spaces
Package: dpkg
Version: 1.10.18
Severity: normal
I have a custom LDFLAGS environment variable with several -Lxxx flags.
The problem is that line 50 of debian/rules doesn't quote $(LDFLAGS)
to use it as an environment variable.
cd $(@D) && LDFLAGS=$(LDFLAGS) $(shell echo "$(patsubst $(CURDIR)/%,%,$(@D))" | sed -e 's,^[^/][^/]*$$,..,;s,/[^/][^/]*,/..,g' )/configure \
It ought to be:
cd $(@D) && LDFLAGS="$(LDFLAGS)" $(shell echo "$(patsubst $(CURDIR)/%,%,$(@D))" | sed -e 's,^[^/][^/]*$$,..,;s,/[^/][^/]*,/..,g' )/configure \
Note: I don't know why there is such an environment variable
assignment in debian/rules, since I can't find any other reference to
LDFLAGS anywhere. Wouldn't it be better to remove the assignment:
cd $(@D) && $(shell echo "$(patsubst $(CURDIR)/%,%,$(@D))" | sed -e 's,^[^/][^/]*$$,..,;s,/[^/][^/]*,/..,g' )/configure \
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux noon.dnsalias.net 2.4.19 #1 Wed Mar 12 19:29:19 CET 2003 i686
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (ignored: LC_ALL set to fr_FR)
Versions of packages dpkg depends on:
ii dselect 1.10.18 a user tool to manage Debian packa
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
-- no debconf information
Reply to: