From owner-freebsd-ports@FreeBSD.ORG Sat Feb 21 08:45:08 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8BBA1065672 for ; Sat, 21 Feb 2009 08:45:08 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id A1F278FC08 for ; Sat, 21 Feb 2009 08:45:08 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 6B25B2C50D1D; Sat, 21 Feb 2009 10:45:07 +0200 (EET) Date: Sat, 21 Feb 2009 10:45:01 +0200 From: Ion-Mihai Tetcu To: Anonymous Message-ID: <20090221104501.06e778f1@it.buh.tecnik93.com> In-Reply-To: <86bpsw2tbf.fsf@gmail.com> References: <86bpsw2tbf.fsf@gmail.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/UmUwyISKQ2hshXeFZarThYo"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-ports@freebsd.org Subject: Re: git snapshots, PORTVERSION, PORTEPOCH 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, 21 Feb 2009 08:45:09 -0000 --Sig_/UmUwyISKQ2hshXeFZarThYo Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 21 Feb 2009 09:32:52 +0300 Anonymous wrote: > Would it be okay if I use commit hash in PORTVERSION and constantly > bump PORTEPOCH on each update? Are there any such precedents? >=20 > %%% > PORTVERSION=3D 0.0.10${SNAPSUFFIX} > PORTEPOCH=3D 1 >=20 > SNAPSUFFIX=3D .${SNAPTYPE}.${SNAPREV} > SNAPTYPE=3D git > SNAPREV=3D e09f50e > %%% >=20 > Where PKGNAME would look like >=20 > myport-0.0.10.git.e09f50e,1 >=20 > I want to keep commit reference in place and refrain from using vague > dates in PORTVERSION because there can be several commits per day. And > for curious users I can include ChangeLog file in distfile generated > from git-log command. No, please don't do this. We use PORTEPOCH when there's no other way. Use, like other ports do: PORTVERSION=3D 0.0.10 PORTREVISION=3D ${SNAPDATE} I don't see what role SNAPTYPE would have. Since you have the date, you can easily get the git magic string. --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B --Sig_/UmUwyISKQ2hshXeFZarThYo Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmfvxMACgkQJ7GIuiH/oeWonwCdGZxA/0B/Q/Df39W7StA2+RZA ruAAoJXgHBxJge7zKwtJZcPApanNVdXX =Ekj8 -----END PGP SIGNATURE----- --Sig_/UmUwyISKQ2hshXeFZarThYo--