bsc-performance-tools / extrae

Instrumentation framework to generate execution traces of the most used parallel runtimes.
https://tools.bsc.es/extrae
GNU Lesser General Public License v2.1
62 stars 38 forks source link

fix for installation #33

Closed loveshack closed 4 years ago

loveshack commented 5 years ago

I needed this change to build a package from 3.7.1 with $MPI_HOME/etc as sysconfig and non-null DESTDIR.

--- extrae-3.7.1/src/tracer/online/Makefile.am~ 2019-07-05 11:24:32.000000000 +0000
+++ extrae-3.7.1/src/tracer/online/Makefile.am  2019-07-21 13:52:50.714653738 +0000
@@ -151,7 +151,7 @@
 .PHONY : $(SCRIPT_ONLINE_ENV) $(SCRIPT_ONLINE_ROOT)

 install-data-hook:
-   $(MKDIR_P) $(prefix)/etc
+   $(MKDIR_P) $(DESTDIR)$(sysconfdir)
    cp $(SCRIPT_ONLINE_ENV) $(DESTDIR)$(sysconfdir)
    cp $(SCRIPT_ONLINE_ROOT) $(DESTDIR)$(bindir)
    chmod a+x $(DESTDIR)$(bindir)/$(SCRIPT_ONLINE_ROOT)