diff options
author | Sven Joachim <svenjoac@gmx.de> | 2017-11-09 13:27:06 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-14 09:19:05 -0500 |
commit | bace64800bae72c563bab66f23c7221fddaae142 (patch) | |
tree | 25e1594fe0e9fe4dcac24a4388d3206d6187c58d | |
parent | 69c4907ba1ee9e9428363c9419c9116bb28c402c (diff) |
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>
-rwxr-xr-x | scripts/package/builddeb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0bc87473f68f..b4f0f2b3f8d2 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -408,9 +408,9 @@ EOF | |||
408 | dpkg-source -cdebian/control -ldebian/changelog --format="3.0 (custom)" --target-format="3.0 (quilt)" \ | 408 | dpkg-source -cdebian/control -ldebian/changelog --format="3.0 (custom)" --target-format="3.0 (quilt)" \ |
409 | -b / ../${sourcename}_${version}.orig.tar.gz ../${sourcename}_${packageversion}.debian.tar.gz | 409 | -b / ../${sourcename}_${version}.orig.tar.gz ../${sourcename}_${packageversion}.debian.tar.gz |
410 | mv ${sourcename}_${packageversion}*dsc .. | 410 | mv ${sourcename}_${packageversion}*dsc .. |
411 | dpkg-genchanges > ../${sourcename}_${packageversion}_${debarch}.changes | 411 | dpkg-genchanges -Vkernel:debarch="${debarch}" > ../${sourcename}_${packageversion}_${debarch}.changes |
412 | else | 412 | else |
413 | dpkg-genchanges -b > ../${sourcename}_${packageversion}_${debarch}.changes | 413 | dpkg-genchanges -b -Vkernel:debarch="${debarch}" > ../${sourcename}_${packageversion}_${debarch}.changes |
414 | fi | 414 | fi |
415 | 415 | ||
416 | exit 0 | 416 | exit 0 |