From vivek@lorax.kcilink.com  Wed Jan 23 08:10:09 2008
Return-Path: <vivek@lorax.kcilink.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3A48716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jan 2008 08:10:09 +0000 (UTC)
	(envelope-from vivek@lorax.kcilink.com)
Received: from lorax.kcilink.com (lorax.kciLink.com [206.112.95.1])
	by mx1.freebsd.org (Postfix) with ESMTP id 0C82C13C4F0
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jan 2008 08:10:08 +0000 (UTC)
	(envelope-from vivek@lorax.kcilink.com)
Received: from localhost (localhost [127.0.0.1])
	by lorax.kcilink.com (Postfix) with ESMTP id BEE4511A0A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jan 2008 02:50:46 -0500 (EST)
Received: from lorax.kcilink.com ([127.0.0.1])
	by localhost (lorax.kcilink.com [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id sRevn+ZkeCJ9 for <FreeBSD-gnats-submit@freebsd.org>;
	Wed, 23 Jan 2008 02:50:45 -0500 (EST)
Received: from lorax.kcilink.com (localhost [127.0.0.1])
	by lorax.kcilink.com (Postfix) with ESMTP id 5B8C7119F1
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jan 2008 02:50:45 -0500 (EST)
Received: (from vivek@localhost)
	by lorax.kcilink.com (8.13.8/8.13.8/Submit) id m0N7ojn0078501;
	Wed, 23 Jan 2008 02:50:45 -0500 (EST)
	(envelope-from vivek)
Message-Id: <200801230750.m0N7ojn0078501@lorax.kcilink.com>
Date: Wed, 23 Jan 2008 02:50:45 -0500 (EST)
From: Vivek Khera <vivek@khera.org>
Reply-To: Vivek Khera <vivek@khera.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: p5-Math-BigInt missing deps
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         119916
>Category:       ports
>Synopsis:       math/p5-Math-BigInt missing deps
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tobez
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 23 08:20:02 UTC 2008
>Closed-Date:    Thu Jan 24 15:00:35 CET 2008
>Last-Modified:  Thu Jan 24 15:30:02 UTC 2008
>Originator:     Vivek Khera
>Release:        FreeBSD 6.2-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Wed Jun 27 10:47:15 EDT 2007 vivek@dbarchive.m1e.net:/n/lorax1/usr6/obj.i386/n/lorax1/usr6/src/sys/KCI32SMP i386


	
>Description:
	

when installing p5-Math-BigInt, it reports the following:

--cut here--
**********************************************************************
 Attention: After installing this package, you also need to update:

  Math::BigRat             to at least v0.19	 (you have v0.15)
  bignum                   to at least v0.21	 (you have v0.17)
--cut here--

I believe these should be added as dependencies to the port.

>How-To-Repeat:
	

Install p5-Math-BigInt on a system with older versionf of Math::BigRat and
bignum installed.

>Fix:

	


Something like this:

RUN_DEPENDS= p5-Math-BigRat>=0.19:${PORTSDIR}/math/p5-Math-BigRat \
	p5-bignum>=0.21:${PORTSDIR}/math/p5-bignum
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tobez 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jan 23 08:57:40 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119916 

From: Anton Berezin <tobez@tobez.org>
To: Vivek Khera <vivek@khera.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/119916: p5-Math-BigInt missing deps
Date: Wed, 23 Jan 2008 09:56:33 +0100

 On Wed, Jan 23, 2008 at 02:50:45AM -0500, Vivek Khera wrote:
 
 > when installing p5-Math-BigInt, it reports the following:
 > 
 > --cut here--
 > **********************************************************************
 >  Attention: After installing this package, you also need to update:
 > 
 >   Math::BigRat             to at least v0.19	 (you have v0.15)
 >   bignum                   to at least v0.21	 (you have v0.17)
 > --cut here--
 > 
 > I believe these should be added as dependencies to the port.
 > 
 > >How-To-Repeat:
 > 	
 > 
 > Install p5-Math-BigInt on a system with older versionf of Math::BigRat and
 > bignum installed.
 > 
 > >Fix:
 > 
 > Something like this:
 > 
 > RUN_DEPENDS= p5-Math-BigRat>=0.19:${PORTSDIR}/math/p5-Math-BigRat \
 > 	p5-bignum>=0.21:${PORTSDIR}/math/p5-bignum
 
 If you examine p5-bignum and p5-Math-BigRat ports you will find that they in
 fact depend on p5-Math-BigInt port, so doing "something like this" will lead
 to circular dependencies and thus won't cut it.
 
 It is not entirely clear what "need" in "you also need to update" above
 signifies.  Is it a hard dependency without which Math::BigInt won't work?
 I don't know, but I doubt that.
 
 Basically, identifying which dependency must be there and which is nice to
 have is how to solve this problem (including a possibility that nothing
 needs to be done).
 
 Cheers,
 \Anton.
 -- 
 We're going for 'working' here. 'clean' is for people with skills...
 -- Flemming Jacobsen
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Thu Jan 24 14:58:23 CET 2008 
State-Changed-Why:  
Sorry for the previous close without reason, it was my 
fat fingers syndrome... 

I asked Tels, the maintainer of these modules, and he said: 

Yes, the dependecies are not spelled out because it would create 
circular dependencies. 

The "warning that you must upgrade" is because some of the old BigRat 
versions don't work with newer BigInt versions. 

In most cases, it will work, except for a few bugs etc. So instead of 
having the user guess if it will work, or me having to track which 
versions do really work with what others, or not, I just added a notice 
that they should always upgrade all math modules to avoid that 
installing a newer BigInt accidentily breaks an older BigRat. 

(There is also the point that if I fixed a bug in BigInt, and the same 
bug is in Bigrat and fixed there, too, updating only BigInt will leave 
you with a stil buggy bigrat). 

I guess it would be a good idea to make a bundle out of all these 
modules (bignum, BigRat, BigInt). So far I have hesitated because it is 
easier to update them in this way, but now there won't be many more 
updates. 

So basically, we should not change anything with the dependencies 
until such time when these three ports gets combined into one, 
which will solve the problem neatly. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119916 

From: Vivek Khera <vivek@khera.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/119916: math/p5-Math-BigInt missing deps
Date: Thu, 24 Jan 2008 10:09:15 -0500

 Thanks for looking into it.  I appreciate the details, and it makes  
 sense.
 
>Unformatted:
