久々にbackports

Wed, Jun 28, 2017 in debian

そういえばjdがstretchに入らなかったのだった。stretch-backportsに入れるか。久々にbackportsを使うのでサッパリ忘れていた。debian/stretch-backportsブランチを作り、dch –bpoでchangelog作成…(この時点ではdevscriptsが更新されて無くてjessie-backportsが指定されてしまったのでそれも直す。)

次にbase.cowを作る。

$ sudo cowbuilder --create --distribution stretch --basepath /var/cache/pbuilder/stretch.cow

あとはビルドするだけ。。。でもlintianがbackports-changes-missingなる警告を出す。ふむふむ。。。

It is recommended to include all changelog entries since the last version on debian-backports or since stable if it's the first version. You should do this by passing "-v" to dpkg-buildpackage. Eg: "debuild -v0.7.5-2", where "0.7.5-2" is the version in stable. If the package wasn't in stable or backports before you don't have include the changelog entries (but you are free to do so). It helps others to follow the changes introduced with the backport (by reading the changes mailing list).

なるほど。-v とすればいい。しかし、gbpへのオプションとしてはどうなるのかな?と思ったが、単にpbuilderのmanを見てoptionを探せばいいだけだった。–debbuildoptsを指定、ね。

$ gbp buildpackage --git-pbuilder --git-pbuilder-options="--basepath /var/cache/pbuilder/stretch.cow --distribution stretch --debbuildopts -v1:2.8.8-140601-4" --git-ignore-branch

以上でアップロード。