Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3393 - ocaml 3.0.4 creates /usr/lib/ocaml/ld.conf wrong
Summary: ocaml 3.0.4 creates /usr/lib/ocaml/ld.conf wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 18:26 UTC by Sean P. Kane
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean P. Kane 2002-06-04 18:26:13 UTC
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
Comment 1 Sean P. Kane 2002-06-04 19:33:22 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
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-06-24 15:54:28 UTC
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