Hi Andrew,

On 20/01/2026 15:11, Andrew Lee (李健秋) wrote:
Package: wnpp
Severity: wishlist
Owner: Andrew Lee (李健秋) <[email protected]>

* Package name    : golang-github-planetscale-vtprotobuf
   Version         : 0.6.0-1
   Upstream Author : PlanetScale
* URL             : https://github.com/planetscale/vtprotobuf
* License         : BSD-3-clause
   Programming Lang: Go
   Description     : optimized Protocol Buffer support library for Go (library)
  This library provides the runtime support and interfaces required by
  code generated with the vtprotobuf compiler plugin. It contains the
  definitions for optimized interfaces that bypass the standard Go
  protobuf reflection layer to achieve higher performance and lower
  garbage collection pressure.
  .
  The module includes helpers for memory allocation pooling and efficient
  byte slice handling. It is intended for developers who need to build
  Go applications that process large volumes of protobuf-encoded data
  with minimal latency. This package contains the source code needed
  to compile programs that depend on the PlanetScale vtprotobuf runtime.

Thank you for taking care of packaging this library, I will also need it for Docker-related packages.

I've taken a look at your packaging work and it seems you didn't create a binary package for protoc-gen-go-vtproto. I think that it would be good to add it before the upload to NEW. See attached patch that does just this, taking inspiration from golang-google-protobuf [1].

[1] https://tracker.debian.org/pkg/golang-google-protobuf
--
Nicolas Peugnet
From 08e5acc1eb060ca9bc4bd0b8b3d9f457dfb2b3ba Mon Sep 17 00:00:00 2001
From: Nicolas Peugnet <[email protected]>
Date: Sun, 25 Jan 2026 17:29:26 +0100
Subject: [PATCH] Add binary package for protoc-gen-go-vtproto


diff --git a/debian/control b/debian/control
index b05685b..f6dc1d9 100644
--- a/debian/control
+++ b/debian/control
@@ -33,3 +33,29 @@ Description: optimized Protocol Buffer support library for Go (library)
  Go applications that process large volumes of protobuf-encoded data
  with minimal latency. This package contains the source code needed
  to compile programs that depend on the PlanetScale vtprotobuf runtime.
+
+Package: protoc-gen-go-vtproto
+Architecture: any
+Depends: libprotobuf-dev,
+         protoc-gen-go,
+         protobuf-compiler,
+         ${misc:Depends},
+         ${shlibs:Depends},
+Conflicts: golang-goprotobuf-dev,
+           protoc-gen-go-1-3,
+           protoc-gen-go-1-5,
+Static-Built-Using: ${misc:Static-Built-Using}
+Description: Vitess Protocol Buffers compiler (APIv2)
+ This package provides the protoc-gen-go-vtproto plug-in for protoc, which
+ is used by Vitess to generate optimized marshall & unmarshal Go code.
+ .
+ vtprotobuf is implemented as a helper plug-in that must be run alongside
+ the upstream protoc-gen-go generator, as it generates fully-compatible
+ auxiliary code to speed up (de)serialization of Protocol Buffer messages.
+ .
+ The code generated by this compiler is based on the optimized code
+ generated by gogo/protobuf, although this package is not a fork of the
+ original gogo compiler, as it has been implemented to support the new
+ ProtoBuf APIv2 packages.
+ .
+ For APIv2, see https://go.dev/blog/protobuf-apiv2.
diff --git a/debian/golang-github-planetscale-vtprotobuf-dev.install b/debian/golang-github-planetscale-vtprotobuf-dev.install
new file mode 100644
index 0000000..a3da66d
--- /dev/null
+++ b/debian/golang-github-planetscale-vtprotobuf-dev.install
@@ -0,0 +1 @@
+usr/share/gocode
diff --git a/debian/protoc-gen-go-vtproto.install b/debian/protoc-gen-go-vtproto.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/protoc-gen-go-vtproto.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/rules b/debian/rules
index e7f2cc3..78aa8cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,6 @@
 %:
 	dh $@ --builddirectory=debian/_build --buildsystem=golang
 
-override_dh_auto_install:
-	dh_auto_install -- --no-binaries
-
 override_dh_auto_test:
 	dh_auto_test -- -short
 

Reply via email to