Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Dec 2016 06:33:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215064] net-im/telegram: update to upstream version 1.4.1
Message-ID:  <bug-215064-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 <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) =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.=



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