From owner-freebsd-questions@freebsd.org Thu Dec 13 05:52:36 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2777130A427 for ; Thu, 13 Dec 2018 05:52:36 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0F746F1D7 for ; Thu, 13 Dec 2018 05:52:35 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id wBD5qVrq005123; Wed, 12 Dec 2018 22:52:32 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: Forcing port reinstalls without rebuilding over and over again To: Paul Schmehl Cc: FreeBSD Questions References: <47758EF2A172AE3BCA2F6E66@Pauls-MacBook-Pro.local> <1793865D5AEE79C2FC27331F@Pauls-MacBook-Pro.local> <20181212204151.659fb436.freebsd@edvax.de> <296D11C4E1B5870932452073@Pauls-MacBook-Pro.local> <20181212214714.4017e195.freebsd@edvax.de> <5116e02a-79e8-d0c5-89c7-88b80effd693@dreamchaser.org> From: Gary Aitken Message-ID: Date: Wed, 12 Dec 2018 22:52:21 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 12 Dec 2018 22:52:33 -0700 (MST) X-Rspamd-Queue-Id: B0F746F1D7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-5.22 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: nightmare.dreamchaser.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.968,0]; IP_SCORE(-2.94)[ip: (-7.69), ipnet: 66.109.128.0/19(-3.85), asn: 21947(-3.08), country: US(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2018 05:52:36 -0000 On 12/12/18 4:14 PM, Paul Schmehl wrote: > --On December 12, 2018 at 2:42:00 PM -0700 Gary Aitken wrote: > >> On 12/12/18 1:47 PM, Polytropon wrote: >> >>> In my opinion, it's a little better to create your own >>> "top ports list" instead of saving the current state (or >>> at least have both lists at hand, but only use your own). >>> In that "top ports list", you list the things you actually >>> want to use, and you do not care about their depencencies, >>> simply because portmaster can resolve them on its own. So >>> first, your list is much more readable (as it will only >>> contain the software you are interested in, and nothing >>> of the software you might need to build or run them), and >>> second, your list will be much more portable and also deal >>> with the "port not needed, but still installed" problem >>> described above. >> >> That is the way I've done it in the past, using -R -d, and doing so >> does not rebuild dependencies.  I suspect the problem has something >> to do with -a. >> > Well, you kind of need that if you're going to rebuild all ports. No, you don't. All you need are the top level ports. Right now I have 800 ports installed. To get those, I only install 36. I agree it's a bit of a hassle to keep track of what you need. On the other hand, it seems a bit lame to not know why you have the things you have installed actually installed. Keeping track is a good idea, as it forces you to review what you have installed and why; I find I quit installing some things after a while. I may no longer be working on a project that requires some stuff, for example. Or some things may be installed to overcome a particular one-time or seldom-encountered problem. I had three or four different pdf viewers installed at one time. I only use one of them in general. The others were each installed for a specific purpose when the one I generally use was inadequate. But when I upgrade I only install the one I normally use. If at some point I actually need the others, I'll install them. The same goes for various audio programs. Keeping track also (unfortunately?), means you sometimes can cut down the top level list, as higher-level ports tend to drag in more stuff over the years. e.g. I used to have to install cups and three or four other things, but (in my case) they come in automatically now. What I find particularly difficult, however, is keeping track of options. Some ports have NLS by default, some have EXAMPLES by default, some have various GUI options by default. NLS is fairly easy to get rid of, but the gui options are not. And the 5 word hint in the options dialog is usually totally inadequate to determine if you want (or need) the option enabled. It would be really helpful if there was a button you could hit to give you more detailed info about what each option is for; kind of a pkg-descr for the option, explaining when you want it and when you don't. Gary