[Bug 215064] net-im/telegram: update to upstream version 1.4.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Dec 5 06:33:36 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215064
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 at freebsd.org
Reporter: guru at unixarea.de
Assignee: cpm at freebsd.org
Flags: maintainer-feedback?(cpm at 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 changes in
the sources:
*** tg/tgl/tl-parser/portable_endian.h.orig 2016-12-02 21:16:58.559277000
+0100
--- tg/tgl/tl-parser/portable_endian.h 2016-12-02 21:17:15.223912000 +0100
***************
*** 53,58 ****
--- 53,59 ----
# include <sys/endian.h>
+ /*
# 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) == 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);
--- 98,104 ----
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);
***************
*** 112,118 ****
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);
--- 112,118 ----
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);
*** 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=@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
LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
DEP=dep
--- 6,12 ----
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} -lpthread -lutil
LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
DEP=dep
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list