Hi, I have a question following https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.import.upstream-git.html ,
> If upstream doesn't build upstream tarballs, or you don't care about them, the simplest way is to clone upstream's repository and create a separate packaging branch in there. You will not need gbp import-orig at all with this workflow. gbp buildpackage will handle creating the upstream tarballs needed for the Debian source package. I cannot make it happening, no matter what I tried. How to make gbp buildpackage create the upstream tarballs and commit the generated tarball back to the pristine-tar branch? Here is my trial log, and you can see that nothing that I tried works: bp clone https://github.com/neurobin/shc.git cd shc git checkout pristine-tar $ grep -B1 upstream-tag ~/.gbp.conf [DEFAULT] upstream-tag = v%(version)s $ gbp buildpackage --git-pristine-tar --git-pristine-tar-commit dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: Pristine-tar branch "pristine-tar" not found gbp:info: Creating /sysvol/dg/shc/shc_3.9.6.orig.tar.gz gbp:error: *v3.9.6 is not a valid treeish* $ ls -l ../ total 4 drwxrwx--x 7 u u 4096 2018-07-07 16:20 shc/ $ ls /sysvol/dg/shc/shc_3.9.6.orig.tar.gz ls: cannot access '/sysvol/dg/shc/shc_3.9.6.orig.tar.gz': No such file or directory uscan --force-download $ ls -l ../ total 128 drwxrwx--x 7 u u 4096 2018-07-07 16:20 shc/ -rw-rw---- 1 u u 122644 2018-07-07 16:40 shc-3.9.6.tar.gz -rw-rw---- 1 u u 819 2018-07-07 16:40 shc-3.9.6.tar.gz.pgp lrwxrwxrwx 1 u u 16 2018-07-07 16:40 shc_3.9.6.orig.tar.gz -> shc-3.9.6.tar.gz $ gbp buildpackage --git-pristine-tar --git-pristine-tar-commit dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: *Unknown compression type* of - [+] add debian/ from upstream packing, assuming gzip gbp:error: v3.9.6 is not a valid treeish $ gbp buildpackage --git-pristine-tar dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: Unknown compression type of - [+] add debian/ from upstream packing, assuming gzip gbp:error: Pristine-tar couldn't verify "shc_3.9.6.orig.tar.gz": fatal: Path 'shc_3.9.6.orig.tar.gz.delta' *does not exist in 'refs/heads/pristine-tar'* pristine-tar: git show refs/heads/pristine-tar:shc_3.9.6.orig.tar.gz.delta failed $ gbp buildpackage dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: Unknown compression type of - [+] add debian/ from upstream packing, assuming gzip gbp:error: Pristine-tar couldn't verify "shc_3.9.6.orig.tar.gz": fatal: Path 'shc_3.9.6.orig.tar.gz.delta' does not exist in 'refs/heads/pristine-tar' pristine-tar: git show refs/heads/pristine-tar:shc_3.9.6.orig.tar.gz.delta failed $ gbp buildpackage --git-pristine-tar --git-pristine-tar-commit --git-upstream-tag=upstream dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: Unknown compression type of - [+] add debian/ from upstream packing, assuming gzip gbp:error: upstream is not a valid treeish $ gbp buildpackage --git-pristine-tar --git-pristine-tar-commit --git-upstream-tag=pristine-tar dh clean --with autotools_dev dh_testdir dh_auto_clean dh_autotools-dev_restoreconfig dh_clean gbp:warning: Unknown compression type of - [+] add debian/ from upstream packing, assuming gzip gbp:info: Performing the build dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building shc using existing ./shc_3.9.6.orig.tar.gz dpkg-source: info: local changes detected, the modified files are: shc/.travis.yml dpkg-source: info: you can integrate the local changes with dpkg-source --commit dpkg-source: error: *aborting due to unexpected upstream changes*, see /tmp/shc_3.9.6-1.diff.HzG2Wj E: Failed to package source directory /sysvol/dg/shc/shc gbp:error: 'sbuild --source-only-changes -s -v -A --no-clean-source' failed: it exited with 1 $ cat /tmp/shc_3.9.6-1.diff.HzG2Wj Description: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . shc (3.9.6-1) trusty; urgency=medium . * Fix for infinite loop (Closes: #861180) * Fix issue #36 (at https://github.com/neurobin/shc/issues/36) * Fix issue #38 (at https://github.com/neurobin/shc/issues/38) Author: Md Jahidul Hamid <jahidulha...@yahoo.com> Bug-Debian: https://bugs.debian.org/861180 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: 2018-07-07 --- /dev/null +++ shc-3.9.6/.travis.yml @@ -0,0 +1,5 @@ +dist: trusty +sudo: required +language: c +script: ./autogen.sh; ./configure && make && make check + *please help. thx. *