Changeset 79cf64a


Ignore:
Timestamp:
2016-06-12T21:15:37Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
6c7c574
Parents:
14f912d
git-author:
Jelmer Vernooij <jelmer@…> (15-05-16 17:12:24)
git-committer:
Wilmer van der Gaast <wilmer@…> (12-06-16 21:15:37)
Message:

Remove the ARCH / CPU defines.

These only reflect on what arch/cpu bitlbee was built, not on which
it is running. This makes the Debian package unreproducible.
See e.g.
https://tests.reproducible-builds.org/rb-pkg/testing/i386/bitlbee.html

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • configure

    r14f912d r79cf64a  
    5454pie=1
    5555
    56 arch=$(uname -s)
    57 cpu=$(uname -m)
    58 
    5956GLIB_MIN_VERSION=2.16
    6057
     
    194191
    195192TARGET=$target
    196 ARCH=$arch
    197 CPU=$cpu
    198193
    199194INSTALL=install -p
     
    242237#define PIDFILE "$pidfile"
    243238#define IPCSOCKET "$ipcsocket"
    244 #define ARCH "$arch"
    245 #define CPU "$cpu"
    246239EOF
    247240
  • debian/changelog

    r14f912d r79cf64a  
     1bitlbee (3.4.2-1) UNRELEASED; urgency=medium
     2
     3  * Make the build reproducible by not encoding ARCH / CPU defines in
     4    the binary.
     5
     6 -- Jelmer Vernooij <jelmer@debian.org>  Sun, 15 May 2016 17:15:13 +0000
     7
    18bitlbee (3.4.1-1) unstable; urgency=medium
    29
  • irc_commands.c

    r14f912d r79cf64a  
    767767static void irc_cmd_version(irc_t *irc, char **cmd)
    768768{
    769         irc_send_num(irc, 351, "%s-%s. %s :%s/%s ",
    770                      PACKAGE, BITLBEE_VERSION, irc->root->host, ARCH, CPU);
     769        irc_send_num(irc, 351, "%s-%s. %s :",
     770                     PACKAGE, BITLBEE_VERSION, irc->root->host);
    771771}
    772772
  • irc_send.c

    r14f912d r79cf64a  
    4141{
    4242        irc_send_num(irc,   1, ":Welcome to the %s gateway, %s", PACKAGE, irc->user->nick);
    43         irc_send_num(irc,   2, ":Host %s is running %s %s %s/%s.", irc->root->host,
    44                      PACKAGE, BITLBEE_VERSION, ARCH, CPU);
     43        irc_send_num(irc,   2, ":Host %s is running %s %s.", irc->root->host,
     44                     PACKAGE, BITLBEE_VERSION);
    4545        irc_send_num(irc,   3, ":%s", IRCD_INFO);
    4646        irc_send_num(irc,   4, "%s %s %s %s", irc->root->host, BITLBEE_VERSION, UMODES UMODES_PRIV, CMODES);
  • irc_user.c

    r14f912d r79cf64a  
    251251        if (g_strcasecmp(ctcp[0], "VERSION") == 0) {
    252252                irc_send_msg_f(iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
    253                                ctcp[0], PACKAGE " " BITLBEE_VERSION " " ARCH "/" CPU);
     253                               ctcp[0], PACKAGE " " BITLBEE_VERSION);
    254254        } else if (g_strcasecmp(ctcp[0], "PING") == 0) {
    255255                irc_send_msg_f(iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
  • lib/http_client.c

    r14f912d r79cf64a  
    9595        request = g_strdup_printf("GET %s HTTP/1.0\r\n"
    9696                                  "Host: %s\r\n"
    97                                   "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n"
     97                                  "User-Agent: BitlBee " BITLBEE_VERSION "\r\n"
    9898                                  "\r\n", url->file, url->host);
    9999
  • protocols/jabber/iq.c

    r14f912d r79cf64a  
    6767                        xt_add_child(reply, xt_new_node("name", set_getstr(&ic->acc->set, "user_agent"), NULL));
    6868                        xt_add_child(reply, xt_new_node("version", BITLBEE_VERSION, NULL));
    69                         xt_add_child(reply, xt_new_node("os", ARCH, NULL));
    7069                } else if (strcmp(s, XMLNS_TIME_OLD) == 0) {
    7170                        time_t time_ep;
  • protocols/twitter/twitter_http.c

    r14f912d r79cf64a  
    7979        g_string_printf(request, "%s %s%s%s%s HTTP/1.1\r\n"
    8080                        "Host: %s\r\n"
    81                         "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CPU "\r\n",
     81                        "User-Agent: BitlBee " BITLBEE_VERSION "\r\n",
    8282                        is_post ? "POST" : "GET",
    8383                        base_url ? base_url->file : td->url_path,
Note: See TracChangeset for help on using the changeset viewer.