summaryrefslogtreecommitdiff
path: root/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2024-01-21 16:01:50 +0100
committerDirk Meyer <dinoex@FreeBSD.org>2024-01-21 16:01:50 +0100
commit27c87a9897f6db98e8afc07c6584a53f3e8e9e27 (patch)
treeda1e4a0d006f865eac55363409de58fb87217f70 /databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
parentdatabases/rubygem-dbd-mysql: set IGNORE for mysql 8.0 and 8.1 (diff)
databases/rubygem-mysql: fix build with mariadb 10.11 and ruby 3.2
Diffstat (limited to 'databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb')
-rw-r--r--databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb b/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
new file mode 100644
index 000000000000..945358044a3f
--- /dev/null
+++ b/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
@@ -0,0 +1,11 @@
+--- ext/mysql_api/extconf.rb.orig 2024-01-21 14:47:39 UTC
++++ ext/mysql_api/extconf.rb
+@@ -76,6 +76,8 @@ IO.foreach('confout') do |l|
+ next unless l =~ /errmsg\.h|mysqld_error\.h/
+ fn = l.split(/\"/)[1]
+ IO.foreach(fn) do |m|
++ next if m == 'ER_UNKNOWN_ERROR_CODE'
++
+ if m =~ /^#define\s+([CE]R_[0-9A-Z_]+)/ then
+ error_syms << $1
+ end