extra/mysql-workbench to 8.0.36-5

This commit is contained in:
Kevin Mihelich 2024-05-14 23:43:33 +00:00
parent b6cb2bf403
commit dded4f5645
3 changed files with 43 additions and 18 deletions

View file

@ -1,7 +1,7 @@
pkgbase = mysql-workbench
pkgdesc = A cross-platform, visual database design tool developed by MySQL
pkgver = 8.0.36
pkgrel = 3
pkgrel = 5
url = https://www.mysql.com/products/workbench/
arch = x86_64
license = GPL2
@ -36,32 +36,34 @@ pkgbase = mysql-workbench
depends = zstd
source = https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-8.0.36-src.tar.gz
source = https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-8.0.36-src.tar.gz.asc
source = https://cdn.mysql.com/Downloads/MySQL-8.3/mysql-8.3.0.tar.gz
source = https://cdn.mysql.com/Downloads/MySQL-8.3/mysql-8.3.0.tar.gz.asc
source = https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-8.3.0-src.tar.gz
source = https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-8.3.0-src.tar.gz.asc
source = https://download.osgeo.org/gdal/3.8.4/gdal-3.8.4.tar.xz
source = https://cdn.mysql.com/Downloads/MySQL-8.4/mysql-8.4.0.tar.gz
source = https://cdn.mysql.com/Downloads/MySQL-8.4/mysql-8.4.0.tar.gz.asc
source = https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-8.4.0-src.tar.gz
source = https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-8.4.0-src.tar.gz.asc
source = https://download.osgeo.org/gdal/3.9.0/gdal-3.9.0.tar.xz
source = https://downloads.sourceforge.net/project/boost/boost/1.77.0/boost_1_77_0.tar.bz2
source = 0001-mysql-workbench-no-check-for-updates.patch
source = 0002-disable-unsupported-operating-system-warning.patch
source = 0003-include-list.patch
source = 0004-libxml2.patch
source = 0005-python-3-12.patch
source = 0006-library-ssh-include.patch
source = arch_linux_profile.xml
validpgpkeys = BCA43417C3B485DD128EC6D4B7B3B788A8D3785C
sha256sums = 634d8a66b6c2777491058a60aba8187e947e4c49a0e7ae83df312fa70714637c
sha256sums = SKIP
sha256sums = 1f21495a0b7a82b24a453d52e2153a814b3ca704eccf999766d545bce52f386e
sha256sums = 47a5433fcdd639db836b99e1b5459c2b813cbdad23ff2b5dd4ad27f792ba918e
sha256sums = SKIP
sha256sums = a17bf1fad12b1ab17f5f6c7766289fb87200e919453234c3ec1664d7734be8f8
sha256sums = 540b3d3b4d20ecf9f900bf55bba870718e50672f54fa2cdb124adf385796ce8b
sha256sums = SKIP
sha256sums = 0c53ced95d29474236487202709b49015854f8e02e35e44ed0f4f4e12a7966ce
sha256sums = 577f80e9d14ff7c90b6bfbc34201652b4546700c01543efb4f4c3050e0b3fda2
sha256sums = fc9f85fc030e233142908241af7a846e60630aa7388de9a5fafb1f3a26840854
sha256sums = cdf687f23bc6e8d52dbee9fa02b23d755e80f88476f0fc2e7c4c71cdfed3792f
sha256sums = 2d0f6dcf38f22e49ef7ab9de0230484f1ffac41b7ac40feaf5ef4538ae2f7a18
sha256sums = e7e66ba68a21a0da87f0513f2b9550359c923a94aa7d16afe6ead063322e3d53
sha256sums = a9f1d3262350b22850f9720647c806be8959f2ed387d0095e6134b7f3251363c
sha256sums = e596ef8ed8479c5052c78fe17139309182d22bfd5765f32866367fd3e787277d
sha256sums = 208ecb77f2ea62340fc77456aab9cfbb89ff78d47d6aa5fde2003a894e4d872d
sha256sums = d816164098c90c432b4fe590708c14f95ab137abfe16ad1b7d498b2e83c0e265
pkgname = mysql-workbench

View file

@ -0,0 +1,12 @@
diff --git a/library/ssh/SSHSftp.cpp b/library/ssh/SSHSftp.cpp
index 1e82876c4..2969fcde6 100644
--- a/library/ssh/SSHSftp.cpp
+++ b/library/ssh/SSHSftp.cpp
@@ -28,6 +28,7 @@
#ifndef _MSC_VER
#include <unistd.h>
#endif
+#include <algorithm>
#include <vector>
#include "SSHSftp.h"

View file

@ -13,10 +13,10 @@ highmem=1
pkgname=mysql-workbench
pkgver=8.0.36
pkgrel=3
_mysql_version=8.3.0
_connector_version=8.3.0
_gdal_version=3.8.4
pkgrel=5
_mysql_version=8.4.0
_connector_version=8.4.0
_gdal_version=3.9.0
_boost_version=1.77.0
# bump the antlr4 version as required, this is to match the jar file name
_antlr4_version=4.13.1
@ -41,22 +41,24 @@ source=("https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community
'0003-include-list.patch'
'0004-libxml2.patch'
'0005-python-3-12.patch'
'0006-library-ssh-include.patch'
'0001-fix-buiild-for-32-bit.patch'
'atomic.patch'
'arch_linux_profile.xml')
sha256sums=('634d8a66b6c2777491058a60aba8187e947e4c49a0e7ae83df312fa70714637c'
'SKIP'
'1f21495a0b7a82b24a453d52e2153a814b3ca704eccf999766d545bce52f386e'
'47a5433fcdd639db836b99e1b5459c2b813cbdad23ff2b5dd4ad27f792ba918e'
'SKIP'
'a17bf1fad12b1ab17f5f6c7766289fb87200e919453234c3ec1664d7734be8f8'
'540b3d3b4d20ecf9f900bf55bba870718e50672f54fa2cdb124adf385796ce8b'
'SKIP'
'0c53ced95d29474236487202709b49015854f8e02e35e44ed0f4f4e12a7966ce'
'577f80e9d14ff7c90b6bfbc34201652b4546700c01543efb4f4c3050e0b3fda2'
'fc9f85fc030e233142908241af7a846e60630aa7388de9a5fafb1f3a26840854'
'cdf687f23bc6e8d52dbee9fa02b23d755e80f88476f0fc2e7c4c71cdfed3792f'
'a9f1d3262350b22850f9720647c806be8959f2ed387d0095e6134b7f3251363c'
'e596ef8ed8479c5052c78fe17139309182d22bfd5765f32866367fd3e787277d'
'2d0f6dcf38f22e49ef7ab9de0230484f1ffac41b7ac40feaf5ef4538ae2f7a18'
'e7e66ba68a21a0da87f0513f2b9550359c923a94aa7d16afe6ead063322e3d53'
'a9f1d3262350b22850f9720647c806be8959f2ed387d0095e6134b7f3251363c'
'e596ef8ed8479c5052c78fe17139309182d22bfd5765f32866367fd3e787277d'
'208ecb77f2ea62340fc77456aab9cfbb89ff78d47d6aa5fde2003a894e4d872d'
'719501bbd1de673767007c429feed2fc48d1176d456161c4ba69cf3165c0438a'
'17294a67637ab7ffff5c39262208e63d21acac72cc2492f616ef1d8e0ae9ac02'
'd816164098c90c432b4fe590708c14f95ab137abfe16ad1b7d498b2e83c0e265')
@ -80,6 +82,9 @@ prepare() {
# fix build with python 3.12
patch -Np1 < "${srcdir}"/0005-python-3-12.patch
# add missing include
patch -Np1 < "${srcdir}"/0006-library-ssh-include.patch
# remove left over requirement on PCRE
sed -i '/PCRE REQUIRED/d' CMakeLists.txt
@ -155,6 +160,12 @@ build() {
make LD_LIBRARY_PATH="${srcdir}/install-bundle/usr/lib/" DESTDIR="${srcdir}/install-bundle/" -C build-gdal install
ln -s '.' "${srcdir}/install-bundle/usr/include/gdal"
# work around crashes on query:
# disable LTO (link time optimization), but for last step (workbench itself) only...
# TODO: drop when fixed!
export CFLAGS="${CFLAGS/-flto=auto/}"
export CXXFLAGS="${CXXFLAGS/-flto=auto}"
# Build MySQL Workbench itself with bundled libs
# include cstdint to fix building with gcc 13
# TODO: remove when fixed upstream