Actually H (capital) is more correct than i. H is an unsigned short.
Check out /usr/include/X11/Xauth.h
typedef struct xauth {
unsigned short family;
unsigned short address_length;
char *address;
unsigned short number_length;
char *number;
unsigned short name_length;
char *name;
unsigned short data_length;
char *data;
} Xauth;
It should be an unsigned short (H) instead of just a short (h). Int (i) happens to work as well but unsigned short is more correct.
For those who just want sabayon to work do
sudo nano +276 /usr/lib/pymodules/python2.7/sabayon/protosession.py
and make the h's into H's so it looks like
pack_format = ">HH%dsH%dsH%dsH%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)
Actually H (capital) is more correct than i. H is an unsigned short.
Check out /usr/include/ X11/Xauth. h
typedef struct xauth {
unsigned short family;
unsigned short address_length;
char *address;
unsigned short number_length;
char *number;
unsigned short name_length;
char *name;
unsigned short data_length;
char *data;
} Xauth;
It should be an unsigned short (H) instead of just a short (h). Int (i) happens to work as well but unsigned short is more correct.
For those who just want sabayon to work do pymodules/ python2. 7/sabayon/ protosession. py
sudo nano +276 /usr/lib/
and make the h's into H's so it looks like
pack_format = ">HH%dsH%dsH%dsH%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)