make_binary_distribution and mysql.spec: add options to copy a shared library, for use by mysqld_safe, into pkglibdir during package creation
This commit is contained in:
parent
5ce71b22bf
commit
4188fcbd55
@ -64,6 +64,7 @@ cflags="@CFLAGS@"
|
|||||||
|
|
||||||
STRIP=1 # Option ignored
|
STRIP=1 # Option ignored
|
||||||
SILENT=0
|
SILENT=0
|
||||||
|
MALLOC_LIB=
|
||||||
PLATFORM=""
|
PLATFORM=""
|
||||||
TMP=/tmp
|
TMP=/tmp
|
||||||
NEW_NAME="" # Final top directory and TAR package name
|
NEW_NAME="" # Final top directory and TAR package name
|
||||||
@ -76,6 +77,7 @@ for arg do
|
|||||||
--tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
|
--tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
|
||||||
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
|
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
|
||||||
--short-product-tag=*) SHORT_PRODUCT_TAG=`echo "$arg" | sed -e "s;--short-product-tag=;;"` ;;
|
--short-product-tag=*) SHORT_PRODUCT_TAG=`echo "$arg" | sed -e "s;--short-product-tag=;;"` ;;
|
||||||
|
--inject-malloc-lib=*) MALLOC_LIB=`echo "$arg" | sed -e 's;^[^=]*=;;'` ;;
|
||||||
--no-strip) STRIP=0 ;;
|
--no-strip) STRIP=0 ;;
|
||||||
--machine=*) machine=`echo "$arg" | sed -e "s;--machine=;;"` ;;
|
--machine=*) machine=`echo "$arg" | sed -e "s;--machine=;;"` ;;
|
||||||
--platform=*) PLATFORM=`echo "$arg" | sed -e "s;--platform=;;"` ;;
|
--platform=*) PLATFORM=`echo "$arg" | sed -e "s;--platform=;;"` ;;
|
||||||
@ -293,6 +295,12 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If requested, add a malloc library .so into pkglibdir for use
|
||||||
|
# by mysqld_safe
|
||||||
|
if [ -n "$MALLOC_LIB" ]; then
|
||||||
|
cp "$MALLOC_LIB" '@pkglibdir@'
|
||||||
|
fi
|
||||||
|
|
||||||
# FIXME let this script be in "bin/", where it is in the RPMs?
|
# FIXME let this script be in "bin/", where it is in the RPMs?
|
||||||
# http://dev.mysql.com/doc/refman/5.1/en/mysql-install-db-problems.html
|
# http://dev.mysql.com/doc/refman/5.1/en/mysql-install-db-problems.html
|
||||||
mkdir $DEST/scripts
|
mkdir $DEST/scripts
|
||||||
|
@ -448,6 +448,13 @@ $MBD/libtool --mode=execute install -m 755 \
|
|||||||
$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
|
$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
|
||||||
$RBR%{_sbindir}/mysqld-debug
|
$RBR%{_sbindir}/mysqld-debug
|
||||||
|
|
||||||
|
%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0}
|
||||||
|
# Even though this is a shared library, put it under /usr/lib/mysql, so it
|
||||||
|
# doesn't conflict with possible shared lib by the same name in /usr/lib. See
|
||||||
|
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
|
||||||
|
install -m 644 "%{malloc_lib_source}" "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
|
||||||
|
%endif
|
||||||
|
|
||||||
# install saved perror binary with NDB support (BUG#13740)
|
# install saved perror binary with NDB support (BUG#13740)
|
||||||
install -m 755 $MBD/extra/perror $RBR%{_bindir}/perror
|
install -m 755 $MBD/extra/perror $RBR%{_bindir}/perror
|
||||||
|
|
||||||
@ -703,6 +710,10 @@ fi
|
|||||||
|
|
||||||
%attr(755, root, root) %{_libdir}/plugin/*.so*
|
%attr(755, root, root) %{_libdir}/plugin/*.so*
|
||||||
|
|
||||||
|
%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0}
|
||||||
|
%attr(644, root, root) %{_libdir}/mysql/%{malloc_lib_target}
|
||||||
|
%endif
|
||||||
|
|
||||||
%attr(755, root, root) %{_sbindir}/mysqld
|
%attr(755, root, root) %{_sbindir}/mysqld
|
||||||
%attr(755, root, root) %{_sbindir}/mysqld-debug
|
%attr(755, root, root) %{_sbindir}/mysqld-debug
|
||||||
%attr(755, root, root) %{_sbindir}/rcmysql
|
%attr(755, root, root) %{_sbindir}/rcmysql
|
||||||
|
Loading…
x
Reference in New Issue
Block a user