* [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch
@ 2020-07-14 16:31 Fabrice Fontaine
2020-07-14 16:31 ` [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib Fabrice Fontaine
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2020-07-14 16:31 UTC (permalink / raw)
To: buildroot
Renumber patch added by commit 94bad4fbf5759302a9f8f33267989d543f3a1167
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/oracle-mysql/{0008-gcc7.patch => 0009-gcc7.patch} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename package/oracle-mysql/{0008-gcc7.patch => 0009-gcc7.patch} (100%)
diff --git a/package/oracle-mysql/0008-gcc7.patch b/package/oracle-mysql/0009-gcc7.patch
similarity index 100%
rename from package/oracle-mysql/0008-gcc7.patch
rename to package/oracle-mysql/0009-gcc7.patch
--
2.27.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib 2020-07-14 16:31 [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Fabrice Fontaine @ 2020-07-14 16:31 ` Fabrice Fontaine 2020-07-22 7:00 ` Peter Korsgaard 2020-07-14 20:04 ` [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Thomas Petazzoni 2020-07-22 7:00 ` Peter Korsgaard 2 siblings, 1 reply; 5+ messages in thread From: Fabrice Fontaine @ 2020-07-14 16:31 UTC (permalink / raw) To: buildroot As spotted by Thomas Petazzoni during review of https://patchwork.ozlabs.org/project/buildroot/patch/20200713215943.2240412-1-fontaine.fabrice at gmail.com, oracle-mysql uses its bundled version of zlib if it is not found on the system So explictly disable zlib if needed and add a patch fixing build failures without it Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> --- .../0010-fix-build-without-zlib.patch | 50 +++++++++++++++++++ package/oracle-mysql/oracle-mysql.mk | 3 ++ 2 files changed, 53 insertions(+) create mode 100644 package/oracle-mysql/0010-fix-build-without-zlib.patch diff --git a/package/oracle-mysql/0010-fix-build-without-zlib.patch b/package/oracle-mysql/0010-fix-build-without-zlib.patch new file mode 100644 index 0000000000..515369718f --- /dev/null +++ b/package/oracle-mysql/0010-fix-build-without-zlib.patch @@ -0,0 +1,50 @@ +fix build without zlib + +Don't include unconditionally zlib.h + +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> +diff -durN mysql-5.1.73.orig/mysys/checksum.c mysql-5.1.73/mysys/checksum.c +--- mysql-5.1.73.orig/mysys/checksum.c 2020-07-14 17:34:38.212304432 +0200 ++++ mysql-5.1.73/mysys/checksum.c 2020-07-14 18:06:45.076342493 +0200 +@@ -16,7 +16,9 @@ + + #include <my_global.h> + #include <my_sys.h> ++#ifdef HAVE_COMPRESS + #include <zlib.h> ++#endif + + /* + Calculate a long checksum for a memoryblock. +diff -durN mysql-5.1.73.orig/sql/item_strfunc.cc mysql-5.1.73/sql/item_strfunc.cc +--- mysql-5.1.73.orig/sql/item_strfunc.cc 2020-07-14 17:34:38.160304431 +0200 ++++ mysql-5.1.73/sql/item_strfunc.cc 2020-07-14 18:04:36.956339962 +0200 +@@ -35,7 +35,9 @@ + #include "my_md5.h" + #include "sha1.h" + #include "my_aes.h" ++#ifdef HAVE_COMPRESS + #include <zlib.h> ++#endif + C_MODE_START + #include "../mysys/my_static.h" // For soundex_map + C_MODE_END +diff -durN mysql-5.1.73.orig/sql/sql_table.cc mysql-5.1.73/sql/sql_table.cc +--- mysql-5.1.73.orig/sql/sql_table.cc 2020-07-14 17:34:38.156304431 +0200 ++++ mysql-5.1.73/sql/sql_table.cc 2020-07-14 18:14:48.628352044 +0200 +@@ -1681,6 +1681,7 @@ + goto end; + } + } ++#ifdef HAVE_COMPRESS + if (flags & WFRM_PACK_FRM) + { + /* +@@ -1702,6 +1703,7 @@ + } + error= my_delete(shadow_frm_name, MYF(MY_WME)); + } ++#endif + if (flags & WFRM_INSTALL_SHADOW) + { + #ifdef WITH_PARTITION_STORAGE_ENGINE diff --git a/package/oracle-mysql/oracle-mysql.mk b/package/oracle-mysql/oracle-mysql.mk index 8a8613a3d1..1449c58e41 100644 --- a/package/oracle-mysql/oracle-mysql.mk +++ b/package/oracle-mysql/oracle-mysql.mk @@ -68,6 +68,9 @@ endif ifeq ($(BR2_PACKAGE_ZLIB),y) ORACLE_MYSQL_DEPENDENCIES += zlib +ORACLE_MYSQL_CONF_OPTS += --with-zlib-dir=$(STAGING_DIR)/usr +else +ORACLE_MYSQL_CONF_OPTS += --without-zlib-dir endif ifeq ($(BR2_PACKAGE_ORACLE_MYSQL_SERVER),y) -- 2.27.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib 2020-07-14 16:31 ` [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib Fabrice Fontaine @ 2020-07-22 7:00 ` Peter Korsgaard 0 siblings, 0 replies; 5+ messages in thread From: Peter Korsgaard @ 2020-07-22 7:00 UTC (permalink / raw) To: buildroot >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes: > As spotted by Thomas Petazzoni during review of > https://patchwork.ozlabs.org/project/buildroot/patch/20200713215943.2240412-1-fontaine.fabrice at gmail.com, > oracle-mysql uses its bundled version of zlib if it is not found on the > system > So explictly disable zlib if needed and add a patch fixing build > failures without it > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Committed to 2020.02.x and 2020.05.x, thanks. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch 2020-07-14 16:31 [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Fabrice Fontaine 2020-07-14 16:31 ` [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib Fabrice Fontaine @ 2020-07-14 20:04 ` Thomas Petazzoni 2020-07-22 7:00 ` Peter Korsgaard 2 siblings, 0 replies; 5+ messages in thread From: Thomas Petazzoni @ 2020-07-14 20:04 UTC (permalink / raw) To: buildroot On Tue, 14 Jul 2020 18:31:51 +0200 Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote: > Renumber patch added by commit 94bad4fbf5759302a9f8f33267989d543f3a1167 > > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> > --- > package/oracle-mysql/{0008-gcc7.patch => 0009-gcc7.patch} | 0 > 1 file changed, 0 insertions(+), 0 deletions(-) > rename package/oracle-mysql/{0008-gcc7.patch => 0009-gcc7.patch} (100%) Both applied, thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch 2020-07-14 16:31 [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Fabrice Fontaine 2020-07-14 16:31 ` [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib Fabrice Fontaine 2020-07-14 20:04 ` [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Thomas Petazzoni @ 2020-07-22 7:00 ` Peter Korsgaard 2 siblings, 0 replies; 5+ messages in thread From: Peter Korsgaard @ 2020-07-22 7:00 UTC (permalink / raw) To: buildroot >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes: > Renumber patch added by commit 94bad4fbf5759302a9f8f33267989d543f3a1167 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Committed to 2020.02.x and 2020.05.x, thanks. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-07-22 7:00 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-07-14 16:31 [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Fabrice Fontaine 2020-07-14 16:31 ` [Buildroot] [PATCH 2/2] package/oracle-mysql: don't use bundled zlib Fabrice Fontaine 2020-07-22 7:00 ` Peter Korsgaard 2020-07-14 20:04 ` [Buildroot] [PATCH 1/2] package/oracle-mysql: renumber patch Thomas Petazzoni 2020-07-22 7:00 ` Peter Korsgaard
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.