From owner-freebsd-ports-bugs@freebsd.org Mon Dec 5 06:33:36 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A73ACC6710E for ; Mon, 5 Dec 2016 06:33:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FCB48E4 for ; Mon, 5 Dec 2016 06:33:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB56XaS9097430 for ; Mon, 5 Dec 2016 06:33:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215064] net-im/telegram: update to upstream version 1.4.1 Date: Mon, 05 Dec 2016 06:33:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: cpm@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 06:33:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215064 Bug ID: 215064 Summary: net-im/telegram: update to upstream version 1.4.1 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: cpm@freebsd.org Reporter: guru@unixarea.de Assignee: cpm@freebsd.org Flags: maintainer-feedback?(cpm@freebsd.org) the port should be updated to the version 1.4.1 available at: https://github.com/vysheng/tg/archive/master.zip https://github.com/vysheng/tg.git I got it compiled and running on 11-CURRENT amd64 with the following change= s in the sources: *** tg/tgl/tl-parser/portable_endian.h.orig 2016-12-02 21:16:58.5592770= 00 +0100 --- tg/tgl/tl-parser/portable_endian.h 2016-12-02 21:17:15.223912000 +0100 *************** *** 53,58 **** --- 53,59 ---- # include + /* # define be16toh(x) betoh16(x) # define le16toh(x) letoh16(x) *************** *** 61,66 **** --- 62,68 ---- # define be64toh(x) betoh64(x) # define le64toh(x) letoh64(x) + */ #elif defined(__WINDOWS__) *** tg/tgl/mtproto-utils.c.orig 2016-11-30 10:05:22.000000000 +0100 --- tg/tgl/mtproto-utils.c 2016-11-30 10:58:57.000000000 +0100 *************** *** 98,104 **** if (sizeof (unsigned long) =3D=3D 8) { return TGLC_bn_get_word (b); } else if (sizeof (unsigned long long) =3D=3D 8) { ! assert (0); // As long as nobody ever uses this code, assume it is broken. unsigned long long tmp; /* Here be dragons, but it should be okay due to be64toh */ TGLC_bn_bn2bin (b, (unsigned char *) &tmp); --- 98,104 ---- if (sizeof (unsigned long) =3D=3D 8) { return TGLC_bn_get_word (b); } else if (sizeof (unsigned long long) =3D=3D 8) { ! // assert (0); // As long as nobody ever uses this code, assume it is broken. unsigned long long tmp; /* Here be dragons, but it should be okay due to be64toh */ TGLC_bn_bn2bin (b, (unsigned char *) &tmp); *************** *** 112,118 **** if (sizeof (unsigned long) =3D=3D 8 || val < (1ll << 32)) { TGLC_bn_set_word (b, val); } else if (sizeof (unsigned long long) =3D=3D 8) { ! assert (0); // As long as nobody ever uses this code, assume it is broken. htobe64(val); /* Here be dragons, but it should be okay due to htobe64 */ TGLC_bn_bin2bn ((unsigned char *) &val, 8, b); --- 112,118 ---- if (sizeof (unsigned long) =3D=3D 8 || val < (1ll << 32)) { TGLC_bn_set_word (b, val); } else if (sizeof (unsigned long long) =3D=3D 8) { ! // assert (0); // As long as nobody ever uses this code, assume it is broken. htobe64(val); /* Here be dragons, but it should be okay due to htobe64 */ TGLC_bn_bin2bn ((unsigned char *) &val, 8, b); *** tg/Makefile.in.orig 2016-11-30 10:05:04.000000000 +0100 --- tg/Makefile.in 2016-12-03 09:27:23.065984000 +0100 *************** *** 6,12 **** DEFS=3D@DEFS@ COMPILE_FLAGS=3D${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -W= extra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -f= PIC EXTRA_LIBS=3D@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@ ! LOCAL_LDFLAGS=3D-rdynamic -ggdb -levent ${EXTRA_LIBS} -ldl -lpthread -lut= il LINK_FLAGS=3D${LDFLAGS} ${LOCAL_LDFLAGS} DEP=3Ddep --- 6,12 ---- DEFS=3D@DEFS@ COMPILE_FLAGS=3D${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -W= extra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -f= PIC EXTRA_LIBS=3D@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@ ! LOCAL_LDFLAGS=3D-rdynamic -ggdb -levent ${EXTRA_LIBS} -lpthread -lutil LINK_FLAGS=3D${LDFLAGS} ${LOCAL_LDFLAGS} DEP=3Ddep --=20 You are receiving this mail because: You are the assignee for the bug.=