Scripts use incorrect path "/usr/local/sbin"

Bug #1450896 reported by Ray Speth
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
infiniband-diags (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

[ SRU Justification ]
Many of the tools in infiniband-diags don't work at all unless one manually sets $IBPATH, which is less than ideal.

[ Test Case ]
dpkg -L infiniband-diags | grep /usr/sbin/ | xargs grep IBPATH=
Pre-fix: "${IBPATH:-/usr/local/sbin}"
Post-fix: "${IBPATH:-/usr/sbin}"

[ Regression Potential ]
Nil, there's really only a chance for progression here.

[ Original Report ]
Ubuntu release:
# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04

Package version:
# apt-cache policy infiniband-diags
infiniband-diags:
  Installed: 1.6.1-1
  Candidate: 1.6.1-1
  Version table:
 *** 1.6.1-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Error output:

# ibswitches
/usr/sbin/ibswitches: line 50: /usr/local/sbin/ibnetdiscover: No such file or directory

# ibhosts
/usr/sbin/ibhosts: line 50: /usr/local/sbin/ibnetdiscover: No such file or directory

# ibnodes
/usr/sbin/ibnodes: line 5: /usr/local/sbin/ibhosts: No such file or directory
/usr/sbin/ibnodes: line 5: /usr/local/sbin/ibswitches: No such file or directory

# ibswitches
/usr/sbin/ibswitches: line 50: /usr/local/sbin/ibnetdiscover: No such file or directory

Adam Conrad (adconrad)
Changed in infiniband-diags (Ubuntu):
status: New → Fix Released
Adam Conrad (adconrad)
description: updated
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Ray, or anyone else affected,

Accepted infiniband-diags into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/infiniband-diags/1.6.1-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in infiniband-diags (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote :

Verified in a trusty chroot.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of the Stable Release Update for infiniband-diags has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package infiniband-diags - 1.6.1-1ubuntu2

---------------
infiniband-diags (1.6.1-1ubuntu2) trusty; urgency=medium

  * Cherry-pick --with-ibpath_override from utopic (LP: #1450896)

infiniband-diags (1.6.1-1ubuntu1) trusty; urgency=medium

  * Enable building on all Linux architectures (LP: #1414818)

 -- Adam Conrad <email address hidden> Fri, 17 Jul 2015 11:14:35 -0600

Changed in infiniband-diags (Ubuntu Trusty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.