From owner-freebsd-ports@FreeBSD.ORG Fri Dec 7 05:27:16 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D338716A418 for ; Fri, 7 Dec 2007 05:27:16 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB0713C459 for ; Fri, 7 Dec 2007 05:27:16 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:Subject:From:X-Attribution:Date:Message-Id; b=VEBsdo9sG/YuZ6cwDtt9NjKMrmU0Yu0opUliTKvAQMRDZmVqoiMwTCjI7L12i0MULmRQRVPyTV2uLf9SQOxJZ0y05uS/w1hmMrsW54SDnWITlU1tkNI+wLlrY9/AF0m4Jf/L1RqW6myE7ychR6fux0UTDspdIlBOPXyqhDd5WEDpdXjsyvJKZP1cPKmIo5v6eNAKniJWe3YK8ZTEub/WbBOl7Lc5fMWqMSFSPJ/KCM5pgI3OZsZuf6/xxU+Rdu4M; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1J0VHs-0005ac-0n for ports@freebsd.org; Fri, 07 Dec 2007 04:58:08 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1J0VHX-0000Ia-1d for ports@freebsd.org; Fri, 07 Dec 2007 04:57:47 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1J0VHV-0001xL-2d for ports@freebsd.org; Fri, 07 Dec 2007 06:57:45 +0200 To: ports@freebsd.org From: Ian FREISLICH X-Attribution: BOFH Date: Fri, 07 Dec 2007 06:57:45 +0200 Message-Id: Cc: Subject: (PATCH) asterisk-addons and zaptel ports (for 7-x) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2007 05:27:17 -0000 Hi The net/asterist-addons port is marked as broken for >7.0 because it doesn't compile. While this is true, the folling patch solves the problem. It fails to install though with this error: gmake[1]: Entering directory `/usr/ports/net/asterisk-addons/work/asterisk-addons-1.4.4/asterisk-ooh323c' cp .libs/libchan_h323.so /usr/local/lib/asterisk/modules/chan_ooh323.so cp: .libs/libchan_h323.so: No such file or directory gmake[1]: *** [install] Error 1 gmake[1]: Leaving directory `/usr/ports/net/asterisk-addons/work/asterisk-addons-1.4.4/asterisk-ooh323c' Simply symlinking .libs/libchan_h323.so.1.1 to .libs/libchan_h323.so in that diretory allows it to install. I don't know enough about gmake/configure to fix this part. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/asterisk-addons/Makefile,v retrieving revision 1.7 diff -u -d -r1.7 Makefile --- Makefile 28 Jul 2007 09:16:08 -0000 1.7 +++ Makefile 6 Dec 2007 12:48:09 -0000 @@ -6,7 +6,7 @@ # PORTNAME= asterisk-addons -PORTVERSION= 1.4.2 +PORTVERSION= 1.4.4 CATEGORIES= net MASTER_SITES= http://ftp.digium.com/pub/asterisk/releases/ @@ -26,9 +26,9 @@ .include -.if ${OSVERSION} >= 700000 -BROKEN= Does not build on 7-CURRENT -.endif +#.if ${OSVERSION} >= 700000 +#BROKEN= Does not build on 7-CURRENT +#.endif .if defined(WITH_SAMPLE_CONFIG) PLIST_SUB+= SAMPLE_CONFIG="" Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/asterisk-addons/distinfo,v retrieving revision 1.4 diff -u -d -r1.4 distinfo --- distinfo 6 Jul 2007 02:24:25 -0000 1.4 +++ distinfo 27 Nov 2007 13:45:59 -0000 @@ -1,3 +1,3 @@ -MD5 (asterisk-addons-1.4.2.tar.gz) = c080b02e6ddc81dab6a64691af890805 -SHA256 (asterisk-addons-1.4.2.tar.gz) = 6d12a1a73cfe0cb14c960e422d0d3c261740857d2a86785f08cf89d44574cc82 -SIZE (asterisk-addons-1.4.2.tar.gz) = 1000286 +MD5 (asterisk-addons-1.4.4.tar.gz) = a25f4908ea122eeee4df7e0697fe5dfb +SHA256 (asterisk-addons-1.4.4.tar.gz) = 888fe9ac84862b887e78f8ec4a83bc891897702ab123f05309ff117e55b6645b +SIZE (asterisk-addons-1.4.4.tar.gz) = 1002173 The Zaptel driver locks up on FreeBSD-7.0. The following patch to the port fixes the problem: Index: files/patch-zaptel::zaptel.c =================================================================== RCS file: /home/ncvs/ports/misc/zaptel/files/patch-zaptel::zaptel.c,v retrieving revision 1.3 diff -u -d -r1.3 patch-zaptel::zaptel.c --- files/patch-zaptel::zaptel.c 29 Jan 2007 18:59:51 -0000 1.3 +++ files/patch-zaptel::zaptel.c 6 Dec 2007 10:36:03 -0000 @@ -9,3 +9,14 @@ switch(rc) { case EINTR: +--- zaptel/zaptel.c.orig 2007-12-05 14:39:49.000000000 +0200 ++++ zaptel/zaptel.c 2007-12-05 14:40:10.000000000 +0200 +@@ -675,7 +675,7 @@ + /* Free dev_info, if exist */ + if(dev->si_drv2) free(dev->si_drv2, M_ZAP); + dev->si_drv2 = NULL; +- destroy_dev(dev); ++ destroy_dev_sched(dev); + return res; + } + Ian -- Ian Freislich