Package: gsocket Version: 1.4.43-4 Severity: normal Hi!
This package depends on dpkg-dev, due to its dependency on dpkg-architecture. This implies that a user that wants to use gsocket, will get all of build-essential pulled in. The other problem is that dpkg-architecture will honor architectures set in the environment, so it might end up giving the wrong pathname (that would not match the current .deb arch)! Checking the source it seems it only wants to know where to find the shared object to use in LD_PRELOAD. But there should be no need for that, as LD_PRELOAD can work with just a filename (not the entire pathname), and it will look for it in the system configured library paths. This would avoid both the dpkg-architecture call and the dpkg-dev dependency. If for some reason there was still a need for an absolute pathname, then I'd recommend instead to get that at build time, and then replace it in the shell script, so that the pathname always matches the expected pathname for that .deb arch. This would also remove the need for dpkg-architecture at run-time and the dpkg-dev dependency. Thanks, Guillem

