Yukiharu YABUKI の tDiary
このtDiaryを検索します。
2019-09-07 Debian work [長年日記]
_ [Debian] source only upload (cont'd)
承前 source only upload をやる理由と問題点、そして解決方法
- [Bits from the Release Team: ride like the wind, Bullseye!]の中で source only uploadについて言及している。see No binary maintainer uploads for bullseye
- [SourceOnlyUpload - Debian Wiki]上記でも理由を書いているが、こっちにも。また各ビルド方法でのsource only uploadについて記述がしてある。
- 対象とするrepoは、Yukiharu Yabuki / vim-voom · GitLabです。
で、困っていたのは、実作業を新しいマシンで行っていて、buildはできたものの、orig.tar.gzのtop directoryの名前が異なっていて、中身とサイズが合わないので、uploadしてもrejectされること。この問題は、XY problemという命名がされておりよくあることとのこと。で、解決策としては,prinstine-tar branchを切って、そこに pristine-tarが管理するorig.tar.gzを入れること。 - gbp-pristine-tar(1) — git-buildpackage — Debian testing — Debian Manpages
- [gbp-buildpackage(1) — git-buildpackage — Debian testing — Debian Manpages]
以下,具体的な作業例
(1) I had already downloaded original orig.tar.gz in /tmp/
like this.
(cd /tmp;wget http://deb.debian.org/debian/pool/main/v/vim-voom/vim-voom_5.3.orig.tar.gz)
(2) Do gbp pristine-tar commit:
$ gbp pristine-tar commit --upstream-tag=upstream/5.3 /tmp/vim-voom_5.3.orig.tar.gz gbp:info: Successfully committed pristine-tar data for version 5.3 of /tmp/vim-voom_5.3.orig.tar.gz
(3) I checked:
$ git switch pristine-tar Switched to branch 'pristine-tar' $ git branch master * pristine-tar upstream $ ls -la > total 8 > drwxr-xr-x 1 yabuki yabuki 122 Sep 6 16:37 . > drwxr-xr-x 1 yabuki yabuki 5216 Sep 6 11:36 .. > drwxr-xr-x 1 yabuki yabuki 182 Sep 6 16:37 .git > -rw-r--r-- 1 yabuki yabuki 1943 Sep 6 16:37 vim-voom_5.3.orig.tar.gz.delta > -rw-r--r-- 1 yabuki yabuki 41 Sep 6 16:37 vim-voom_5.3.orig.tar.gz.id
(4) then build it.
$ git switch master $ gbp buildpackage --git-pbuilder --git-pbuilder-options=--source-only-changes --git-tag --git-notify=auto
(5) check the result.
ls -la ../vim-voom* -rw-r--r-- 1 yabuki yabuki 5416 Sep 6 11:32 ../vim-voom_5.3-3.debian.tar.xz -rw-r--r-- 1 yabuki yabuki 1804 Sep 6 11:32 ../vim-voom_5.3-3.dsc -rw-r--r-- 1 yabuki yabuki 99560 Sep 6 11:32 ../vim-voom_5.3-3_all.deb -rw-r--r-- 1 yabuki yabuki 21173 Sep 6 11:32 ../vim-voom_5.3-3_amd64.build -rw-r--r-- 1 yabuki yabuki 5461 Sep 6 11:32 ../vim-voom_5.3-3_amd64.buildinfo -rw-r--r-- 1 yabuki yabuki 2458 Sep 6 11:32 ../vim-voom_5.3-3_amd64.changes -rw-r--r-- 1 yabuki yabuki 2142 Sep 6 11:35 ../vim-voom_5.3-3_source.changes -rw-r--r-- 1 yabuki yabuki 115841 Sep 6 11:23 ../vim-voom_5.3.orig.tar.gzI checked orig.tar.gz file size and contents. It seems ok.
upload準備
$ dput vim-voom vim-voom/ vim-voom_5.3-3_all.deb vim-voom_5.3-3_amd64.changes vim-voom_5.3-3.debian.tar.xz vim-voom_5.3-3_amd64.build vim-voom_5.3-3_source.changes vim-voom_5.3-3.dsc vim-voom_5.3-3_amd64.buildinfo vim-voom_5.3.orig.tar.gz $ dput vim-voom_5.3-3_source.changes Trying to upload package to ftp-master (ftp.upload.debian.org) Checking signature on .changes gpg: /home/yabuki/scm/git/debian/vim-voom_5.3-3_source.changes: error 58: gpgme_op_verify gpgme_op_verify: GPGME: No data $ dput vim-voom_5.3-3.dsc Not a .changes file. Please select a .changes file to upload. Tried to upload: vim-voom_5.3-3.dsc $ debsign vim-voom_5.3-3_source.changes The .buildinfo file is already signed. Would you like to use the current signature? [Yn] Leaving current signature unchanged. fixup_changes dsc vim-voom_5.3-3.dsc vim-voom_5.3-3_source.changes fixup_changes buildinfo vim-voom_5.3-3_amd64.buildinfo vim-voom_5.3-3_source.changes signfile changes vim-voom_5.3-3_source.changes Yukiharu YABUKISuccessfully signed changes file $ dput vim-voom_5.3-3_source.changes Trying to upload package to ftp-master (ftp.upload.debian.org) Checking signature on .changes gpg: /home/yabuki/scm/git/debian/vim-voom_5.3-3_source.changes: Valid signature from 71A802D0BCD1BC92 Checking signature on .dsc gpg: /home/yabuki/scm/git/debian/vim-voom_5.3-3.dsc: Valid signature from 71A802D0BCD1BC92 Uploading to ftp-master (via ftp to ftp.upload.debian.org): Uploading vim-voom_5.3-3.dsc: done. Uploading vim-voom_5.3-3.debian.tar.xz: done. Uploading vim-voom_5.3-3_amd64.buildinfo: done. Uploading vim-voom_5.3-3_source.changes: done. Successfully uploaded packages.