Dann's patch appears to be incomplete. I applied this patch in Ubuntu. NMUable debdiff attached.
SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127
diff -Nru bip-0.8.6/debian/changelog bip-0.8.6/debian/changelog --- bip-0.8.6/debian/changelog 2010-09-12 18:58:56.000000000 +0200 +++ bip-0.8.6/debian/changelog 2010-09-26 17:51:41.000000000 +0200 @@ -1,3 +1,12 @@ +bip (0.8.6-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Patch armel-rename-user: sys/user.h on armel has a conflicting definition + of 'struct user'. Rename bip's structure to avoid the conflict. + Thanks to Dann Frazier (Closes: #597262) + + -- Stefano Rivera <stef...@rivera.za.net> Sun, 26 Sep 2010 17:50:42 +0200 + bip (0.8.6-1) unstable; urgency=low * New upstream release (Closes: #595409). diff -Nru bip-0.8.6/debian/patches/armel-rename-user bip-0.8.6/debian/patches/armel-rename-user --- bip-0.8.6/debian/patches/armel-rename-user 1970-01-01 02:00:00.000000000 +0200 +++ bip-0.8.6/debian/patches/armel-rename-user 2010-09-26 17:24:09.000000000 +0200 @@ -0,0 +1,203 @@ +Description: sys/user.h on armel has a conflicting definition of 'struct user'. + This patch renames bip's structure to avoid the conflict. +Author: dann frazier <da...@debian.org>, Stefano Rivera <stef...@rivera.za.net> +Origin: http://bugs.debian.org/597262 +Bug-Debian: http://bugs.debian.org/597262 +--- a/src/irc.h ++++ b/src/irc.h +@@ -58,7 +58,7 @@ + #define IRC_TYPE_LOGING_CLIENT (2) + #define IRC_TYPE_TRUST_CLIENT (3) + +-struct user { ++struct bipuser { + /** client connection static data **/ + + char *name; +@@ -139,7 +139,7 @@ + hash_t chan_infos; /* channels we want */ + list_t chan_infos_order; /* for order only */ + +- struct user *user; ++ struct bipuser *user; + + /** server connection static data **/ + /* server list */ +--- a/src/log.c ++++ b/src/log.c +@@ -1195,7 +1195,7 @@ + } + } + +-log_t *log_new(struct user *user, const char *network) ++log_t *log_new(struct bipuser *user, const char *network) + { + log_t *logdata; + +--- a/src/log.h ++++ b/src/log.h +@@ -59,10 +59,10 @@ + int backlogging; + int lastfile_seeked; + +- struct user *user; ++ struct bipuser *user; + } log_t; + +-log_t *log_new(struct user *user, const char *network); ++log_t *log_new(struct bipuser *user, const char *network); + void logdata_free(log_t *logdata); + + void log_join(log_t *logdata, const char *ircmask, const char *channel); +--- a/src/bip.c ++++ b/src/bip.c +@@ -56,7 +56,7 @@ + void conf_die(bip_t *bip, char *fmt, ...); + static char *get_tuple_pvalue(list_t *tuple_l, int lex); + void bip_notify(struct link_client *ic, char *fmt, ...); +-void adm_list_connections(struct link_client *ic, struct user *bu); ++void adm_list_connections(struct link_client *ic, struct bipuser *bu); + void free_conf(list_t *l); + + #ifdef HAVE_OIDENTD +@@ -386,7 +386,7 @@ + + void adm_bip_delconn(bip_t *bip, struct link_client *ic, const char *conn_name) + { +- struct user *user = LINK(ic)->user; ++ struct bipuser *user = LINK(ic)->user; + struct link *l; + + if (!(l = hash_get(&user->connections, conn_name))) { +@@ -401,7 +401,7 @@ + void adm_bip_addconn(bip_t *bip, struct link_client *ic, const char *conn_name, + const char *network_name) + { +- struct user *user = LINK(ic)->user; ++ struct bipuser *user = LINK(ic)->user; + struct network *network; + + /* check name uniqueness */ +@@ -452,7 +452,7 @@ + bip_notify(ic, "connection added, you should soon be able to connect"); + } + +-static int add_connection(bip_t *bip, struct user *user, list_t *data) ++static int add_connection(bip_t *bip, struct bipuser *user, list_t *data) + { + struct tuple *t, *t2; + struct link *l; +@@ -663,7 +663,7 @@ + { + int r; + struct tuple *t; +- struct user *u; ++ struct bipuser *u; + char *name = get_tuple_pvalue(data, LEX_NAME); + list_t connection_list, *cl; + +@@ -675,7 +675,7 @@ + } + u = hash_get(&bip->users, name); + if (!u) { +- u = bip_calloc(sizeof(struct user), 1); ++ u = bip_calloc(sizeof(struct bipuser), 1); + hash_insert(&bip->users, name, u); + hash_init(&u->connections, HASH_NOCASE); + u->admin = 0; +@@ -809,7 +809,7 @@ + { + /* nick username realname or default_{nick,username,realname} in user */ + hash_iterator_t it, sit, cit; +- struct user *user; ++ struct bipuser *user; + struct link *link; + struct chan_info *ci; + int r = 1; +@@ -881,10 +881,10 @@ + ((struct link *)list_it_item(&lit))->in_use = 0; + for (hash_it_init(&bip->users, &hit); hash_it_item(&hit); + hash_it_next(&hit)) +- ((struct user *)hash_it_item(&hit))->in_use = 0; ++ ((struct bipuser *)hash_it_item(&hit))->in_use = 0; + } + +-void user_kill(bip_t *bip, struct user *user) ++void user_kill(bip_t *bip, struct bipuser *user) + { + (void)bip; + if (!hash_is_empty(&user->connections)) +@@ -920,7 +920,7 @@ + } + for (hash_it_init(&bip->users, &hit); hash_it_item(&hit); + hash_it_next(&hit)) { +- struct user *u = (struct user *)hash_it_item(&hit); ++ struct bipuser *u = (struct bipuser *)hash_it_item(&hit); + if (!u->in_use) { + hash_it_remove(&hit); + user_kill(bip, u); +@@ -1332,7 +1332,7 @@ + #define RET_STR_LEN 256 + #define LINE_SIZE_LIM 70 + void adm_print_connection(struct link_client *ic, struct link *lnk, +- struct user *bu) ++ struct bipuser *bu) + { + hash_iterator_t lit; + char buf[RET_STR_LEN + 1]; +@@ -1500,7 +1500,7 @@ + bip_notify(ic, "-- All connections"); + for (hash_it_init(&_bip->users, &it); hash_it_item(&it); + hash_it_next(&it)) { +- struct user *u = hash_it_item(&it); ++ struct bipuser *u = hash_it_item(&it); + if (u) + adm_list_connections(ic, u); + } +@@ -1511,7 +1511,7 @@ + + void adm_info_user(struct link_client *ic, const char *name) + { +- struct user *u; ++ struct bipuser *u; + char buf[RET_STR_LEN + 1]; + int t_written = 0; + +@@ -1575,7 +1575,7 @@ + bip_notify(ic, "-- User list"); + for (hash_it_init(&_bip->users, &it); hash_it_item(&it); + hash_it_next(&it)) { +- struct user *u = hash_it_item(&it); ++ struct bipuser *u = hash_it_item(&it); + int first = 1; + int t_written = 0; + +@@ -1664,7 +1664,7 @@ + bip_notify(ic, "-- End of Network list"); + } + +-void adm_list_connections(struct link_client *ic, struct user *bu) ++void adm_list_connections(struct link_client *ic, struct bipuser *bu) + { + hash_iterator_t it; + connection_t *c; +--- a/src/irc.c ++++ b/src/irc.c +@@ -515,7 +515,7 @@ + /* send join and related stuff to client */ + static void irc_send_join(struct link_client *ic, struct channel *chan) + { +- struct user *user; ++ struct bipuser *user; + char *ircmask; + + user = LINK(ic)->user; +@@ -669,7 +669,7 @@ + + void irc_cli_backlog(struct link_client *ic, int hours) + { +- struct user *user; ++ struct bipuser *user; + + user = LINK(ic)->user; + assert(user); diff -Nru bip-0.8.6/debian/patches/series bip-0.8.6/debian/patches/series --- bip-0.8.6/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ bip-0.8.6/debian/patches/series 2010-09-26 16:45:06.000000000 +0200 @@ -0,0 +1 @@ +armel-rename-user
signature.asc
Description: Digital signature