Bug 233404 - %{_libdir}/pm-utils/bin/pm-action contains hardcoded /usr/lib
%{_libdir}/pm-utils/bin/pm-action contains hardcoded /usr/lib
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pm-utils (Show other bugs)
rawhide
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-22 01:39 EDT by Michel Alexandre Salim
Modified: 2015-03-04 20:18 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-31 05:05:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Michel Alexandre Salim 2007-03-22 01:39:08 EDT
Description of problem:
Line 86 of pm-action reads
. /usr/lib/pm-utils/functions

This breaks on 64-bit platforms where the file is in /usr/lib64/pm-utils, and
seems to be a regression - in the previous version files were under /etc/pm

Version-Release number of selected component (if applicable):
pm-utils-0.99.2-1.fc7

How reproducible:
Always

Steps to Reproduce:
1. Run pm-suspend or pm-hibernate
  
Actual results:
Fails since functions cannot be loaded

Expected results:
Suspends / hibernates properly

Additional info:
Should pm-utils not be noarch?
Comment 1 Till Maas 2007-03-22 05:06:48 EDT
(In reply to comment #0)

> Additional info:
> Should pm-utils not be noarch?

pm-utils contains radeontool and vbetool, which are both (c?) binaries, so this
is not an option.
Comment 2 Till Maas 2007-08-31 05:05:49 EDT
(In reply to comment #0)
> Description of problem:
> Line 86 of pm-action reads
> . /usr/lib/pm-utils/functions
> 
> This breaks on 64-bit platforms where the file is in /usr/lib64/pm-utils, and

The current devel spec installs stuff always in /usr/lib and never in
/usr/lib64, so this bug should be solved.

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