Summary: | ocaml 3.0.4 creates /usr/lib/ocaml/ld.conf wrong | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sean P. Kane <spkane> |
Component: | New packages | Assignee: | Karl Trygve Kalleberg (RETIRED) <karltk> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | High | ||
Version: | 1.1a | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sean P. Kane
2002-06-04 18:26:13 UTC
likely easiestly fixed by by not installing /usr/lib/ocaml/ld.conf and by creating/appending to it in pkg_postinstall with a few test and grep statements. like: pkg_postinst () { env-update if test `grep -s -c /usr/lib/ocaml/lablGL /usr/lib/ocaml/ld.conf || :` = 0;\ then echo /usr/lib/ocaml/lablGL >> /usr/lib/ocaml/ld.conf; fi } This file should likely also be added to config protection, so that these changes don't get wiped out accidentally. Sean Nice try ;P The way this is supposed to be solved is to make an env file in /etc/env.d, such as /etc/env.d/30ocaml This file should contain LDPATH=/usr/lib/ocaml Once the package is merged by emerge, all env.d files are parsed, and the path will be added to /etc/ld.so.conf, then ldconfig will be run. I have fixed this in ocaml-3.04-r1 |