Wind River Support Network

HomeDefectsLIN5-6417
Fixed

LIN5-6417 : Inconsistent use of "alternatives" in inetutils packages

Created: May 17, 2013    Updated: Dec 19, 2017
Resolved Date: Jun 4, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.4
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

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.

Workaround

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
Online