[pkg-go] Bug#852560: golang-github-shirou-gopsutil: Update udevadm path

Michael Biebl biebl at debian.org
Tue Jun 20 12:55:21 UTC 2017


On Wed, 25 Jan 2017 14:42:36 +0100 biebl at debian.org wrote:
> Package: golang-github-shirou-gopsutil
> Version: 2.1-2.1
> Severity: normal
> User: pkg-systemd-maintainers at lists.alioth.debian.org
> Usertags: udevadm
> 
> Hi,
> 
> since Jessie, the udevadm binary is available as /bin/udevadm.
> To not break existing scripts, which use the old /sbin/udevadm path,
> the udev package currently ships a compat symlink which we would like
> to drop eventually (in buster or buster+1).
> 
> According to codesearch [1] your package golang-github-shirou-gopsutil does hard-code the
> udevadm path as /sbin/udevadm.
> 
> Please change that to /bin/udevadm.

With stretch being released and buster open for development, it would be
a great opportunity to get this fixed now. So please consider adding
this change in your next upload.

If you are worried about backports: /bin/udevadm is already available in
Debian jessie (oldstable) or Ubuntu trusty (14.04LTS). So it's safe to
use the /bin/udevadm path.

You might also consider not hard-coding the path altogether, and simply
rely on PATH being set properly. This should be a safe assumption,
especially since the binary is now in /bin

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



More information about the Pkg-go-maintainers mailing list