Blame SOURCES/valgrind-3.15.0-pkglibexecdir.patch

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