git: fb6e261c20eb - main - release: follow-up to previous commit to use Git for the ports tree

Glen Barber gjb at freebsd.org
Wed May 12 16:10:51 UTC 2021


On Wed, May 12, 2021 at 04:06:45PM +0000, Glen Barber wrote:
> On Thu, May 13, 2021 at 01:03:37AM +0900, Yasuhiro Kimura wrote:
> > Hello Glen,
> > 
> > From: Glen Barber <gjb at FreeBSD.org>
> > Subject: git: fb6e261c20eb - main - release: follow-up to previous commit to use Git for the ports tree
> > Date: Wed, 12 May 2021 14:48:41 GMT
> > 
> > > diff --git a/release/release.sh b/release/release.sh
> > > index 84a7813205f9..87e22e669fd1 100755
> > > --- a/release/release.sh
> > > +++ b/release/release.sh
> > > @@ -222,16 +222,8 @@ chroot_setup() {
> > >  		fi
> > >  	fi
> > >  	if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
> > > -		# if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
> > > -			# git -C ${CHROOTDIR}/usr/ports pull -q
> > > -		# XXX: Workaround for the overlap in the Git conversion timeframe.
> > > -		if [ -d "${CHROOTDIR}/usr/ports/.svn" ]; then
> > > -			${SVNCMD} update ${CHROOTDIR}/usr/ports
> > > -		else
> > > -			#${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
> > > -			# XXX: Workaround for the overlap in the Git
> > > -			# conversion timeframe.
> > > -			${SVNCMD} co ${PORT}/${PORTBRANCH} ${CHROOTDIR}/usr/ports
> > > +		if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
> > > +			git -C ${CHROOTDIR}/usr/ports pull -q
> > >  		fi
> > >  	fi
> > 
> > This should be such as following.
> > 
> > ----------------------------------------------------------------------
> >  	if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
> > -		# if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
> > -			# git -C ${CHROOTDIR}/usr/ports pull -q
> > -		# XXX: Workaround for the overlap in the Git conversion timeframe.
> > -		if [ -d "${CHROOTDIR}/usr/ports/.svn" ]; then
> > -			${SVNCMD} update ${CHROOTDIR}/usr/ports
> > -		else
> > -			#${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
> > -			# XXX: Workaround for the overlap in the Git
> > -			# conversion timeframe.
> > -			${SVNCMD} co ${PORT}/${PORTBRANCH} ${CHROOTDIR}/usr/ports
> > +		if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
> > +			git -C ${CHROOTDIR}/usr/ports pull -q
> > +		else
> > +			${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
> >  		fi
> >  	fi
> > ----------------------------------------------------------------------
> > 
> > Or ports tree isn't checked out when build is from scratch.
> > 
> 
> Bah, you're right.  I fixed it in stable/13 without noticing it was
> needed here, too.
> 
> Thanks for spotting this.
> 

Oops.  It turns out I did not fix this in stable/13.  I pushed an update
there, too.

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/dev-commits-src-all/attachments/20210512/7e4825e8/attachment.sig>


More information about the dev-commits-src-all mailing list