<?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>7959</bug_id>
          
          <creation_ts>2015-07-06 12:27:54 +0000</creation_ts>
          <short_desc>archiver.bbclass: fails for linux--yocto when archiving patched source</short_desc>
          <delta_ts>2016-03-07 15:20:50 +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>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>cristina-danielax.agurida</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <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>52143</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-07-06 12:27:54 +0000</bug_when>
    <thetext>I&apos;m using Poky 1.8 Fido, default configuration with the following added to local.conf:

INHERIT += &quot;archiver&quot;
ARCHIVER_MODE[src] = &quot;patched&quot;

Archiving linux-yocto in that configuration fails:

$ bitbake -c deploy_archives linux-yocto
Loading cache: 100% |#########################################################################| ETA:  00:00:00
Loaded 1286 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.26.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Debian-8.0&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.8&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;fido:58b038b7783b32aeb8ee138728b6d801dacd7da4&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_patch (log file is located at /work/build/poky/tmp/work/qemux86-poky-linux/linux-yocto/3.19.2+gitAUTOINC+9e70b482d3_31b35da6a5-r0/temp/log.do_unpack_and_patch.19823)
ERROR: Logfile of failure stored in: /work/build/poky/tmp/work/qemux86-poky-linux/linux-yocto/3.19.2+gitAUTOINC+9e70b482d3_31b35da6a5-r0/temp/log.do_unpack_and_patch.19823
Log data follows:
| DEBUG: Executing python function do_unpack_and_patch
| DEBUG: Executing python function do_unpack
| DEBUG: Executing python function base_do_unpack
| DEBUG: Running export SSH_AUTH_SOCK=&quot;/tmp/ssh-WWbRxAatz9/agent.1276&quot;; export PATH=&quot;/work/poky/scripts:/work/build/poky/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux:/work/build/poky/tmp/sysroots/qemux86/usr/bin/crossscripts:/work/build/poky/tmp/sysroots/x86_64-linux/usr/sbin:/work/build/poky/tmp/sysroots/x86_64-linux/usr/bin:/work/build/poky/tmp/sysroots/x86_64-linux/sbin:/work/build/poky/tmp/sysroots/x86_64-linux/bin:/work/poky/scripts:/work/poky/bitbake/bin:/home/pohly/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games&quot;; export HOME=&quot;/home/pohly&quot;; git -c core.fsyncobjectfiles=0 clone -s -n --mirror /work/build/poky/downloads/git2/git.yoctoproject.org.linux-yocto-3.19.git/ /work/build/poky/tmp/work/qemux86-poky-linux/linux-yocto/3.19.2+gitAUTOINC+9e70b482d3_31b35da6a5-r0/archiver-work/git/
| DEBUG: Python function base_do_unpack finished
| DEBUG: Python function do_unpack finished
| DEBUG: Executing shell function do_kernel_checkout
| Switched to branch &apos;standard/common-pc&apos;
| DEBUG: Shell function do_kernel_checkout finished
| DEBUG: Executing shell function do_validate_branches
| NOTE: Setting branch meta to 9e70b482d3773abf92c9c5850e134cbca1d5651f
| Branch standard/common-pc-orig set up to track remote branch standard/common-pc from origin.
| HEAD is now at 31b35da Merge tag &apos;v3.19.2&apos; into standard/base
| DEBUG: Shell function do_validate_branches finished
| DEBUG: Executing shell function do_patch
| ls: cannot access .meta*: No such file or directory
| find: `.meta/cfg/scratch&apos;: No such file or directory
| ERROR. Could not locate meta series for qemux86
| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_unpack_and_patch finished
| ERROR: Function failed: do_patch (log file is located at /work/build/poky/tmp/work/qemux86-poky-linux/linux-yocto/3.19.2+gitAUTOINC+9e70b482d3_31b35da6a5-r0/temp/log.do_unpack_and_patch.19823)
ERROR: Task 6 (/work/poky/meta/recipes-kernel/linux/linux-yocto_3.19.bb, do_unpack_and_patch) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 21 tasks of which 7 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (21 of 23)

Summary: 1 task failed:
  /work/poky/meta/recipes-kernel/linux/linux-yocto_3.19.bb, do_unpack_and_patch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52243</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-07-09 15:09:10 +0000</bug_when>
    <thetext>There&apos;s actually a related problem which probably has the same root cause: when using ARCHIVER_MODE[src] = &quot;original&quot;, the archive contains just git meta data, but no actual source code - not what is expected and needed from a GPL license perspective.

$ tar ztvf tmp-glibc/deploy/sources/i586-iotos-linux/linux-yocto-3.19.5+gitAUTOINC+118f27167f_e152349de5-r0/git.yoctoproject.org.linux-yocto-3.19.git.118f27167f_e152349de5.tar.gz 
drwx------ pohly/pohly       0 2015-07-09 17:08 ./
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/
-rw-r--r-- pohly/pohly   44227 2015-07-09 17:08 ./git/packed-refs
-rwxr--r-- pohly/pohly     219 2015-07-09 17:08 ./git/config
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/hooks/
-rwxr-xr-x pohly/pohly    1352 2015-07-09 17:08 ./git/hooks/pre-push.sample
-rwxr-xr-x pohly/pohly     189 2015-07-09 17:08 ./git/hooks/post-update.sample
-rwxr-xr-x pohly/pohly    3611 2015-07-09 17:08 ./git/hooks/update.sample
-rwxr-xr-x pohly/pohly    1642 2015-07-09 17:08 ./git/hooks/pre-commit.sample
-rwxr-xr-x pohly/pohly     452 2015-07-09 17:08 ./git/hooks/applypatch-msg.sample
-rwxr-xr-x pohly/pohly     398 2015-07-09 17:08 ./git/hooks/pre-applypatch.sample
-rwxr-xr-x pohly/pohly     896 2015-07-09 17:08 ./git/hooks/commit-msg.sample
-rwxr-xr-x pohly/pohly    4898 2015-07-09 17:08 ./git/hooks/pre-rebase.sample
-rwxr-xr-x pohly/pohly    1239 2015-07-09 17:08 ./git/hooks/prepare-commit-msg.sample
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/info/
-rw-r--r-- pohly/pohly     240 2015-07-09 17:08 ./git/info/exclude
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/objects/
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/objects/info/
-rw-r--r-- pohly/pohly      97 2015-07-09 17:08 ./git/objects/info/alternates
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/objects/pack/
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/branches/
-rw-r--r-- pohly/pohly      73 2015-07-09 17:08 ./git/description
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/refs/
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/refs/heads/
drwxr-xr-x pohly/pohly       0 2015-07-09 17:08 ./git/refs/tags/
-rw-r--r-- pohly/pohly      23 2015-07-09 17:08 ./git/HEAD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58871</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-11 11:42:56 +0000</bug_when>
    <thetext>There&apos;s been a number of changes to the archive in the 2.1 cycle, is this still a problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58880</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-02-11 12:29:24 +0000</bug_when>
    <thetext>Seems to work now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59764</commentid>
    <comment_count>4</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2016-03-07 15:20:50 +0000</bug_when>
    <thetext>Verified on master: d2c96caa40d6979792b7b73f37e81e2bc67f6735</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>