Revert "cpupower Makefile change to help run the tool without 'make install'"
authorJosh Boyer <jwboyer@fedoraproject.org>
Wed, 11 Mar 2015 00:26:36 +0000 (20:26 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Mar 2015 20:56:49 +0000 (21:56 +0100)
commitb8ea351b0e154c9dc28609db58eddc6c2934c954
treeee7fcd3be4675d5086acee0f3fd34ea69d311988
parent9eccca0843205f87c00404b663188b88eb248051
Revert "cpupower Makefile change to help run the tool without 'make install'"

This reverts commit 5c1de006e8e66b0be05be422416629e344c71652.

While the original commit makes it easier to run cpupower from the
local build directory, it also leaves the binary with a rather poor
rpath of './' in it after it is installed on a system via 'make install'.

This is considered bad practice and can cause cpupower to fail in
rpmbuild with the following error:

ERROR   0004: file '/usr/bin/cpupower' contains an insecure rpath './' in [./]
error: Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)
    Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)

Developers should be able to use LD_LIBRARY_PATH to achieve the same
effect and not introduce rpath into the binary.

Signed-off-by: Josh Boyer <jwboyer@feoraproject.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/Makefile
This page took 0.025843 seconds and 5 git commands to generate.