From owner-freebsd-ports@FreeBSD.ORG Sat Jan 16 06:43:25 2010 Return-Path: Delivered-To: FreeBSD-Ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DFC2106566C; Sat, 16 Jan 2010 06:43:25 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yw0-f197.google.com (mail-yw0-f197.google.com [209.85.211.197]) by mx1.freebsd.org (Postfix) with ESMTP id E3A158FC0A; Sat, 16 Jan 2010 06:43:24 +0000 (UTC) Received: by ywh35 with SMTP id 35so1116440ywh.7 for ; Fri, 15 Jan 2010 22:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=15nJnQqip1s4YKoHn/5VaUsBxSuZIzbIIUuYVptlVfg=; b=myPXfovWWewK4Py4g8RnorKJ0Pk8fRYwegylWgSH7y04J1iHiM3AFwgTAJrJpZN+Vz 1CX4uPz9b/mrUJi74RYeHGAcqDdOVj50TFL+fyYv5axjy73y1kx2Gh0aamkWTzgOVok7 J+a40LTj14gQgRskWhDlq6+TjzeI9lcFkXAiY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=pcPk9wRbGM20/u40oCqjRwIjFCwgRkG9MfFMZT6e5gPFwjNsHe/7iXgD4NxHRYWheA VLOnm/3zc3NNwSmVgnRQ4LA0lT0fmoLbytf4OP612pg/cvo4YfNUFyzea3BiHQWi4tWx CCAk68fepnSItXYKtiRcEhrEEiG6S5xqgV1qo= Received: by 10.150.74.3 with SMTP id w3mr2158838yba.299.1263624196779; Fri, 15 Jan 2010 22:43:16 -0800 (PST) Received: from ppp-21.230.dialinfree.com (ppp-21.230.dialinfree.com [209.172.21.230]) by mx.google.com with ESMTPS id 21sm2068253iwn.10.2010.01.15.22.43.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Jan 2010 22:43:15 -0800 (PST) Sender: "J. Hellenthal" Date: Sat, 16 Jan 2010 01:43:04 -0500 From: jhell To: Wesley Shields In-Reply-To: <20100116032344.GA9210@atarininja.org> Message-ID: References: <20100116032344.GA9210@atarininja.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: dougb@freebsd.org, FreeBSD Ports Subject: Re: ports-mgmt/portmaster distfile expression matching 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: Sat, 16 Jan 2010 06:43:25 -0000 On Fri, 15 Jan 2010 22:23, wxs@ wrote: > On Fri, Jan 15, 2010 at 09:32:32PM -0500, jhell wrote: >> >> Hi Doug, >> >> Recently in upgrading x11-wm/xmonad and x11-wm/xmonad-contrib I had >> noticed that when portmaster asks to delete a distfile, when it asks about >> xmonad-0.9.1 it was also asking to delete the xmonad-contrib-0.9.1 before >> it had even upgraded xmonad-contrib. Is this a problem on portmasters >> behalf or is this on ports structure side ?. >> >> What do you or anyone else think about each port possibly keeping >> obsolete-distfiles list one much like distinfo but a concatenated list of >> previous distinfo's that had once been used allowing a ( make distclean ) >> or something routine to be built into the ports infrastructure to parse >> that file in each port ? > > Bad idea. That list will get quite large for some ports. > > I believe there is a PR about embedding the distinfo information into > +CONTENTS. > That would be keen! As for the idea I had, I was thinking more along the lines of pruning the proposed obsolete-dists file to only have the versions for the last three or so releases in there but ultimately would be up to the port maintainer to judge whether something should stay or not. If the distinfo is recorded into the +CONTENTS file, how is the removing program going to differentiate between say 3 other versions that the user may have choose not to remove in a previous instance. ? or for that, the problem that I had "xmonad-0.9.1 -> xmonad-contrib-0.9.1" where it wanted to remove anything that had a xmonad prefix. I think a simple obsolete file would be a better way around this as you could write into the ports system a way to parse the number of lines that are in the current distinfo file and multiply that by 2 or 3 or what ever a maintainer would choose by given variable in their own port and ultimately re-write the obsolete file list. Just my thoughts but written lists are usually more of a sure practice rather than trying to match every pattern that J Random Developer decides to give to their tar-balls. Best regards, -- jhell