[Hostname-devel] Bug#718400: hostname binaries inconsistently hard-linked
Matthew Cengia
mattcen at gmail.com
Wed Jul 31 06:53:35 UTC 2013
Package: hostname
Version: 3.11
Severity: minor
Dear Maintainer,
The binaries for this package are inconsistently hard-linked by the
Makefile. Note that all are hard-linked together except hostname
itself:
mattcen at toto:tmp$ dpkg -L hostname | grep bin/ | xargs ls -il
10403 -rwxr-xr-x 4 root root 18760 Feb 17 2012 /bin/dnsdomainname
10403 -rwxr-xr-x 4 root root 18760 Feb 17 2012 /bin/domainname
10402 -rwxr-xr-x 1 root root 18760 Feb 17 2012 /bin/hostname
10403 -rwxr-xr-x 4 root root 18760 Feb 17 2012 /bin/nisdomainname
10403 -rwxr-xr-x 4 root root 18760 Feb 17 2012 /bin/ypdomainname
I think the correct fix for this is to sym-link all binaries to
'hostname' rather than hard-link them:
sed '/ln/s/-f /-fs /' Makefile
Alternatively, if, for some odd reason hard links are required:
sed '/ln/s/-f hostname/-f ${BASEDIR}\/bin\/hostname/' Makefile
-- System Information:
Debian Release: 7.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages hostname depends on:
ii libc6 2.13-38
hostname recommends no packages.
hostname suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/hostname-devel/attachments/20130731/ea7dc5a7/attachment.sig>
More information about the Hostname-devel
mailing list