Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] git sourced packages with submodules
@ 2013-03-25  9:31 Magnus Edenhill
  2013-03-28  6:52 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Edenhill @ 2013-03-25  9:31 UTC (permalink / raw)
  To: buildroot

Hi,

I have a bunch of git sourced packages that utilise submodules.
The submodules (and autoconf* stuff) are set up by calling a ./autogen.sh
script (typically from .._PRE_CONFIGURE_HOOKS).
But this unfortunately does not work since the 'git submodule *'-commands
rely on residing in a functional git repository, but the git downloader
(DOWNLOAD_GIT) uses 'git archive' to move the cloned repository to
output/build/..., and 'git archive' strips the .git/ repo.

The current workaround is to use ..._EXTRACT_CMDS:

define GSTREAMER_EXTRACT_CMDS
rm -rf $(@D)
(git clone --depth 1 $(GSTREAMER_SITE) $(@D) && \
  cd $(@D) && \
git submodule init && \
git submodule update)
 touch $(@D)/.stamp_downloaded
endef


But its a bit intrusive since 'git clone' refuses to clone into a non-empty
directory, so the dest directory needs to be cleaned up (remove
.stamp_downloaded) and then re-setup (create .stamp_downloaded again), and
this relies on the package knowing buildroot internals which is less than
optimal.

A more convenient method would be if there was a ...._PRE_ARCHIVE_HOOKS
that was run just before the 'git archive' in DOWNLOAD_GIT, that would let
the package set up submodules and whatnot.

The other vcs downloaders look similar (svn export...)

Regards,
Magnus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130325/35fcaa11/attachment.html>

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

end of thread, other threads:[~2013-03-28  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25  9:31 [Buildroot] git sourced packages with submodules Magnus Edenhill
2013-03-28  6:52 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox