Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2004 07:40:26 -0700 (PDT)
From:      Stephane Legrand <stephane@FreeBSD.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/66217: [maintainer update] NO_PACKAGE for devel/ocaml-findlib
Message-ID:  <200405071440.i47EeQxi017260@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/66217; it has been noted by GNATS.

From: Stephane Legrand <stephane@FreeBSD.org>
To: Pav Lucistnik <pav@FreeBSD.org>
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}
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405071440.i47EeQxi017260>