From owner-freebsd-ports@freebsd.org Mon Oct 16 14:46:35 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 638CCE3C3EC for ; Mon, 16 Oct 2017 14:46:35 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 176248319B for ; Mon, 16 Oct 2017 14:46:34 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id CEE68BDD2F; Mon, 16 Oct 2017 16:46:31 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id 6AAF0BDD2D; Mon, 16 Oct 2017 16:46:31 +0200 (CEST) Subject: Re: [ports]: GH_TAGNAME: how to figure out this tagname on downloadable archives? To: "O. Hartmann" , Yuri Cc: FreeBSD Ports References: <20171015211940.44065925@thor.intern.walstatt.dynvpn.de> <19aa7f0a-3b52-5d34-cf80-136ef3fe489b@rawbw.com> <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Mon, 16 Oct 2017 16:46:29 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp" 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: Mon, 16 Oct 2017 14:46:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp Content-Type: multipart/mixed; boundary="sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw"; protected-headers="v1" From: Mathieu Arnold To: "O. Hartmann" , Yuri Cc: FreeBSD Ports Message-ID: Subject: Re: [ports]: GH_TAGNAME: how to figure out this tagname on downloadable archives? References: <20171015211940.44065925@thor.intern.walstatt.dynvpn.de> <19aa7f0a-3b52-5d34-cf80-136ef3fe489b@rawbw.com> <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20171015214725.68e32dd9@thor.intern.walstatt.dynvpn.de> --sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Le 15/10/2017 =C3=A0 21:47, O. Hartmann a =C3=A9crit=C2=A0: > Am Sun, 15 Oct 2017 12:35:49 -0700 > Yuri schrieb: > >> On 10/15/17 12:19, O. Hartmann wrote: >>> Out of the blue there is a so called GH_TAGNAME. It reflects some lat= e commit/revision >>> number on an archive. Now I try to figure out how to find such a GH_T= AGNAME. Since I >>> do not push stuff to github, it is some new playfield and there might= be an easy way >>> to figure out, but this way is obscured to me right now. =20 >> >> GH_TAGNAME is the git commit hash, a hexadecimal number. github shows = them for every >> commit. Usually, 7 first characters suffice. GH_TAGNAME overrides the = port version when >> tarball is fetched. Just copy and paste it. :-) >> >> >> Yuri >> > Hello, thanks for your response, > > all right, that is what I picked up from the porter's handbook, but I m= ust have > overlooked the note (if there is anything like that) regarding the suff= icient first 7 > digits. The first 7 digits may, or may not be sufficient. 7 is a magic number, and should not be used. You should, instead, ask git directly what the abbreviation should be with, for instance, `git log --abbrev-commit`.=C2=A0= It may give you a number that seven digits long, but it may very well give you a longer one. I repeat, do not simply truncate a hash to its first 7 digits, it may not be enough. --=20 Mathieu Arnold --sp8OXrBBURETkAOWV8pFr7qWxNrc2TSxw-- --THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJZ5MZHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IXGQQAL1NgBmLQ7oI7cEQBvqi9MHg dIEgTm8w2X3M8FQ1Ngy/qsyDUsimmj0G3OE7o7eXWBNzrKCSLhFDX2fX4pZDR5+U U83+RztlAIG7Vs/HXe8Y92STBUqstS4aDHrn3ciXTMOJ730oWMjRZ3CMFUl4Q99I DlvaDEuw/bbMbl4GQWQjB3FRC9DTRZgIysCMzfx2KJN0bv5yE6T7fZ0n8z8RGWF2 PstyCBJVE4Mlupzg4ms5FaaQAzrTEKO/5evVWZAimFCmnU7PLSAxaATHe7d59U+f OakzgdCDlZv/SNf/4O30FGenowND/0mSeQo3fNbB3hjpQzLs03AuhCodhM3fnGS1 ITBImOasnvLOjw6nIqkLk1wmaRArpAJBS3dNzRba81OBpWFCkXu5TPiG8gGBNM1f CyGVl4DuoZbajaX5AyFeZtArAwGCvs8VSnRiRY7ZFvCEUF5JH7uNNyk95qC0x3Zz xAkVvkC2f+9mvkjoiHa4Pduv2ctRaHgDfEVNWN8FFlIqxXf7c/PZymZVrZLWNO/U Rqd9CNZ0IymxRR1ejbSa4qJVK2a2o5VnqshEofgsGIcylofdmH6TOTzkf/AolgCH 5ric3DWS+cz3x/ri+WPXgt55CSrjfQfeLdSkRzUW9/rLquPjJ6RyJocsn7sagMsR ed5pR7tTLUkqqxoQgHFl =QB9c -----END PGP SIGNATURE----- --THWgiN1onM1SkxLahh1SLpf3FOb7NWDMp--