On 2026-07-16 04:45+0200, Andrew Lee wrote:
On Thu, Jul 16, 2026 at 12:07 AM Simon Josefsson <[email protected]> wrote:You can achieve this by adding a debian/links file to the package.For dh compat >= 14 that ought to be debian/golang-FOO-dev.links, right?Correct. Thanks for point this out! I will write a document for this on wiki. Best regards,
I added a debian/golang-github-peterbourgon-ff-dev.links with
usr/share/gocode/src/github.com/peterbourgon/ff
usr/share/gocode/src/github.com/peterbourgon/ff/v3
set debhelper-compat (= 14), but I get this error:
dh_link: error: link destination
debian/golang-github-peterbourgon-ff-dev/usr/share/gocode/src/github.com/peterbourgon/ff/v3
is a directory
I also tried to invert
usr/share/gocode/src/github.com/peterbourgon/ff/v3
usr/share/gocode/src/github.com/peterbourgon/ff
Resulting in:
dh_link: error: link destination
debian/golang-github-peterbourgon-ff-dev/usr/share/gocode/src/github.com/peterbourgon/ff
is a directory
with dh-golang (>= 1.66~exp2) and the first version of
debian/golang-github-peterbourgon-ff-dev.links, I get
dh clean --builddirectory=_build --buildsystem=golang
dh: warning: Implicitly activating single-binary dh addon for backwards
compatibility. In compat 14+,
dh: warning: this fallback will *not* happen automatically via
dh_auto_install will instead use a
dh: warning: different default for --destdir unless the single-binary
add-on is active,
dh: warning: which can cause the source to produce an empty binary package
dh: warning:
dh: warning: To keep the existing behaviour (compat 13), please activate the single-binary addon explicitly.
dh: warning: This can be done by adding "dh-sequence-single-binary" to
Build-Depends or passing
dh: warning: --with=single-binary to dh.
dh: warning:
dh: warning: If you have solved this issue differently (e.g., by passing --destdir explicitly to
dh: warning: dh_auto_install or not using dh_auto_install at all) and want
to silence this warning
dh: warning: without activating the addon, you can do that by passing
--without=single-binary to dh
dh: warning: to explicitly acknowledge the change.
dh: warning:
dh: warning: Please see the description of the "single-binary" in "man dh" for more details of what
dh: warning: it does and why this is changing from implicit behaviour to
explicitly opt-in.
dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang
dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang
dh_clean -O--builddirectory=_build -O--buildsystem=golang
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building golang-github-peterbourgon-ff using existing
../golang-github-peterbourgon-ff_3.4.0.orig.tar.gz
dpkg-source: info: building golang-github-peterbourgon-ff in
../golang-github-peterbourgon-ff_3.4.0-2.debian.tar.xz
dpkg-source: info: building golang-github-peterbourgon-ff in
../golang-github-peterbourgon-ff_3.4.0-2.dsc
debian/rules binary
dh binary --builddirectory=_build --buildsystem=golang
dh: warning: Implicitly activating single-binary dh addon for backwards
compatibility. In compat 14+,
dh: warning: this fallback will *not* happen automatically via
dh_auto_install will instead use a
dh: warning: different default for --destdir unless the single-binary
add-on is active,
dh: warning: which can cause the source to produce an empty binary package
dh: warning:
dh: warning: To keep the existing behaviour (compat 13), please activate the single-binary addon explicitly.
dh: warning: This can be done by adding "dh-sequence-single-binary" to
Build-Depends or passing
dh: warning: --with=single-binary to dh.
dh: warning:
dh: warning: If you have solved this issue differently (e.g., by passing --destdir explicitly to
dh: warning: dh_auto_install or not using dh_auto_install at all) and want
to silence this warning
dh: warning: without activating the addon, you can do that by passing
--without=single-binary to dh
dh: warning: to explicitly acknowledge the change.
dh: warning:
dh: warning: Please see the description of the "single-binary" in "man dh" for more details of what
dh: warning: it does and why this is changing from implicit behaviour to
explicitly opt-in.
dh_update_autotools_config -O--builddirectory=_build
-O--buildsystem=golang
dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang
dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang
dh_auto_build -O--builddirectory=_build -O--buildsystem=golang
cd _build && go install -trimpath -v -p 4 github.com/peterbourgon/ff/v3
github.com/peterbourgon/ff/v3/ffcli
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/cmd/objectctl
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/createcmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/deletecmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/listcmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/objectapi
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd
github.com/peterbourgon/ff/v3/ffcli/examples/textctl
github.com/peterbourgon/ff/v3/fftest github.com/peterbourgon/ff/v3/fftoml
github.com/peterbourgon/ff/v3/ffyaml github.com/peterbourgon/ff/v3/internal
src/github.com/peterbourgon/ff/v3/ffyaml/ffyaml.go:10:2: no required module
provides package gopkg.in/yaml.v2; to add it:
cd
/build/reproducible-path/golang-github-peterbourgon-ff-3.4.0/_build/src/github.com/peterbourgon/ff/v3
go get gopkg.in/yaml.v2
dh_auto_build: error: cd _build && go install -trimpath -v -p 4
github.com/peterbourgon/ff/v3 github.com/peterbourgon/ff/v3/ffcli
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/cmd/objectctl
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/createcmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/deletecmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/listcmd
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/objectapi
github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd
github.com/peterbourgon/ff/v3/ffcli/examples/textctl
github.com/peterbourgon/ff/v3/fftest github.com/peterbourgon/ff/v3/fftoml
github.com/peterbourgon/ff/v3/ffyaml github.com/peterbourgon/ff/v3/internal returned
exit code 1
--
Félix
signature.asc
Description: PGP signature
