From owner-freebsd-ports@FreeBSD.ORG Tue Sep 16 15:28:09 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 923BD934 for ; Tue, 16 Sep 2014 15:28:09 +0000 (UTC) Received: from astart2.astart.com (108-248-95-193.lightspeed.sndgca.sbcglobal.net [108.248.95.193]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49101D1D for ; Tue, 16 Sep 2014 15:28:08 +0000 (UTC) Received: from laptop_93.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.4/8.14.4) with ESMTP id s8GFS0wm008468 for ; Tue, 16 Sep 2014 08:28:01 -0700 (PDT) (envelope-from papowell@astart.com) Message-ID: <54185700.5010608@astart.com> Date: Tue, 16 Sep 2014 08:28:00 -0700 From: Patrick Powell Reply-To: papowell@astart.com Organization: Astart Technologies User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Switching from building ports to packages References: <5416587D.6040306@ccsys.com> In-Reply-To: <5416587D.6040306@ccsys.com> Content-Type: text/plain; charset=windows-1252; 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: Tue, 16 Sep 2014 15:28:09 -0000 On 09/14/14 20:09, Chad J. Milios wrote: > On 09/14/14 16:34, Matt Reimer wrote: >> I'd like to switch from building everything from source using ports to >> using packages as much as possible. This requires identifying which >> ports >> I'm currently building use the same port knobs as the binary packages >> that >> FreeBSD builds. Is there an easy way of showing how my port configs >> differ >> from the defaults that are used to build binary packages? >> >> Thanks in advance. >> >> Matt >> > this script below will do exactly that from the port building machine > if you built them all in one place. (it gathers from > /var/db/ports/*/options but does not mine the data from > /var/db/pkg/local.sqlite.) if you'd like to extract options out of > your installed binary pkg ng's or pkg_og's or dir of .txz's or .tbz's > laying around somewhere and compare those to the current ports tree, > let me know. it's slightly more difficult but not terrible. > > in case of mail munging and for your convenience this script is posted > to https://cargobay.net/LpYDhX3U with SHA256 (LpYDhX3U) = > 4ef3dae564d861fd32efad267bb3e360a498d4688bb86fca7e2a0a195e58a34f > > #!/bin/sh > _=/dev/null > cd /usr/ports > _a="PORT_DBDIR=/var/empty" > for p in /var/db/ports/*; do > p=${p#/*/*/*/} > c=${p%%_*} > d=${p#*_} > if cd $c/$d; then > for z in a b; do > eval make \$_$z showconfig 2>$_ > /tmp/$$.$z > done > if ! diff /tmp/$$.[ab] >$_; then > echo $c/$d > diff /tmp/$$.[ab] | grep "^>" | cut -c 2- > fi > cd ../.. > fi > done > rm /tmp/$$.[ab] > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Ahh!!! Thank you. Just to get this on record and to be able to search and find it - could you post the script that does the check against the pkgng database? If you are downloading the packages from the 'standard' FreeBSD package repository it would be useful to be able to see what options they built the packages with.