summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino>2012-05-24 18:54:16 +0000
committermarino <marino>2012-05-24 18:54:16 +0000
commit6d5adcc2f655a7a935d9e09435a6eebe2f99429b (patch)
tree31a50564d1ab2351f74ed00412e1e4d8d37de876
parentd5e16a38f8993c1bb570eea49b6fb979e7664f18 (diff)
downloadpkgsrc-6d5adcc2f655a7a935d9e09435a6eebe2f99429b.tar.gz
databases/mysql-workbench: Fix unportable patch, add DragonFly fix
One patch was hardcoded for NetBSD, return it closer to intention without breaking NetBSD. It's still not great, but a little better.
-rw-r--r--databases/mysql-workbench/distinfo5
-rw-r--r--databases/mysql-workbench/patches/patch-library_base_file_utilities.cpp14
-rw-r--r--databases/mysql-workbench/patches/patch-library_base_international_file.cpp17
3 files changed, 23 insertions, 13 deletions
diff --git a/databases/mysql-workbench/distinfo b/databases/mysql-workbench/distinfo
index 2adf1a89cc0..9f674cbc03b 100644
--- a/databases/mysql-workbench/distinfo
+++ b/databases/mysql-workbench/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2012/05/09 05:38:18 dholland Exp $
+$NetBSD: distinfo,v 1.4 2012/05/24 18:54:16 marino Exp $
SHA1 (mysql-workbench-gpl-5.2.33b-src.tar.gz) = 1d47598fb0f956ce1a0c6b1afb462e8d6beeb1ed
RMD160 (mysql-workbench-gpl-5.2.33b-src.tar.gz) = 60213dd583da6034d5c4f7766b0a7dbafe57100c
@@ -6,7 +6,8 @@ Size (mysql-workbench-gpl-5.2.33b-src.tar.gz) = 17873523 bytes
SHA1 (patch-backend_wbprivate_workbench_stdafx_h) = 3bfeffdbbf7b8c3922ba514c436cb5a6f92c614b
SHA1 (patch-backend_windows_wbprivate_wr_src_stdafx_h) = a42d1c33c627dd52e73f6841d759be5922950984
SHA1 (patch-frontend_linux_linux_utilities_toolbar_manager.cpp) = cc2ecf41802836c1ce799ebdff26ad89b70f3459
-SHA1 (patch-library_base_international_file.cpp) = 55a6910d63b29db1ba8ea6d17bc7c42ac8897162
+SHA1 (patch-library_base_file_utilities.cpp) = af34c32bec2e194b9e8e96c264dd7b036c380978
+SHA1 (patch-library_base_international_file.cpp) = 702e1465cbe2eec2b21d5b308e9c1184edb5c03b
SHA1 (patch-library_canvas_src_mdc__canvas__view__printing_cpp) = 5c3e6c6f63421aa7aa5972a38e4f5b6d87aba71f
SHA1 (patch-library_canvas_src_mdc__canvas__view_h) = 932e1e744ba0663afa0af3d618808fa9448b058a
SHA1 (patch-library_canvas_src_stdafx_h) = 2e10af126271958857bdb77ca400d5e2d7e9a9ce
diff --git a/databases/mysql-workbench/patches/patch-library_base_file_utilities.cpp b/databases/mysql-workbench/patches/patch-library_base_file_utilities.cpp
new file mode 100644
index 00000000000..30d92966c38
--- /dev/null
+++ b/databases/mysql-workbench/patches/patch-library_base_file_utilities.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-library_base_file_utilities.cpp,v 1.1 2012/05/24 18:54:16 marino Exp $
+
+--- library/base/file_utilities.cpp.orig 2011-03-17 12:48:44.000000000 +0000
++++ library/base/file_utilities.cpp
+@@ -31,6 +31,9 @@
+ #include <fcntl.h>
+ #include <sys/file.h>
+ #endif
++#ifdef __DragonFly__
++#include <sys/stat.h>
++#endif
+
+ namespace base {
+
diff --git a/databases/mysql-workbench/patches/patch-library_base_international_file.cpp b/databases/mysql-workbench/patches/patch-library_base_international_file.cpp
index dd3fdb2809e..24b4fb8bf90 100644
--- a/databases/mysql-workbench/patches/patch-library_base_international_file.cpp
+++ b/databases/mysql-workbench/patches/patch-library_base_international_file.cpp
@@ -1,18 +1,13 @@
-$NetBSD: patch-library_base_international_file.cpp,v 1.1.1.1 2011/05/16 12:40:50 adam Exp $
+$NetBSD: patch-library_base_international_file.cpp,v 1.2 2012/05/24 18:54:17 marino Exp $
-Use const string for iconv on all platforms.
-
---- library/base/international_file.cpp.orig 2011-05-16 08:33:28.000000000 +0000
+--- library/base/international_file.cpp.orig 2011-03-17 12:48:42.000000000 +0000
+++ library/base/international_file.cpp
-@@ -257,11 +257,7 @@ boost::int64_t read_char_from_intl_file(
+@@ -257,7 +257,7 @@ boost::int64_t read_char_from_intl_file(
else
{
gunichar utf8_char= g_utf8_get_char(file->next_utf8_char);
-#ifdef _WIN32
++#ifndef __DragonFly__
const char * cur_utf8_char= file->next_utf8_char;
--#else
-- char * cur_utf8_char= file->next_utf8_char;
--#endif
- file->next_utf8_char= g_utf8_next_char(file->next_utf8_char);
-
- *bytes_read= (int) (file->next_utf8_char - cur_utf8_char);
+ #else
+ char * cur_utf8_char= file->next_utf8_char;