From: "Денис Назаров" <nenderus@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] .gear/rules keywords
Date: Tue, 9 Mar 2021 20:45:24 +0300
Message-ID: <4c44208e-2a1f-17d4-ce18-2da72e13b796@altlinux.org> (raw)
In-Reply-To: <20210309061448.GA1956@altlinux.org>
[-- Attachment #1.1: Type: text/plain, Size: 2036 bytes --]
09.03.2021 09:14, Alexey V. Vissarionov пишет:
> On 2021-03-09 08:48:39 +0300, Денис Назаров wrote:
>
> >>> Подскажите, можно ли в .gear/rules использовать свои переменные из
> >>> spec файла, помимо стандартных @name@, @version@, @release@ и пр.?
> >>> Т.е., например в spec файле что-то типа:
> >>> %define git_tag 8e4451d1ab2f973240a1547623a955a2fc3d6611
> >>> а в .gear/rules как-то так
> >>> @git_tag@
>
> Такого в принципе не должно быть: первичен RPM (и .spec для егойного
> rpmbuild), для работы которого мы готовим все необходимое - в том
> числе передаем нужные параметры.
>
> >> https://bugzilla.altlinux.org/show_bug.cgi?id=39573
> >> Может быть, вам нужно что-то вроде этого ?
> > Не, это другое.
>
> Разумеется - это еще один способ передать параметры для rpmbuild.
>
> > При использовании .gear/tags, если собирать промежуточную версию
> > (на которую как правило нет тега),
>
> А для чего это может быть нужно? В чем вообще состоит задача?
Ну в идеале я думал, что бы задавать переменную (или несколько в
spec-файле), а в .gear/rules её использовать, что бы не менять схему
именования исходников и каждый раз commit id не менять в .gear/rules, но
теперь понимаю, что так невозможно, буду использовать @version@ )
>
> > то приходится каждый раз в и в спеке и в .gear/rules менять хэш
> > коммита (а если ещё есть ветки с патчами, то несколько раз в
> > .gear/rules).
>
> Тут наоборот напрашивается вариант определить его в гиррулесе и
> отдать через specsubst.
>
> > Ну вот пример у меня -
> > http://git.altlinux.org/people/nenderus/packages/dolphin-emu.git?p=dolphin-emu.git;a=commit;h=e968beffe8e0dd0a25075a62880bab3548b2a44c
>
> Так все же: в чем состоит задача?
> Использование commit id - это все же не совсем нормально.
>
> > pub 1024D/20BFE6FD 2010-04-11 Nazarov Denis (nenderus)
> ^^^^^ ^^^^
> Ой. Даже оёёй.
>
> Такое и в 2010 году было на грани разумного, а сейчас кроме RSA-4096
> (из того, что есть в GPG) вообще ничего не осталось.
Что тут не так?
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
prev parent reply other threads:[~2021-03-09 17:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 20:55 Денис Назаров
2021-03-08 21:09 ` Vladimir D. Seleznev
2021-03-08 22:46 ` Денис Назаров
2021-03-09 4:02 ` Anton Farygin
2021-03-09 5:48 ` Денис Назаров
2021-03-09 5:52 ` Anton Farygin
2021-03-09 6:04 ` Денис Назаров
2021-03-09 6:06 ` Anton Farygin
2021-03-09 17:41 ` Денис Назаров
2021-03-09 6:17 ` Alexey V. Vissarionov
2021-03-09 6:16 ` Alexey V. Vissarionov
2021-03-09 6:14 ` Alexey V. Vissarionov
2021-03-09 17:45 ` Денис Назаров [this message]
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=4c44208e-2a1f-17d4-ce18-2da72e13b796@altlinux.org \
--to=nenderus@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