[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian package for Alire 1.2.1



Hi Ludovic,

On 22/01/2023 15:38, Ludovic Brenta wrote:
Stephane Carrez <Stephane.Carrez@vacs.fr> writes:
     gbp buildpackage --git-ignore-new --git-pristine-tar \
         --git-pristine-tar-commit --git-upstream-tag='v1.2.1' \
         --git-submodules

Hello.  I'm trying to dust off my very dusty skills as a Debian developer.  I tried to build
alire locally but your git repository appears to lack the v1.2.1 tag:

[~/src/debian] git clone https://github.com/stcarrez/alire/
Cloning into 'alire'...
remote: Enumerating objects: 17938, done.
remote: Total 17938 (delta 0), reused 0 (delta 0), pack-reused 17938
Receiving objects: 100% (17938/17938), 4.66 MiB | 5.00 MiB/s, done.
Resolving deltas: 100% (10657/10657), done.
[~/src/debian] cd alire
[~/src/debian/alire] git checkout debian/bookworm
branch 'debian/bookworm' set up to track 'origin/debian/bookworm'.
Switched to a new branch 'debian/bookworm'
[~/src/debian/alire] gbp buildpackage --git-ignore-new --git-pristine-tar \
         --git-pristine-tar-commit --git-upstream-tag='v1.2.1' \
         --git-submodules
gbp:info: Building with (cowbuilder) for sid
gbp:warning: Pristine-tar branch "pristine-tar" not found
gbp:info: Creating /home/lbrenta/src/debian/alire_1.2.1.orig.tar.gz
gbp:error: v1.2.1 is not a valid treeish
[~/src/debian/alire] git tag
v0.1-AdaEurope2018
v0.2-migrated-from-bitbucket
v0.2.1-per-session-alr
v0.4
v0.5
v0.6.0
v0.6.1-last-selfbuilding


Can you suggest a way forward?  Should I clone another repository instead?


The v1.2.1 tag comes from git upstream.

My understanding of the gbp process is that you use your local git repository
for the Debian package (and fixes) and then you refer to the upstream git
repository in an 'upstream' remote setting.

I have the following in my configuration:

git remote -v
origin  git@github.com:stcarrez/alire.git (fetch)
origin  git@github.com:stcarrez/alire.git (push)
upstream        git@github.com:alire-project/alire.git (fetch)
upstream        git@github.com:alire-project/alire.git (push)

I did the following:

git remote add upstream git@github.com:alire-project/alire.git
git fetch upstream

The following steps should work:

git clone -b debian/bookworm --recursive https://github.com/stcarrez/alire.git
cd alire
git remote add upstream git@github.com:alire-project/alire.git
git fetch upstream
gbp buildpackage --git-ignore-new --git-pristine-tar \
        --git-pristine-tar-commit --git-upstream-tag='v1.2.1' \
        --git-submodules

This is what I understood from the gbp buildpackage integration process
but the documentation is not clear to me.

Stephane


Reply to: