ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@basealt.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>,
	"Alexey V. Vissarionov" <gremlin@altlinux.org>
Subject: Re: [devel] git submodule + gear
Date: Fri, 1 Jun 2018 08:53:58 +0300
Message-ID: <aa187cd7-c949-400d-1edc-51e0f95ea831@basealt.ru> (raw)
In-Reply-To: <20180601044405.GB17853@altlinux.org>

01.06.2018 07:44, Alexey V. Vissarionov пишет:
> Коллеги, подскажите рабочий способ борьбы с сабжем.
>
> Вводная: есть каталог с исходниками, а в нем подкаталог (пусть
> будет somelib), добавленный в апстриме через git submodule add.
>
> Задача: сделать так, чтобы при сборке при посредстве gear этот
> каталог попадал в дерево исходников.
>
> Пробовал: git submodule update --rebase, git submodule deinit,
> git rm somelib с последующим git add, переименовать somelib в
> some-lib (это было изрядной глупостью, ибо имя давно и прочно
> прибито гвоздями в существенной части апстримных исходников).
>
> Результат один: `git add --all .` в упор не видит somelib/
>
> Сейчас сделал так, чтобы работало (пакет собирается, заказчик
> удовлетворен). Теперь хочу сделать красиво.
>
> Как?
submodule в отдельной ветке, историю подшиваешь в основную и архивируешь 
его в тарболл через .gear/rules по тэгу.,

Пример - hivex, там gnulib берётся из submodules



  reply	other threads:[~2018-06-01  5:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01  4:44 Alexey V. Vissarionov
2018-06-01  5:53 ` Anton Farygin [this message]
2018-06-01  5:55   ` Alexei Takaseev
2018-06-01  7:02 ` Vladimir D. Seleznev
2018-06-01  7:13   ` Oleg Solovyov

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=aa187cd7-c949-400d-1edc-51e0f95ea831@basealt.ru \
    --to=rider@basealt.ru \
    --cc=devel@lists.altlinux.org \
    --cc=gremlin@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