EOF
my @cc=exists $ENV{CC} ? possibly_foolish_untaint($ENV{CC}) : 'cc';
- push @cc, possibly_foolish_untaint($ENV{CFLAGS}) if exists $ENV{CFLAGS};
+ push @cc, split(' ', possibly_foolish_untaint($ENV{CFLAGS})) if exists $ENV{CFLAGS};
if (system(@cc, "$wrapper.c", "-o", "$wrapper.new") != 0) {
#translators: The parameter is a C filename.
error(sprintf(gettext("failed to compile %s"), "$wrapper.c"));
adjusted for compatibility with the older pkg-perl-autopkgtest in jessie
- d/control: add enough build-dependencies to run all tests, except for
non-git VCSs
+ * Split CFLAGS into words when building wrapper, fixing build-time test
+ failure. Closes: #682237 (patch from Joey Hess, backported from
+ 3.20120630)
-- Simon McVittie <smcv@debian.org> Wed, 11 Jan 2017 15:22:38 +0000