From owner-freebsd-questions@FreeBSD.ORG Sun Jul 17 10:44:23 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92BFF106564A for ; Sun, 17 Jul 2011 10:44:23 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 21FEE8FC12 for ; Sun, 17 Jul 2011 10:44:22 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QiOpg-0002bV-Nu for freebsd-questions@freebsd.org; Sun, 17 Jul 2011 12:44:20 +0200 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2011 12:44:20 +0200 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2011 12:44:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sun, 17 Jul 2011 06:45:35 -0400 Lines: 37 Message-ID: References: <1310802258.12811.5.camel@server.intern.prnet.org> <4E215BB7.2040904@infracaninophile.co.uk> <1310810832.15451.5.camel@server.intern.prnet.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: options used to compile packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2011 10:44:23 -0000 David Arendt wrote: > Hi, > > well I don't actually now which package it was, but I compiled gdm (so > it should be one of it's dependencies). A compilation resulted in a non > working gdm (something with pam support not found on execution). Upon > installing gdm and is dependencies from packages, everything worked > correctly. Therefore I thought there might be other default options. I > am sorry that I cannot be more precise, but I tried it 2 months ago, so > I do not remember exactly. I think I will try it again from scratch with > latest ports tree and give you more precise information. > [snip] As you probably know, make config will open a previously saved configuration. The first time a port that has options is built you will get the options screen where you can select/deselect options. Make config recursive will also walk the dependency tree and pull up all the config screens for dependencies as well. These options are saved in /var/db/ports. Each port will have a directory containing an 'options' file. Deleting these will remove what make config saved and reset it back to as if the port hadn't been built previously with the options screen once again appearing. These would be the defaults. A shotgun approach would be to wipe all of the content from /var/db/ports and then it would be like starting from scratch; all ports would present default options. Kind of an ugly thing to do, better if you could identify a subset and only remove what's needed. Wiping everything will reset your entire ports tree to beginning with default options. As a backup you could also copy/save the contents of /var/db/ports somewhere else for future reference. -Mike