If you have a recipe with an unclosed function before EOF then you'd expect an error, but you don't get one - here's a trivial reproducer: -------- snip --------- LICENSE = "CLOSED" SRC_URI = "" do_install() { echo "hello" inherit autotools gettext -------- snip --------- This recipe builds without error. It seems the do_install function isn't even used, the default implementation is used instead.
A related issue I just discovered - apparently if your closing } is not the first character on the line it also triggers the same behaviour (the function definition is completely ignored).
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=fd731142e9e6d31c6735228c67ae0e87b6d4d239 along with a test: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2a56445b9bb46357187425def7adc9ddc240b60a http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bc162d21dd148252efcf3ed771e04c791ef4d869
Verified on master: 8ef99a00dc75c6eed87aa1bc1528614a2a27eddf