<?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>14012</bug_id>
          
          <creation_ts>2020-08-16 22:34:24 +0000</creation_ts>
          <short_desc>Archiver fails for recipe linux-ti-staging in meta-ti, beaglebone.</short_desc>
          <delta_ts>2021-01-26 21:44:00 +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>BSPs</product>
          <component>bsps-meta-ti</component>
          <version>3.0.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Hansson">pahansson73</reporter>
          <assigned_to name="Denys Dmytriyenko">denis</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87962</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Hansson">pahansson73</who>
    <bug_when>2020-08-16 22:34:24 +0000</bug_when>
    <thetext>Build of archive fail for thud(2.6.4) and zeus(3.0.3) (  although with differnt error messages) for the beaglebone machine. Dunfell seems to work fine!

Reproduce for zeus:

git clone -b zeus http://git.yoctoproject.org/cgit/cgit.cgi/poky
git clone -b zeus https://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/

. ./poky/oe-init-build-env
echo &apos;INHERIT += &quot;archiver&quot; &apos; &gt;&gt; conf/local.conf
echo &apos;ARCHIVER_MODE[src] = &quot;patched&quot; &apos; &gt;&gt; conf/local.conf
echo &apos;MACHINE = &quot;beaglebone&quot; &apos; &gt;&gt; conf/local.conf

bitbake-layers add-layer ../meta-ti
bitbake core-image-minimal

Result:


Build Configuration:
BB_VERSION           = &quot;1.44.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;arm-poky-linux-gnueabi&quot;
MACHINE              = &quot;beaglebone&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;3.0.3&quot;
TUNE_FEATURES        = &quot;arm armv7a vfp thumb neon callconvention-hard&quot;
TARGET_FPU           = &quot;hard&quot;
meta
meta-poky
meta-yocto-bsp       = &quot;HEAD:fb9a4d23c3de9b0140c999322034f8c969e8b1c7&quot;
meta-ti              = &quot;HEAD:f6e024415b42adaa0d6ca04da83c86dcf92dfd87&quot;

Error msg:

DEBUG: Executing python function do_ar_patched
NOTE: Archiving the patched source...
NOTE: Creating /mnt/scratch/work/andreash/test_archiver_zeus/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-ti-staging/5.4.28+gitAUTOINC+6f3bf13d53-r22a/deploy-sources/arm-poky-linux-gnueabi/linux-ti-staging-5.4.28+gitAUTOINC+6f3bf13d53-r22a/linux-ti-staging-5.4.28+gitAUTOINC+6f3bf13d53-r22a-patched.tar.gz
ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_ar_patched(d)
     0003:
File: &apos;/mnt/scratch/work/andreash/test_archiver_zeus/poky/meta/classes/archiver.bbclass&apos;, lineno: 228, function: do_ar_patched
     0224:    if not is_work_shared(d):
     0225:        ar_workdir = d.getVar(&apos;ARCHIVER_WORKDIR&apos;)
     0226:        d.setVar(&apos;WORKDIR&apos;, ar_workdir)
     0227:    bb.note(&apos;Archiving the patched source...&apos;)
 *** 0228:    create_tarball(d, d.getVar(&apos;S&apos;), &apos;patched&apos;, ar_outdir)
     0229:}
     0230:
     0231:python do_ar_configured() {
     0232:    import shutil
File: &apos;/mnt/scratch/work/andreash/test_archiver_zeus/poky/meta/classes/archiver.bbclass&apos;, lineno: 316, function: create_tarball
     0312:    tarname = os.path.join(ar_outdir, filename)
     0313:
     0314:    bb.note(&apos;Creating %s&apos; % tarname)
     0315:    tar = tarfile.open(tarname, &apos;w:gz&apos;)
 *** 0316:    tar.add(srcdir, arcname=os.path.basename(srcdir), filter=exclude_useless_paths)
     0317:    tar.close()
     0318:
     0319:# creating .diff.gz between source.orig and source
     0320:def create_diff_gz(d, src_orig, src, ar_outdir):
File: &apos;/usr/lib/python3.5/tarfile.py&apos;, lineno: 1947, function: add
     1943:            self.addfile(tarinfo)
     1944:            if recursive:
     1945:                for f in os.listdir(name):
     1946:                    self.add(os.path.join(name, f), os.path.join(arcname, f),
 *** 1947:                            recursive, exclude, filter=filter)
     1948:
     1949:        else:
     1950:            self.addfile(tarinfo)
     1951:
File: &apos;/usr/lib/python3.5/tarfile.py&apos;, lineno: 1924, function: add
     1920:
     1921:        self._dbg(1, name)
     1922:
     1923:        # Create a TarInfo object from the file.
 *** 1924:        tarinfo = self.gettarinfo(name, arcname)
     1925:
     1926:        if tarinfo is None:
     1927:            self._dbg(1, &quot;tarfile: Unsupported type %r&quot; % name)
     1928:            return
File: &apos;/usr/lib/python3.5/tarfile.py&apos;, lineno: 1793, function: gettarinfo
     1789:        # Use os.stat or os.lstat, depending on platform
     1790:        # and if symlinks shall be resolved.
     1791:        if fileobj is None:
     1792:            if hasattr(os, &quot;lstat&quot;) and not self.dereference:
 *** 1793:                statres = os.lstat(name)
     1794:            else:
     1795:                statres = os.stat(name)
     1796:        else:
     1797:            statres = os.fstat(fileobj.fileno())
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/mnt/scratch/work/andreash/test_archiver_zeus/build/tmp/work-shared/beaglebone/kernel-source/.tmp.config.g4PPkPSRcF&apos;

DEBUG: Python function do_ar_patched finished


------------------------------------------------------------------------------------------


Reproduce for thud:

git clone -b thud http://git.yoctoproject.org/cgit/cgit.cgi/poky
git clone -b thud https://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/

. ./poky/oe-init-build-env
echo &apos;INHERIT += &quot;archiver&quot; &apos; &gt;&gt; conf/local.conf
echo &apos;ARCHIVER_MODE[src] = &quot;patched&quot; &apos; &gt;&gt; conf/local.conf
echo &apos;MACHINE = &quot;beaglebone&quot; &apos; &gt;&gt; conf/local.conf
bitbake-layers add-layer ../meta-ti

bitbake core-image-minimal

Result:
Build Configuration:
BB_VERSION           = &quot;1.40.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;arm-poky-linux-gnueabi&quot;
MACHINE              = &quot;beaglebone&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.6.4&quot;
TUNE_FEATURES        = &quot;arm armv7a vfp thumb neon callconvention-hard&quot;
TARGET_FPU           = &quot;hard&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;thud:3315b9f4a55c7f9ded954fe990174e9382827739&quot;
meta-ti              = &quot;thud:b27317ab4f9be931a66344ca502c7e3f4ec780e5&quot;



Error msg:

DEBUG: Executing python function do_ar_patched
NOTE: Archiving the patched source...
NOTE: Creating /mnt/scratch/work/andreash/test_archiver/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+5a23bc00e0-r22a/deploy-sources/arm-poky-linux-gnueabi/linux-ti-staging-4.19.94+gitAUTOINC+5a23bc00e0-r22a/linux-ti-staging-4.19.94+gitAUTOINC+5a23bc00e0-r22a-patched.tar.gz
ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_ar_patched(d)
     0003:
File: &apos;/mnt/scratch/work/andreash/test_archiver/poky/meta/classes/archiver.bbclass&apos;, lineno: 219, function: do_ar_patched
     0215:    ar_outdir = d.getVar(&apos;ARCHIVER_OUTDIR&apos;)
     0216:    ar_workdir = d.getVar(&apos;ARCHIVER_WORKDIR&apos;)
     0217:    bb.note(&apos;Archiving the patched source...&apos;)
     0218:    d.setVar(&apos;WORKDIR&apos;, ar_workdir)
 *** 0219:    create_tarball(d, d.getVar(&apos;S&apos;), &apos;patched&apos;, ar_outdir)
     0220:}
     0221:
     0222:python do_ar_configured() {
     0223:    import shutil
File: &apos;/mnt/scratch/work/andreash/test_archiver/poky/meta/classes/archiver.bbclass&apos;, lineno: 307, function: create_tarball
     0303:    tarname = os.path.join(ar_outdir, filename)
     0304:
     0305:    bb.note(&apos;Creating %s&apos; % tarname)
     0306:    tar = tarfile.open(tarname, &apos;w:gz&apos;)
 *** 0307:    tar.add(srcdir, arcname=os.path.basename(srcdir), filter=exclude_useless_paths)
     0308:    tar.close()
     0309:
     0310:# creating .diff.gz between source.orig and source
     0311:def create_diff_gz(d, src_orig, src, ar_outdir):
File: &apos;/usr/lib/python3.5/tarfile.py&apos;, lineno: 1924, function: add
     1920:
     1921:        self._dbg(1, name)
     1922:
     1923:        # Create a TarInfo object from the file.
 *** 1924:        tarinfo = self.gettarinfo(name, arcname)
     1925:
     1926:        if tarinfo is None:
     1927:            self._dbg(1, &quot;tarfile: Unsupported type %r&quot; % name)
     1928:            return
File: &apos;/usr/lib/python3.5/tarfile.py&apos;, lineno: 1793, function: gettarinfo
     1789:        # Use os.stat or os.lstat, depending on platform
     1790:        # and if symlinks shall be resolved.
     1791:        if fileobj is None:
     1792:            if hasattr(os, &quot;lstat&quot;) and not self.dereference:
 *** 1793:                statres = os.lstat(name)
     1794:            else:
     1795:                statres = os.stat(name)
     1796:        else:
     1797:            statres = os.fstat(fileobj.fileno())
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/mnt/scratch/work/andreash/test_archiver/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+5a23bc00e0-r22a/archiver-work/git&apos;

DEBUG: Python function do_ar_patched finished
ERROR: Function failed: do_ar_patched</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89037</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2021-01-26 21:44:00 +0000</bug_when>
    <thetext>Works in dunfell and master. thud and zeus are obsolete now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>