From owner-freebsd-ports@freebsd.org Sat Mar 4 01:01:18 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67748CF61F7 for ; Sat, 4 Mar 2017 01:01:18 +0000 (UTC) (envelope-from freebsd@chriswells.io) Received: from leaf103.mfilter.dimenoc.com (cherry.mfilter.dimenoc.com [72.29.89.5]) (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 2BA1C1ADF; Sat, 4 Mar 2017 01:01:17 +0000 (UTC) (envelope-from freebsd@chriswells.io) Received: from localhost (localhost [127.0.0.1]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP id F099C1CDC38; Fri, 3 Mar 2017 20:00:58 -0500 (EST) X-Virus-Scanned: amavisd-new at leaf.mfilter.dimenoc.com Received: from leaf103.mfilter.dimenoc.com ([127.0.0.1]) by localhost (leaf103.mfilter.dimenoc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YZUJtQ_iNf9f; Fri, 3 Mar 2017 20:00:58 -0500 (EST) Received: from pass98.dizinc.com (unknown [72.29.89.119]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP; Fri, 3 Mar 2017 20:00:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chriswells.io; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject: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=3AT0RZqRZcxBUuOKMo2cSgwcfOG93Od4ukwMWhfcu7c=; b=GtEzVbjwm5YsPMzrtvLKIYzEGK f6mu6t2aToeWA1msn2JGyRubI60GT0rQCiPqWqSvoTXewiRD3i2VNzz82PuAsaKflScbdTMRcmpEW W5R7Hiy8/vebrrXm9693r9kTYmvi6T7pIPodZioNJnCmSHbwMGLU3WNLkFw3xxKCkxk4+A2sBzCan nUwiT70X8/O9+GtYJ49Nf/hNPbxS5oBfyDBPjqg7ghA8538Xt/abNBfJEmD8IJsIkyj6bFo6XLR8L c6yZr/6yELGXzjc7Vnwr2I1s8lJItdazWPuCDLm5ZPH5DFfUUG5Qc+qoPRX4qglh8zMe9JM2YZdL2 ZWqybUPg==; Received: from 96-32-199-2.dhcp.slid.la.charter.com ([96.32.199.2]:48265 helo=[192.168.0.129]) by pass98.dizinc.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cjy4K-0001QJ-Hs; Fri, 03 Mar 2017 20:01:08 -0500 Subject: Re: Using Quarterly Ports Branches To: Mathieu Arnold , freebsd-ports@freebsd.org References: <1801a9f5-48c1-0b24-0436-84dad8d6594a@FreeBSD.org> From: Chris Wells Message-ID: Date: Fri, 3 Mar 2017 20:01:08 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1801a9f5-48c1-0b24-0436-84dad8d6594a@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - pass98.dizinc.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - chriswells.io X-Get-Message-Sender-Via: pass98.dizinc.com: authenticated_id: chris/from_h X-Authenticated-Sender: pass98.dizinc.com: freebsd@chriswells.io X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2017 01:01:18 -0000 On 03/03/17 05:09, Mathieu Arnold wrote: > > Currently, all our tools working automatically with the quarterly > branches do this before any run: > > latest_branch=$(svn ls https://svn.freebsd.org/ports/branches/|sed -ne > '/^2.*Q./s|/$||p'|tail -1) > > All you'd need to do before running svn update would be to run: > > svn switch ^/branches/$(svn ls > https://svn.freebsd.org/ports/branches/|sed -ne '/^2.*Q./s|/$||p'|tail -1) > > and it would automagically switch to the new branch when a new branch > happens. > Thank you! At least I can create a script to update ports. That solves the problem for me. >> If the symlink would work and easy enough to manage, it would be a >> great portsnap default in the base system to match pkg. The icing on >> the cake would be a persistent local setting to tell portsnap what >> branch to use so the commands to fetch/update the ports tree are >> consistent whether using HEAD or a branch. > > The problems with symbolic links, is that they do not work on all > filesystems. > I've never managed an SVN server, so please forgive my ignorance. If a symlink can't (always) be created on the server side, maybe an Apache alias or a rewrite could be used. It sounds like an SVN external might serve a similar purpose on the SVN side: http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html The goal would be to both simplify the pkg/ports management process and reduce the learning curve for new users. Imagine never having used FreeBSD before (or even SVN!) and needing to learn that pkg pointed to "latest" builds from HEAD of the ports tree, but the default for pkg is to use "quarterly" which points to whatever is the current quarterly branch with a naming convention of YYYYQ#. If you use ports, you can't use them by default unless you change pkg to latest so it builds from HEAD. You could use SVN to get a quarterly ports tree instead, but then you have to use a tool other than portsnap. I'm sure you can see the frustration a new user would have, and that's just to manage software on the system. It would be nice to have some consistency at a minimum in the terminology/settings. For example, having a latest and quarterly SVN external (?) in the ports tree so "SVN" doesn't have to come up in the conversation about managing packages and ports: we could have a config property for portsnap set to "quarterly" by default so it "just works" no matter what month and year it is today. Alternatively, both pkg and portsnap could use the same CURRENT/STABLE labels as the base system rather than latest/quarterly so all 3 make sense once you learn the terminology. No pressure here. I'm 110% sure you guys are all very busy already, but the back and forth in the following thread sparked the idea for me and I thought it was worth mentioning: https://forums.freebsd.org/threads/49694/ Chris