Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2016 14:01:27 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429615 - in head/net-im/telegram: . files
Message-ID:  <201612271401.uBRE1Rpt021267@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cpm
Date: Tue Dec 27 14:01:27 2016
New Revision: 429615
URL: https://svnweb.freebsd.org/changeset/ports/429615

Log:
  net-im/telegram: Update to 1.4.1.g20161227
  
  - Update telegram 1.3.1 -> 1.4.1.g20161227
  
  PR:		215064
  Reported by:	Matthias Apitz <guru@unixarea.de>
  Reviewed by:	amdmi3
  Approved by:	amdmi3, feld (mentors)

Added:
  head/net-im/telegram/files/
  head/net-im/telegram/files/patch-Makefile.in   (contents, props changed)
  head/net-im/telegram/files/patch-lua-tg.c   (contents, props changed)
  head/net-im/telegram/files/patch-tgl_mtproto-utils.c   (contents, props changed)
  head/net-im/telegram/files/patch-tgl_tl-parser_portable__endian.h   (contents, props changed)
Modified:
  head/net-im/telegram/Makefile
  head/net-im/telegram/distinfo

Modified: head/net-im/telegram/Makefile
==============================================================================
--- head/net-im/telegram/Makefile	Tue Dec 27 13:19:30 2016	(r429614)
+++ head/net-im/telegram/Makefile	Tue Dec 27 14:01:27 2016	(r429615)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	telegram
-PORTVERSION=	1.3.1
-PORTREVISION=	1
+PORTVERSION=	1.4.1.g20161227
 CATEGORIES=	net-im
 
 MAINTAINER=	cpm@FreeBSD.org
@@ -26,7 +25,7 @@ GNU_CONFIGURE=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	vysheng
 GH_PROJECT=	tg tgl:tgl tl-parser:tlparser
-GH_TAGNAME=	2.0.1:tgl 1659d87:tlparser
+GH_TAGNAME=	6547c0b ffb04ca:tgl 36bf190:tlparser
 GH_SUBDIR=	tgl:tgl tgl/tl-parser:tlparser
 
 PLIST_FILES=	bin/telegram-cli \

Modified: head/net-im/telegram/distinfo
==============================================================================
--- head/net-im/telegram/distinfo	Tue Dec 27 13:19:30 2016	(r429614)
+++ head/net-im/telegram/distinfo	Tue Dec 27 14:01:27 2016	(r429615)
@@ -1,6 +1,7 @@
-SHA256 (vysheng-tg-1.3.1_GH0.tar.gz) = b70b1d8b97b44086b64e467f81c6aceb8263092c26a8cf1a7d717eb1b5360415
-SIZE (vysheng-tg-1.3.1_GH0.tar.gz) = 278051
-SHA256 (vysheng-tgl-2.0.1_GH0.tar.gz) = 549bbfc46715bae31b50a54cc21eefd61109cd28dcdddbe4e53726aec3d924f1
-SIZE (vysheng-tgl-2.0.1_GH0.tar.gz) = 250488
-SHA256 (vysheng-tl-parser-1659d87_GH0.tar.gz) = 6b9538b0c3be3bb25e4f4750ecbea42ce7be58b005a3eeb372b9d15fbaa92e0b
-SIZE (vysheng-tl-parser-1659d87_GH0.tar.gz) = 78615
+TIMESTAMP = 1482845149
+SHA256 (vysheng-tg-1.4.1.g20161227-6547c0b_GH0.tar.gz) = 1e70d800d46e92ab71360db4fee8b63512d682986aa4d8d90adf49219ec17928
+SIZE (vysheng-tg-1.4.1.g20161227-6547c0b_GH0.tar.gz) = 307276
+SHA256 (vysheng-tgl-ffb04ca_GH0.tar.gz) = 2a2aafe6366e3a4c7df2af916c015fa0c0200094e785e69396ca6ff0ef612cd4
+SIZE (vysheng-tgl-ffb04ca_GH0.tar.gz) = 240798
+SHA256 (vysheng-tl-parser-36bf190_GH0.tar.gz) = 9c4222cfc39f1f58061678c2a22dac5d2391e2594d4ec00e5ab9a7c12e606789
+SIZE (vysheng-tl-parser-36bf190_GH0.tar.gz) = 66898

Added: head/net-im/telegram/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram/files/patch-Makefile.in	Tue Dec 27 14:01:27 2016	(r429615)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2016-03-23 11:42:53 UTC
++++ Makefile.in
+@@ -6,7 +6,7 @@ CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@
+ DEFS=@DEFS@
+ COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
+ EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
+-LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${EXTRA_LIBS} -ldl -lpthread -lutil
++LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${EXTRA_LIBS} -lpthread -lutil
+ LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
+ 
+ DEP=dep

Added: head/net-im/telegram/files/patch-lua-tg.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram/files/patch-lua-tg.c	Tue Dec 27 14:01:27 2016	(r429615)
@@ -0,0 +1,15 @@
+--- lua-tg.c.orig	2016-12-27 02:26:05 UTC
++++ lua-tg.c
+@@ -661,9 +661,9 @@ struct lua_arg {
+ struct lua_arg lua_ptr[MAX_LUA_COMMANDS];
+ static int pos;
+ 
+-static inline tgl_peer_t *get_peer (const char *s) { 
+-  return tgl_peer_get_by_name (TLS, s);
+-}
++// static inline tgl_peer_t *get_peer (const char *s) { 
++//   return tgl_peer_get_by_name (TLS, s);
++// }
+   
+ enum lua_query_type {
+   lq_contact_list,

Added: head/net-im/telegram/files/patch-tgl_mtproto-utils.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram/files/patch-tgl_mtproto-utils.c	Tue Dec 27 14:01:27 2016	(r429615)
@@ -0,0 +1,22 @@
+--- tgl/mtproto-utils.c.orig	2016-03-23 11:42:06 UTC
++++ tgl/mtproto-utils.c
+@@ -98,9 +98,7 @@ static unsigned long long BN2ull (TGLC_b
+   if (sizeof (unsigned long) == 8) {
+     return TGLC_bn_get_word (b);
+   } else if (sizeof (unsigned long long) == 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);
+     return be64toh (tmp);
+   } else {
+@@ -112,9 +110,7 @@ static void ull2BN (TGLC_bn *b, unsigned
+   if (sizeof (unsigned long) == 8 || val < (1ll << 32)) {
+     TGLC_bn_set_word (b, val);
+   } else if (sizeof (unsigned long long) == 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);
+   } else {
+     assert (0);

Added: head/net-im/telegram/files/patch-tgl_tl-parser_portable__endian.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram/files/patch-tgl_tl-parser_portable__endian.h	Tue Dec 27 14:01:27 2016	(r429615)
@@ -0,0 +1,18 @@
+--- tgl/tl-parser/portable_endian.h.orig	2015-10-17 13:33:25 UTC
++++ tgl/tl-parser/portable_endian.h
+@@ -53,6 +53,7 @@
+ 
+ #	include <sys/endian.h>
+ 
++#if !defined(__FreeBSD__)
+ #	define be16toh(x) betoh16(x)
+ #	define le16toh(x) letoh16(x)
+ 
+@@ -61,6 +62,7 @@
+ 
+ #	define be64toh(x) betoh64(x)
+ #	define le64toh(x) letoh64(x)
++#endif /* !defined(__FreeBSD__) */
+ 
+ #elif defined(__WINDOWS__)
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612271401.uBRE1Rpt021267>