File google-perftools-fix_docdir.patch of Package google-perftools
Index: google-perftools-0.98/Makefile.am
===================================================================
--- google-perftools-0.98.orig/Makefile.am
+++ google-perftools-0.98/Makefile.am
@@ -35,7 +35,7 @@ googleincludedir = $(includedir)/google
# We'll add to this later, on a library-by-library basis
googleinclude_HEADERS =
-docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+docdir = $(prefix)/share/doc/packages/$(PACKAGE)
# This is for HTML and other documentation you want to install.
# Add your documentation files (in doc/) in addition to these
# top-level boilerplate files. Also add a TODO file if you have one.
@@ -240,8 +240,7 @@ S_TCMALLOC_MINIMAL_INCLUDES = src/intern
src/malloc_hook-inl.h \
src/maybe_threads.h
SG_TCMALLOC_MINIMAL_INCLUDES = src/google/malloc_hook.h \
- src/google/malloc_extension.h \
- src/google/stacktrace.h
+ src/google/malloc_extension.h
TCMALLOC_MINIMAL_INCLUDES = $(S_TCMALLOC_MINIMAL_INCLUDES) $(SG_TCMALLOC_MINIMAL_INCLUDES)
googleinclude_HEADERS += $(SG_TCMALLOC_MINIMAL_INCLUDES)
@@ -460,11 +459,8 @@ S_TCMALLOC_INCLUDES = src/internal_loggi
src/maybe_threads.h \
$(SPINLOCK_INCLUDES) \
$(LOGGING_INCLUDES)
-SG_TCMALLOC_INCLUDES = src/google/malloc_hook.h \
- src/google/malloc_extension.h \
- src/google/heap-profiler.h \
- src/google/heap-checker.h \
- src/google/stacktrace.h
+SG_TCMALLOC_INCLUDES = src/google/heap-profiler.h \
+ src/google/heap-checker.h
TCMALLOC_INCLUDES = $(S_TCMALLOC_INCLUDES) $(SG_TCMALLOC_INCLUDES)
googleinclude_HEADERS += $(SG_TCMALLOC_INCLUDES)
@@ -611,8 +607,7 @@ S_CPU_PROFILER_INCLUDES = src/profiledat
src/base/sysinfo.h \
$(SPINLOCK_INCLUDES) \
$(LOGGING_INCLUDES)
-SG_CPU_PROFILER_INCLUDES = src/google/profiler.h \
- src/google/stacktrace.h
+SG_CPU_PROFILER_INCLUDES = src/google/profiler.h
CPU_PROFILER_INCLUDES = $(S_CPU_PROFILER_INCLUDES) $(SG_CPU_PROFILER_INCLUDES)
googleinclude_HEADERS += $(SG_CPU_PROFILER_INCLUDES)