From owner-freebsd-ports@FreeBSD.ORG Sat Jun 16 20:28:20 2007 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E307216A41F for ; Sat, 16 Jun 2007 20:28:20 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C469113C46C for ; Sat, 16 Jun 2007 20:28:20 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id F04161A3C1A; Sat, 16 Jun 2007 13:27:42 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id CE908512A6; Sat, 16 Jun 2007 16:28:19 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 6E630BE98; Sat, 16 Jun 2007 16:28:19 -0400 (EDT) Date: Sat, 16 Jun 2007 16:28:19 -0400 From: Kris Kennaway To: Stephen Hurd Message-ID: <20070616202819.GA29331@rot13.obsecurity.org> References: <4673B0DB.3040100@sasktel.net> <46742CF6.3050901@sasktel.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <46742CF6.3050901@sasktel.net> User-Agent: Mutt/1.4.2.3i Cc: ports@FreeBSD.org, Sam Lawrance Subject: Re: Clarification on fetch/extract targets X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 20:28:21 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 16, 2007 at 11:33:26AM -0700, Stephen Hurd wrote: > Sam Lawrance wrote: > >>So, I created a new port (ports/113608) for Code::Blocks which has=20 > >>not had a source code release for almost two years despite constant=20 > >>development. However, the currently correct way to get the source is= =20 > >>via subversion. The port currently does this, but I'm unsure of=20 > >>exactly what is required by the fetch and extract targets, so I'm not= =20 > >>sure what the "right" thing to do here is. I can think of a few=20 > >>possibilities: > >> > >>1) The fetch target is intended to do all the steps which require a=20 > >>network connection and extract is intended to places the files into=20 > >>WRKSRC > >>- In this case, the fetch target would use svn co to WRKSRC and the=20 > >>extract target would do nothing. This is what the port currently does. > >> > >>2) The fetch target is intended to place source archives into DISTDIR= =20 > >>and extract is intended to place them into WRKSRC > >>- In this case, the extract target would use svn co to WRKSRC and the= =20 > >>fetch target would do nothing. > >> > >>3) The fetch target is intended to place a source archive in DISTDIR=20 > >>and the extract target is intended to extract that archive into WRKSRC > >>- Here I would need to do the svn checkout in the fetch target,=20 > >>archive it, then delete it. > >> > >>4) The fetch target retrieves sources in the distribution format and=20 > >>extract places them into WRKSRC > >>- In this case, you would svn co to a DIST_SUBDIR in fetch, then=20 > >>extract would copy that to WRKSRC > >> > >>5) fetch *MUST* fetch a source archive into DISTDIR. None of this=20 > >>svn/CVS checkout stuff in the ports tree. > >>- Hrmph. So rather than bumping PORTREVISION to the desired=20 > >>subversion revision and having it Just Work, one needs to make a=20 > >>source archive and host it somewhere himself and be responsible for=20 > >>updating it himself too. > > > >In the past, it has been easiest if the maintainer (you) creates an=20 > >archive of the source and either puts it up for download, or asks for=20 > >it to be mirrored as a local distfile (the committer who deals with=20 > >the PR will do this for you). > > > >To make it easier for yourself, you might create a "roll-tarball"=20 > >target in the port, which you (or future maintainers) can use to=20 > >automatically fetch the source from subversion and create a new source= =20 > >archive. >=20 > Actually, I found it quite easy to have the port pull the sources from=20 > svn. Who are we concerned about making it easier for and why (and how=20 > is it any easier?) Everyone behind a firewall that only allows fetching via HTTP/FTP, for one. Also everyone without live network access, and those with pay-per-download who have a free local distfile mirror, etc. Tarballs are overwhelmingly preferred. Kris --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGdEfjWry0BWjoQKURAs67AJ47TV+qpsRxhF5OsAeKzqzUhPnhXgCg8pbi fKdknO6nTtan0ak7WGrC2f0= =pVEA -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--