From owner-freebsd-ports@FreeBSD.ORG Mon Feb 6 23:16:21 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6853B106566B for ; Mon, 6 Feb 2012 23:16:21 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 31DED8FC08 for ; Mon, 6 Feb 2012 23:16:20 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so10575467obc.13 for ; Mon, 06 Feb 2012 15:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=jMWPluVpOswaLlMq3l81GG7exbSCC4Kli1t7LBcblpU=; b=g68a39uzKQdFFiJtU0NcCTYDxTX6BiUIkkFrD4Ds7Yal9rSCib0Yu0AKvuxhEAvZl4 R08WAXu2pbWAfQYiseJC8MvmGck9l3ycXKshjsadag+YBLVgiBbejocgcotFu8ANYhum A3da5oKStIbQUIUZSSQNAqUxMZhcORngG71TI= MIME-Version: 1.0 Received: by 10.50.170.41 with SMTP id aj9mr23687197igc.0.1328570180486; Mon, 06 Feb 2012 15:16:20 -0800 (PST) Received: by 10.42.153.5 with HTTP; Mon, 6 Feb 2012 15:16:20 -0800 (PST) Date: Mon, 6 Feb 2012 17:16:20 -0600 Message-ID: From: Jeremy Messenger To: michael.grunewald@laposte.net Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports Mailing List Subject: graphics/ocaml-images: Fix the path in the ld.conf (OCAML_LDCONFIG). X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 23:16:21 -0000 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