File: libnetwork_proto_no_unrecognized_all.patch

package info (click to toggle)
docker.io 20.10.24%2Bdfsg1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 60,824 kB
  • sloc: sh: 5,621; makefile: 593; ansic: 179; python: 162; asm: 7
file content (23 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Since gogo/protobuf 1.2 unknown fields in proto3 are preserved.
 This results in a XXX_unrecognized of type []byte to be created in the struct.
 As a side effect the struct can't be used as a map key anymore, resulting in
 a libnetwork build failure.

 Fix this by setting goproto_unrecognized_all=false which suppresses this field.

 Upstream doesn't have the problem because they have pinned an older version
 of gogo/protobuf: https://github.com/docker/libnetwork/pull/2242
Author: Felix Geyer <fgeyer@debian.org>

Index: docker/libnetwork/agent.proto
===================================================================
--- docker.orig/libnetwork/agent.proto
+++ docker/libnetwork/agent.proto
@@ -10,6 +10,7 @@ option (gogoproto.stringer_all) = true;
 option (gogoproto.gostring_all) = true;
 option (gogoproto.sizer_all) = true;
 option (gogoproto.goproto_stringer_all) = false;
+option (gogoproto.goproto_unrecognized_all) = false;
 
 // EndpointRecord specifies all the endpoint specific information that
 // needs to gossiped to nodes participating in the network.