deepin-api (golang) 编译错误: undefined: glib.Source

我也是无聊,又弄这货。

[   64s] /usr/lib64/go/1.14/pkg/tool/linux_amd64/compile -o $WORK/b230/_pkg_.a -trimpath "$WORK/b230=>" -shared -p pkg.deepin.io/dde/api/powersupply -complete -installsuffix shared -buildid EMTK6a6E1jyTiQK4WDgC/EMTK6a6E1jyTiQK4WDgC -goversion go1.14.15 -D "" -importcfg $WORK/b230/importcfg -pack ./powersupply.go
[   64s] # pkg.deepin.io/gir/gio-2.0
[   64s] ../contrib/src/pkg.deepin.io/gir/gio-2.0/gio.go:1504:40: undefined: glib.Source
[   64s] ../contrib/src/pkg.deepin.io/gir/gio-2.0/gio.go:1510:12: undefined: glib.Source
[   64s] ../contrib/src/pkg.deepin.io/gir/gio-2.0/gio.go:1513:11: undefined: glib.Source

https://build.opensuse.org/package/show/home:hillwood:branches:X11:Deepin:Factory/deepin-api

已解决。是 go-gir-generator 不支持高版本 glib 导致,有补丁。

1赞