Skip to content

Commit bace648

Browse files
zwennamasahir0y
authored andcommitted
builddeb: Pass the kernel:debarch substvar to dpkg-genchanges
At the end of "make bindeb-pkg" I noticed the following warning: dpkg-genchanges: warning: unknown substitution variable ${kernel:debarch} It turns out that since dpkg version 1.19.0 dpkg-genchanges honors substitution variables in the Description field, while earlier versions silently left them alone, see https://bugs.debian.org/856547. The result is an incomplete description of the linux-headers package in the generated .changes file. Fix it by passing the kernel:debarch substitution variable to dpkg-genchanges. Signed-off-by: Sven Joachim <svenjoac@gmx.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 69c4907 commit bace648

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/package/builddeb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ EOF
408408
dpkg-source -cdebian/control -ldebian/changelog --format="3.0 (custom)" --target-format="3.0 (quilt)" \
409409
-b / ../${sourcename}_${version}.orig.tar.gz ../${sourcename}_${packageversion}.debian.tar.gz
410410
mv ${sourcename}_${packageversion}*dsc ..
411-
dpkg-genchanges > ../${sourcename}_${packageversion}_${debarch}.changes
411+
dpkg-genchanges -Vkernel:debarch="${debarch}" > ../${sourcename}_${packageversion}_${debarch}.changes
412412
else
413-
dpkg-genchanges -b > ../${sourcename}_${packageversion}_${debarch}.changes
413+
dpkg-genchanges -b -Vkernel:debarch="${debarch}" > ../${sourcename}_${packageversion}_${debarch}.changes
414414
fi
415415

416416
exit 0

0 commit comments

Comments
 (0)