From owner-freebsd-questions@freebsd.org Mon Sep 9 15:57:16 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 6FEDBD6356 for ; Mon, 9 Sep 2019 15:57:16 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Rt8W4SWXz48Ns for ; Mon, 9 Sep 2019 15:57:15 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1568044635; x=1570636635; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=8VIr/5RaepQqfF/bZ3M+GGY/CE/EqkAT3tdy25Y+2Bs=; b=MjDSnMGN2oh1m7bJgMIjEfox9MnL6lW/i8qnq62e6zfoBUIe8CauKtrhCRWgKYpgeN8fVnyZggoNrAdtBw+KGUwoAR9CQcYnk3QuvUQU2KBaVVb/6Liy/Kvog8D5nGgUDgVgsHIlR1rR2n1wuYSld4nxazw8VfjTQGTq7q3tBJ4= X-Thread-Info: NDI1MC4xMi4xYzEwMDAwMDE0MzdkZDEuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r2.sg.in.socketlabs.com (r2.sg.in.socketlabs.com [142.0.179.12]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 9 Sep 2019 11:56:56 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.sg.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 9 Sep 2019 11:56:55 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1i7M29-000Ckh-Ja; Mon, 09 Sep 2019 16:56:53 +0100 Date: Mon, 9 Sep 2019 16:56:53 +0100 From: Steve O'Hara-Smith To: "@lbutlr" Cc: freebsd-questions@freebsd.org Subject: Re: pkg lock Message-Id: <20190909165653.4806f5643d6b46cc8ee21550@sohara.org> In-Reply-To: <7C016F5C-FEA9-4EF0-9F5C-D0838A6CD2FF@kreme.com> References: <7C016F5C-FEA9-4EF0-9F5C-D0838A6CD2FF@kreme.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46Rt8W4SWXz48Ns X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=MjDSnMGN; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-2.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[]; IP_SCORE(-0.19)[ip: (-0.47), ipnet: 142.0.176.0/22(-0.26), asn: 7381(-0.19), country: US(-0.05)]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MID_RHS_MATCH_FROM(0.00)[] 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 15:57:16 -0000 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'. -- Steve O'Hara-Smith