graphics/ocaml-images: Fix the path in the ld.conf (OCAML_LDCONFIG).

Jeremy Messenger mezz.freebsd at gmail.com
Mon Feb 6 23:16:21 UTC 2012


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 at gmail.com - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org


More information about the freebsd-ports mailing list