From marwan.burelle@lri.fr  Wed Apr 13 13:12:39 2005
Return-Path: <marwan.burelle@lri.fr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7624416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Apr 2005 13:12:39 +0000 (GMT)
Received: from lri.lri.fr (lri.lri.fr [129.175.15.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A7A543D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Apr 2005 13:12:39 +0000 (GMT)
	(envelope-from marwan.burelle@lri.fr)
Received: from localhost (localhost [127.0.0.1])
	by lri.lri.fr (Postfix) with ESMTP
	id 394FB19E7F3; Wed, 13 Apr 2005 15:12:38 +0200 (CEST)
Received: from lri.lri.fr ([127.0.0.1])
 by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 25513-09; Wed, 13 Apr 2005 15:12:38 +0200 (CEST)
Received: from pc5-179.lri.fr (pc5-179 [129.175.5.179])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(No client certificate requested)
	by lri.lri.fr (Postfix) with ESMTP
	id 2390319E7DF; Wed, 13 Apr 2005 15:12:38 +0200 (CEST)
Received: from pc5-179.lri.fr (pc5-179.lri.fr [129.175.5.179])
	by pc5-179.lri.fr (8.13.3/8.13.1) with ESMTP id j3DDCbll027830;
	Wed, 13 Apr 2005 15:12:37 +0200 (CEST)
	(envelope-from marwan.burelle@lri.fr)
Message-Id: <1113397957.0@pc5-179.lri.fr>
Date: Wed, 13 Apr 2005 15:12:37 +0200
From: "Marwan Burelle <marwan.burelle@lri.fr>" <marwan.burelle@lri.fr>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc: marwan.burelle@lri.fr
Subject: [maintainer-update] devel/ocaml-pcre : change dependancy to pcre-utf8
X-Send-Pr-Version: gtk-send-pr 0.4.5 
X-GNATS-Notify:

>Number:         79863
>Category:       ports
>Synopsis:       [maintainer-update] devel/ocaml-pcre : change dependancy to pcre-utf8
>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:   Wed Apr 13 13:20:12 GMT 2005
>Closed-Date:    Fri Apr 15 12:15:08 GMT 2005
>Last-Modified:  Fri Apr 15 12:15:08 GMT 2005
>Originator:     Marwan Burelle <marwan.burelle@lri.fr>
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:


System: FreeBSD 5.4-PRERELEASE #0: Thu Mar 17 19:10:49 CET 2005
    root@:/usr/home/obj/usr/src/sys/KER_pc5-179



>Description:


Many ocaml programs assume pcre is built with utf8 support, so I change the dependancy to the slave port of pcre with utf8 enabled.


>How-To-Repeat:





>Fix:


--- diff-ocaml-pcre begins here ---
diff -ruN ocaml-pcre.orig/Makefile ocaml-pcre/Makefile
--- ocaml-pcre.orig/Makefile	Wed Apr 13 13:49:46 2005
+++ ocaml-pcre/Makefile	Wed Apr 13 14:16:54 2005
@@ -17,7 +17,7 @@
 
 BUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml \
 		ocamlfind:${PORTSDIR}/devel/ocaml-findlib
-LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
+LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre-utf8
 
 USE_GMAKE=	yes
 MAKE_ENV=	OCAML_LIB_INSTALL="${PREFIX}/lib/ocaml/site-lib/pcre" \
--- diff-ocaml-pcre ends here ---



>Release-Note:
>Audit-Trail:

From: "Volker Stolz" <vs@freebsd.org>
To: bug-followup@freebsd.org, marwan.burelle@lri.fr
Cc:  
Subject: Re: ports/79863: [maintainer-update] devel/ocaml-pcre : change dependancy to pcre-utf8
Date: Fri, 15 Apr 2005 09:54:39 +0200

 Due to the way LIB_DEPENDS-checking works, you won't notice if the plain  
 pcre-version has already been installed. Will this be a problem? If yes,  
 we'll have to think about how to dinstinguish both pcre-versions, e.g.  
 through a cookie-file.
 
 Volker

From: Marwan Burelle <Marwan.Burelle@lri.fr>
To: Volker Stolz <vs@freebsd.org>
Cc: bug-followup@freebsd.org, marwan.burelle@lri.fr
Subject: Re: ports/79863: [maintainer-update] devel/ocaml-pcre : change dependancy to pcre-utf8
Date: Fri, 15 Apr 2005 11:13:46 +0200

 --oyUTqETQ0mS9luUI
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Apr 15, 2005 at 09:54:39AM +0200, Volker Stolz wrote:
 > Due to the way LIB_DEPENDS-checking works, you won't notice if the plain =
 =20
 > pcre-version has already been installed. Will this be a problem? If yes, =
 =20
 > we'll have to think about how to dinstinguish both pcre-versions, e.g. =
 =20
 > through a cookie-file.
 
 Yes, this is a problem, in fact not for ocaml-pcre itself, but for
 some application using, in especially CDuce (which is important for me
 as I work on it.)
 
 The dependence over pcre with utf8 support was requirement for the
 first version of the port I submit and some people (on ports@, and
 also Thierry Thomas by private mail) suggest using (and creating) a
 slave port pcre-utf8, since the slave port arrives just after that
 discussion, I changed the ocaml-pcre port.
 
 Anyway, instead of cookie-file, we could just test libpcre.so.0 with :
 
    nm ${LOCALBASE}/libpcre.so.0 | grep -i utf8
 
 If utf8 support isn't present, the result is empty.
 
 Is it a safe way (in this case, one can use it's own libpcre) ?
 
    Marwan.
 
 --=20
 Burelle Marwan,
 Equipe Bases de Donnees - LRI
 http://www.cduce.org
 (burelle@lri.fr | Marwan.Burelle@ens.fr)
 
 --oyUTqETQ0mS9luUI
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCX4XKI+2UvUKfgvgRAmF8AJ9uFvYNtcA14tUC8aOChyc2AlmSsACfdLWQ
 Cxw9bSRKiEli3dzqCN4/Xqo=
 =XwjZ
 -----END PGP SIGNATURE-----
 
 --oyUTqETQ0mS9luUI--
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Apr 15 12:14:59 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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