Re: Questions regarding BUILD_DEPENDS definition

From: Matthias Fechner <>
Date: Wed, 12 Apr 2023 04:21:23 UTC
Am 11.04.2023 um 19:54 schrieb Matthew Seaman:
> Hmmm... I wonder if this is the shared library provides/requires thing 
> that pkg does?  If you run ldd(1) against the binaries from 
> gitlab-shell, is there any indication of linking against a shlib from 
> the heimdal port?
> If so, then that would seem to be a mistake in the gitlab-shell port, 
> and it should probably add a LIB_DEPENDS against security/heimdal.
> Otherwise, all I can suggest is deleting both heimdal and gitlab-shell 
> packages, and then reinstalling gitlab-shell. Hopefully that will tidy 
> up the dependency graph.

I think that is it:
cd /usr/local/share/gitlab-shell/
$ ldd gitlab-shell
gitlab-shell: => /lib/ (0x801193000) => /lib/ (0x8011c1000)
$ ldd gitlab-shell-authorized-keys-check
gitlab-shell-authorized-keys-check: => /lib/ (0x801157000) => /lib/ (0x801185000)
$ ldd gitlab-shell-authorized-principals-check
gitlab-shell-authorized-principals-check: => /lib/ (0x801148000) => /lib/ (0x801176000)
$ ldd gitlab-sshd
gitlab-sshd: => /usr/local/lib/heimdal/ 
(0x8012f2000) => /lib/ (0x801333000) => /lib/ (0x801361000) => /usr/local/lib/heimdal/ 
(0x80176b000) => /usr/local/lib/heimdal/ (0x801777000) => /usr/local/lib/heimdal/ (0x801811000) => /usr/local/lib/heimdal/ (0x801862000) => /usr/local/lib/heimdal/ 
(0x80188d000) => /usr/local/lib/heimdal/ 
(0x80196d000) => /usr/local/lib/heimdal/ (0x8019ad000) => /usr/local/lib/heimdal/ 
(0x801a59000) => /usr/local/lib/heimdal/ 
(0x801a60000) => /usr/local/lib/ (0x801a73000) => /usr/local/lib/heimdal/ 
(0x801a81000) => /usr/local/lib/ (0x801a97000) => /lib/ (0x801d23000)

I'm not sure how to handle this.
I saw in the commit logs that heimdal is only used if CGO is enabled in 
the build. That could maybe be a work-around for this problem.



"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook