From owner-freebsd-ports@FreeBSD.ORG Tue Nov 8 02:07:10 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1CAC16A41F for ; Tue, 8 Nov 2005 02:07:09 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D05243D46 for ; Tue, 8 Nov 2005 02:07:09 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so580988wxc for ; Mon, 07 Nov 2005 18:07:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=tcwGjhFnqecnTOJBwS6HccndeVQy8brp0iu8G8iygAEIt8ho3C4BLuckZsj5hpdm9wjvJAiOHu6VQYnck6gpKQ66pvqEZ1kbCwCJy1QBy+2G9Zd2Z3HT4hx4ehvFZgHVU9kAMnjR4ksdl434p0meET4RiAWfptRD+MRabFXLbPs= Received: by 10.70.83.8 with SMTP id g8mr5741725wxb; Mon, 07 Nov 2005 18:00:40 -0800 (PST) Received: from ?192.168.1.10? ( [71.102.14.129]) by mx.gmail.com with ESMTP id h14sm464572wxd.2005.11.07.18.00.37; Mon, 07 Nov 2005 18:00:39 -0800 (PST) From: "Michael C. Shultz" To: "Ian D. Leroux" Date: Mon, 7 Nov 2005 17:51:47 -0800 User-Agent: KMail/1.8.3 References: <20051106221047.GC36095@schtroumpf.homeunix.net> <200511070736.08800.ringworm01@gmail.com> <20051108014646.GA64271@schtroumpf.homeunix.net> In-Reply-To: <20051108014646.GA64271@schtroumpf.homeunix.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511071751.47999.ringworm01@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: portmanager leaf reporting 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: Tue, 08 Nov 2005 02:07:10 -0000 On Monday 07 November 2005 17:46, Ian D. Leroux wrote: > (Subject line changed to reflect new contents) > > On Mon, Nov 07, 2005 at 07:36:08AM -0800, Michael C. Shultz wrote: > > On Monday 07 November 2005 03:54, Ian D. Leroux wrote: > > > Come to think of it, I seem to recall having the feeling that > > > portmanager -slid wasn't showing all the leaves (i.e. was considering > > > some things necessary that weren't). I dismissed it at the time, but > > > if it was real then this could just be a special case of that separate > > > problem. I've got an old script that I used to do the equivalent of > > > portmanager -sl back before I'd heard of portmanager, so I'll see if I > > > can reproduce and document the situation. > > > > [...] > > I'll post the patch to FreeBSD then. I'm setting up java on this machine > > to see to the reporting problem, might as well get that fixed now too. > > More info on the (possibly unrelated) leaves issue: > > My baseline for comparison is the output of my old pkg_leaves.sh script, > which basically just checks for the existence of a non-empty > /var/db/pkg//+REQUIRED_BY > file. This gives the same results as pkg_info -R for every case I've > tried, including several among the cases presented below. > > If I run portmanager -slid and remove from the script output all those > packages that portmanager offers me for deletion, I am left with the > following (i.e. files that I think should be leaves but which > portmanager doesn't): > > apache-ant-1.6.5_1 > automake-1.4.6_2 > automake-1.5_2,1 > automake-1.9.6 > bison-1.75_2,1 > bison-devel-1.875d > coreutils-5.2.1 > gcc-ooo-3.4.1_2 > gpac-libgpac-0.4.0 > help2man-1.36.2 > intltool-0.34.1 > libdts-0.0.2 > libtool-1.3.5_2 > libtool-1.5.20 > nasm-0.98.39,1 > p5-Archive-Zip-1.16 > p5-XML-Writer-0.600 > p5-type1inst-0.6.1_2 > patch-2.5.4 > rpm2cpio-1.2_2 > unzip-5.52_2 > xanim-2.92.0 > zip-2.3_2 > > These are all build-time dependencies of other packages I have > installed. > > If, on the other hand, I look at the output of portmanager -sl, the > opposite problem occurs: a bunch of non-leaf ports are listed. I > haven't yet sorted through the list to get a full listing of the > offending packages, but some examples are boehm-gc+threaded+redirect > (needed by w3m-m17n-img) win32-codecs (needed by mplayer) pdflib (needed > by gnuplot) ... > > Hope this helps, > > Ian D. Leroux I rewrote -slid to hopefully not list build dependencies because people were complaining, I don't think its perfect yet but it should be close. -sl I didn't touch, so its likely to be very buggy. Once I know the main core of portmanager is stable I'll devote more time to going over -sl and -slid. I went ahead and loaded/tested java today, even after the patch I sent you, there were still problems. They are resolved now but all the changes are in a new tarball, if you want it do this: rm -r /usr/ports/sysutils/portmanager/files rm -f /usr/ports/sysutils/portmanager/disinfo cd /usr/ports/sysutils/portmanage in the Makefile change the version to 0.3.3 then make, make deinstall,make reinstall clean It'll fetch the new tarball but complain about no distinfo, you can ignore that. -Mike