ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Раздел Version в спеке и версия из git
Date: Sat, 2 Jan 2016 17:11:32 +0300
Message-ID: <20160102141132.GA21508@altlinux.org> (raw)
In-Reply-To: <5687CBC9.908@ya.ru>

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

On Sat, Jan 02, 2016 at 08:08:25PM +0700, Антон Мидюков wrote:
> 02.01.2016 19:19, akv@altlinux.org пишет:
> >
> >Есть пакет с github https://github.com/neovim/libvterm. Там 
> >нет версии
> >пакета и по-идее нужно использовать хеш 
> >коммита.
> >Но из-за этого можно получить проблемы 
> >при обновлении.
> >
> >У нас есть такая страничка на вики 
> >https://www.altlinux.org/Spec#Version
> >Там есть информация о промежуточных git 
> >коммитах между версиями, которые
> >записываются в release.
> >А что делать если хеш коммита нужно 
> >указать в version. Да и вообще что
> >делать в таком случае?
> >
> >На ум пришло пока пришло варианта:
> >1) Version : gitHASH
> >     Release: altNj
> >2) Version : дата создания gitHASH. Например в 
> >таком формате 20150101
> >     Release: altN.gitHASH
> Безопаснее наверное будет так: 
> 0.0.0-altN.gitHash.1 Иначе придётся Epoch после 
> появления первого стабильного релиза 
> делать.
> 1 на конец, это чтоб при копировании в 
> бранч декрементировалась она, а не gitHash.

Полагаю, что соответствующий раздел в https://www.altlinux.org/Spec устарел.

Если в репозитории совсем нет никаких тэгов, то можно повесить самому на
самый первый коммит в репозитории тэг 0.0, после чего версию в пакете
можно будет вычислять с помощью команды

git describe --abbrev=1 | sed 's/-/.0./;s/-g/./'

Аналогичную команду можно использовать, если в репозитории
есть тэг последнего релиза.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

           reply	other threads:[~2016-01-02 14:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <5687CBC9.908@ya.ru>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160102141132.GA21508@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git