From owner-freebsd-ports@freebsd.org Thu Jul 27 23:13:00 2017 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 211DFDB331F for ; Thu, 27 Jul 2017 23:13:00 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 E3DC968EF8 for ; Thu, 27 Jul 2017 23:12:59 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id z129so49353053pfb.3 for ; Thu, 27 Jul 2017 16:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=jxMkrQRCVlsjzI9aGbF3CaZKcPLj32LrZRSq3/FgeFM=; b=aex13ZhuKJ+y7OQpkvJrd1UtjUUkkgXJm0cQ34Xd2rU6e0e4ohKLXw+JzwRYfMHZEO zMVJMiNg5Mr6FsdxoOZvQJLeXHSat3FSt0MvvmUKOgfWuo2tSPPCTZecHrp6MRmM7LO8 0mur4OH/dxK3Y29lj0GBCgqFSfBTR0Xszqz9Snxbfp+TOd2aXW3YU6bAbssoIoJp/CsA 8+bn9K8odwRvE2BFs35mssH2jrS19WAa/vihZyq2WQrojrFcZMCxPeUqSFidX4UMovdG LJ4b2V7ocueYyRj7xMEynfX6sOWqJfL1sHGHZqaigFpsA4FIUsE+3xka8azNM6aTj/wV Q/9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=jxMkrQRCVlsjzI9aGbF3CaZKcPLj32LrZRSq3/FgeFM=; b=gPXzIZZuWE8eqxHgOg+IXxRBC98ck7GqJ9zcTlzC911oUUPxMGwht4iXnXclr52hk9 CRJT8kReVhrz6CfsHRgYylK+o8hNsCDvzoX6VUHaoVzBtldmoo6c0s3b8DrhBs9rdHhU aehFxAnKVXmTIS0F2TDCvI2FlfldGgUkgH/MVO3vmtV6n9BJ/M+qPrBcLbRcmcvfhcKm iz2MOgZy4D8pBYK0YWks1aCvtNjurB4cl8kggNFEjPYZt08KVZ8n8kDt+JYfbkRm/og4 J8olGt9nRD6HNXDXbazFiz9MGaJ8eWX+B6RppfT5nyV4hdoFZXL0ejOWT6jkrAgpRFm5 /+eQ== X-Gm-Message-State: AIVw111QloUWCXLcq4ihTjZdbOd0jid7sxYmQYpTUYIeIbt0WAUaEs77 5dN/4Y7zvCPMun+aswepsh07OlYXfy/BI9w= X-Received: by 10.84.128.14 with SMTP id 14mr6031187pla.285.1501197179531; Thu, 27 Jul 2017 16:12:59 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.100.165.42 with HTTP; Thu, 27 Jul 2017 16:12:58 -0700 (PDT) In-Reply-To: <9D4E0A60-FBAA-43A2-81C5-4CE9C7C90353@mgh.harvard.edu> References: <9D4E0A60-FBAA-43A2-81C5-4CE9C7C90353@mgh.harvard.edu> From: Kevin Oberman Date: Thu, 27 Jul 2017 16:12:58 -0700 X-Google-Sender-Auth: UkbQoib5aaqwgv4QBP7O2Y9O1-U Message-ID: Subject: Re: Configuring options/knobs without `make config` To: "Morse, Richard E.,MGH" Cc: "freebsd-ports@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2017 23:13:00 -0000 On Thu, Jul 27, 2017 at 7:36 AM, Morse, Richard E.,MGH < REMORSE@mgh.harvard.edu> wrote: > Hi! I=E2=80=99m trying to document the setup of a new system, and I=E2=80= =99m finding it > really complicated to document exactly which options I choose for various > ports. > > I was wondering if there is some magic command-line syntax, (ideally to > postmaster) that would let me document the options selected in the form o= f > a command =E2=80=94 something like: > > postmaster editors/vim -o NOLUA,NOPYTHON,NORUBY,CONSOLE,NOGNOME > > (to indicate the changes from the default settings; I would be fine if I > had to specify every option, I suppose, but ideally only ones that change= d=E2=80=A6) > > Thanks, > Ricky > > Short answer is "no". because the ports system always remembers teh chosen configuration for any port and that is stored in the pkg database, I am not aware of any tool that allows setting of options from the command line. That said, it is certainly possible and does not look difficult to implement. It would probably be both easiest and more supportable to set the options in the command line into the DB. Of course, '-o' is already in use, so that would net be available. More difficult to deal with is the issue of default options. Frankly, that is not an issue that is really handled at all well with any of the current tools and periodically bites my in the ass. Clearly, requiring all options to e listed on the command line is not workable. (Just look at the list of options on some multimedia ports.) So the assumption is that the command line only specifies variations from defaults, but that does not address how to deal with changes in defaults or with deleted options. I don't have obvious answers on this. Do you? It's certainly not trivial. As a non-answer to your question, maybe a dump of the current options. That could easily be added to most any tool ad it is a one-line command. make -C PORT_PATH showconfig where "PORT_PATH" is the path to the port, e.g. /usr/ports/multimedia/ffmpeg. It could easily in a simple wrapper around some other command such as portmaster. Maybe someone else has a better idea, but it does not look at all simple to me. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683