Blame SOURCES/valgrind-3.16.0-pkglibexecdir.patch

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