devel@ where you _can_ ask
 help / color / mirror / Atom feed
* [newbies] git clone --recursive
@ 2017-11-13 14:09 Stas
  2017-11-13 15:23 ` Ivan Zakharyaschev
  0 siblings, 1 reply; 2+ messages in thread
From: Stas @ 2017-11-13 14:09 UTC (permalink / raw)
  To: devel-newbies

Приветствую!


Хочу сделать пакет fuse-marcfs

В апстримовой инструкции по сборке указано скачать исходники так:

git clone --recursive https://gitlab.com/Kanedias/MARC-FS.git

Как в таких случаях правильно делать репозитарий gear? Пытался
склонировать апстрим - облом. Пытался создать пустой репозитарий и
смержить с апстримом - облом.

Конкретно в этом случае рекурсивно качаются исходники libcurlcpp и
googletest:

$ cat MARC-FS/.gitmodules
[submodule "curlcpp"]
        path = contrib/curlcpp
    url = https://github.com/JosephP91/curlcpp.git
    ignore = dirty
[submodule "contrib/googletest"]
        path = contrib/googletest
        url = https://github.com/google/googletest


-- 
Станислав Дёгтев
Служба "Ваш админ"
 Мои контакты:
 - jabber: grumbler@grumbler.org
 - email: stas.grumbler@gmail.com и stas@vashadmin.su
 - телефоны в Е-бурге +79045430461, +79222112259, +79505571146


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [newbies] git clone --recursive
  2017-11-13 14:09 [newbies] git clone --recursive Stas
@ 2017-11-13 15:23 ` Ivan Zakharyaschev
  0 siblings, 0 replies; 2+ messages in thread
From: Ivan Zakharyaschev @ 2017-11-13 15:23 UTC (permalink / raw)
  To: devel@ where you _can_ ask

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

Hello!

On Mon, 13 Nov 2017, Stas wrote:

> Хочу сделать пакет fuse-marcfs
>
> В апстримовой инструкции по сборке указано скачать исходники так:
>
> git clone --recursive https://gitlab.com/Kanedias/MARC-FS.git
>
> Как в таких случаях правильно делать репозитарий gear? Пытался

Известная проблема: https://bugzilla.altlinux.org/show_bug.cgi?id=17914

но можно справиться обычными средствами gear "вручную", если только 
submoduleй не сотни.

> склонировать апстрим - облом. Пытался создать пустой репозитарий и
> смержить с апстримом - облом.
>
> Конкретно в этом случае рекурсивно качаются исходники libcurlcpp и
> googletest:
>
> $ cat MARC-FS/.gitmodules
> [submodule "curlcpp"]
>        path = contrib/curlcpp
>    url = https://github.com/JosephP91/curlcpp.git
>    ignore = dirty
> [submodule "contrib/googletest"]
>        path = contrib/googletest
>        url = https://github.com/google/googletest

Если это независмые полезные штуки, можно собрать отдельные пакеты и 
использовать их в BuildRequires.

Если взаимодействие более тесное, чем может быть между пакетами (как с 
библиотекой или вызываемая команда), то можно в .gear/rules написать 
правило tar: PROJECT1_TAG1:. name=...

и, конечно, сделать что-нибудь вроде git merge -s ours PROJECT1_TAG1 перед 
созданием сборочного коммита.

Как получить PROJECT1_TAG1? Ну по сути как-то так:

git fetch PROJECT1_URL refs/tags/TAG1:refs/tags/PROJECT1_TAG1

Имеется в виду, что и другие refs можно сфетчить. (Ветки, тэги.)

-- 
Best regards,
Ivan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-13 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 14:09 [newbies] git clone --recursive Stas
2017-11-13 15:23 ` Ivan Zakharyaschev

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git