ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] gear-rules and submodules
Date: Mon, 8 Dec 2008 08:19:57 +0200
Message-ID: <20081208061957.GB16378@epbyminw8406h.minsk.epam.com> (raw)
In-Reply-To: <200812080312.02882.ledest@gmail.com>

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

On Mon, Dec 08, 2008 at 03:12:02AM +0200, Led wrote:
> On Sunday, 07 December 2008 19:58:42 Kirill A. Shutemov wrote:
> > On Sun, Dec 07, 2008 at 07:03:10PM +0200, Led wrote:
> > > On Sunday, 07 December 2008 18:49:17 Sergey Vlasov wrote:
> > > > On Sun, Dec 07, 2008 at 06:06:56PM +0200, Led wrote:
> > > > > Что нужно написать в .gear-rules, чтобы в тарболл попали каталоги
> > > > > содержимым, которые являются с точки зрения git submodule'ями?
> > > >
> > > > В принципе в текущей версии gear получается запаковать подобный
> > > > субмодуль целиком в отдельный тарболл (а вот подкаталог субмодуля
> > > > запаковать уже не получится).  Однако подобные операции не вполне
> > > > соответствуют принципам построения gear.
> > > >
> > > > Изначально предполагалось, что для сборки определённой версии пакета
> > > > из репозитория с помощью gear достаточно получить только объекты, на
> > > > которые ссылается требуемый коммит (именно отсюда вытекает ограничение
> > > > на ссылки, проставляемые через gear-create-tag).  Но ссылки на
> > > > субмодули в git, в отличие от других ссылок, не требуют обязательного
> > > > присутствия указанного объекта в репозитории; таким образом, если
> > > > выполнить git fetch $repo $tag в пустой репозиторий, а затем вызвать
> > > > gear -t $tag, при использовании субмодулей соответствующие объекты не
> > > > будут найдены, поскольку git fetch их не получает.
> > > >
> > > > Таким образом, для применения субмодулей в репозиториях, с которыми
> > > > будет использоваться gear, необходимо добавить какие-то дополнительные
> > > > требования к содержимому этих репозиториев (скорее всего, придётся
> > > > потребовать, чтобы все используемые субмодули также содержались в этом
> > > > репозитории),
> > >
> > > Так оно и есть. В частности, содержимое ./m4/ - субмодуль и без него,
> > > естественно, пакет не собирается. Может имеет смысл для сборки оформить
> > > эти субмодули как отдельные бранчи и перед сборкой gear'ом мерджить
> > > основной upstream-бранч и эти бранчи субмодулей в другой бранч (кстати,
> > > как его лучше назвать? и какой метой мерджа задействовать?)?
> >
> > -s subtree.
> 
> Например? Как указать каталог, в который нужно мерджить?

http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.org/

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

  reply	other threads:[~2008-12-08  6:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-07 16:06 Led
2008-12-07 16:49 ` Sergey Vlasov
2008-12-07 17:03   ` Led
2008-12-07 17:58     ` Kirill A. Shutemov
2008-12-08  1:12       ` Led
2008-12-08  6:19         ` Kirill A. Shutemov [this message]
2008-12-08  8:49           ` Led
2008-12-08 10:28             ` Sergey Vlasov
2008-12-08 11:26               ` Led

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=20081208061957.GB16378@epbyminw8406h.minsk.epam.com \
    --to=kirill@shutemov.name \
    --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