Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
databases/rubygem-mysql: fix build with mariadb 10.11 and ruby 3.2
- Loading branch information
Dirk Meyer
authored and
Dirk Meyer
committed
Jan 21, 2024
1 parent
1f17722
commit 27c87a9
Showing
3 changed files
with
142 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters