Hide Forgot
Description of problem: When I run ofpathname without bc being installed, I run into problems. [anaconda root@(none) /]# ofpathname /dev/sda /usr/sbin/ofpathname: line 120: bc: command not found /usr/sbin/ofpathname: line 123: bc: command not found /usr/sbin/ofpathname: line 125: bc: command not found /usr/sbin/ofpathname: line 120: bc: command not found /usr/sbin/ofpathname: line 123: bc: command not found /usr/sbin/ofpathname: line 125: bc: command not found /usr/sbin/ofpathname: line 162: bc: command not found /vdevice/v-scsi@30000002/disk@000000000000 Version-Release number of selected component (if applicable): 1.2.6 How reproducible: Very Steps to Reproduce: 1. run ofpathname /dev/sda Looking into it some more and after looking through ~/rpmbuild/BUILD/powerpc-utils-1.2.6/scripts/*, I see that a number of packages are missing. [root@bluebill ~]# for f in bash cat grep awk printf find date sleep nvram ofpathname perl modprobe which ls sed tr bc udevinfo udevadm od cut getopt head tail dd shutdown; do if which --skip-alias $f > /dev/null 2>&1; then rpm -qf $(which --skip-alias $f 2>/dev/null); fi done | sort | uniq bash-4.2.10-4.fc16.ppc64 bc-1.06.95-3.fc15.ppc64 coreutils-8.12-2.fc16.ppc64 findutils-4.5.10-1.fc16.ppc64 gawk-4.0.0-1.fc16.ppc64 grep-2.9-3.fc16.ppc64 module-init-tools-3.16-2.fc16.ppc64 perl-5.14.1-187.fc16.ppc64 powerpc-utils-1.2.6-2.fc15.ppc64 sed-4.2.1-7.fc16.ppc64 systemd-36-3.fc16.ppc64 udev-173-3.fc16.ppc64 util-linux-2.20-1.fc16.ppc64 which-2.20-2.fc15.ppc64
It also uses udevinfo. Which doesn't exist anymore? [root@bluebill ~]# grep udevinfo ~/rpmbuild/BUILD/powerpc-utils-1.2.6.orig/scripts/* /root/rpmbuild/BUILD/powerpc-utils-1.2.6.orig/scripts/ofpathname: local udevinfo="/usr/bin/udevinfo" /root/rpmbuild/BUILD/powerpc-utils-1.2.6.orig/scripts/ofpathname: elif [[ -a $udevinfo ]]; then /root/rpmbuild/BUILD/powerpc-utils-1.2.6.orig/scripts/ofpathname: udev_path=`$udevinfo -q path -n $DEVNAME`
Created attachment 530736 [details] Patch for the fix
Instead of udevinfo, use 'udevadm info'.
powerpc-utils is updated to latest powrpc-utils-1.2.11 AFAIK 'udevadm info' is fixed in upstream from version 1.2.10. I've added only bc and which to Requires. The other dependency are covered mainly by dracut.