FTBFS: php-mf2 due to unicode in substvars file

Bug #1564492 reported by Nish Aravamudan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debhelper (Ubuntu)
Fix Released
Undecided
Unassigned
php-mf2 (Ubuntu)
Invalid
Undecided
Unassigned
php-net-smartirc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

php-mf2 rebuild fails currently with:

dpkg-gencontrol: error: bad line in substvars file debian/php-mf2.substvars at line 2
dh_gencontrol.pkg-create-dbgsym: dpkg-gencontrol -pphp-mf2 -ldebian/changelog -Tdebian/php-mf2.substvars -Pdebian/php-mf2 returned exit code 25
debian/rules:4: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

This is because debian/php-mf2.substvars content is:

phpcomposer:name=mf2/mf2
phpcomposer:description=A pure, generic microformats2 parser — makes HTML as easy to consume as a${Newline}JSON API

and grep is complaining about a binary file:

# grep -s -v phpcomposer:name debian/php-mf2.substvars
Binary file debian/php-mf2.substvars matches

This is due to unicode in the file.

Debian has fixed this with
https://anonscm.debian.org/git/debhelper/debhelper.git/commit/Debian/Debhelper/Dh_Lib.pm?id=9ca73a0a80fcfc93c1f47e41c61318b038f4e2da,
which we should backport.

Revision history for this message
Nish Aravamudan (nacc) wrote :
Revision history for this message
Nish Aravamudan (nacc) wrote : Re: php-mf2 fails to build due to unicode in substvars file

With this patch applied to debhelper, php-mf2 can be rebuilt.

summary: - php-mf2 fails to build due to unicode in substvars file
+ FTBFS: php-mf2 due to unicode in substvars file
Steve Langasek (vorlon)
Changed in debhelper (Ubuntu):
status: New → Fix Committed
Nish Aravamudan (nacc)
Changed in php-mf2 (Ubuntu):
status: New → Invalid
Changed in php-net-smartirc (Ubuntu):
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debhelper - 9.20160115ubuntu3

---------------
debhelper (9.20160115ubuntu3) xenial; urgency=medium

  * Backport upstream commit 9ca73a0a ("Pass -a to grep to handle
    substvars with unicode content gracefully") to fix build-failure
    with php-mf2 (LP: #1564492, Closes #815620).

 -- Nishanth Aravamudan <email address hidden> Thu, 31 Mar 2016 08:33:23 -0700

Changed in debhelper (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.