From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 7 07:40:28 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 070A816A4CE for ; Fri, 7 May 2004 07:40:28 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A26543D41 for ; Fri, 7 May 2004 07:40:27 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i47EeR7n017261 for ; Fri, 7 May 2004 07:40:27 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i47EeQxi017260; Fri, 7 May 2004 07:40:26 -0700 (PDT) (envelope-from gnats) Date: Fri, 7 May 2004 07:40:26 -0700 (PDT) Message-Id: <200405071440.i47EeQxi017260@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Stephane Legrand Subject: Re: ports/66217: [maintainer update] NO_PACKAGE for devel/ocaml-findlib X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stephane Legrand List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 14:40:28 -0000 The following reply was made to PR ports/66217; it has been noted by GNATS. From: Stephane Legrand To: Pav Lucistnik Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: ports/66217: [maintainer update] NO_PACKAGE for devel/ocaml-findlib Date: Fri, 7 May 2004 16:39:37 +0200 On Tue, May 04, 2004 at 10:42:58AM +0200, Pav Lucistnik wrote: > V út, 04. 05. 2004 v 00:21, Stephane Legrand píše: > > > > We can't build those meta files and package them? > > > > I don't know all the tricky details but my understanding is that > > it would be difficult. Notably because these META files seem dependent > > on the compiler options (x11/no x11, tk/no tk, threads support, > > whatever...). > > This is not the problem, packages are expected to reflect the system > they were built on, not the system they are being installed into. > > I suppose a port have some default options (x11,tk,threads) and > installing port on clean installation of FreeBSD would produce these > default options. Package will have same default options. You are right. Here is my new patch: diff -ruN ocaml-findlib-orig/Makefile ocaml-findlib/Makefile --- ocaml-findlib-orig/Makefile Thu May 6 22:54:56 2004 +++ ocaml-findlib/Makefile Thu May 6 23:21:04 2004 @@ -13,7 +13,7 @@ MASTER_SITES= http://www.ocaml-programming.de/packages/ PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= stephane@FreeBSD.org COMMENT= OCaml package manager BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml @@ -29,6 +29,13 @@ post-install: @${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type f | \ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} + +# this list comes from the findlib configure script +.for D in dbm dynlink graphics num num-top str threads unix stdlib bigarray labltk camlp4 + @${FIND} ${PREFIX}/lib/ocaml/site-lib/$D -type f -name META | \ + ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} +.endfor + @${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type d | ${SORT} -r | \ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}