From owner-freebsd-ports@freebsd.org Thu Aug 13 09:17:43 2020 Return-Path: Delivered-To: freebsd-ports@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 B56AE3BBE15 for ; Thu, 13 Aug 2020 09:17:43 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from electron.ecohosting.co.uk (electron.ecohosting.co.uk [185.53.59.181]) (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 4BS1F16RzFz44KF for ; Thu, 13 Aug 2020 09:17:41 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=milibyte.co.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CEllVxNt3eZsbZxePFCcAzUMAE8My8fb6w7v4g7bs2U=; b=BL7rtcrylnNp5zHQePgLbZ8T2b 8+5P+pCR++XlWXgO4dat3SrdInRHoJ94OhNGTadnF8rx2SYtkRRgft+VWaSnuCjlM6Aj8Dyasu9TS SMYTwXLdQ5krVNMxch+jFv6+rTsXFuMtsVqaPF88gaJUs2cO333yE1zHWNPDrtkByJZrX3pnX8knM S1Kzj97RqxzqchsYeIwtlCVYJqg1rB1+T61klxja6pNsEwhBQ895c6unWYCHvHpFpZ9XT4RJbP1Ff yxUvq/SL2EPolOzH7h4zz5WuFdfkwx5eDtTZboUb/Uxl1RpmYLxZypgbQiup8mo1PjlbORQr6K7iE g/0bE4Zw==; Received: from 82-71-56-121.dsl.in-addr.zen.co.uk ([82.71.56.121]:13401 helo=curlew.milibyte.co.uk) by electron.ecohosting.co.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1k69Mc-0003WN-KX for freebsd-ports@freebsd.org; Thu, 13 Aug 2020 10:17:34 +0100 Received: from [127.0.0.1] (helo=curlew.localnet) by curlew.milibyte.co.uk with esmtp (Exim 4.93.0.4) (envelope-from ) id 1k69Mc-0001Fn-DY for freebsd-ports@freebsd.org; Thu, 13 Aug 2020 10:17:34 +0100 From: Mike Clarke To: freebsd-ports@freebsd.org Subject: Re: pkg feature request Date: Thu, 13 Aug 2020 10:17:34 +0100 Message-ID: <3269252.j5jfTYeP2b@curlew> In-Reply-To: References: <815dea96-02c0-cd90-c4aa-bd55959fdc5b@gmx.net> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - electron.ecohosting.co.uk X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - milibyte.co.uk X-Get-Message-Sender-Via: electron.ecohosting.co.uk: authenticated_id: mailpool@milibyte.co.uk X-Authenticated-Sender: electron.ecohosting.co.uk: mailpool@milibyte.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4BS1F16RzFz44KF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=milibyte.co.uk header.s=default header.b=BL7rtcry; dmarc=none; spf=pass (mx1.freebsd.org: domain of jmc-freebsd2@milibyte.co.uk designates 185.53.59.181 as permitted sender) smtp.mailfrom=jmc-freebsd2@milibyte.co.uk X-Spamd-Result: default: False [-0.86 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; HAS_X_SOURCE(0.00)[]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[milibyte.co.uk:+]; NEURAL_HAM_SHORT(-0.62)[-0.621]; HAS_X_ANTIABUSE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; CTE_CASE(0.50)[]; ASN(0.00)[asn:12488, ipnet:185.53.56.0/22, country:GB]; RCVD_TLS_LAST(0.00)[]; HAS_X_AS(0.00)[mailpool@milibyte.co.uk]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.73)[-0.726]; R_DKIM_ALLOW(-0.20)[milibyte.co.uk:s=default]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.009]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[milibyte.co.uk]; RCPT_COUNT_ONE(0.00)[1]; HAS_X_GMSV(0.00)[mailpool@milibyte.co.uk]; MID_RHS_NOT_FQDN(0.50)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2020 09:17:43 -0000 On Wednesday, 12 August 2020 05:05:17 BST Tatsuki Makino wrote: > But it seems to be a mixture of various revisions because poudriere is > building it. > svnlite up -q -r COMMITTED $PORTSDIR/category/name seems to be a > revision of the package when it was built. What would be needed would be for pkg to provide the revision number of the ports tree used by poudriere at the time of the build, not the revision of each individual port. For example for 12.1- RELEASE amd64 http://beefy6.nyi.freebsd.org/jail.html?mastername=121amd64-default[1] shows that at the time of writing this email the latest completed build is 544349 and there is a build run in progress for 544776. If this revision number could be stored as a property of the repository then pkg could have a command (e.g. 'pkg revno') which would currently return 544349. After the current build has completed and propagated to the repository then 'pkg revno' would return 544776 after the next time I run 'pkg update'. I'm already using a manual version of this process. If today I needed to build one of the few ports for which I don't use packages I would get the revision number of the latest poudriere build and run 'svnlite up -q -r 544349 /usr/ports' to sync my ports tree with the version used for the repository. Providing I allow enough time for the new build to be transferred to the FreeBSD repository before doing this it works fine. It would, of course, be much better if I could obtain the revision number of the repository directly from pkg. The real icing on the cake would be to have a command 'pkg sync-ports' which would use the revision information to upgrade the ports tree in one go without needing to manually run svn. -- Mike Clarke -------- [1] http://beefy6.nyi.freebsd.org/jail.html?mastername=121amd64-default