#1055345 git-buildpackage: Please document how to build against a package from experimental

#1055345#5
Date:
2023-11-04 15:43:10 UTC
From:
To:
Hello,

thanks a lot for this package, that very often saves my life when packaging.
There is one thing however where gbp could be more helpful, it's when I have to
build my package against a build-depend that comes from experimental.

I finally found a way to do it, and I propose the following patch for the
documentation for the next person looking for this information. I fully
acknowledge that this documentation is somehow suboptimal, and that the gbp
tool could be more helpful here, but the proposed documentation would already
be great.

Again, thanks for this great tool and for your time.
Mt

#1055345#10
Date:
2023-11-05 16:27:19 UTC
From:
To:
Hi Martin,

Thanks for taking the time to document this. Some minor nits below:

This should mention that one ought to use `gbp buildpackage
--git-pbuilder` (as that is not the default).

Wouldn't we want to make that conditional like:

if [ "$GBP_DIST" = "experimental" ]; then
    echo "Using 'pbuilder-satisfydepends-experimental' for $GBP_DIST"
    PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
fi

but I *think* this is even the default nowadays for building against experimental.

What about suggesting to bootstrap a new environment instead via:

   DIST=experimental git-pbuilder create

This also handles adding experimental to /etc/apt/sources.list (no extra
setup needed). Maybe we can streamline things that way a bit?

Cheers,
 -- Guido

#1055345#15
Date:
2023-11-05 20:18:58 UTC
From:
To:
Le dimanche 05 novembre 2023 à 17:27 +0100, Guido Günther a écrit :

Agreed.

Nice addition, thanks.

This has the drawback of taking all dependencies from experimental, which may
not be what one wants.

I agree that things could be streamlined in the tool, but documenting how to
get around the corner with the current tools is already great, IMHO.

Thanks,
Mt

#1055345#20
Date:
2023-11-12 20:00:35 UTC
From:
To:
Hi,

Is that that the case? I didn't see where in the chroot that would be
configured. Can you point me to it?

Cheers,
 -- Guido

#1055345#25
Date:
2023-11-13 09:40:50 UTC
From:
To:
Le dimanche 12 novembre 2023 à 21:00 +0100, Guido Günther a écrit :

I must confess that I didn't experiment with this approach because I was afraid
it would give me all packages from experimental while it was not what I wanted.
Only afraid of, not sure at all. The truth is that I have no idea.

I am sorry for the false info if I was wrong.

Thanks for your time,
Mt

#1055345#30
Date:
2023-12-06 10:06:21 UTC
From:
To:
Hi,

I've checked that the above works as expected and only required packages
are taken out of experimental (with the dependency resolve set as
suggested earlier). Do you want to update the docs accoring to that,
that would be great!
Cheers,
 -- Guido