Blame SOURCES/valgrind-3.16.0-pkglibexecdir.patch

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