]
トップ «前の日記(2019-09-06) 最新 次の日記(2019-09-30)» 編集

Yukiharu YABUKI の tDiary



このtDiaryを検索します。

2019-09-07 Debian work [長年日記]

_ [Debian] source only upload (cont'd)

承前 source only upload をやる理由と問題点、そして解決方法

以下,具体的な作業例
(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.gz
I 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 YABUKI 
 
Successfully 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.