Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 13:52:15 +0200 (CEST)
From:      Stephane Legrand <stephane@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73194: [maintainer-update] Fix package installation for www/ocaml-net port
Message-ID:  <200410271152.i9RBqFwE034700@sequoia.mondomaineamoi.megalo>
Resent-Message-ID: <200410271200.i9RC0gQj040961@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73194
>Category:       ports
>Synopsis:       [maintainer-update] Fix package installation for www/ocaml-net port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 27 12:00:42 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stephane Legrand
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
  FreeBSD 5.3-STABLE i386

>Description:
  When ocaml-net is installed via its package, the file used by
  OCaml to know where shared libraries are kept is not updated.
  This is a mistake and this patch fixes this problem.

  This should also fix the build of textproc/ocaml-pxp as this port
  depends on www/ocaml-net.

  Please note that this patch adds two new files: 
  pkg-install and pkg-deinstall

>How-To-Repeat:
>Fix:

diff -ruN ocaml-net-098-2/pkg-deinstall ocaml-net/pkg-deinstall
--- ocaml-net-098-2/pkg-deinstall	Thu Jan  1 01:00:00 1970
+++ ocaml-net/pkg-deinstall	Mon Oct 25 15:39:34 2004
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
+grep -v netstring ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
+rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
diff -ruN ocaml-net-098-2/pkg-install ocaml-net/pkg-install
--- ocaml-net-098-2/pkg-install	Thu Jan  1 01:00:00 1970
+++ ocaml-net/pkg-install	Mon Oct 25 15:38:40 2004
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if ! grep "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" ${PKG_PREFIX}/lib/ocaml/ld.conf >/dev/null 2>&1; then
+  echo "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
+fi
>Release-Note:
>Audit-Trail:
>Unformatted:



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