From owner-freebsd-ports@FreeBSD.ORG Mon Dec 26 19:28:56 2011 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 685C6106564A for ; Mon, 26 Dec 2011 19:28:56 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2108FC08 for ; Mon, 26 Dec 2011 19:28:55 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id pBQIp6Nk052287; Mon, 26 Dec 2011 12:51:06 -0600 (CST) (envelope-from stephen@missouri.edu) Message-ID: <4EF8C21A.6090604@missouri.edu> Date: Mon, 26 Dec 2011 12:51:06 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: ports@freebsd.org, Pietro Cerutti Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Montgomery-Smith Subject: Problem with ldconfig detecting libraries installed by devel/gdcm 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, 26 Dec 2011 19:28:56 -0000 I want to create a port that uses devel/gdcm as a dependency. But writing: LIB_DEPENDS+= gdcmCommon:${PORTSDIR}/devel/gdcm doesn't work. It does build the port, but it fails to detect that the port is installed. I notice that when I type: ldconfig -r | grep gdcm that it doesn't find the installed libraries. But this can be fixed by doing ln -s libgdcmCommon.so.2.0.18 libgdcmCommon.so.2 Note that the devel/gdmc port only installs libgdcmCommon.so.2.0.18 libgdcmCommon.so.2.0 libgdcmCommon.so I contacted the port maintainer a few days ago, and this email is copied to him. But I would also like to submit a PR that includes a fix so that his job is easier. But I am unsure what is the "officially correct" way to fix this? Is it a bug in ldconfig? Or should the port create these links? Or were the original writers of gdcm incorrect when the specify a major version number that includes a period? Thanks, Stephen