[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#628021: libfindlib-ocaml: please do not use absolute path in METAS.camlp4



Package: libfindlib-ocaml
Version: 1.2.5+debian-1+b1
Severity: wishlist
Tags: upstream patch

I have installed another ocaml version in /opt and wanted to setup
ocamlfind environment for it by creating another ocamlfind.conf and
copying META files provided by libfindlib-ocaml
It works ok except that METAS.camlp4 uses absolute path and thus 
needs little edit after copying.

$ grep directory /usr/lib/ocaml/METAS/META.camlp4
directory = "/usr/lib/ocaml/camlp4"

Simple fix below will allow copying METAs verbatim :

--- /usr/lib/ocaml/METAS/META.camlp4	2010-02-10 01:14:06.000000000 +0200
+++ /opt/ocaml-3.12+svn/site-lib/METAS/META.camlp4	2011-05-26 16:03:40.000000000 +0300
@@ -2,7 +2,7 @@
 requires = ""
 version = "[distributed with Ocaml]"
 description = "Base for Camlp4 syntax extensions"
-directory = "/usr/lib/ocaml/camlp4"
+directory = "^camlp4"
 
 # For the toploop:
 requires(byte,toploop) = "dynlink"



-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libfindlib-ocaml depends on:
ii  ocaml-base-nox [ocaml-base-no 3.11.2-1   Runtime system for OCaml bytecode 

libfindlib-ocaml recommends no packages.

libfindlib-ocaml suggests no packages.

-- no debconf information



Reply to: