Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 17:16:20 -0600
From:      Jeremy Messenger <mezz.freebsd@gmail.com>
To:        michael.grunewald@laposte.net
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>
Subject:   graphics/ocaml-images: Fix the path in the ld.conf (OCAML_LDCONFIG).
Message-ID:  <CADLFttcSO23qq96PYamo6_2X44CALdubp8m65LSq2xdR0vy3-g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
When I build a few of ocaml ports and I always noticed that I get this warning:

ocamlfind: [WARNING] Cannot read directory
/usr/local/lib/ocaml/site-lib/images which is mentioned in ld.conf

Decided to dig it in and found a problem.

# grep site-lib/images /var/db/pkg/ocaml-images-3.0.2_7,2/+CONTENTS
@exec echo %D/lib/ocaml/site-lib/images >> %D/lib/ocaml/ld.conf
@unexec /usr/bin/sed -i "" -e '/lib\/ocaml\/site-lib\/images/d'
%D/lib/ocaml/ld.conf

# ls /usr/local/lib/ocaml/site-lib/ | grep images
camlimages/

There is no /usr/local/lib/ocaml/site-lib/images and the correct path
is /usr/local/lib/ocaml/site-lib/camlimages. A simple fix is to add
OCAML_LDLIBS=${OCAML_SITELIBDIR}/${OCAML_PKGDIRS} under the
OCAML_PKGDIRS. Now the result is correct and I don't get any of
warning.

# grep ld\.conf /var/db/pkg/ocaml-images-3.0.2_7,2/+CONTENTS
@exec echo %D/lib/ocaml/site-lib/camlimages >> %D/lib/ocaml/ld.conf
@unexec /usr/bin/sed -i "" -e '/lib\/ocaml\/site-lib\/camlimages/d'
%D/lib/ocaml/ld.conf

May I commit it to add the
OCAML_LDLIBS=${OCAML_SITELIBDIR}/${OCAML_PKGDIRS} and bump the
PORTREVISION?

Thanks,
Mezz


-- 
mezz.freebsd@gmail.com - mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLFttcSO23qq96PYamo6_2X44CALdubp8m65LSq2xdR0vy3-g>