Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-1704: [GLib] Fix Go example failure #1234

Merged
merged 1 commit into from
Oct 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ci/travis_before_script_c_glib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down