[devel] git submodules on git.alt

Dmitry V. Levin ldv на altlinux.org
Сб Янв 9 22:43:28 UTC 2010


On Sat, Jan 09, 2010 at 08:19:09PM +0000, Max Ivanov wrote:
> How to deal with git submodules? Upstream uses them in some places and
> I don't know how to put their content in the final source tree prior
> to %build stage. Is it even possible?

Due to the fundamental problem already described in this thread, you
cannot use git submodules AS IS to build packages using gear.  There is
simple workaround you can use to overcome this problem:
1. Extract each submodule into separate tarball using appropriate
   .gear/rules; this is trivial because you know commit ids.
2. Make sure that your build commit inherits to all these submodule
   commits.

Unfortunately, there are no means in gear-update-*whatever* yet to
automate this work.


-- 
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 198 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20100110/3e29b2b3/attachment.bin>


Подробная информация о списке рассылки Devel