<?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>6986</bug_id>
          
          <creation_ts>2014-11-20 18:23:47 +0000</creation_ts>
          <short_desc>linux-yocto do_patch fails with a long working directory path</short_desc>
          <delta_ts>2023-06-08 21:51:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sami RHATAY">sami.rhatay</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>nat.bailey</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <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>47118</commentid>
    <comment_count>0</comment_count>
    <who name="Sami RHATAY">sami.rhatay</who>
    <bug_when>2014-11-20 18:23:47 +0000</bug_when>
    <thetext>It seems that a too long working directory path in file bblayers.conf provoke an error during patching linux-yocto.

After some researches, I changed the working directory path of my project by a shorter one and after do_patch succeeded.

I changed the working directory path from &apos;/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto&apos; to &apos;/home/opengraphvirt/yocto&apos; . 

The build configuration :

Build Configuration:
BB_VERSION        = &quot;1.24.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;openSUSE-project-13.2&quot;
TARGET_SYS        = &quot;x86_64-oe-linux&quot;
MACHINE           = &quot;romley-ivb&quot;
DISTRO            = &quot;tizen&quot;
DISTRO_VERSION    = &quot;3.0&quot;
TUNE_FEATURES     = &quot;m64 corei7&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:edaeb8940813b620090a0797ad3b6a076897512d&quot;
meta-oe           = &quot;master:c78eca1ea7452a62f86b740ec59f1cd39e399d73&quot;
meta-tizen-adaptation
meta-tizen-common-base
meta-tizen-common-demo
meta-tizen-common-devtools
meta-tizen-common-share
meta-tizen-ivi    = &quot;tizen:85b4ad68e285d3303cf962a173829df8c220db18&quot;
meta-intel
meta-romley       = &quot;master:0f6d30a95c84ec239f5a30bbfba17ed42e2cf284&quot;

+--------------------------------+

Error log with the old path : 

| WARNING:
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/work/romley_ivb-oe-linux/linux-yocto/3.14.19+gitAUTOINC+28e39741b8_902f34d361-r0/temp/run.do_patch.20978:1
exit 1 from

| DEBUG: Executing shell function do_patch
| [INFO]: checkpoint is already restored, nothing to do
| [INFO] validating against known patches  (intel-corei7-64-standard-meta)
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/sysroots/x86_64-linux/usr/bin/kgit-s2q:
line 96:
meta/patches/standard/base/links/0001-net-ptp-move-PTP-classifier-in-its-own-file.patch:
No such file or directory
|
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/sysroots/x86_64-linux/usr/bin/kgit-s2q:
line 96:
meta/patches/standard/base/links/0001-net-ptp-do-not-reimplement-PTP-BPF-classifier.patch:
No such file or directory
|
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/sysroots/x86_64-linux/usr/bin/kgit-s2q:
line 96:
meta/patches/standard/base/links/0001-net-ptp-use-sk_unattached_filter_create-for-BPF.patch:
No such file or directory
|
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/sysroots/x86_64-linux/usr/bin/kgit-s2q:
line 96:
meta/patches/standard/base/links/0002-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch:
No such file or directory
|
/home/opengraphvirt/open_graph_virt_a/developpements/compilation_tizen/yocto/build-melissa/tmp-glibc-glibc/sysroots/x86_64-linux/usr/bin/kgit-s2q:
line 96:
meta/patches/standard/base/links/0001-Smack-Cgroup-filesystem-access.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-move-PTP-classifier-in-its-own-file.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-do-not-reimplement-PTP-BPF-classifier.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-use-sk_unattached_filter_create-for-BPF.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0002-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-Smack-Cgroup-filesystem-access.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-move-PTP-classifier-in-its-own-file.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-do-not-reimplement-PTP-BPF-classifier.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-use-sk_unattached_filter_create-for-BPF.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0002-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-Smack-Cgroup-filesystem-access.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-move-PTP-classifier-in-its-own-file.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-move-PTP-classifier-in-its-own-file.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-do-not-reimplement-PTP-BPF-classifier.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-do-not-reimplement-PTP-BPF-classifier.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-use-sk_unattached_filter_create-for-BPF.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-net-ptp-use-sk_unattached_filter_create-for-BPF.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0002-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0002-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-Smack-Cgroup-filesystem-access.patch:
No such file or directory
| cat:
meta/patches/standard/base/links/0001-Smack-Cgroup-filesystem-access.patch:
No such file or directory
| ERROR. could not update git tree
| ERROR: Could not apply patches for intel-corei7-64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47235</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-11-27 15:56:55 +0000</bug_when>
    <thetext>Forgot to accept this earlier. I&apos;ll have a look .. but it is likely just more nasty PATH_MAX
issues, which I can deal with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76847</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-09-14 15:33:14 +0000</bug_when>
    <thetext>I&apos;m holding onto this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83882</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2019-05-22 20:53:41 +0000</bug_when>
    <thetext>This is not popping up often (at all), so I&apos;m moving this to 2.99 to clear cycles for more pressing issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90510</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-27 15:19:12 +0000</bug_when>
    <thetext>We think this might have been fixed. Tony will try to reproduce it on master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95614</commentid>
    <comment_count>5</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-06-01 15:11:46 +0000</bug_when>
    <thetext>This bug and the linked fix may apply to this bug :
12374 – do_rootfs failed when len(TMPDIR) == 410
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12374</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95644</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-08 00:30:51 +0000</bug_when>
    <thetext>Nat is doing some test builds of:

$ bitbake -c patch linux-yocto on master.

to see if this fails before the sqlite3 check, that Yoann mentioned, kicks in.
So far a depth of 328 is fine and 504 is the limit for sqlite3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95689</commentid>
    <comment_count>7</comment_count>
    <who name="Natasha Bailey">nat.bailey</who>
    <bug_when>2023-06-08 21:51:37 +0000</bug_when>
    <thetext>Tried to reproduce on Mickledore and wasn&apos;t able to. Here are my steps:
1. Did a normal build with a normal path length to ensure everything was working
2. Created a super long working path and moved the poky directory into that path
3. Ran bitbake -c patch linux-yocto in that new subdirectory with a path length of 350 characters (see below)

$ pwd
/server-wxyz/nbailey/long-dirname-testing/aaaaaaaaaa/bbbbbbbbbb/cccccccccc/dddddddddd/eeeeeeeeee/ffffffffff/gggggggg
gg/hhhhhhhhhh/iiiiiiiiii/jjjjjjjjjj/kkkkkkkkkk/llllllllll/mmmmmmmmmm/nnnnnnnnnn/oo
oooooooo/pppppppppp/qqqqqqqqqq/rrrrrrrrrr/ssssssssss/tttttttttt/uuuuuuuuuu/vvvvvvv
vvv/wwwwwwwwww/xxxxxxxxxx/yyyyyyyyyy/zzzzzzzzzz/aaaaaaaaaa/poky/build
$ pwd | wc
      1       1     350

... and got a successful build.
4. Repeated steps 2 and 3 for some different path lengths (427 characters, 482 characters, and 471 characters)

I only encountered a failure when the path length was 482, which triggered the sqlite check for database path length &gt; 504 characters, which is something that is already known about as a separate issue. Going to mark this as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>