Hi
Last week I tried to compile last mysql 5 with innodb but was
surprised by the name of the openpkg option: with-innobase. I searched
the mysql.spec file and found the option
was passed as is to mysql configure that has no knowlege about this name.
Mysql expect the option --with-innodb and dont know --with-innobase
Here are some grep in configure and CURRENT spec file to show the problem
[EMAIL PROTECTED] tmp]# grep "with.*inno" mysql-5.0.45/configure
--without-innodb Do not include the InnoDB table handler
lib_DEPENDENCIES="\$(bdb_libs_with_path) \$(innodb_libs)
\$(ndbcluster_libs) \$(pstack_libs) \$(innodb_system_libs)
\$(openssl_libs) \$(yassl_libs)"
# Check whether --with-innodb or --without-innodb was given.
if test "${with_innodb+set}" = set; then
withval="$with_innodb"
[EMAIL PROTECTED] tmp]# grep "with.*inno" mysql.spec
%option with_innobase yes
%if "%{with_innobase}" == "yes"
--with-innobase \
--without-innobase \
%if "%{with_innobase}" == "yes"
-e '/<\/\{0,1\}with_innobase>/d' \
-e '/<with_innobase>/,/<\/with_innobase>/d' \
Here my patch to apply to mysql-5.0.45-20070712
Regards
*** mysql.spec.orig Thu Aug 2 22:17:09 2007
--- mysql.spec Thu Aug 2 22:18:48 2007
***************
*** 44,50 ****
# package options
%option with_server yes
%option with_bdb yes
! %option with_innobase yes
%option with_archive no
%option with_blackhole no
%option with_federated no
--- 44,50 ----
# package options
%option with_server yes
%option with_bdb yes
! %option with_innodb yes
%option with_archive no
%option with_blackhole no
%option with_federated no
***************
*** 133,142 ****
%else
--without-berkeley-db \
%endif
! %if "%{with_innobase}" == "yes"
! --with-innobase \
%else
! --without-innobase \
%endif
%if "%{with_archive}" == "yes"
--with-archive-storage-engine \
--- 133,142 ----
%else
--without-berkeley-db \
%endif
! %if "%{with_innodb}" == "yes"
! --with-innodb \
%else
! --without-innodb \
%endif
%if "%{with_archive}" == "yes"
--with-archive-storage-engine \
***************
*** 221,230 ****
%else
-e '/<with_bdb>/,/<\/with_bdb>/d' \
%endif
! %if "%{with_innobase}" == "yes"
! -e '/<\/\{0,1\}with_innobase>/d' \
%else
! -e '/<with_innobase>/,/<\/with_innobase>/d' \
%endif
%{SOURCE my.cnf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/mysql/
--- 221,230 ----
%else
-e '/<with_bdb>/,/<\/with_bdb>/d' \
%endif
! %if "%{with_innodb}" == "yes"
! -e '/<\/\{0,1\}with_innodb>/d' \
%else
! -e '/<with_innodb>/,/<\/with_innodb>/d' \
%endif
%{SOURCE my.cnf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/mysql/
--
Alain Spineux
aspineux gmail com
May the sources be with you
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List [email protected]