From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Cc: Denis Smirnov <mithraen@freesource.info>,
Alexey Shabalin <a.shabalin@gmail.com>
Subject: Re: [sisyphus] ppp-2.4.5-alt1
Date: Wed, 13 Jan 2010 00:57:48 +0200
Message-ID: <20100112225748.GI11686@osdn.org.ua> (raw)
In-Reply-To: <20100112171711.GF11686@osdn.org.ua>
On Tue, Jan 12, 2010 at 07:17:11PM +0200, I wrote:
> > - изменена схема сборки из git. Кому не нравится прошу
> > высказать пожелания.
> Мне не нравится хранить не имеющее ни малейшего отношения
> к gear в .gear. Для такого IMHO лучше держать чистый master,
> а исходники -- в бранче upstream.
Тем паче что апстрим в гите уже и живёт:
git remote add upstream git://ozlabs.org/~paulus/ppp.git
Твоё объединение пачек патчей устраивает, но не понравилось:
- засовывание спека и дописходников в .gear (они ж не относятся);
- смесь из апстримных исходников и этого всего в master.
IMCO тарбол лучше собирать из тега, да и мегапатч тогда уж лучше
делать между тегом и веткой, в которую помержено всё нужное.
Далее:
- girar-download (см. в моём girar-utils.git), чтоб быренько
найти, прописать и втянуть remotes;
- поприбивал свои старые ненужные бранчи локально и на git.alt;
- втянул твои патч-бранчи как локальные:
git branch -r | grep patches | while read i; do git checkout -b ${i#shaba/} $i; done
- как сегодня предлагали, отодвинул master:
git branch -m master oldmaster
- сделал чистый бранч:
git-empty-branch master
- сгенерил кусок .gear/rules:
git branch | grep patches | while read i; do echo "diff: v2.4.5:. $i:. name=ppp-2.4.5-${i#patches/}.patch"; done
- сделал заготовку для использования в спеке:
N=0; git branch | grep patches | while read i; do echo "Patch$N: ppp-2.4.5-${i#patches/}.patch"; N=$((N+1)); done
N=0; git branch | grep patches | while read i; do echo "%patch$N -p1"; N=$((N+1)); done
- переставил тег v2.4.5 на соответствующий апстримный коммит:
git tag -d v2.4.5
git checkout -b upstream upstream/master
git log # HEAD на 2.4.5
git checkout master
- поделал fake merge (патч-бранчи в master реально НЕ мержатся):
git merge -s ours upstream
git branch | grep patches | while read i; do git merge -s ours $i; done
- поскольку старый тег v2.4.5 удалён, а других и не было, то
rm -rf .gear/tags
gear-update-tag -avc && git commit -am 'gear-update-tag'
Дальше не заметил было в gitk того, что patches/openssl
и patches/eaptls конфликтуют; спасибо за пояснение, сделал
patches/openssl+eaptls (соответственно патчи из отдельных
двух бранчей не прикладываются).
Ну и поскольку сперва оформлял на скору руку -- решил разобрать
чуть аккуратней коммиты, отодвинув master в сторонку, начав с
исходных мегапатчевых .gear/rules и ppp.spec да сделав по-новой
с применением git cherry-pick.
Результат ещё немного подчистил по части спека и пушнул.
Просьба посмотреть и отозваться насчёт репо -- код должен быть
тот же.
PS: ppp обновляется крайне редко, поэтому решил не использовать
@version@ для патчей в .gear/rules: патчи делались от 2.4.5,
это и отражено в их рецептах и названиях. Впрочем, для ядра
tmc-tc на основе часто, но несильно изменяющегося 2.6.27.y
использую схожий подход и не вижу поводов расстраиваться.
PPS: в воздухе запахло gear-update-patches и .gear/rules.in...
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
next prev parent reply other threads:[~2010-01-12 22:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 11:55 Alexey Shabalin
2010-01-12 12:43 ` Afanasov Dmitry
2010-01-12 13:42 ` Alexey Shabalin
2010-01-12 17:17 ` Michael Shigorin
2010-01-12 22:57 ` Michael Shigorin [this message]
2010-01-13 8:44 ` Alexey Shabalin
2010-01-13 13:47 ` [sisyphus] [git] ppp-2.4.5-alt1 Michael Shigorin
2010-01-16 18:03 ` Alexey Shabalin
2010-01-16 18:09 ` [sisyphus] git hideoustory heirloom (was: [git] Re: ppp-2.4.5-alt1) Michael Shigorin
2010-01-12 17:42 ` [sisyphus] ppp-2.4.5-alt1 Denis Smirnov
2010-01-12 17:58 ` Denis Smirnov
2010-01-12 19:27 ` Michael Shigorin
2010-01-12 20:24 ` Alexey Shabalin
2010-01-12 22:25 ` Michael Shigorin
2010-01-12 19:36 ` [sisyphus] [JT] .gear/ vs altinux/ (was: ppp-2.4.5-alt1) Afanasov Dmitry
2010-01-28 15:20 ` Денис Смирнов
2010-01-13 15:07 ` [sisyphus] ppp-2.4.5-alt1 Mikhail Efremov
2010-01-13 15:59 ` Michael Shigorin
2010-01-13 17:50 ` Mikhail Efremov
2010-01-15 10:06 ` Alexey Shabalin
2010-01-15 16:42 ` Michael Shigorin
2010-01-15 16:56 ` Alexey Shabalin
2010-01-15 17:01 ` Michael Shigorin
2010-01-15 17:35 ` Mikhail Efremov
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=20100112225748.GI11686@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=a.shabalin@gmail.com \
--cc=mithraen@freesource.info \
--cc=shigorin@gmail.com \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git