From owner-svn-ports-head@FreeBSD.ORG Thu Jul 4 22:49:23 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D96DBBC9; Thu, 4 Jul 2013 22:49:23 +0000 (UTC) (envelope-from flo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CB81012B8; Thu, 4 Jul 2013 22:49:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r64MnNl2074669; Thu, 4 Jul 2013 22:49:23 GMT (envelope-from flo@svn.freebsd.org) Received: (from flo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r64MnMgY074659; Thu, 4 Jul 2013 22:49:22 GMT (envelope-from flo@svn.freebsd.org) Message-Id: <201307042249.r64MnMgY074659@svn.freebsd.org> From: Florian Smeets Date: Thu, 4 Jul 2013 22:49:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r322296 - in head/net/asterisk11: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 22:49:23 -0000 Author: flo Date: Thu Jul 4 22:49:22 2013 New Revision: 322296 URL: http://svnweb.freebsd.org/changeset/ports/322296 Log: - Don't force gcc, make this work with clang, too [1] - Don't call gmake directly [1] - Make the -p (Run as pseudo-realtime thread) work on FreeBSD [1] - Use @dirrmtry for directories that can contain files after deinstall - Fix build of guid_uuid.c [2] PR: ports/180233 [2] Submitted by: tijl [1] Kurt Jaeger [2] Added: head/net/asterisk11/files/patch-include-asterisk-astobj2.h (contents, props changed) head/net/asterisk11/files/patch-include-asterisk-config.h (contents, props changed) head/net/asterisk11/files/patch-include-asterisk-utils.h (contents, props changed) head/net/asterisk11/files/patch-res-pjproject-pjlib-src-pj-guid_uuid.c (contents, props changed) Modified: head/net/asterisk11/Makefile head/net/asterisk11/files/patch-main::utils.c (contents, props changed) head/net/asterisk11/pkg-plist Modified: head/net/asterisk11/Makefile ============================================================================== --- head/net/asterisk11/Makefile Thu Jul 4 22:46:33 2013 (r322295) +++ head/net/asterisk11/Makefile Thu Jul 4 22:49:22 2013 (r322296) @@ -2,7 +2,7 @@ PORTNAME= asterisk PORTVERSION= 11.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ @@ -23,7 +23,7 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-gsm=${LOCALBASE} LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323 -USE_GCC= any +USE_CSTD= gnu89 USE_GMAKE= yes USE_GNOME= libxml2 USES= bison @@ -270,7 +270,7 @@ post-patch: ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample post-configure: - @cd ${WRKSRC} && gmake menuselect.makeopts + @cd ${WRKSRC} && ${GMAKE} menuselect.makeopts @cd ${WRKSRC} && ./menuselect/menuselect --disable res_timing_kqueue menuselect.makeopts .if ${PORT_OPTIONS:MMYSQL} @cd ${WRKSRC} && ./menuselect/menuselect --enable res_config_mysql menuselect.makeopts Added: head/net/asterisk11/files/patch-include-asterisk-astobj2.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/asterisk11/files/patch-include-asterisk-astobj2.h Thu Jul 4 22:49:22 2013 (r322296) @@ -0,0 +1,10 @@ +--- include/asterisk/astobj2.h.orig 2013-07-02 12:30:02.000000000 +0200 ++++ include/asterisk/astobj2.h 2013-07-02 12:31:39.000000000 +0200 +@@ -1472,5 +1472,7 @@ + #else + #define ao2_cleanup(obj) __ao2_cleanup(obj) + #endif ++static inline void ao2_cleanup_cleanup(void *obj) ++ { ao2_cleanup(*(void **)obj); } + void ao2_iterator_cleanup(struct ao2_iterator *iter); + #endif /* _ASTERISK_ASTOBJ2_H */ Added: head/net/asterisk11/files/patch-include-asterisk-config.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/asterisk11/files/patch-include-asterisk-config.h Thu Jul 4 22:49:22 2013 (r322296) @@ -0,0 +1,11 @@ +--- include/asterisk/config.h.orig 2013-07-02 12:26:35.000000000 +0200 ++++ include/asterisk/config.h 2013-07-02 12:29:07.000000000 +0200 +@@ -481,6 +481,8 @@ + * This function frees a list of variables. + */ + void ast_variables_destroy(struct ast_variable *var); ++static inline void ast_variables_destroy_cleanup(struct ast_variable **var) ++ { ast_variables_destroy(*var); } + + /*! + * \brief Register config engine Added: head/net/asterisk11/files/patch-include-asterisk-utils.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/asterisk11/files/patch-include-asterisk-utils.h Thu Jul 4 22:49:22 2013 (r322296) @@ -0,0 +1,13 @@ +--- include/asterisk/utils.h.orig 2013-07-02 11:52:13.000000000 +0200 ++++ include/asterisk/utils.h 2013-07-02 12:32:18.000000000 +0200 +@@ -927,9 +927,6 @@ + * \encode + */ + #define RAII_VAR(vartype, varname, initval, dtor) \ +- /* Prototype needed due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36774 */ \ +- auto void _dtor_ ## varname (vartype * v); \ +- void _dtor_ ## varname (vartype * v) { dtor(*v); } \ +- vartype varname __attribute__((cleanup(_dtor_ ## varname))) = (initval) ++ vartype varname __attribute__((cleanup(dtor ## _cleanup))) = (initval) + + #endif /* _ASTERISK_UTILS_H */ Modified: head/net/asterisk11/files/patch-main::utils.c ============================================================================== --- head/net/asterisk11/files/patch-main::utils.c Thu Jul 4 22:46:33 2013 (r322295) +++ head/net/asterisk11/files/patch-main::utils.c Thu Jul 4 22:49:22 2013 (r322296) @@ -6,7 +6,7 @@ -#ifdef __linux__ - /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, -+#ifdef __linux__ || defined(__FreeBSD__) ++#if defined(__linux__) || defined(__FreeBSD__) + /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED, which is kind of useless. Change this here to PTHREAD_INHERIT_SCHED; that way the -p option to set realtime Added: head/net/asterisk11/files/patch-res-pjproject-pjlib-src-pj-guid_uuid.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/asterisk11/files/patch-res-pjproject-pjlib-src-pj-guid_uuid.c Thu Jul 4 22:49:22 2013 (r322296) @@ -0,0 +1,10 @@ +--- res/pjproject/pjlib/src/pj/guid_uuid.c-orig 2013-07-03 14:46:46.000000000 +0200 ++++ res/pjproject/pjlib/src/pj/guid_uuid.c 2013-07-03 14:47:11.000000000 +0200 +@@ -23,7 +23,7 @@ + #include + #include + +-#include ++#include + + PJ_DEF_DATA(const unsigned) PJ_GUID_STRING_LENGTH=36; Modified: head/net/asterisk11/pkg-plist ============================================================================== --- head/net/asterisk11/pkg-plist Thu Jul 4 22:46:33 2013 (r322295) +++ head/net/asterisk11/pkg-plist Thu Jul 4 22:49:22 2013 (r322296) @@ -1280,8 +1280,8 @@ spool/asterisk/voicemail/default/1234/en @dirrm spool/asterisk/voicemail @dirrm spool/asterisk/tmp @dirrm spool/asterisk -@dirrm log/asterisk/cdr-csv -@dirrm log/asterisk/cdr-custom -@dirrm log/asterisk/cel-custom -@dirrm log/asterisk +@dirrmtry log/asterisk/cdr-csv +@dirrmtry log/asterisk/cdr-custom +@dirrmtry log/asterisk/cel-custom +@dirrmtry log/asterisk @dirrmtry db/asterisk