summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2004-08-20 15:52:16 +0200
committerunknown <lenz@mysql.com>2004-08-20 15:52:16 +0200
commit1c90c388a437c3c022e2c24c95fb9edb3c775e2a (patch)
tree71d839ce3aae55444576b204b79a6d48ce679709 /support-files
parentba72b450bd8f8dd5fde94b6e70232d59760ba1df (diff)
downloadmariadb-git-1c90c388a437c3c022e2c24c95fb9edb3c775e2a.tar.gz
- do not link statically on our IA64 and AMD64 build hosts, as
static linking against an unpatched glibc 2.3 is causing trouble - add "glibc23" to the release suffix in this case - re-ordered the Changelog that was messed up by a BK merge (RPM is picky about this)
Diffstat (limited to 'support-files')
-rw-r--r--support-files/mysql.spec.sh39
1 files changed, 23 insertions, 16 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index c13ee6774e3..6ec05433bef 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -1,5 +1,9 @@
%define mysql_version @VERSION@
-%define release 0
+%ifarch i386
+%define release 0
+%else
+%define release 0.glibc23
+%endif
%define mysqld_user mysql
%define server_suffix -standard
@@ -77,9 +81,8 @@ The MySQL web site (http://www.mysql.com/) provides the latest
news and information about the MySQL software. Also please see the
documentation and the manual for more information.
-This package includes the MySQL server binary (statically linked,
-compiled with InnoDB support) as well as related utilities to run
-and administrate a MySQL server.
+This package includes the MySQL server binary (incl. InnoDB) as well
+as related utilities to run and administrate a MySQL server.
If you want to access and work with the database, you have to install
package "MySQL-client" as well!
@@ -189,9 +192,6 @@ client/server version.
%setup -n mysql-%{mysql_version}
%build
-# The all-static flag is to make the RPM work on different
-# distributions. This version tries to put shared mysqlclient libraries
-# in a separate package.
BuildMySQL() {
# The --enable-assembler simply does nothing on systems that does not
@@ -306,15 +306,17 @@ mv Docs/manual.ps Docs/manual.ps.save
make clean
mv Docs/manual.ps.save Docs/manual.ps
-# RPM:s destroys Makefile.in files, so we generate them here
-# aclocal; autoheader; aclocal; automake; autoconf
-# (cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
-
-# Now build the statically linked 4.0 binary (which includes InnoDB)
+#
+# Only link statically on our i386 build host (which has a specially
+# patched static glibc installed) - ia64 and x86_64 run glibc-2.3 (unpatched)
+# so don't link statically there
+#
BuildMySQL "--disable-shared \
+%ifarch i386
--with-mysqld-ldflags='-all-static' \
--with-client-ldflags='-all-static' \
$USE_OTHER_LIBC_DIR \
+%endif
--with-server-suffix='%{server_suffix}' \
--without-embedded-server \
--without-berkeley-db \
@@ -594,6 +596,11 @@ fi
# The spec file changelog only includes changes made to the spec file
# itself
%changelog
+* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
+
+- do not link statically on IA64/AMD64 as these systems do not have
+ a patched glibc installed
+
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
- Added libmygcc.a to the devel subpackage (required to link applications
@@ -603,10 +610,6 @@ fi
- Added EXCEPTIONS-CLIENT to the "devel" package
-* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
-
-- added ncurses-devel to the build prerequisites (BUG 3377)
-
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
- disabled OpenSSL in the Max binaries again (the RPM packages were the
@@ -622,6 +625,10 @@ fi
- added mysql_tzinfo_to_sql to the server subpackage
- run "make clean" instead of "make distclean"
+* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
+
+- added ncurses-devel to the build prerequisites (BUG 3377)
+
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
- when using gcc, _always_ use CXX=gcc