| Summary: | Long filename detection may not be working (in Jethro at least) | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Joshua Lock <joshuagloe> |
| Component: | core | Assignee: | Joshua Lock <joshuagloe> |
| Status: | RESOLVED INVALID | QA Contact: | Aníbal Limón <anibal.limon> |
| Severity: | normal | ||
| Priority: | High | CC: | anibal.limon, benjamin.esquivel, bogdanx.a.voiculescu, jose.a.lamego, meta.mr.watcher, meta.watcher |
| Version: | 2.1 | ||
| Target Milestone: | 2.1 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Joshua Lock
2016-03-31 13:17:17 UTC
Note it'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't running in certain circumstances? Or perhaps we aren't sanity checking enough directories? (In reply to comment #1) > Note it'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't running in certain > circumstances? Or perhaps we aren'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>&1 > bitbake_log.txt ERROR: OE-core'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'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. (In reply to comment #2) > (In reply to comment #1) > > Note it'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't running in certain > > circumstances? Or perhaps we aren'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>&1 > > bitbake_log.txt > ERROR: OE-core'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'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. Also the check works on jethro. Also works the case when move the folder in master,
ERROR: OE-core'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.
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. Jose and me couldn't reproduce it the sanity check works as expected. I guess the guy from stack overflow uses a special case (variable, modify code). (In reply to comment #6) > Jose and me couldn'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. > > I guess the guy from stack overflow uses a special case (variable, modify > code). (In reply to comment #7) > (In reply to comment #6) > > Jose and me couldn'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. > > > > I guess the guy from stack overflow uses a special case (variable, modify > > 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'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!. 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 |