You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2023/05/08 13:12:54 UTC

[GitHub] [arrow-adbc] kou commented on issue #663: ci: Arrow 12.0.0 release breaks GLib builds

kou commented on issue #663:
URL: https://github.com/apache/arrow-adbc/issues/663#issuecomment-1538341195

   We use Conda in ADBC CI.
   
   Anyway, how about this?
   
   ```diff
   diff --git a/glib/Gemfile b/glib/Gemfile
   index e8f8ba3..a84c9e7 100644
   --- a/glib/Gemfile
   +++ b/glib/Gemfile
   @@ -20,5 +20,18 @@
    source "https://rubygems.org/"
    
    gem "gobject-introspection", ">= 4.0.3"
   -gem "red-arrow"
   +red_arrow_version = "> 0"
   +IO.pipe do |input, output|
   +  begin
   +    pid = spawn("pkg-config", "--modversion", "arrow-glib",
   +                out: output,
   +                err: File::NULL)
   +    output.close
   +    Process.waitpid(pid)
   +    arrow_glib_version = input.read.strip.sub(/-SNAPSHOT\z/, "")
   +    red_arrow_version = "<= #{arrow_glib_version}"
   +  rescue SystemCallError
   +  end
   +end
   +gem "red-arrow", red_arrow_version
    gem "test-unit"
   diff --git a/ruby/Gemfile b/ruby/Gemfile
   index c38075c..67aa919 100644
   --- a/ruby/Gemfile
   +++ b/ruby/Gemfile
   @@ -23,5 +23,18 @@ gemspec
    
    gem "bundler"
    gem "rake"
   -gem "red-arrow"
   +red_arrow_version = "> 0"
   +IO.pipe do |input, output|
   +  begin
   +    pid = spawn("pkg-config", "--modversion", "arrow-glib",
   +                out: output,
   +                err: File::NULL)
   +    output.close
   +    Process.waitpid(pid)
   +    arrow_glib_version = input.read.strip.sub(/-SNAPSHOT\z/, "")
   +    red_arrow_version = "<= #{arrow_glib_version}"
   +  rescue SystemCallError
   +  end
   +end
   +gem "red-arrow", red_arrow_version
    gem "test-unit"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org