From owner-freebsd-questions@freebsd.org Wed Dec 12 19:42:07 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 E5D1E1323183 for ; Wed, 12 Dec 2018 19:42:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEE4075543 for ; Wed, 12 Dec 2018 19:42:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.252.129]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MrhLu-1hBynk3lfY-00nibI; Wed, 12 Dec 2018 20:41:53 +0100 Date: Wed, 12 Dec 2018 20:41:51 +0100 From: Polytropon To: Paul Schmehl Cc: FreeBSD Questions Subject: Re: Forcing port reinstalls without rebuilding over and over again Message-Id: <20181212204151.659fb436.freebsd@edvax.de> In-Reply-To: <1793865D5AEE79C2FC27331F@Pauls-MacBook-Pro.local> References: <47758EF2A172AE3BCA2F6E66@Pauls-MacBook-Pro.local> <1793865D5AEE79C2FC27331F@Pauls-MacBook-Pro.local> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:rxI88jJl4SEuJ0GkN08dJdDLE2bqtvMFpVQ35fOGW6H9c8G7GNL ZxWuQ+NSrmkBX7DHcDfuMX+/3sEdtX4XpN+yA5Z7VHuzlEL/qOHCOuTODj/1WfZ/H0yKT8K HK5pTgkwEwO7cmvCumzSCn2ncySAOgMxfwBlastrH9HdSfq/K6x6Vfuaikyvch9Aw8NsYN3 FvuZbIrm6s9rnSUMi2usg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ImN88qMx+Ug=:3g52wCiw0+0A7PZMrL3aII b69ZG+K7ciLwTESmwGmFiQXj4puv/tZVBgAm3nHnUM7Y9HEN/CQS2JmMS1cyPCMzlYkDWJLK6 v4pyd8a2wn0yl1l1Ow7rxx3o+7O/nyFI6vWqy7fmBCeVByEi+bYHDiTsmLecOomzU7rcxNy2/ 8dsysu2T0WxlZ078coXcKXJ5VZzT+Bl5gmiivCLpkbESoDAjBpaIYP8etlYz6sZi0AvPr6Mvn 99H+atP4HOHowvK2SRunakZcqDViOVSLuOR/e8h505swq2cy8UIa7jVajpz75drtAM5DFZmV8 XXqDrZb6ZqZLfsOoFPf5ITCBcUQHsDJkKpyEo+Jiop/GjhkT6SlwU1K8d264suYohjqt0GhFn uIaKve3m4e99/9QN2LY7GlCvuigiiptanpbpD5+yEU57N8vfLql16AyfTS1Wcohf9iVA5mB9+ s5rKImFuKXiT6YrvaKlwVFU3KO8b1YYtzE9FNi80n+SiDh+GERhvpsE1fWU00Z+BJhR3abNDE d5L95IffdLQJ6vw0ZhIhHXCAk1fzDUte1ACSVzZEgKFGcxPD1nrJbN4o0iNfKTNS5AylqUDMl yo1G7Q7OrcwCCohK9JRsSht+aE4T3synjq+uE1Z73v+kC0jaS+i/mR/W7Lweh94EBjda6DHLK NPGphM9GdH4fEzPGwUQiAT8QeGopD26PDwUaqhkQaAZwuOfdSuyjndjipHxVKzA8TsmKvQXHa 6wMTHLfmOZWNLIuziACaS1fdidXMtUzCjH0JRsGcOm2FOiqY6+3/xjW6dqA= X-Rspamd-Queue-Id: DEE4075543 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.73 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx00.schlund.de,mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[129.252.193.92.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.40)[0.401,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.89)[0.892,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[74.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.04)[ipnet: 217.72.192.0/20(0.32), asn: 8560(-0.09), country: DE(-0.01)] 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: Wed, 12 Dec 2018 19:42:07 -0000 On Wed, 12 Dec 2018 12:52:36 -0600, Paul Schmehl wrote: > --On December 12, 2018 at 2:07:35 AM -0600 Paul Schmehl > wrote: > > > Is there a way, using portmaster, to force the rebuild of all ports > > without rebuilding the same ports over and over and over again? > > > > I've noticed that using portmaster -f forces the rebuild of every > > dependency. I think I've now rebuild perl and python at least 20 or 30 > > times. Once should be enough. I guess if you're going to rebuild > > everything, it would be ok to ignore dependencies for ports, since > > they're all going to be rebuilt anyway. > > > > What's the magic potion for that? > > After reading through the man page, I thought that portmaster -Rfd would do > the trick, but it didn't. > > ISTM that, when you're building every port on a box, you shouldn't need to > build all the dependencies for every port, because they're all going to be > built anyway. Rebuilding perl (for example) repeatedly, makes no sense at > all. It would be nice if there were a --force-with-no-dependencies switch > so that every port could be built once and once only. Maybe I'm thinking into the wrong direction, but how about the following thoughts? The task of building is different from the task of installing. If you run each build task separatedly, both depencency trees (build dependencies + runtime dependencies) need to be resolved from scratch. For normal usage, and taking your perl example, the following situation would be present: 1. port "foo" requires perl as a build dependency 2. port "perl" is installed and can then be used 3. port "foo" is built, using the just installed perl 4. port "bar" requires perl as a build dependency 5. port "bar" is build, using the already installed perl (and perl is not built again) It should work the same with runtime dependencies. This thought experiment includes the assumtion that the correct _versions_ of perl are always the same. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...