devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] git clone --recursive
Date: Mon, 13 Nov 2017 18:23:32 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1711131804030.1631@imap.altlinux.org> (raw)
In-Reply-To: <0ffd6381-2ad4-4138-4b2a-e8e2871dbc0b@gmail.com>

[-- 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

      reply	other threads:[~2017-11-13 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 14:09 Stas
2017-11-13 15:23 ` Ivan Zakharyaschev [this message]

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=alpine.LFD.2.20.1711131804030.1631@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel-newbies@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

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