Blame SOURCES/valgrind-3.15.0-pkglibexecdir.patch

2a1fab
diff --git a/Makefile.all.am b/Makefile.all.am
2a1fab
index 3786e34..1befef5 100644
2a1fab
--- a/Makefile.all.am
2a1fab
+++ b/Makefile.all.am
2a1fab
@@ -50,20 +50,20 @@ inplace-noinst_DSYMS: build-noinst_DSYMS
2a1fab
 	done
2a1fab
 
2a1fab
 # This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
2a1fab
-# "make install".  It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/.
2a1fab
+# "make install".  It copies $(noinst_PROGRAMS) into $prefix/libexec/valgrind/.
2a1fab
 # It needs to be depended on by an 'install-exec-local' rule.
2a1fab
 install-noinst_PROGRAMS: $(noinst_PROGRAMS)
2a1fab
-	$(mkinstalldirs) $(DESTDIR)$(pkglibdir); \
2a1fab
+	$(mkinstalldirs) $(DESTDIR)$(pkglibexecdir); \
2a1fab
 	for f in $(noinst_PROGRAMS); do \
2a1fab
-	  $(INSTALL_PROGRAM) $$f $(DESTDIR)$(pkglibdir); \
2a1fab
+	  $(INSTALL_PROGRAM) $$f $(DESTDIR)$(pkglibexecdir); \
2a1fab
 	done
2a1fab
 
2a1fab
 # This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
2a1fab
-# "make uninstall".  It removes $(noinst_PROGRAMS) from $prefix/lib/valgrind/.
2a1fab
+# "make uninstall".  It removes $(noinst_PROGRAMS) from $prefix/libexec/valgrind/.
2a1fab
 # It needs to be depended on by an 'uninstall-local' rule.
2a1fab
 uninstall-noinst_PROGRAMS:
2a1fab
 	for f in $(noinst_PROGRAMS); do \
2a1fab
-	  rm -f $(DESTDIR)$(pkglibdir)/$$f; \
2a1fab
+	  rm -f $(DESTDIR)$(pkglibexecdir)/$$f; \
2a1fab
 	done
2a1fab
 
2a1fab
 # Similar to install-noinst_PROGRAMS.
2a1fab
@@ -71,15 +71,15 @@ uninstall-noinst_PROGRAMS:
2a1fab
 # directories.  XXX: not sure whether the resulting permissions will be
2a1fab
 # correct when using 'cp -R'...
2a1fab
 install-noinst_DSYMS: build-noinst_DSYMS
2a1fab
-	$(mkinstalldirs) $(DESTDIR)$(pkglibdir); \
2a1fab
+	$(mkinstalldirs) $(DESTDIR)$(pkglibexecdir); \
2a1fab
 	for f in $(noinst_DSYMS); do \
2a1fab
-	  cp -R $$f.dSYM $(DESTDIR)$(pkglibdir); \
2a1fab
+	  cp -R $$f.dSYM $(DESTDIR)$(pkglibexecdir); \
2a1fab
 	done
2a1fab
 
2a1fab
 # Similar to uninstall-noinst_PROGRAMS.
2a1fab
 uninstall-noinst_DSYMS:
2a1fab
 	for f in $(noinst_DSYMS); do \
2a1fab
-	  rm -f $(DESTDIR)$(pkglibdir)/$$f.dSYM; \
2a1fab
+	  rm -f $(DESTDIR)$(pkglibexecdir)/$$f.dSYM; \
2a1fab
 	done
2a1fab
 
2a1fab
 # This needs to be depended on by a 'clean-local' rule.
2a1fab
diff --git a/Makefile.am b/Makefile.am
2a1fab
index 242b38a..3b7c806 100644
2a1fab
--- a/Makefile.am
2a1fab
+++ b/Makefile.am
2a1fab
@@ -58,7 +58,7 @@ DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
2a1fab
 # default.supp, as it is built from the base .supp files at compile-time.
2a1fab
 dist_noinst_DATA = $(SUPP_FILES)
2a1fab
 
2a1fab
-vglibdir = $(pkglibdir)
2a1fab
+vglibdir = $(pkglibexecdir)
2a1fab
 vglib_DATA = default.supp
2a1fab
 
2a1fab
 pkgconfigdir = $(libdir)/pkgconfig
2a1fab
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
2a1fab
index 94030fd..f09763a 100644
2a1fab
--- a/coregrind/Makefile.am
2a1fab
+++ b/coregrind/Makefile.am
2a1fab
@@ -11,12 +11,12 @@ include $(top_srcdir)/Makefile.all.am
2a1fab
 
2a1fab
 AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ += \
2a1fab
 	-I$(top_srcdir)/coregrind \
2a1fab
-	-DVG_LIBDIR="\"$(pkglibdir)"\" \
2a1fab
+	-DVG_LIBDIR="\"$(pkglibexecdir)"\" \
2a1fab
 	-DVG_PLATFORM="\"@VGCONF_ARCH_PRI@-@VGCONF_OS@\""
2a1fab
 if VGCONF_HAVE_PLATFORM_SEC
2a1fab
 AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@ += \
2a1fab
 	-I$(top_srcdir)/coregrind \
2a1fab
-	-DVG_LIBDIR="\"$(pkglibdir)"\" \
2a1fab
+	-DVG_LIBDIR="\"$(pkglibexecdir)"\" \
2a1fab
 	-DVG_PLATFORM="\"@VGCONF_ARCH_SEC@-@VGCONF_OS@\""
2a1fab
 endif
2a1fab
 
2a1fab
@@ -714,7 +714,7 @@ GDBSERVER_XML_FILES = \
2a1fab
 	m_gdbserver/mips64-fpu.xml
2a1fab
 
2a1fab
 # so as to make sure these get copied into the install tree
2a1fab
-vglibdir = $(pkglibdir)
2a1fab
+vglibdir = $(pkglibexecdir)
2a1fab
 vglib_DATA  = $(GDBSERVER_XML_FILES)
2a1fab
 
2a1fab
 # so as to make sure these get copied into the tarball
2a1fab
diff --git a/mpi/Makefile.am b/mpi/Makefile.am
2a1fab
index 7ad9a25..471fee0 100644
2a1fab
--- a/mpi/Makefile.am
2a1fab
+++ b/mpi/Makefile.am
2a1fab
@@ -18,16 +18,18 @@ EXTRA_DIST = \
2a1fab
 # libmpiwrap-<platform>.so
2a1fab
 #----------------------------------------------------------------------------
2a1fab
 
2a1fab
-noinst_PROGRAMS  =
2a1fab
+# These are really real libraries, so they should go to libdir, not libexec.
2a1fab
+mpidir = $(pkglibdir)
2a1fab
+mpi_PROGRAMS  =
2a1fab
 if BUILD_MPIWRAP_PRI
2a1fab
-noinst_PROGRAMS += libmpiwrap-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
2a1fab
+mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
2a1fab
 endif
2a1fab
 if BUILD_MPIWRAP_SEC
2a1fab
-noinst_PROGRAMS += libmpiwrap-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
2a1fab
+mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
2a1fab
 endif
2a1fab
 
2a1fab
 if VGCONF_OS_IS_DARWIN
2a1fab
-noinst_DSYMS = $(noinst_PROGRAMS)
2a1fab
+mpi_DSYMS = $(mpi_PROGRAMS)
2a1fab
 endif
2a1fab
 
2a1fab