Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2016 15:03:55 -0500
From:      John Marino <freebsdml@marino.st>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        Kimmo Paasiala <kpaasial@gmail.com>, Matthias Fechner <idefix@fechner.net>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Remove options from poudriere option files for ports which were removed in the port
Message-ID:  <d6e54f44-1135-c0eb-9132-500f4de5816e@marino.st>
In-Reply-To: <CAN6yY1u=fMdUVsL6-cXUJiqRXSMr4O3w4KA7FZPOryP%2Bj20JNw@mail.gmail.com>
References:  <f16b96bd-8fc0-d84b-91bf-5772237b5c2b@marino.st> <dbcfc0d7-7a19-7348-87b3-48d19e817fe7@marino.st> <CAN6yY1u=fMdUVsL6-cXUJiqRXSMr4O3w4KA7FZPOryP%2Bj20JNw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/4/2016 12:06, Kevin Oberman wrote:
> On Sun, Jul 3, 2016 at 5:31 PM, John Marino <freebsdml@marino.st
> <mailto:freebsdml@marino.st>> wrote:
>
>     On 7/3/2016 19:26, John Marino wrote:
>
>         Kimmo Paasiala <kpaasial <at> gmail.com <http://gmail.com>>; writes:
>
>
>             On Fri, Jul 1, 2016 at 1:17 PM, Matthias Fechner <idefix <at>
>
>         fechner.net <http://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
>
>
> Is this new? Using synth-1.41 I get "Invalid port origin: everything".

sorry, the correct invocation is "synth status-everything".  There is a 
man page (man 1 synth) as well.

John



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d6e54f44-1135-c0eb-9132-500f4de5816e>