ports/73194: [maintainer-update] Fix package installation for www/ocaml-net port
Stephane Legrand
stephane at FreeBSD.org
Wed Oct 27 12:00:44 UTC 2004
>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:
More information about the freebsd-ports-bugs
mailing list