agl / pond

Pond
BSD 3-Clause "New" or "Revised" License
912 stars 110 forks source link

Installing pond on arch #22

Closed 0xErnie closed 10 years ago

0xErnie commented 10 years ago

I want to test the pond-client under archlinux.

After installing trousers, go, gtkspell3, mercurial and tor, creating a directory for go and exporting it's path "go get github.com/agl/pond/client" fails:

go get github.com/agl/pond/client
# github.com/agl/go-gtk/gtk
gtk.go: In function '_gtk_widget_get_state':
gtk.go:341:2: error: 'gtk_widget_get_state' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:678): Use 'gtk_widget_get_state_flags' instead [-Werror=deprecated-declarations]
  return gtk_widget_get_state(widget);
  ^
gtk.go: At top level:
gtk.go:785:1: error: 'gtk_status_icon_new_from_stock' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkstatusicon.h:90): Use 'gtk_status_icon_new_from_icon_name' instead [-Werror=deprecated-declarations]
  if b {
 ^
gtk.go:838:1: error: 'gtk_status_icon_get_stock' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkstatusicon.h:118): Use 'gtk_status_icon_get_icon_name' instead [-Werror=deprecated-declarations]
   res[i] = bresponse
 ^
gtk.go:852:1: error: 'gtk_menu_set_tearoff_state' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkmenu.h:194) [-Werror=deprecated-declarations]
 //-----------------------------------------------------------------------
 ^ 

There was no need to edit the PKGBUILD of pond, since it already has the option --with-gui=openssl, see AUR

agl commented 10 years ago

Thanks! It looks like GTK 3.10 deprecated some more functions and go-gtk gets built with -Werror.

You'll need to go get -u github.com/agl/pond/client because github.com/agl/go-gtk also needs to be updated to match up with ff29f90.

agl commented 10 years ago

Please note, I'm currently working on the command line interface so didn't notice that I left testing code in gtk.go with the last commit! Please sync to at least 9f1a1f48, otherwise half the text will be white on a white background!

0xErnie commented 10 years ago

wow, the gui looks way better now!