From owner-freebsd-ports@FreeBSD.ORG Sat Nov 1 02:45:16 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 557B1BA7; Sat, 1 Nov 2014 02:45:16 +0000 (UTC) Received: from luigi.brtsvcs.net (luigi.brtsvcs.net [IPv6:2607:fc50:1000:1f00::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 18826B27; Sat, 1 Nov 2014 02:45:16 +0000 (UTC) Received: from chombo.houseloki.net (c-73-37-112-64.hsd1.or.comcast.net [73.37.112.64]) by luigi.brtsvcs.net (Postfix) with ESMTPSA id 775CA2D4F9B; Fri, 31 Oct 2014 19:45:14 -0700 (PDT) Received: from [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29] (unknown [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29]) by chombo.houseloki.net (Postfix) with ESMTPSA id CFB82971; Fri, 31 Oct 2014 19:45:12 -0700 (PDT) Message-ID: <5454492E.1000008@bluerosetech.com> Date: Fri, 31 Oct 2014 19:45:02 -0700 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Baptiste Daroussin , ports@FreeBSD.org Subject: Re: Reducing the size of the ports tree (brainstorm v2) References: <20141031185621.GC15967@ivaldir.etoilebsd.net> In-Reply-To: <20141031185621.GC15967@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 02:45:16 -0000 On 10/31/2014 11:56 AM, Baptiste Daroussin wrote: > tijl@ spotted an interesting point, distinfo and pkg-descr files files > convenient are taking a lot of space for "free", we can reduce the size of the > while ports tree by a factor 2 by simply merging them into one of the other > files (Makefile and/or pkg-plist) from my testing it really devides > significantly the size of the tree. > Ideas I got so far only concerns pkg-descr: > Adding an entry in the Makefile for the WWW: > WWW= bla > or an entry in the plist: @www http... I really do like DESCR=Some relatively short amount of text that describes the port \ in more detail than COMMENT can do. This could be multiple \ sentences and broken across lines. We have multi-line entries all over the place with things like long commands in pre- and post-install targets. Since pkg-descr tends to be a write-once file, I think it's a pretty tiny amount of pain for shaving off that many files. If you're really are worried about making maintainers do non-natural line breaks for readability, add a "make reflowdescr" target or add something to porttools that does it for us. The reason I like having this stuff in the Makefile is that you can do something like this: # make -C /usr/ports/foo/bar -V DESCR > Concerning the distinfo I have no idea. Could we do something similar to dependency lists? For example: DISTINFO= example1.tbz:size:{SHA256}hash \ example2.tar.gz:size:{SHA256}hash In the simple case where DISTFILES is one generated filename: DISTINFO= ${DISTFILES}:size:{SHA256}hash