aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-05-20 23:02:45 +0200
committerMarius Halden <marius.h@lden.org>2016-05-20 23:02:45 +0200
commit36e282c49b0dc22ea31c157cf9f8268d44814e06 (patch)
tree384d97562fb4a66b46566522765891ab4284ef7b
parentdbb146b273dccad03e1aa5561926b808e104e3f0 (diff)
parentd3b99b6f68a7b030c653c4086de7bbba76a30636 (diff)
Merge branch 'master' into patched-master
-rwxr-xr-xconfigure7
-rw-r--r--debian/changelog8
-rw-r--r--debian/control3
-rw-r--r--irc_commands.c4
-rw-r--r--irc_send.c4
-rw-r--r--irc_user.c2
-rw-r--r--lib/http_client.c2
-rw-r--r--protocols/jabber/iq.c1
-rw-r--r--protocols/twitter/twitter_http.c2
9 files changed, 17 insertions, 16 deletions
diff --git a/configure b/configure
index 381370f0..48ba506e 100755
--- a/configure
+++ b/configure
@@ -57,9 +57,6 @@ ldap=0
pie=1
-arch=$(uname -s)
-cpu=$(uname -m)
-
GLIB_MIN_VERSION=2.16
# Cygwin and Darwin don't support PIC/PIE
@@ -201,8 +198,6 @@ INCLUDEDIR=$includedir
PCDIR=$pcdir
TARGET=$target
-ARCH=$arch
-CPU=$cpu
INSTALL=install -p
@@ -249,8 +244,6 @@ cat<<EOF >config.h
#define PLUGINDIR "$plugindir"
#define PIDFILE "$pidfile"
#define IPCSOCKET "$ipcsocket"
-#define ARCH "$arch"
-#define CPU "$cpu"
EOF
diff --git a/debian/changelog b/debian/changelog
index 1b3b6cb8..8e423588 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+bitlbee (3.4.2-1) UNRELEASED; urgency=medium
+
+ * Make the build reproducible by not encoding ARCH / CPU defines in
+ the binary.
+ * Fix Vcs-* control headers after migration to Git.
+
+ -- Jelmer Vernooij <jelmer@debian.org> Sun, 15 May 2016 17:15:13 +0000
+
bitlbee (3.4.1-1) unstable; urgency=medium
* Fix copyright info (Closes: #764181)
diff --git a/debian/control b/debian/control
index 435d8d06..d5283d6e 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: Jelmer Vernooij <jelmer@debian.org>
Standards-Version: 3.9.5
Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls28-dev | libgnutls-dev | gnutls-dev, po-debconf, libpurple-dev, libotr5-dev, debhelper (>= 6.0.7~)
Homepage: http://www.bitlbee.org/
-Vcs-Bzr: http://code.bitlbee.org/bitlbee/
+Vcs-Git: https://github.com/bitlbee/bitlbee
+Vcs-Browser: https://github.com/bitlbee/bitlbee
Package: bitlbee
Architecture: any
diff --git a/irc_commands.c b/irc_commands.c
index 2696eb11..01b1d821 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -775,8 +775,8 @@ static void irc_cmd_list(irc_t *irc, char **cmd)
static void irc_cmd_version(irc_t *irc, char **cmd)
{
- irc_send_num(irc, 351, "%s-%s. %s :%s/%s ",
- PACKAGE, BITLBEE_VERSION, irc->root->host, ARCH, CPU);
+ irc_send_num(irc, 351, "%s-%s. %s :",
+ PACKAGE, BITLBEE_VERSION, irc->root->host);
}
static void irc_cmd_completions(irc_t *irc, char **cmd)
diff --git a/irc_send.c b/irc_send.c
index 2a8d4f74..fd85f1ee 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -40,8 +40,8 @@ void irc_send_num(irc_t *irc, int code, char *format, ...)
void irc_send_login(irc_t *irc)
{
irc_send_num(irc, 1, ":Welcome to the %s gateway, %s", PACKAGE, irc->user->nick);
- irc_send_num(irc, 2, ":Host %s is running %s %s %s/%s.", irc->root->host,
- PACKAGE, BITLBEE_VERSION, ARCH, CPU);
+ irc_send_num(irc, 2, ":Host %s is running %s %s.", irc->root->host,
+ PACKAGE, BITLBEE_VERSION);
irc_send_num(irc, 3, ":%s", IRCD_INFO);
irc_send_num(irc, 4, "%s %s %s %s", irc->root->host, BITLBEE_VERSION, UMODES UMODES_PRIV, CMODES);
irc_send_num(irc, 5, "PREFIX=(qaohv)~&@%%+ CHANTYPES=%s CHANMODES=,,,%s NICKLEN=%d CHANNELLEN=%d "
diff --git a/irc_user.c b/irc_user.c
index cded8bf8..72e401d0 100644
--- a/irc_user.c
+++ b/irc_user.c
@@ -250,7 +250,7 @@ static gboolean root_ctcp(irc_user_t *iu, char * const *ctcp)
{
if (g_strcasecmp(ctcp[0], "VERSION") == 0) {
irc_send_msg_f(iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
- ctcp[0], PACKAGE " " BITLBEE_VERSION " " ARCH "/" CPU);
+ ctcp[0], PACKAGE " " BITLBEE_VERSION);
} else if (g_strcasecmp(ctcp[0], "PING") == 0) {
irc_send_msg_f(iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
ctcp[0], ctcp[1] ? : "");
diff --git a/lib/http_client.c b/lib/http_client.c
index 2369d018..1836ba20 100644
--- a/lib/http_client.c
+++ b/lib/http_client.c
@@ -94,7 +94,7 @@ struct http_request *http_dorequest_url(char *url_string, http_input_function fu
request = g_strdup_printf("GET %s HTTP/1.0\r\n"
"Host: %s\r\n"
- "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n"
+ "User-Agent: BitlBee " BITLBEE_VERSION "\r\n"
"\r\n", url->file, url->host);
ret = http_dorequest(url->host, url->port,
diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c
index a001ce8c..2fa418fe 100644
--- a/protocols/jabber/iq.c
+++ b/protocols/jabber/iq.c
@@ -66,7 +66,6 @@ xt_status jabber_pkt_iq(struct xt_node *node, gpointer data)
if (strcmp(s, XMLNS_VERSION) == 0) {
xt_add_child(reply, xt_new_node("name", set_getstr(&ic->acc->set, "user_agent"), NULL));
xt_add_child(reply, xt_new_node("version", BITLBEE_VERSION, NULL));
- xt_add_child(reply, xt_new_node("os", ARCH, NULL));
} else if (strcmp(s, XMLNS_TIME_OLD) == 0) {
time_t time_ep;
char buf[1024];
diff --git a/protocols/twitter/twitter_http.c b/protocols/twitter/twitter_http.c
index c06cac39..94826fc6 100644
--- a/protocols/twitter/twitter_http.c
+++ b/protocols/twitter/twitter_http.c
@@ -78,7 +78,7 @@ struct http_request *twitter_http(struct im_connection *ic, char *url_string, ht
// Make the request.
g_string_printf(request, "%s %s%s%s%s HTTP/1.1\r\n"
"Host: %s\r\n"
- "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n",
+ "User-Agent: BitlBee " BITLBEE_VERSION "\r\n",
is_post ? "POST" : "GET",
base_url ? base_url->file : td->url_path,
base_url ? "" : url_string,