Blame SOURCES/valgrind-3.16.0-pkglibexecdir.patch

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