On Wed, Oct 13, 2021 at 10:18 AM Marc Wiz <[email protected]> wrote:
>
> I recently discovered a couple of issues with building crun.
>
> The first issue is when using a proxy to download source.   crun depends on 
> libocispec which is a git sub-module.  The proxy environment variables are 
> apparently not passed or recognized by the git sub-module code .  The fix is 
> to add the proxy configuration into the git configuration.
>
> The real issue IMHO is that crun depends on libocispec which depends on yajl. 
>  Yajl is not downloaded until the compile task for crun is executed.  This 
> breaks offline builds.
>
> So I am wondering what the best way is to address this?  It seems to me that 
> the Makefiles for libocispec and yajl would need to be modified and the 
> recipe for crun would need to be modified to fetch the dependencies.
>

All of those dependencies are already specified in the recipe, and in
any integration/build testing that I've done, they are all picked up
properly.

libocispec is directly specified in the SRC_URI and placed where crun
will look for it, so that happens in the fetch task.

yajl is specified in DEPENDS, so it will be in place in the recipe
sysroot before compilation starts.  You get a build error without
yajl, so it is properly in place for the builds that I'm doing.

Bruce

> Thanks,
> Marc
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6823): 
https://lists.yoctoproject.org/g/meta-virtualization/message/6823
Mute This Topic: https://lists.yoctoproject.org/mt/86288908/21656
Mute 
#meta-virtualization:https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/meta-virtualization
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to