The python installation fails to use proper prefix and destdir variables: make[1]: Entering directory `/data/rrichter/.source/libpfm/python' ./setup.py install running install running build running build_py copying src/perfmon_int.py -> build/lib.linux-x86_64-2.6/perfmon running build_ext running install_lib creating /usr/lib64/python2.6/site-packages/perfmon error: could not create '/usr/lib64/python2.6/site-packages/perfmon': Permission denied make[1]: *** [install] Error 1 make[1]: Leaving directory `/data/rrichter/.source/libpfm/python' make: *** [install] Error 2
This patch fixes this. Signed-off-by: Robert Richter <robert.rich...@amd.com> --- python/Makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/python/Makefile b/python/Makefile index 3912c14..fca7dbf 100644 --- a/python/Makefile +++ b/python/Makefile @@ -20,11 +20,16 @@ # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)/.. + +include $(TOPDIR)/config.mk +include $(TOPDIR)/rules.mk + all: ./setup.py build install: - ./setup.py install + ./setup.py install --prefix=$(DESTDIR)$(PREFIX) clean: $(RM) src/perfmon_int_wrap.c src/perfmon_int.py src/*.pyc -- 1.7.1 ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel