From owner-cvs-ports@FreeBSD.ORG Mon May 18 22:45:08 2009 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 077F01065672 for ; Mon, 18 May 2009 22:45:08 +0000 (UTC) (envelope-from me@janh.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.freebsd.org (Postfix) with ESMTP id 9435E8FC16 for ; Mon, 18 May 2009 22:45:07 +0000 (UTC) (envelope-from me@janh.de) Received: from janh.freebsd (e177245165.adsl.alicedsl.de [85.177.245.165]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MKuxg-1M6BNn2H9A-00013k; Tue, 19 May 2009 00:32:31 +0200 Message-ID: <4A11E1FE.9010601@janh.de> Date: Tue, 19 May 2009 00:32:30 +0200 From: Jan Henrik Sylvester User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: Pav Lucistnik References: 20090518182452.2B7F310656B4@hub.freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX19DlgTMzwwTRm1ApwOfvCvdQSpV0yFPN30Pm7j x+AyN+rFqylQxk/XBDu8h/CLOCUJ0upmskn+RleVfyCLkwk4xn uLQ20HYdXIOtYWv0fE2LA== Cc: cvs-ports@freebsd.org, Pietro Cerutti Subject: Re: [review] cvs commit: ports/math/libqalculate Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 22:45:08 -0000 Pav Lucistnik wrote: > Pietro Cerutti píše v po 18. 05. 2009 v 18:24 +0000: >> gahr 2009-05-18 18:24:36 UTC >> >> FreeBSD ports repository >> >> Modified files: >> math/libqalculate Makefile >> Log: >> - Add dependency on math/libgmp4 >> - Bump PORTREVISION >> >> Reported by: Jan Henrik Sylvester > >> -LIB_DEPENDS= cln.5:${PORTSDIR}/math/cln >> +LIB_DEPENDS= cln.5:${PORTSDIR}/math/cln \ >> + gmp.8:${PORTSDIR}/math/libgmp4 > > Why are you adding a dependency on libgmp4, when this port is depended > on already, indirectly, via math/cln ? > > This is unneeded in FreeBSD Ports. I really would like to understand this. As far as I understand, if a shared library version is bumped -- for example recently libgmp.so.7 was bumped to libgmp.so.8 -- all ports that have gmp.7 listed in LIB_DEPENDS are changed to gmp.8 and have their PORTREVISION bumped at the same time to trigger a rebuild of the package. Ports that depend on the library only indirectly are not bumped, since it would be a waste to rebuild everything recursively. This can only work, if all ports linking a library actually list that dependency as there is no other way for someone bumping a shared library version to know which packages actually link that library. In this case, /usr/local/bin/qalc from math/libqalculate linked libgmp.so.7, but since the dependency was not listed, the PORTREVISION was not bumped leaving the package broken. If bumping PORTREVISIONs is not feasible as there are too many dependent ports, there is usually an entry in UPDATING to rebuild everything recursively. I only got this understanding observing commits. What is wrong with it? I do not understand the PORTREVISION bumping at all if not all dependencies are listed. Thanks for any explanation, Jan Henrik