From owner-freebsd-ports@freebsd.org Mon Jul 4 17:06:09 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 04CA0B9165F for ; Mon, 4 Jul 2016 17:06:09 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C091E2591 for ; Mon, 4 Jul 2016 17:06:08 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id h190so67558074ith.1 for ; Mon, 04 Jul 2016 10:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VFrEMAVi3FMuojH6U2Bnx8jGJUvdkVdXxdLXKFe2FPQ=; b=jAUo4AlYkANzI5fhOw241PUb82bONbDJ/0z/1hOIyMBGXaVeVzFUokodQuuaftcR8Q SdS4VvKRwnTg+nt7B2YHhAL5Ahgd/fp5ZZ4ecsayRh2JGHUFGu2njnvQz104ZlbJa6Ib uIdVytgO8C2cFdwPZWSPD9qaQsHzzTT1AZXHLctyOS3Cc+KiJLtYbzK5bM399Mm9jH62 qp7tFurHWgOpYTWQ9XK3iidjddt0mk7bLV4UKkuMtEs0MDPlC7GgqgJT1JxYRq9xFDOG UHLEAIdb+C9quttKuaMJ7oqNKAHkZ3hnTq8ZrUh4RUN9vs42u9EQIjKcq2sdGZ4UguEW dVPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VFrEMAVi3FMuojH6U2Bnx8jGJUvdkVdXxdLXKFe2FPQ=; b=aPLSOE2zKLvfWhvFCWf4li05d8RbkUq/kt/HKm0LsYX/jAXr2VKQ9S5WMPHi7tmGYu NT9/3KVllwvt4w58KVtttHjv4yP1C9m/76/0Cai92Ppds+EzBJoOZVARR0s7A3LqXFrY bS2bwyM7EhOc5Y3c5yv7YF8Vh6upfdZRGA7gompHqMhhGIiGmsHvUr5lDlyl5ly3snpZ 2EM5fhXb2jwSIxC+XLem0zpCFEA0p8ZUduLFsnh6qvBtxI5/34N8sBgq+OAVKtEOkbZU 6cHwiQUGBvHZIWh53kEjviDtIxvNDfF5HUXhF/kmZb5FHAmDwTF5KIMWo3Qlewi0sEPX Eiug== X-Gm-Message-State: ALyK8tISWThUAYR6LoZzT5SsNlrwIZJtYzCeggFu+Gtjw1s9ntQmSGrruZaat33iPbmezzwTo4K/KBrGMHslfg== X-Received: by 10.36.39.78 with SMTP id g75mr8881007ita.53.1467651968087; Mon, 04 Jul 2016 10:06:08 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.102.5 with HTTP; Mon, 4 Jul 2016 10:06:07 -0700 (PDT) In-Reply-To: References: From: Kevin Oberman Date: Mon, 4 Jul 2016 10:06:07 -0700 X-Google-Sender-Auth: NXGj5sFvQglbS0Rj5hDgV3d58IE Message-ID: Subject: Re: Remove options from poudriere option files for ports which were removed in the port To: John Marino Cc: Kimmo Paasiala , Matthias Fechner , FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 17:06:09 -0000 On Sun, Jul 3, 2016 at 5:31 PM, John Marino wrote: > 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=C3=9F >>> > 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 wil= l > 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". -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683