USE_GITHUB and submodules

Baptiste Daroussin bapt at FreeBSD.org
Tue May 19 19:07:31 UTC 2015


On Tue, May 19, 2015 at 04:14:58PM -0230, Jonathan Anderson wrote:
> Hi all,
> 
> Is there a mechanism for using the USE_GITHUB variable in a port that
> depends on submodules? For instance, the Rust port requires an embedded
> (and modified) version of LLVM, which it includes as a submodule. Right
> now I'm attempting to add the following to a `post-extract` rule:
> 
> post-extract:
>     cd ${WRKSRC} && \
>     git init && \
>     git remote add origin https://github.com/${GH_ACCOUNT}/${PORTNAME} && \
>     git fetch && \
>     git reset --hard ${PORTVERSION} && \
>     git submodule init && \
>     git submodule update --recursive
> 
> But this seems quite hackish! It would be great if submodules Just
> Worked... but alternatively, is there a USE_GITHUB_URL or somesuch that
> would check things out via Git instead of tarball to save me the `git
> init` through `git reset` steps?
> 
> Cheers,

We do need something we can make a digest of hence no checking out from git or
so.

Your mechanism will just fail when build on the cluster :)

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150519/cba6ffd7/attachment.sig>


More information about the freebsd-ports mailing list