From owner-freebsd-ports@freebsd.org Mon Jul 4 00:31:50 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75458B90EF4 for ; Mon, 4 Jul 2016 00:31:50 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (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 52BCA2953 for ; Mon, 4 Jul 2016 00:31:49 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from [127.0.0.1] (ip70-178-28-115.ks.ks.cox.net [70.178.28.115]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 6BA2543BE5; Sun, 3 Jul 2016 19:31:48 -0500 (CDT) Subject: Re: Remove options from poudriere option files for ports which were removed in the port To: Kimmo Paasiala , Matthias Fechner , FreeBSD Mailing List References: From: John Marino Message-ID: Date: Sun, 3 Jul 2016 19:31:48 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 160701-1, 07/01/2016), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 00:31:50 -0000 On 7/3/2016 19:26, John Marino wrote: > Kimmo Paasiala gmail.com> writes: >> >> On Fri, Jul 1, 2016 at 1:17 PM, Matthias Fechner > fechner.net> wrote: >> > Dear all, >> > >> > it seems that poudriere can only add new options to its own options >> > tracking, but cannot remove options that where removed from the > Makefile >> > of the port. >> > >> > Concrete example is for mail/postfix >> > >> > The option SPF was removed (2016-02-28): >> > https://www.freshports.org/mail/postfix/ >> > >> > But if I execute: >> > poudriere options -j 103amd64 -f 103amd64-pkglist >> > >> > it will not remove the option from the options file: >> > 103amd64-options/mail_postfix/options >> > >> > Is there a possibility to clean up all the option files without > starting >> > again at zero with: >> > poudriere options -c -j 103amd64 -f 103amd64-pkglist >> > >> > Thanks. >> > >> > >> > Gruß >> > Matthias >> > >> >> This is not a feature/bug of poudriere but of the ports system itself. >> There's no tracking of obsoleted or removed options and no clever >> methods to clean them up. It's only when you remove the options with >> 'make rmconfig' and rewrite them again trough the options dialog the >> obsoleted ones will be gone. > > This is incorrect. There is a clever method available to clean these > up. There is a script at Tools/scripts/redundant-opt-files.sh that is > used to identify saved options that are identical to the default > options. It also identifies option files for ports that don't exist. > You can remove all the obsolete and redundant options files in a single > command, e.g. "/usr/ports/Tools/scripts/redundant-opt-files.sh | xargs > rm -rf" which I think is pretty clever. But then again, I am biased. > Hmm, I may have misunderstood what Matthias was asking for. While Poudriere will not identify bad saved options files, ports-mgmt/synth will do this. One way to leverage this is to install synth and run "synth status everything" and all bad options files will be identified (printed to screen). John --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus