<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14135</bug_id>
          
          <creation_ts>2020-11-26 09:02:07 +0000</creation_ts>
          <short_desc>recipe poky/meta/recipes-support/lz4 broken; non-standard default branch name</short_desc>
          <delta_ts>2020-12-10 16:09:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>3.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>wertigon</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88677</commentid>
    <comment_count>0</comment_count>
    <who name="">wertigon</who>
    <bug_when>2020-11-26 09:02:07 +0000</bug_when>
    <thetext>lz4 recently changed the name of their default branch from &apos;master&apos; to &apos;dev&apos;. 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=&quot;unix:path=/run/user/1000/bus&quot;; export SSH_AGENT_PID=&quot;2444&quot;; export SSH_AUTH_SOCK=&quot;/run/user/1000/keyring/ssh&quot;; export PATH=&quot;/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&quot;; export HOME=&quot;/home/per&quot;; 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: &apos;git://github.com/lz4/lz4.git&apos;. 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 &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88690</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-11-30 13:47:53 +0000</bug_when>
    <thetext>We do need to update the recipe. Its not really possible to store the mappings each different upstream use so we&apos;ll just have to update the SRC_URIs are upstream projects change. I&apos;ve sent a patch to update this recipe, thanks for reporting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88759</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-12-10 16:09:57 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d18bde251f0b31a2bf30e6dd9d43d0c72ae13b69</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>