This file is being created with the path's pointing to the /var/tmp/portage install directory instead of the REAL /usr/lib/ocaml directory. I am working on lablgl and lablgtk ebuilds for ocaml and noticed this. I'll try to fix it if I get a second but someone might be able to do it quicker. Sean
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