Bug 749892 - powerpc-utils spec file missing dependencies
Summary: powerpc-utils spec file missing dependencies
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: powerpc-utils
Version: 16
Hardware: ppc64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-28 19:41 UTC by Mark Hamzy
Modified: 2011-11-03 12:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-03 12:44:44 UTC
Type: ---


Attachments (Terms of Use)
Patch for the fix (715 bytes, patch)
2011-10-28 19:59 UTC, Mark Hamzy
no flags Details | Diff

Description Mark Hamzy 2011-10-28 19:41:50 UTC
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

Comment 1 Mark Hamzy 2011-10-28 19:57:01 UTC
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`

Comment 2 Mark Hamzy 2011-10-28 19:59:33 UTC
Created attachment 530736 [details]
Patch for the fix

Comment 3 Mark Hamzy 2011-10-28 20:25:43 UTC
Instead of udevinfo, use 'udevadm info'.

Comment 4 Jiri Skala 2011-11-03 12:44:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.