Re: declaring requirement on golang >= 1.22?
On Thu, Oct 10, 2024 at 3:21 PM Simon Josefsson <simon@josefsson.org> wrote:
>
> Hi
>
> Upstream 'sigsum-go' now depends on golang-1.22, how would I express
> this in debian/control?
>
> Build-Depends:
> debhelper-compat (= 13),
> dh-golang,
> - golang-any,
> + golang-any (>= 2:1.22~)
>
> Is that recommended? I couldn't find any other golang packages with
> similar golang version dependency.
>
Yes.
Though unfortunately gccgo stops updating at 1.18. So on architectures
that don't have golang-go, you can only get gccgo that is not
compatible with go 1.22.
> Is this sufficient to get a bookworm-backport upload working? That is,
> will the buildd's install golang-any 1.22 from bookworm-backports,
> instead of the old golang 1.19 in bookworm? Or do I have to do anything
> more to get that?
>
> /Simon
--
Shengjing Zhu
Reply to: