Bug 14135

Summary: recipe poky/meta/recipes-support/lz4 broken; non-standard default branch name
Product: [Build System, Metadata & Runtime] OE-Core Reporter: wertigon
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: High CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: unspecified   
Target Milestone: 3.3 M1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description wertigon 2020-11-26 09:02:07 UTC
lz4 recently changed the name of their default branch from 'master' to 'dev'. This leads to the recipe not finding the proper hashes, breaking the build.

A short-term solution is to add the branch name to the recipe.

Longer term, bitbake should save the name of the default branch and use that instead of assuming the default branch name is master, but this is outside the scope of this bug.

Relevant output:

WARNING: lz4-native-1_1.9.2-r0 do_fetch: Failed to fetch URL git://github.com/lz4/lz4.git, attempting MIRRORS if available
ERROR: lz4-native-1_1.9.2-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="2444"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/mnt/yocto/test/src/poky/scripts/native-intercept:/mnt/yocto/test/src/poky/scripts:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/usr/bin:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/usr/sbin:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/usr/bin:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/sbin:/mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/recipe-sysroot-native/bin:/mnt/yocto/distro/src/poky/bitbake/bin:/mnt/yocto/distro/build/tmp-glibc/hosttools"; export HOME="/home/per"; tar -xzf /mnt/yocto/distro/build/downloads/git2_github.com.lz4.lz4.git.tar.gz failed with exit code 2, output:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

ERROR: lz4-native-1_1.9.2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/lz4/lz4.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /mnt/yocto/distro/build/tmp-glibc/work/x86_64-linux/lz4-native/1_1.9.2-r0/temp/log.do_fetch.30516
ERROR: Task (virtual:native:/mnt/yocto/distro/src/poky/meta/recipes-support/lz4/lz4_1.9.2.bb:do_fetch) failed with exit code '1'
Comment 1 Richard Purdie 2020-11-30 13:47:53 UTC
We do need to update the recipe. Its not really possible to store the mappings each different upstream use so we'll just have to update the SRC_URIs are upstream projects change. I've sent a patch to update this recipe, thanks for reporting.