Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 10:28:10 +0000
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: github ports
Message-ID:  <2005774.cYikG52F1y@curlew>
In-Reply-To: <CADnZ6B=Yy_fFUtAds3HjKZT10wNhGA6PzkYayc0mLNGoK_ug7Q@mail.gmail.com>
References:  <20210110133605.6538dfd5@dismail.de> <CADnZ6B=Yy_fFUtAds3HjKZT10wNhGA6PzkYayc0mLNGoK_ug7Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 10 January 2021 18:49:43 GMT Vasily Postnicov wrote:
> There is no "git update" command
> 
> At first delete the old port tree, then from /usr do
>  "git clone git://github.com/freebsd/freebsd-ports ports". From /usr/ports
> run "make index" or "make fetchindex".
> 
> To update the tree do "git pull" from /usr/ports and then again "make
> fetchindex"

I usually build a small number of packages from ports because I need 
different options. It doesn't seem justifiable to install and run poudriere 
to handle such a small number of ports. What I do is to use pkg upgrade to 
update the rest of my packages and then sync my ports tree with the revision 
which was used to build the current packages. This avoids the risk of 
incompatibilities when mixing ports and packages.

This process would be much easier if there was some mechanism built into the 
pkg system to easily determine the revision number of ports corresponding to 
the last run of pkg upgrade. In the absence of such a feature I find the svn 
revision by checking the latest revision on the build server's webpage. For 
my version of FreeBSD (12.2 on AMD64), this is currently http://
beefy6.nyi.freebsd.org/ but I've occasionally had problems in the past when 
things have moved to a different server.

Is there any chance that when we move over to using git for ports there could 
be a convenient way of identifying the git revision number of the commit 
corresponding to the time when pkg upgrade was last run.?

-- 
Mike Clarke





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2005774.cYikG52F1y>