Bug 8845

Summary: freetype-native fails to re-execute do_configure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, ross.burton
Version: 2.0   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2015-12-21 20:30:06 UTC
At some point freetype-native do_configure was triggered again on my system, presumably due to a change in a dependency, and the result was this failure:

--------- snip ---------
ERROR: Function failed: autotools_preconfigure (log file is located at /home/paul/poky/poky/build/tmp/work/x86_64-linux/freetype-native/2.6-r0/temp/log.do_configure.13524)
ERROR: Logfile of failure stored in: /home/paul/poky/poky/build/tmp/work/x86_64-linux/freetype-native/2.6-r0/temp/log.do_configure.13524
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| Running "make clean" in /home/paul/poky/poky/build/tmp/work/x86_64-linux/freetype-native/2.6-r0/freetype-2.6
| config.mk:25: builds/unix/unix-def.mk: No such file or directory
| config.mk:26: builds/unix/unix-cc.mk: No such file or directory
| make: execvp: ./include/freetype.h: Permission denied
| make: *** No rule to make target 'builds/unix/unix-cc.mk'.  Stop.
| WARNING: /home/paul/poky/poky/build/tmp/work/x86_64-linux/freetype-native/2.6-r0/temp/run.autotools_preconfigure.13524:1 exit 2 from
|   make clean
| ERROR: Function failed: autotools_preconfigure (log file is located at /home/paul/poky/poky/build/tmp/work/x86_64-linux/freetype-native/2.6-r0/temp/log.do_configure.13524)
ERROR: Task 1929 (virtual:native:/home/paul/poky/poky/meta/recipes-graphics/freetype/freetype_2.6.bb, do_configure) failed with exit code '1'
--------- snip ---------

If I clean and rebuild the issue goes away, and if I then force it with -c configure -f the problem unfortunately doesn't recur; however this isn't the first time I have had this problem recently so clearly there's some underlying issue.
Comment 1 Ross Burton 2016-01-07 15:39:22 UTC
Might just need a CLEAN_BROKEN=1, although it would be interesting to understand why freetype needs to use autotools-brokensep and to see if that can be fixed.
Comment 2 Paul Eggleton 2016-01-07 17:23:13 UTC
Nitpick - that would be CLEANBROKEN = "1".
Comment 3 Ross Burton 2016-01-07 21:41:22 UTC
Had a "quick" look at this during a meeting and ended up rewriting most of the recipe.  Patch on the list.
Comment 4 Ross Burton 2016-01-12 20:44:15 UTC
Fixed in oe-core 80b53d9366455f5e9f654fee53c685aa8fd365e7.