<?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>9364</bug_id>
          
          <creation_ts>2016-03-31 13:17:17 +0000</creation_ts>
          <short_desc>Long filename detection may not be working (in Jethro at least)</short_desc>
          <delta_ts>2016-05-05 11:37:53 +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>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>jose.a.lamego</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Aníbal Limón">anibal.limon</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>60593</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-03-31 13:17:17 +0000</bug_when>
    <thetext>A user on stack overflow reported [1] seeing &quot;[Errno 36] File name too long&quot; when trying to build with jethro on Ubuntu 14.04.

We are supposed to detect long filename support in sanity.bbclass but the user pasted a screenshot [2] of a backtrace which suggests this check didn&apos;t run even though the backtrace was triggered in do_configure of linux-libc-headers

We should verify that this check is still functional and ensure it is always run when appropriate to do so.

1. http://stackoverflow.com/questions/36291908/error-file-name-too-long-yocto-project
2. http://i.stack.imgur.com/0tATF.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60604</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-03-31 15:02:22 +0000</bug_when>
    <thetext>Note it&apos;s expected that this will occur in master also but the report on stackoverflow specifically mentioned jethro — please test on master first.

To reproduce this issue we will need to build inside an Ubuntu eCrytpfs encrypted home directory (iirc this is an option during the user creation step of the ubuntu installer).

The long filename checking (check_create_long_filename) in sanity.bbclass is supposed to catch this issue on SSTATE_DIR and TMPDIR

Perhaps the issue is that the sanity check isn&apos;t running in certain circumstances? Or perhaps we aren&apos;t sanity checking enough directories?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60619</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-03-31 17:46:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Note it&apos;s expected that this will occur in master also but the report on
&gt; stackoverflow specifically mentioned jethro — please test on master first.
&gt; 
&gt; To reproduce this issue we will need to build inside an Ubuntu eCrytpfs
&gt; encrypted home directory (iirc this is an option during the user creation
&gt; step of the ubuntu installer).
&gt; 
&gt; The long filename checking (check_create_long_filename) in sanity.bbclass is
&gt; supposed to catch this issue on SSTATE_DIR and TMPDIR
&gt; 
&gt; Perhaps the issue is that the sanity check isn&apos;t running in certain
&gt; circumstances? Or perhaps we aren&apos;t sanity checking enough directories?

I tried to reproduce this issue but the check works, i used ecryptfs Private folder under debian8 on master (3ece01215a7b038dbd5cde313754c42d134a887f). See,

alimon@alimonb-mobl1:~/Private/poky/build$ bitbake core-image-minimal 2&gt;&amp;1 &gt; bitbake_log.txt
ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Failed to create a file with a long name in TMPDIR. Please use a filesystem that does not unreasonably limit filename length.
Failed to create a file with a long name in SSTATE_DIR. Please use a filesystem that does not unreasonably limit filename length.

I&apos;ve seen sanity issues before because the sanity tests only runs once at init of new build folder may be the user moved the build folder into a ecryptfs directory in that scenario the bug is reproducible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60620</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-03-31 17:48:45 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Note it&apos;s expected that this will occur in master also but the report on
&gt; &gt; stackoverflow specifically mentioned jethro — please test on master first.
&gt; &gt; 
&gt; &gt; To reproduce this issue we will need to build inside an Ubuntu eCrytpfs
&gt; &gt; encrypted home directory (iirc this is an option during the user creation
&gt; &gt; step of the ubuntu installer).
&gt; &gt; 
&gt; &gt; The long filename checking (check_create_long_filename) in sanity.bbclass is
&gt; &gt; supposed to catch this issue on SSTATE_DIR and TMPDIR
&gt; &gt; 
&gt; &gt; Perhaps the issue is that the sanity check isn&apos;t running in certain
&gt; &gt; circumstances? Or perhaps we aren&apos;t sanity checking enough directories?
&gt; 
&gt; I tried to reproduce this issue but the check works, i used ecryptfs Private
&gt; folder under debian8 on master (3ece01215a7b038dbd5cde313754c42d134a887f).
&gt; See,
&gt; 
&gt; alimon@alimonb-mobl1:~/Private/poky/build$ bitbake core-image-minimal 2&gt;&amp;1 &gt;
&gt; bitbake_log.txt
&gt; ERROR:  OE-core&apos;s config sanity checker detected a potential
&gt; misconfiguration.
&gt;     Either fix the cause of this error or at your own risk disable the
&gt; checker (see sanity.conf).
&gt;     Following is the list of potential problems / advisories:
&gt; 
&gt;     Failed to create a file with a long name in TMPDIR. Please use a
&gt; filesystem that does not unreasonably limit filename length.
&gt; Failed to create a file with a long name in SSTATE_DIR. Please use a
&gt; filesystem that does not unreasonably limit filename length.
&gt; 
&gt; I&apos;ve seen sanity issues before because the sanity tests only runs once at
&gt; init of new build folder may be the user moved the build folder into a
&gt; ecryptfs directory in that scenario the bug is reproducible.

Also the check works on jethro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60621</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-03-31 18:00:44 +0000</bug_when>
    <thetext>Also works the case when move the folder in master,

ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, TMPDIR has changed location. You need to either move it back to /home/alimon/repos/poky/build-test/tmp or rebuild
Failed to create a file with a long name in SSTATE_DIR. Please use a filesystem that does not unreasonably limit filename length.


Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60636</commentid>
    <comment_count>5</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-03-31 22:12:26 +0000</bug_when>
    <thetext>I tried to replicate the issue using same configuration as reporter (Ubuntu 14.04 with encrypted home) without success: Sanity checker catches issue both in SSTATE_DIR and TMPDIR, both in master and in jethro branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60679</commentid>
    <comment_count>6</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-04-01 15:58:24 +0000</bug_when>
    <thetext>Jose and me couldn&apos;t reproduce it the sanity check works as expected.

I guess the guy from stack overflow uses a special case (variable, modify code).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60688</commentid>
    <comment_count>7</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-04-01 16:48:58 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Jose and me couldn&apos;t reproduce it the sanity check works as expected.
Anibal, can you write here what was the procedure you tried for reproducing? I will try to reproduce it today and it would be good to document what we tried each of us.
&gt; 
&gt; I guess the guy from stack overflow uses a special case (variable, modify
&gt; code).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60690</commentid>
    <comment_count>8</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-04-01 16:57:39 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; Jose and me couldn&apos;t reproduce it the sanity check works as expected.
&gt; Anibal, can you write here what was the procedure you tried for reproducing?
&gt; I will try to reproduce it today and it would be good to document what we
&gt; tried each of us.
&gt; &gt; 
&gt; &gt; I guess the guy from stack overflow uses a special case (variable, modify
&gt; &gt; code).

Nothing special, same procedure for debian8 and ubuntu 14.04 inside ecryptfs,

$ git clone http://git.yoctoproject.org/git/poky -b jethro
$ cd poky
$ source oe-init-build-env
$ bitbake core-image-minimal

ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, TMPDIR has changed location. You need to either move it back to /home/alimon/repos/poky/build-test/tmp or rebuild
Failed to create a file with a long name in SSTATE_DIR. Please use a filesystem that does not unreasonably limit filename length.

The sanity test works!.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60792</commentid>
    <comment_count>9</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-05 09:42:53 +0000</bug_when>
    <thetext>It transpires that the user on StackOverflow worked around the sanity checker by copying the conf/sanity_info file from a working build…

http://stackoverflow.com/questions/36291908/error-file-name-too-long-yocto-project#comment60443714_36291908</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>