From owner-freebsd-questions@freebsd.org Mon Sep 9 16:05:22 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 981AED6763 for ; Mon, 9 Sep 2019 16:05:22 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 46RtKs5bxgz48vj for ; Mon, 9 Sep 2019 16:05:21 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id B52904E67B for ; Mon, 9 Sep 2019 11:05:20 -0500 (CDT) Subject: Re: pkg lock To: freebsd-questions@freebsd.org References: <7C016F5C-FEA9-4EF0-9F5C-D0838A6CD2FF@kreme.com> <20190909165653.4806f5643d6b46cc8ee21550@sohara.org> From: Valeri Galtsev Message-ID: <6ad37394-fceb-ccf0-e6ce-ea89a168b4b1@kicp.uchicago.edu> Date: Mon, 9 Sep 2019 11:07:24 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190909165653.4806f5643d6b46cc8ee21550@sohara.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46RtKs5bxgz48vj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [-1.88 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.986,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.01)[country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[70.20.135.128.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, 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: Mon, 09 Sep 2019 16:05:22 -0000 On 2019-09-09 10:56, Steve O'Hara-Smith wrote: > On Mon, 9 Sep 2019 09:21:13 -0600 > "@lbutlr" wrote: > >> Before I go off on a wild tear, a couple of quick questions. >> >> If I want to prevent pkg update from overwriting a package I built from >> ports, I need to issue a pkg lock first, then if I want to rebuild >> it with postmaster I pkg unlock , rebuild/update the port, and then >> lock the port again, yes? > > Yes to all of that. > > It is perhaps worth mentioning the benefits of make missing to get > a list of dependencies before compiling a port so that you can minimise > what gets compiled by installing the dependencies first (make missing | > xargs pkg install -A) or thereabouts. > >> And there is no one-step way to say via flags or something, unlock, >> rebuild, then lock at once? > > You could write a script :) It would be a nice addition to ports > make. > >> Also, is there anyway to tell what has been installed via ports and what >> has been installed via pkg? Or better, what has been installed with >> custom options that differ from the pkg versions? > > I rely on 'that which is locked came from ports'. I made my life easier in that respect just by using poudriere for whatever I need to build with custom options (like mailman with postfix). Valeri > -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++