Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2017 18:27:19 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454258 - in head/net/pjsip: . files
Message-ID:  <201711151827.vAFIRJpB097569@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Wed Nov 15 18:27:19 2017
New Revision: 454258
URL: https://svnweb.freebsd.org/changeset/ports/454258

Log:
  - Update pjsip to 2.7.1
  - Import patches from the asterisk project
  - Regenrate patches
  
  Security:	19b052c9-c533-11e7-8da5-001999f8d30b
  MFH:		2017Q4

Added:
  head/net/pjsip/files/patch-pjsip_src_pjsip_sip__parser.c   (contents, props changed)
  head/net/pjsip/files/patch-pjsip_src_pjsip_sip__transport.c   (contents, props changed)
Modified:
  head/net/pjsip/Makefile
  head/net/pjsip/distinfo
  head/net/pjsip/files/patch-aconfigure
  head/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in
  head/net/pjsip/files/patch-third__party_build_os-auto.mak.in
  head/net/pjsip/pkg-plist

Modified: head/net/pjsip/Makefile
==============================================================================
--- head/net/pjsip/Makefile	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/Makefile	Wed Nov 15 18:27:19 2017	(r454258)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	pjsip
-PORTVERSION=	2.7
-PORTREVISION=	1
+PORTVERSION=	2.7.1
 CATEGORIES=	net
 MASTER_SITES=	http://www.pjsip.org/release/${PORTVERSION}/
 DISTNAME=	pjproject-${DISTVERSION}

Modified: head/net/pjsip/distinfo
==============================================================================
--- head/net/pjsip/distinfo	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/distinfo	Wed Nov 15 18:27:19 2017	(r454258)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1507196337
-SHA256 (pjproject-2.7.tar.bz2) = 1c80621a11c39151b3c2511f06abc8ef031fc712bb2f9e9923b5301b04b28f6b
-SIZE (pjproject-2.7.tar.bz2) = 4875407
+TIMESTAMP = 1510760850
+SHA256 (pjproject-2.7.1.tar.bz2) = 59fabc62a02b2b80857297cfb10e2c68c473f4a0acc6e848cfefe8421f2c3126
+SIZE (pjproject-2.7.1.tar.bz2) = 4880007

Modified: head/net/pjsip/files/patch-aconfigure
==============================================================================
--- head/net/pjsip/files/patch-aconfigure	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/files/patch-aconfigure	Wed Nov 15 18:27:19 2017	(r454258)
@@ -1,6 +1,6 @@
---- aconfigure.orig	2017-01-25 11:23:08 UTC
+--- aconfigure.orig	2017-11-01 05:23:36 UTC
 +++ aconfigure
-@@ -6310,14 +6310,7 @@ $as_echo "Checking sound device backend... null sound"
+@@ -6362,14 +6362,7 @@ $as_echo "Checking sound device backend... null sound"
  	;;
    *)
  		ac_pjmedia_snd=alsa
@@ -15,7 +15,7 @@
  
  
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
-@@ -6941,7 +6934,7 @@ else
+@@ -7022,7 +7015,7 @@ else
  			FFMPEG_PREFIX=$with_ffmpeg
  			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
  $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
@@ -24,7 +24,7 @@
  		fi
  
  		for ac_prog in pkg-config "python pkgconfig.py"
-@@ -8493,7 +8486,7 @@ $as_echo "Checking if libwebrtc is disabled...no" >&6;
+@@ -8669,7 +8662,7 @@ $as_echo "Checking if libwebrtc is disabled...no" >&6;
  			ac_webrtc_instset=sse2
  			ac_webrtc_cflags="-msse2"
  			;;

Modified: head/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in
==============================================================================
--- head/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in	Wed Nov 15 18:27:19 2017	(r454258)
@@ -1,6 +1,6 @@
---- pjmedia/build/os-auto.mak.in.orig	2016-08-25 01:36:33 UTC
+--- pjmedia/build/os-auto.mak.in.orig	2017-09-22 02:42:22 UTC
 +++ pjmedia/build/os-auto.mak.in
-@@ -215,50 +215,7 @@ export CFLAGS += -I$(THIRD_PARTY)/webrtc/src
+@@ -220,50 +220,7 @@ export CFLAGS += -I$(THIRD_PARTY)/webrtc/src
  endif
  endif
  

Added: head/net/pjsip/files/patch-pjsip_src_pjsip_sip__parser.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pjsip/files/patch-pjsip_src_pjsip_sip__parser.c	Wed Nov 15 18:27:19 2017	(r454258)
@@ -0,0 +1,20 @@
+--- pjsip/src/pjsip/sip_parser.c.orig	2017-11-08 02:58:18 UTC
++++ pjsip/src/pjsip/sip_parser.c
+@@ -834,13 +834,13 @@ PJ_DEF(pj_status_t) pjsip_find_msg( const char *buf, p
+ 				  pj_bool_t is_datagram, pj_size_t *msg_size)
+ {
+ #if PJ_HAS_TCP
+-    const char *hdr_end;
+-    const char *body_start;
++    const char *volatile hdr_end;
++    const char *volatile body_start;
+     const char *pos;
+-    const char *line;
++    const char *volatile line;
+     int content_length = -1;
+     pj_str_t cur_msg;
+-    pj_status_t status = PJ_SUCCESS;
++    volatile pj_status_t status = PJSIP_EMISSINGHDR;
+     const pj_str_t end_hdr = { "\n\r\n", 3};
+ 
+     *msg_size = size;

Added: head/net/pjsip/files/patch-pjsip_src_pjsip_sip__transport.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pjsip/files/patch-pjsip_src_pjsip_sip__transport.c	Wed Nov 15 18:27:19 2017	(r454258)
@@ -0,0 +1,25 @@
+--- pjsip/src/pjsip/sip_transport.c.orig	2017-11-08 02:58:18 UTC
++++ pjsip/src/pjsip/sip_transport.c
+@@ -974,7 +974,21 @@ static pj_bool_t is_transport_valid(pjsip_transport *t
+ 				    const pjsip_transport_key *key,
+ 				    int key_len)
+ {
+-    return (pj_hash_get(tpmgr->table, key, key_len, NULL) == (void*)tp);
++    transport *tp_iter;
++
++    if (pj_hash_get(tpmgr->table, key, key_len, NULL) == (void*)tp) {
++        return PJ_TRUE;
++    }
++
++    tp_iter = tpmgr->tp_list.next;
++    while (tp_iter != &tpmgr->tp_list) {
++        if (tp_iter->tp == tp) {
++            return PJ_TRUE;
++        }
++        tp_iter = tp_iter->next;
++    }
++
++    return PJ_FALSE;
+ }
+ 
+ /*

Modified: head/net/pjsip/files/patch-third__party_build_os-auto.mak.in
==============================================================================
--- head/net/pjsip/files/patch-third__party_build_os-auto.mak.in	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/files/patch-third__party_build_os-auto.mak.in	Wed Nov 15 18:27:19 2017	(r454258)
@@ -1,6 +1,6 @@
---- third_party/build/os-auto.mak.in.orig	2016-12-22 09:33:55 UTC
+--- third_party/build/os-auto.mak.in.orig	2017-09-22 02:42:22 UTC
 +++ third_party/build/os-auto.mak.in
-@@ -104,8 +104,7 @@ else ifneq ($(findstring mips,@ac_webrtc_instset@),)
+@@ -112,8 +112,7 @@ else ifneq ($(findstring mips,@ac_webrtc_instset@),)
  else # Generic fixed point
      WEBRTC_SRC = \
  	      modules/audio_processing/aecm/aecm_core_c.o                \

Modified: head/net/pjsip/pkg-plist
==============================================================================
--- head/net/pjsip/pkg-plist	Wed Nov 15 17:30:56 2017	(r454257)
+++ head/net/pjsip/pkg-plist	Wed Nov 15 18:27:19 2017	(r454258)
@@ -14,6 +14,7 @@ include/pj/compat/cc_mwcc.h
 include/pj/compat/ctype.h
 include/pj/compat/errno.h
 include/pj/compat/high_precision.h
+include/pj/compat/limits.h
 include/pj/compat/m_alpha.h
 include/pj/compat/m_armv4.h
 include/pj/compat/m_auto.h
@@ -59,6 +60,7 @@ include/pj/guid.h
 include/pj/hash.h
 include/pj/ioqueue.h
 include/pj/ip_helper.h
+include/pj/limits.h
 include/pj/list_i.h
 include/pj/list.h
 include/pj/lock.h



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