Skip to content

Apache DataFusion SQL Query Engine

ARROW-1704: [GLib] Fix Go example failure

Kouhei Sutou9b156087832f
diff --git a/ci/travis_before_script_c_glib.sh b/ci/travis_before_script_c_glib.sh
index 01ef9e8e76..a63945e174 100755
--- a/ci/travis_before_script_c_glib.sh
+++ b/ci/travis_before_script_c_glib.sh
@@ -59,12 +59,22 @@ fi
if [ $BUILD_SYSTEM = "autotools" ]; then
go get github.com/linuxdeepin/go-gir-generator || :
pushd $GOPATH/src/github.com/linuxdeepin/go-gir-generator
+
+ # For old GObject Introspection.
+ # We can remove this when we use more later Ubuntu.
+ mv lib.in/glib-2.0/config.json{,.orig}
+ sed \
+ -e 's/\("unref_to_array"\)/"get_data", \1/g' \
+ lib.in/glib-2.0/config.json.orig > lib.in/glib-2.0/config.json
+
+ # Workaround. TODO: We should send a patch to go-gir-generator.
rm lib.in/gio-2.0/gdk_workaround.go
mv lib.in/gio-2.0/config.json{,.orig}
sed \
-e 's/\("Settings",\)/\/\/ \1/g' \
-e 's/\("SettingsBackend",\)/\/\/ \1/g' \
lib.in/gio-2.0/config.json.orig > lib.in/gio-2.0/config.json
+
mv Makefile{,.orig}
sed -e 's/ gudev-1.0//' Makefile.orig > Makefile
mkdir -p out/src/gir/gudev-1.0