summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2010-03-10 10:48:43 +0100
committerJoerg Bruehe <joerg@mysql.com>2010-03-10 10:48:43 +0100
commitfcd119066cce94c57de43bd8a9a65b0cb8f5d18b (patch)
treeff0a31a6e578fe7d21c7f3e6a5d118675c6e31be /plugin
parent28ca3bfdcaff9af3746ce7f109aede87bf5f8bd7 (diff)
downloadmariadb-git-fcd119066cce94c57de43bd8a9a65b0cb8f5d18b.tar.gz
Part of the fixes for bug#49022
Plugins included into bin release cannot be installed on debug version of server IF the build process was split into separate "debug" and "optimized" builds AND the plugin files of the debug build got copied into "plugin/debug/" (both is done for MySQL release builds starting from 5.5.3), THEN these debug plugin files are to be included in the final binary package. This change deals with the inclusion only, the other parts are done in different changesets. plugin/Makefile.am: The "install" rule must not assume that "debug" files are present, this depends on the preceding steps in the build. If they are present, we cannot copy them by simply using "libtool install" (as we could do during an ordinary build) because they are already kept in "plugin/debug/". When doing the copy to the destination hierarchy, we must ensure that symlinks are not expanded but rather copied as symlinks. "cp -d" is specific to GNU, the portable way would use "cp -P", but that is not fully specified with recursion. So we fall back on "tar c | tar x", which is known to keep symlinks unchanged (and un-expanded). Using "$(TAR)" is just a precaution in case of weird path settings or other portability issues.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/Makefile.am b/plugin/Makefile.am
index 68f1f939836..bddd0c929fc 100644
--- a/plugin/Makefile.am
+++ b/plugin/Makefile.am
@@ -1,4 +1,4 @@
-# Copyright (C) 2005-2006 MySQL AB
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,5 +24,10 @@ EXTRA_DIST = fulltext/configure.in
SUBDIRS = @mysql_pg_dirs@
DIST_SUBDIRS = @mysql_pg_distdirs@
+# As of 5.5.3-m3, we want to include the plugin files of a debug build in the package
+install-exec-hook:
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir) $(DESTDIR)$(pkglibdir)/plugin
+ test ! -d debug || $(TAR) cf - debug | ( cd $(DESTDIR)$(pkglibdir) && $(TAR) xvf - )
+
# Don't update the files from bitkeeper
%::SCCS/s.%