Wind River Support Network


LIN6-3627 : Inconsistent use of "alternatives" in inetutils packages

Created: May 17, 2013    Updated: Mar 10, 2016
Resolved Date: Nov 12, 2013
Previous ID: LIN5-6421, LIN6-2931
Found In Version: 6.0
Fix Version: 6.0
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


Some, but not all, of the binaries in the inetutils packages have "alternatives" set. YOu can quickly find which ones do as follows:

$ for file in `find ./bitbake_build/tmp/deploy/rpm/x86_64/ -name inetutils\*rpm`; do ./host-cross/usr/bin/rpm -qp --scripts $file | fgrep update-al; done
        update-alternatives --install /bin/ping ping ping.inetutils 80
        update-alternatives --remove  ping ping.inetutils
        update-alternatives --install /usr/bin/rcp rcp rcp.inetutils 80
        update-alternatives --install /usr/bin/rexec rexec rexec.inetutils 80
        update-alternatives --install /usr/bin/rlogin rlogin rlogin.inetutils 80
        update-alternatives --install /usr/bin/rsh rsh rsh.inetutils 80
        update-alternatives --remove  rcp rcp.inetutils
        update-alternatives --remove  rexec rexec.inetutils
        update-alternatives --remove  rlogin rlogin.inetutils
        update-alternatives --remove  rsh rsh.inetutils
        update-alternatives --install /sbin/syslogd syslogd syslogd.inetutils 80
        update-alternatives --remove  syslogd syslogd.inetutils
        update-alternatives --install /usr/bin/tftp tftp tftp.inetutils 80
        update-alternatives --remove  tftp tftp.inetutils
        update-alternatives --install /usr/bin/telnet telnet telnet.inetutils 80
        update-alternatives --remove  telnet telnet.inetutils
        update-alternatives --install /bin/ping6 ping6 ping6.inetutils 80
        update-alternatives --remove  ping6 ping6.inetutils
        update-alternatives --install /usr/bin/traceroute traceroute traceroute.inetutils 80
        update-alternatives --remove  traceroute traceroute.inetutils
        update-alternatives --install /usr/bin/ftpd ftpd ftpd.inetutils 80
        update-alternatives --remove  ftpd ftpd.inetutils
        update-alternatives --install /sbin/ifconfig ifconfig ifconfig.inetutils 80
        update-alternatives --remove  ifconfig ifconfig.inetutils
        update-alternatives --install /bin/hostname hostname hostname.inetutils 80
        update-alternatives --remove  hostname hostname.inetutils
        update-alternatives --install /usr/bin/talk talk talk.inetutils 80
        update-alternatives --install /usr/bin/whois whois whois.inetutils 80
        update-alternatives --remove  talk talk.inetutils
        update-alternatives --remove  whois whois.inetutils
        update-alternatives --install /usr/bin/logger logger logger.inetutils 80
        update-alternatives --remove  logger logger.inetutils

But notice that telnetd (which is renamed in.telnetd), rshd (renamed to in.rshd) and others do not have alternate links even though they could also be included from busybox and therefore require an alternate.


Create alternatives manually on the target

Steps to Reproduce

$ configure --enable-board=qemux86-64 --enable-rootfs=glibc_cgl --enable-kernel=cgl
$ make fs

Examine the export/dist/var/lib/opkg/alternatives/ directory to see the alt's that have been created and notice that not all packages that could clash with busybox versions for example, have alt files here.

Other Downloads

Live chat