diff mbox series

[meta-tensorflow,scarthgap] tensorflow.inc: add write permission to 2 more directories

Message ID 20250307075610.2235124-1-martin.jansa@gmail.com
State New
Headers show
Series [meta-tensorflow,scarthgap] tensorflow.inc: add write permission to 2 more directories | expand

Commit Message

Martin Jansa March 7, 2025, 7:56 a.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable

Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
Traceback (most recent call last):
  File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
    bb.utils.remove(workdir, recurse = True)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
    subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.

ERROR: Command execution failed: Traceback (most recent call last):
  File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
    self.cooker.updateCache()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
    bb.event.fire(event, self.databuilder.mcdata[mc])
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
    fire_class_handlers(event, d)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
    execute_handler(name, handler, event, d)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
    ret = handler(event, d)
  File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
    bb.utils.remove(workdir, recurse = True)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
    subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.

Summary: There were 2 ERROR messages, returning a non-zero exit code.

OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 recipes-framework/tensorflow/tensorflow.inc | 3 +++
 1 file changed, 3 insertions(+)

Comments

Martin Jansa March 7, 2025, 9:32 a.m. UTC | #1
Hi,

thank you for merging both, the way how you're applying the changes
from e-mail still mangles the author and commit message.

I've tried to add explicit From: in the e-mail body in hope to avoid
"via lists.yoctoproject.org
<martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
help, instead the From: is still in the merged commit message together
with "CAUTION: .." message from your e-mail configuration.

meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
commit c382865206fe925a02a1cdbdd856e16310bc9dbc
Author:     Martin Jansa via lists.yoctoproject.org
<martin.jansa=gmail.com@lists.yoctoproject.org>
AuthorDate: Fri Mar 7 08:56:10 2025 +0100
Commit:     Hongxu Jia <hongxu.jia@windriver.com>
CommitDate: Fri Mar 7 16:16:58 2025 +0800

    tensorflow.inc: add write permission to 2 more directories

    CAUTION: This email comes from a non Wind River email account!
    Do not click links or open attachments unless you recognize the
sender and know the content is safe.

    From: Martin Jansa <martin.jansa@gmail.com>

    Missing write permission prevents the WORKDIR to be deleted, e.g.
when recipe becomes unreachable
....

On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
>
> From: Martin Jansa <martin.jansa@gmail.com>
>
> Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>
> Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
> Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
> ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
> Traceback (most recent call last):
>   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>     bb.utils.remove(workdir, recurse = True)
>     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>
> ERROR: Command execution failed: Traceback (most recent call last):
>   File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
>     self.cooker.updateCache()
>     ~~~~~~~~~~~~~~~~~~~~~~~^^
>   File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
>     bb.event.fire(event, self.databuilder.mcdata[mc])
>     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
>     fire_class_handlers(event, d)
>     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
>   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
>     execute_handler(name, handler, event, d)
>     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
>     ret = handler(event, d)
>   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>     bb.utils.remove(workdir, recurse = True)
>     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>
> Summary: There were 2 ERROR messages, returning a non-zero exit code.
>
> OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
>
> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> ---
>  recipes-framework/tensorflow/tensorflow.inc | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
> index e48808c..83e2d1a 100644
> --- a/recipes-framework/tensorflow/tensorflow.inc
> +++ b/recipes-framework/tensorflow/tensorflow.inc
> @@ -61,6 +61,9 @@ export TS_DL_DIR
>
>  do_compile[network] = "1"
>
> +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>  do_compile:append() {
>      chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
>  }
Martin Jansa March 24, 2025, 10:13 a.m. UTC | #2
Hi Hongxu,

I see you've created styhead branch, but the python3-numpy added in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=styhead&id=2565836457994a84776e0d02356ead3bbba093de
doesn't even parse with styhead because of:
meta-tensorflow/recipes-devtools/python/python3-numpy_2.1.3.bb:21:
Could not inherit file classes/cython.bbclass

Please check that.

Cheers,

On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
wrote:
>
> Hi,
>
> thank you for merging both, the way how you're applying the changes
> from e-mail still mangles the author and commit message.
>
> I've tried to add explicit From: in the e-mail body in hope to avoid
> "via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
> help, instead the From: is still in the merged commit message together
> with "CAUTION: .." message from your e-mail configuration.
>
> meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
> commit c382865206fe925a02a1cdbdd856e16310bc9dbc
> Author:     Martin Jansa via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>
> AuthorDate: Fri Mar 7 08:56:10 2025 +0100
> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
> CommitDate: Fri Mar 7 16:16:58 2025 +0800
>
>     tensorflow.inc: add write permission to 2 more directories
>
>     CAUTION: This email comes from a non Wind River email account!
>     Do not click links or open attachments unless you recognize the
> sender and know the content is safe.
>
>     From: Martin Jansa <martin.jansa@gmail.com>
>
>     Missing write permission prevents the WORKDIR to be deleted, e.g.
> when recipe becomes unreachable
> ....
>
> On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
> >
> > From: Martin Jansa <martin.jansa@gmail.com>
> >
> > Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >
> > Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
> > Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
> > ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
> > Traceback (most recent call last):
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > ERROR: Command execution failed: Traceback (most recent call last):
> >   File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
> >     self.cooker.updateCache()
> >     ~~~~~~~~~~~~~~~~~~~~~~~^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
> >     bb.event.fire(event, self.databuilder.mcdata[mc])
> >     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
> >     fire_class_handlers(event, d)
> >     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
> >     execute_handler(name, handler, event, d)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
> >     ret = handler(event, d)
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > Summary: There were 2 ERROR messages, returning a non-zero exit code.
> >
> > OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
> >
> > Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> > ---
> >  recipes-framework/tensorflow/tensorflow.inc | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
> > index e48808c..83e2d1a 100644
> > --- a/recipes-framework/tensorflow/tensorflow.inc
> > +++ b/recipes-framework/tensorflow/tensorflow.inc
> > @@ -61,6 +61,9 @@ export TS_DL_DIR
> >
> >  do_compile[network] = "1"
> >
> > +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >  do_compile:append() {
> >      chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
> >  }
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1164): https://lists.yoctoproject.org/g/yocto-patches/message/1164
> Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617156
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Hongxu Jia March 24, 2025, 2:37 p.m. UTC | #3
Sorry for the error, I've corrected for styhead branch,

https://git.yoctoproject.org/meta-tensorflow/log/?h=styhead

would you please retry it

//Hongxu

________________________________
From: Martin Jansa <martin.jansa@gmail.com>
Sent: Monday, March 24, 2025 6:13 PM
To: yocto-patches@lists.yoctoproject.org <yocto-patches@lists.yoctoproject.org>; Jia, Hongxu <Hongxu.Jia@windriver.com>
Subject: Re: [yocto-patches] [meta-tensorflow][scarthgap][PATCH] tensorflow.inc: add write permission to 2 more directories

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Hongxu,

I see you've created styhead branch, but the python3-numpy added in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=styhead&id=2565836457994a84776e0d02356ead3bbba093de
doesn't even parse with styhead because of:
meta-tensorflow/recipes-devtools/python/python3-numpy_2.1.3.bb:21:
Could not inherit file classes/cython.bbclass

Please check that.

Cheers,

On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
wrote:
>
> Hi,
>
> thank you for merging both, the way how you're applying the changes
> from e-mail still mangles the author and commit message.
>
> I've tried to add explicit From: in the e-mail body in hope to avoid
> "via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
> help, instead the From: is still in the merged commit message together
> with "CAUTION: .." message from your e-mail configuration.
>
> meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
> commit c382865206fe925a02a1cdbdd856e16310bc9dbc
> Author:     Martin Jansa via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>
> AuthorDate: Fri Mar 7 08:56:10 2025 +0100
> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
> CommitDate: Fri Mar 7 16:16:58 2025 +0800
>
>     tensorflow.inc: add write permission to 2 more directories
>
>     CAUTION: This email comes from a non Wind River email account!
>     Do not click links or open attachments unless you recognize the
> sender and know the content is safe.
>
>     From: Martin Jansa <martin.jansa@gmail.com>
>
>     Missing write permission prevents the WORKDIR to be deleted, e.g.
> when recipe becomes unreachable
> ....
>
> On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
> >
> > From: Martin Jansa <martin.jansa@gmail.com>
> >
> > Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >
> > Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
> > Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
> > ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
> > Traceback (most recent call last):
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > ERROR: Command execution failed: Traceback (most recent call last):
> >   File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
> >     self.cooker.updateCache()
> >     ~~~~~~~~~~~~~~~~~~~~~~~^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
> >     bb.event.fire(event, self.databuilder.mcdata[mc])
> >     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
> >     fire_class_handlers(event, d)
> >     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
> >     execute_handler(name, handler, event, d)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
> >     ret = handler(event, d)
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > Summary: There were 2 ERROR messages, returning a non-zero exit code.
> >
> > OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
> >
> > Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> > ---
> >  recipes-framework/tensorflow/tensorflow.inc | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
> > index e48808c..83e2d1a 100644
> > --- a/recipes-framework/tensorflow/tensorflow.inc
> > +++ b/recipes-framework/tensorflow/tensorflow.inc
> > @@ -61,6 +61,9 @@ export TS_DL_DIR
> >
> >  do_compile[network] = "1"
> >
> > +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >  do_compile:append() {
> >      chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
> >  }
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1164): https://lists.yoctoproject.org/g/yocto-patches/message/1164
> Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617156
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Martin Jansa March 25, 2025, 2:07 p.m. UTC | #4
yes, that fixes the parsing.

To build it with python-3.13 in walnascar you can backport
https://github.com/tensorflow/tensorflow/pull/82768 , tensorflow-lite
builds fine with it.

To build with gcc-15 it needs
https://github.com/abseil/abseil-cpp/commit/809e5de7b92950849289236a5a09e9cb4f32c7b9
applied in absl from third_party/absl/workspace.bzl

Cheers,

On Mon, Mar 24, 2025 at 3:37 PM Jia, Hongxu <Hongxu.Jia@windriver.com> wrote:
>
> Sorry for the error, I've corrected for styhead branch,
>
> https://git.yoctoproject.org/meta-tensorflow/log/?h=styhead
>
> would you please retry it
>
> //Hongxu
>
> ________________________________
> From: Martin Jansa <martin.jansa@gmail.com>
> Sent: Monday, March 24, 2025 6:13 PM
> To: yocto-patches@lists.yoctoproject.org <yocto-patches@lists.yoctoproject.org>; Jia, Hongxu <Hongxu.Jia@windriver.com>
> Subject: Re: [yocto-patches] [meta-tensorflow][scarthgap][PATCH] tensorflow.inc: add write permission to 2 more directories
>
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Hi Hongxu,
>
> I see you've created styhead branch, but the python3-numpy added in:
> https://git.yoctoproject.org/meta-tensorflow/commit/?h=styhead&id=2565836457994a84776e0d02356ead3bbba093de
> doesn't even parse with styhead because of:
> meta-tensorflow/recipes-devtools/python/python3-numpy_2.1.3.bb:21:
> Could not inherit file classes/cython.bbclass
>
> Please check that.
>
> Cheers,
>
> On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
> lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
> wrote:
> >
> > Hi,
> >
> > thank you for merging both, the way how you're applying the changes
> > from e-mail still mangles the author and commit message.
> >
> > I've tried to add explicit From: in the e-mail body in hope to avoid
> > "via lists.yoctoproject.org
> > <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
> > help, instead the From: is still in the merged commit message together
> > with "CAUTION: .." message from your e-mail configuration.
> >
> > meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
> > commit c382865206fe925a02a1cdbdd856e16310bc9dbc
> > Author:     Martin Jansa via lists.yoctoproject.org
> > <martin.jansa=gmail.com@lists.yoctoproject.org>
> > AuthorDate: Fri Mar 7 08:56:10 2025 +0100
> > Commit:     Hongxu Jia <hongxu.jia@windriver.com>
> > CommitDate: Fri Mar 7 16:16:58 2025 +0800
> >
> >     tensorflow.inc: add write permission to 2 more directories
> >
> >     CAUTION: This email comes from a non Wind River email account!
> >     Do not click links or open attachments unless you recognize the
> > sender and know the content is safe.
> >
> >     From: Martin Jansa <martin.jansa@gmail.com>
> >
> >     Missing write permission prevents the WORKDIR to be deleted, e.g.
> > when recipe becomes unreachable
> > ....
> >
> > On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
> > >
> > > From: Martin Jansa <martin.jansa@gmail.com>
> > >
> > > Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> > >
> > > Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
> > > Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
> > > ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
> > > Traceback (most recent call last):
> > >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> > >     bb.utils.remove(workdir, recurse = True)
> > >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> > >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> > >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> > >     raise CalledProcessError(retcode, cmd)
> > > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> > >
> > > ERROR: Command execution failed: Traceback (most recent call last):
> > >   File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
> > >     self.cooker.updateCache()
> > >     ~~~~~~~~~~~~~~~~~~~~~~~^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
> > >     bb.event.fire(event, self.databuilder.mcdata[mc])
> > >     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
> > >     fire_class_handlers(event, d)
> > >     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
> > >     execute_handler(name, handler, event, d)
> > >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
> > >     ret = handler(event, d)
> > >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> > >     bb.utils.remove(workdir, recurse = True)
> > >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> > >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> > >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> > >     raise CalledProcessError(retcode, cmd)
> > > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> > >
> > > Summary: There were 2 ERROR messages, returning a non-zero exit code.
> > >
> > > OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
> > > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
> > >
> > > Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> > > ---
> > >  recipes-framework/tensorflow/tensorflow.inc | 3 +++
> > >  1 file changed, 3 insertions(+)
> > >
> > > diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
> > > index e48808c..83e2d1a 100644
> > > --- a/recipes-framework/tensorflow/tensorflow.inc
> > > +++ b/recipes-framework/tensorflow/tensorflow.inc
> > > @@ -61,6 +61,9 @@ export TS_DL_DIR
> > >
> > >  do_compile[network] = "1"
> > >
> > > +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> > >  do_compile:append() {
> > >      chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
> > > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
> > > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
> > >  }
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#1164): https://lists.yoctoproject.org/g/yocto-patches/message/1164
> > Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617156
> > Group Owner: yocto-patches+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [martin.jansa@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
Hongxu Jia March 26, 2025, 8:13 a.m. UTC | #5
On 3/25/25 22:07, Martin Jansa wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> yes, that fixes the parsing.
>
> To build it with python-3.13 in walnascar you can backport
> https://github.com/tensorflow/tensorflow/pull/82768 , tensorflow-lite
> builds fine with it.
>
> To build with gcc-15 it needs
> https://github.com/abseil/abseil-cpp/commit/809e5de7b92950849289236a5a09e9cb4f32c7b9
> applied in absl from third_party/absl/workspace.bzl

Done, update master and walnascar branch in meta-tensorflow[1] to 
support python 3.13

[1] https://git.yoctoproject.org/meta-tensorflow/

//Hongxu

> Cheers,
>
> On Mon, Mar 24, 2025 at 3:37 PM Jia, Hongxu <Hongxu.Jia@windriver.com> wrote:
>> Sorry for the error, I've corrected for styhead branch,
>>
>> https://git.yoctoproject.org/meta-tensorflow/log/?h=styhead
>>
>> would you please retry it
>>
>> //Hongxu
>>
>> ________________________________
>> From: Martin Jansa <martin.jansa@gmail.com>
>> Sent: Monday, March 24, 2025 6:13 PM
>> To: yocto-patches@lists.yoctoproject.org <yocto-patches@lists.yoctoproject.org>; Jia, Hongxu <Hongxu.Jia@windriver.com>
>> Subject: Re: [yocto-patches] [meta-tensorflow][scarthgap][PATCH] tensorflow.inc: add write permission to 2 more directories
>>
>> CAUTION: This email comes from a non Wind River email account!
>> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>>
>> Hi Hongxu,
>>
>> I see you've created styhead branch, but the python3-numpy added in:
>> https://git.yoctoproject.org/meta-tensorflow/commit/?h=styhead&id=2565836457994a84776e0d02356ead3bbba093de
>> doesn't even parse with styhead because of:
>> meta-tensorflow/recipes-devtools/python/python3-numpy_2.1.3.bb:21:
>> Could not inherit file classes/cython.bbclass
>>
>> Please check that.
>>
>> Cheers,
>>
>> On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
>> lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
>> wrote:
>>> Hi,
>>>
>>> thank you for merging both, the way how you're applying the changes
>>> from e-mail still mangles the author and commit message.
>>>
>>> I've tried to add explicit From: in the e-mail body in hope to avoid
>>> "via lists.yoctoproject.org
>>> <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
>>> help, instead the From: is still in the merged commit message together
>>> with "CAUTION: .." message from your e-mail configuration.
>>>
>>> meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
>>> commit c382865206fe925a02a1cdbdd856e16310bc9dbc
>>> Author:     Martin Jansa via lists.yoctoproject.org
>>> <martin.jansa=gmail.com@lists.yoctoproject.org>
>>> AuthorDate: Fri Mar 7 08:56:10 2025 +0100
>>> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
>>> CommitDate: Fri Mar 7 16:16:58 2025 +0800
>>>
>>>      tensorflow.inc: add write permission to 2 more directories
>>>
>>>      CAUTION: This email comes from a non Wind River email account!
>>>      Do not click links or open attachments unless you recognize the
>>> sender and know the content is safe.
>>>
>>>      From: Martin Jansa <martin.jansa@gmail.com>
>>>
>>>      Missing write permission prevents the WORKDIR to be deleted, e.g.
>>> when recipe becomes unreachable
>>> ....
>>>
>>> On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
>>>> From: Martin Jansa <martin.jansa@gmail.com>
>>>>
>>>> Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>>>>
>>>> Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
>>>> Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
>>>> ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
>>>> Traceback (most recent call last):
>>>>    File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>>>>      bb.utils.remove(workdir, recurse = True)
>>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>>>>      subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>>>>      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>>>>      raise CalledProcessError(retcode, cmd)
>>>> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>>>>
>>>> ERROR: Command execution failed: Traceback (most recent call last):
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
>>>>      self.cooker.updateCache()
>>>>      ~~~~~~~~~~~~~~~~~~~~~~~^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
>>>>      bb.event.fire(event, self.databuilder.mcdata[mc])
>>>>      ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
>>>>      fire_class_handlers(event, d)
>>>>      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
>>>>      execute_handler(name, handler, event, d)
>>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
>>>>      ret = handler(event, d)
>>>>    File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>>>>      bb.utils.remove(workdir, recurse = True)
>>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>>>>      subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>>>>      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>    File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>>>>      raise CalledProcessError(retcode, cmd)
>>>> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>>>>
>>>> Summary: There were 2 ERROR messages, returning a non-zero exit code.
>>>>
>>>> OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
>>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
>>>>
>>>> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
>>>> ---
>>>>   recipes-framework/tensorflow/tensorflow.inc | 3 +++
>>>>   1 file changed, 3 insertions(+)
>>>>
>>>> diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
>>>> index e48808c..83e2d1a 100644
>>>> --- a/recipes-framework/tensorflow/tensorflow.inc
>>>> +++ b/recipes-framework/tensorflow/tensorflow.inc
>>>> @@ -61,6 +61,9 @@ export TS_DL_DIR
>>>>
>>>>   do_compile[network] = "1"
>>>>
>>>> +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>>>>   do_compile:append() {
>>>>       chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
>>>> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
>>>> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
>>>>   }
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#1164): https://lists.yoctoproject.org/g/yocto-patches/message/1164
>>> Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617156
>>> Group Owner: yocto-patches+owner@lists.yoctoproject.org
>>> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [martin.jansa@gmail.com]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
>>>
Martin Jansa April 7, 2025, 7:27 a.m. UTC | #6
Hi,

in the last patch you've merged the author e-mail is OK now, but there
is still the notice from Wind River e-mail as well as second From:

meta-tensorflow $ git show -1 9e89de7 --pretty=fuller
commit 9e89de7d5e4a7e58e3ffa4cf81a3b96f15ec5c30
Author:     Martin Jansa <martin.jansa@gmail.com>
AuthorDate: Wed Apr 2 18:00:08 2025 +0200
Commit:     Hongxu Jia <hongxu.jia@windriver.com>
CommitDate: Mon Apr 7 10:19:24 2025 +0800

    bazel: add whitespace around assignments

    CAUTION: This email comes from a non Wind River email account!
    Do not click links or open attachments unless you recognize the
sender and know the content is safe.

    From: Martin Jansa <martin.jansa@gmail.com>

    With:
....

Regards,

On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
wrote:
>
> Hi,
>
> thank you for merging both, the way how you're applying the changes
> from e-mail still mangles the author and commit message.
>
> I've tried to add explicit From: in the e-mail body in hope to avoid
> "via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
> help, instead the From: is still in the merged commit message together
> with "CAUTION: .." message from your e-mail configuration.
>
> meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
> commit c382865206fe925a02a1cdbdd856e16310bc9dbc
> Author:     Martin Jansa via lists.yoctoproject.org
> <martin.jansa=gmail.com@lists.yoctoproject.org>
> AuthorDate: Fri Mar 7 08:56:10 2025 +0100
> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
> CommitDate: Fri Mar 7 16:16:58 2025 +0800
>
>     tensorflow.inc: add write permission to 2 more directories
>
>     CAUTION: This email comes from a non Wind River email account!
>     Do not click links or open attachments unless you recognize the
> sender and know the content is safe.
>
>     From: Martin Jansa <martin.jansa@gmail.com>
>
>     Missing write permission prevents the WORKDIR to be deleted, e.g.
> when recipe becomes unreachable
> ....
>
> On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
> >
> > From: Martin Jansa <martin.jansa@gmail.com>
> >
> > Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >
> > Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
> > Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
> > ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
> > Traceback (most recent call last):
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > ERROR: Command execution failed: Traceback (most recent call last):
> >   File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
> >     self.cooker.updateCache()
> >     ~~~~~~~~~~~~~~~~~~~~~~~^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
> >     bb.event.fire(event, self.databuilder.mcdata[mc])
> >     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
> >     fire_class_handlers(event, d)
> >     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
> >     execute_handler(name, handler, event, d)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
> >     ret = handler(event, d)
> >   File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
> >     bb.utils.remove(workdir, recurse = True)
> >     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
> >     subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
> >     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
> >     raise CalledProcessError(retcode, cmd)
> > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
> >
> > Summary: There were 2 ERROR messages, returning a non-zero exit code.
> >
> > OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
> > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
> >
> > Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> > ---
> >  recipes-framework/tensorflow/tensorflow.inc | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
> > index e48808c..83e2d1a 100644
> > --- a/recipes-framework/tensorflow/tensorflow.inc
> > +++ b/recipes-framework/tensorflow/tensorflow.inc
> > @@ -61,6 +61,9 @@ export TS_DL_DIR
> >
> >  do_compile[network] = "1"
> >
> > +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
> >  do_compile:append() {
> >      chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
> > +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
> >  }
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1164): https://lists.yoctoproject.org/g/yocto-patches/message/1164
> Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617156
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Hongxu Jia April 7, 2025, 8:13 a.m. UTC | #7
On 4/7/25 15:27, Martin Jansa via lists.yoctoproject.org wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Hi,
>
> in the last patch you've merged the author e-mail is OK now, but there
> is still the notice from Wind River e-mail as well as second From:
>
> meta-tensorflow $ git show -1 9e89de7 --pretty=fuller
> commit 9e89de7d5e4a7e58e3ffa4cf81a3b96f15ec5c30
> Author:     Martin Jansa <martin.jansa@gmail.com>
> AuthorDate: Wed Apr 2 18:00:08 2025 +0200
> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
> CommitDate: Mon Apr 7 10:19:24 2025 +0800
>
>      bazel: add whitespace around assignments
>
>      CAUTION: This email comes from a non Wind River email account!
>      Do not click links or open attachments unless you recognize the
> sender and know the content is safe.

Sorry for the noisy message, it was added by my company's firewall,

I need to clean it up more carefully at next time

//Hongxu

>      From: Martin Jansa <martin.jansa@gmail.com>
>
>      With:
> ....
>
> Regards,
>
> On Fri, Mar 7, 2025 at 10:32 AM Martin Jansa via
> lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>
> wrote:
>> Hi,
>>
>> thank you for merging both, the way how you're applying the changes
>> from e-mail still mangles the author and commit message.
>>
>> I've tried to add explicit From: in the e-mail body in hope to avoid
>> "via lists.yoctoproject.org
>> <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really
>> help, instead the From: is still in the merged commit message together
>> with "CAUTION: .." message from your e-mail configuration.
>>
>> meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14
>> commit c382865206fe925a02a1cdbdd856e16310bc9dbc
>> Author:     Martin Jansa via lists.yoctoproject.org
>> <martin.jansa=gmail.com@lists.yoctoproject.org>
>> AuthorDate: Fri Mar 7 08:56:10 2025 +0100
>> Commit:     Hongxu Jia <hongxu.jia@windriver.com>
>> CommitDate: Fri Mar 7 16:16:58 2025 +0800
>>
>>      tensorflow.inc: add write permission to 2 more directories
>>
>>      CAUTION: This email comes from a non Wind River email account!
>>      Do not click links or open attachments unless you recognize the
>> sender and know the content is safe.
>>
>>      From: Martin Jansa <martin.jansa@gmail.com>
>>
>>      Missing write permission prevents the WORKDIR to be deleted, e.g.
>> when recipe becomes unreachable
>> ....
>>
>> On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote:
>>> From: Martin Jansa <martin.jansa@gmail.com>
>>>
>>> Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>>>
>>> Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21
>>> Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00
>>> ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed                                                                                                                                                 | ETA:  0:00:07
>>> Traceback (most recent call last):
>>>    File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>>>      bb.utils.remove(workdir, recurse = True)
>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>>>      subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>>>      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>>>      raise CalledProcessError(retcode, cmd)
>>> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>>>
>>> ERROR: Command execution failed: Traceback (most recent call last):
>>>    File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand
>>>      self.cooker.updateCache()
>>>      ~~~~~~~~~~~~~~~~~~~~~~~^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache
>>>      bb.event.fire(event, self.databuilder.mcdata[mc])
>>>      ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire
>>>      fire_class_handlers(event, d)
>>>      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers
>>>      execute_handler(name, handler, event, d)
>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler
>>>      ret = handler(event, d)
>>>    File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps
>>>      bb.utils.remove(workdir, recurse = True)
>>>      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove
>>>      subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
>>>      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>    File "/usr/lib/python3.13/subprocess.py", line 421, in check_call
>>>      raise CalledProcessError(retcode, cmd)
>>> subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1.
>>>
>>> Summary: There were 2 ERROR messages, returning a non-zero exit code.
>>>
>>> OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house
>>> /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl
>>>
>>> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
>>> ---
>>>   recipes-framework/tensorflow/tensorflow.inc | 3 +++
>>>   1 file changed, 3 insertions(+)
>>>
>>> diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
>>> index e48808c..83e2d1a 100644
>>> --- a/recipes-framework/tensorflow/tensorflow.inc
>>> +++ b/recipes-framework/tensorflow/tensorflow.inc
>>> @@ -61,6 +61,9 @@ export TS_DL_DIR
>>>
>>>   do_compile[network] = "1"
>>>
>>> +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
>>>   do_compile:append() {
>>>       chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
>>> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
>>> +    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
>>>   }
>>
>>
>>
>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1289): https://lists.yoctoproject.org/g/yocto-patches/message/1289
> Mute This Topic: https://lists.yoctoproject.org/mt/111564223/3617049
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13176071/3617049/43253763/xyzzy [hongxu.jia@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc
index e48808c..83e2d1a 100644
--- a/recipes-framework/tensorflow/tensorflow.inc
+++ b/recipes-framework/tensorflow/tensorflow.inc
@@ -61,6 +61,9 @@  export TS_DL_DIR
 
 do_compile[network] = "1"
 
+# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable
 do_compile:append() {
     chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true
+    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true
+    chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true
 }