From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] gear-rules: Archive with unmodified sources and patch with local modifications
Date: Sun, 23 Nov 2008 14:39:30 +0300
Message-ID: <20081123113930.GC8869@altlinux.org> (raw)
In-Reply-To: <774a4f4a0811230314n56092a3aq77a02913d204f109@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]
On Sun, Nov 23, 2008 at 01:14:40PM +0200, Artem Zolochevskiy wrote:
> > Приемлемо (я так делаю). Такой подход также гарантирует, что diff
> > всегда будет непустой, и всегда будет успешно прикладываться с помощью
> > %patch. Это значит, что, например, если все патчи взяли в апстрим
> > и разница обнулилась, то ничего менять не надо. А также это значит,
> > что %patch с local modifications можно прикладывать "авансом", даже
> > если по смыслу он пустой (а потом может стать непустым). По-моему,
> > такой подход имеет смысл.
>
> И точно. Такая аргументация мне и в голову не приходила.
>
> Спасибо всем ответившим.
>
> PS
> Хотя, может чисто "для красоты" и можно было бы придумать какой-то
> "exclude" для diff в .gear-rules.
> С другой стороны прикладывание "авансом" мне понравилось больше чем
> стремление к прекрасному :-).
По-моему, такая схема наиболее интересна для "умеренно активных"
мейнтейнеров -- то есть, когда, с одной стороны, сборка пакета жестко
привязана к апстримной версии (или, в крайнем случае, снапшоту), но, с
другой стороны, поддерживается нетривиальный набор "локальных изменений"
(в самом дереве исходников).
Для "минимально активных" мейнтейнеров удобнее хранить "патчи отдельно"
(если патчи вообще есть) при немодифицированном подкаталоге с апстримными
исходниками.
Для активных мейнтейнеров/разработчиков общего рецепта нет (например,
пакет rpm -- там лежит %name-%version-%release.tar, поскольку говорить
о наборе "локальных изменений" уже смысла нет). (На самом деле в пакете
rpm сейчас лежит rpm-4_0-4.0.4.tar, но это просто misnomer.)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-11-23 11:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 10:46 Artem Zolochevskiy
2008-11-23 10:50 ` Andrey Rahmatullin
2008-11-23 10:55 ` Alexey Tourbin
2008-11-23 11:14 ` Artem Zolochevskiy
2008-11-23 11:39 ` Alexey Tourbin [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=20081123113930.GC8869@altlinux.org \
--to=at@altlinux.ru \
--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