pkgsrc/devel/ocaml-findlib/patches/patch-configure
jaapb 81a59252b9 Patch to devel/ocaml-findlib to not install num library
The num library was split off from ocaml. ocamlfind installs META files
for it if it is detected, but this is not the correct behaviour. This
patch disables detection, which is needed if package updates are to work.
2018-01-22 11:14:43 +00:00

43 lines
919 B
Text

$NetBSD: patch-configure,v 1.4 2018/01/22 11:14:43 jaapb Exp $
Do not install META files for libraries that were split off
--- configure.orig 2017-06-05 14:32:28.000000000 +0000
+++ configure
@@ -514,25 +514,25 @@ fi
# dbm?
-if [ -f "${ocaml_core_stdlib}/dbm.cmi" ]; then
- echo "dbm: found"
- ldbm="dbm"
-else
- echo "dbm: not present (normal since OCaml-4.00)"
+#if [ -f "${ocaml_core_stdlib}/dbm.cmi" ]; then
+# echo "dbm: found"
+# ldbm="dbm"
+#else
+# echo "dbm: not present (normal since OCaml-4.00)"
ldbm=""
-fi
+#fi
# num?
-if [ -f "${ocaml_core_stdlib}/num.cmi" ]; then
- echo "num: found"
- lnum="num num-top"
- numtop="num-top"
-else
+#if [ -f "${ocaml_core_stdlib}/num.cmi" ]; then
+# echo "num: found"
+# lnum="num num-top"
+# numtop="num-top"
+#else
echo "num: not present (normal since OCaml-4.06)"
lnum=""
numtop=""
-fi
+#fi
# bytes?