From flo@mail.solomo.de  Thu Jul 15 11:06:51 2010
Return-Path: <flo@mail.solomo.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C11EE106564A;
	Thu, 15 Jul 2010 11:06:51 +0000 (UTC)
	(envelope-from flo@mail.solomo.de)
Received: from mail.solomo.de (mail.solomo.de [IPv6:2a01:238:43fa:7100::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 848818FC1E;
	Thu, 15 Jul 2010 11:06:51 +0000 (UTC)
Received: from mail.solomo.de (localhost [127.0.0.1])
	by mail.solomo.de (Postfix) with ESMTP id 7D78D61CE1;
	Thu, 15 Jul 2010 13:06:50 +0200 (CEST)
Received: from mail.solomo.de ([127.0.0.1])
	by mail.solomo.de (mail.solomo.de [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id rZCOFvEvg9rJ; Thu, 15 Jul 2010 13:06:48 +0200 (CEST)
Received: by mail.solomo.de (Postfix, from userid 1001)
	id 4135661CDD; Thu, 15 Jul 2010 13:06:48 +0200 (CEST)
Message-Id: <20100715110648.4135661CDD@mail.solomo.de>
Date: Thu, 15 Jul 2010 13:06:48 +0200 (CEST)
From: Florian Smeets <flo@kasimir.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sobomax@FreeBSD.org
Subject: [PATCH] net/asterisk16: fix asterisk16 compilation with sqlite
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         148630
>Category:       ports
>Synopsis:       [PATCH] net/asterisk16: fix asterisk16 compilation with sqlite
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 11:10:06 UTC 2010
>Closed-Date:    Wed Sep 29 15:32:29 UTC 2010
>Last-Modified:  Wed Sep 29 15:32:29 UTC 2010
>Originator:     Florian Smeets
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD mail.solomo.de 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #13: Tue Jul 13 14:40:06 CEST 2010
>Description:
- rename the clashing function as done in later versions of asterisk 1.6.0.x

Added file(s):
- files/patch-cdr__cdr_sqlite3_custom.c

Port maintainer (sobomax@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- asterisk16-1.6.0.21_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/asterisk16.orig/files/patch-cdr__cdr_sqlite3_custom.c /usr/ports/net/asterisk16/files/patch-cdr__cdr_sqlite3_custom.c
--- /usr/ports/net/asterisk16.orig/files/patch-cdr__cdr_sqlite3_custom.c	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/net/asterisk16/files/patch-cdr__cdr_sqlite3_custom.c	2010-07-15 13:01:47.000000000 +0200
@@ -0,0 +1,20 @@
+--- ./cdr/cdr_sqlite3_custom.c.orig	2010-07-15 11:58:42.000000000 +0200
++++ ./cdr/cdr_sqlite3_custom.c	2010-07-15 11:58:42.000000000 +0200
+@@ -226,7 +226,7 @@
+ 		ast_free(value);
+ }
+ 
+-static int sqlite3_log(struct ast_cdr *cdr)
++static int write_cdr(struct ast_cdr *cdr)
+ {
+ 	int res = 0;
+ 	char *error = NULL;
+@@ -329,7 +329,7 @@
+ 		}
+ 	}
+ 
+-	res = ast_cdr_register(name, desc, sqlite3_log);
++	res = ast_cdr_register(name, desc, write_cdr);
+ 	if (res) {
+ 		ast_log(LOG_ERROR, "Unable to register custom SQLite3 CDR handling\n");
+ 		free_config(0);
--- asterisk16-1.6.0.21_4.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sobomax 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jul 15 11:10:18 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148630 
Class-Changed-From-To: change-request->maintainer-update 
Class-Changed-By: linimon 
Class-Changed-When: Fri Sep 17 08:35:38 UTC 2010 
Class-Changed-Why:  
Submitter is now the new maintainer, so change assignment and class. 

Hat:		portmgr 


Responsible-Changed-From-To: sobomax->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Sep 17 08:35:38 UTC 2010 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=148630 
State-Changed-From-To: open->closed 
State-Changed-By: tota 
State-Changed-When: Wed Sep 29 15:26:24 UTC 2010 
State-Changed-Why:  
It become useless because ports/146964 has been committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148630 
>Unformatted:
