go packaging: binary renaming
A stupid fight with dh_exec
Published in
1 min readOct 3, 2018
I found a problem: out internal go package is named ‘network-utils’ (which is too big and pretensions for the thing it does). I renamed the package to golang-foo-network-utils (binary pacakge name is foo-network-utils), but dh-golang wanted to install /usr/bin/network-utils
binary, which I wanted to be /usr/bin/foo-network-utils
.
As usual I fought with dh-exec, but failed. I finished by adding this into my debian/rules
:
override_dh_auto_install:
dh_auto_install $@
find debian/
mv debian/foo-network-utils/usr/bin/network-utils debian/foo-network-utils/usr/bin/foo-network-utils
It’s ugly, but it works.