project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.48k stars 2k forks source link

[Feature] Allow to override /data directory #33140

Closed om26er closed 6 months ago

om26er commented 6 months ago

Feature description

... I am trying to create a snap package with connectedhomeip, however I am not finding much success because this project on Linux requires to be able to write to /data directory. It would be helpful if there was a way to override that. Also any pointers where I may change that in source code would also be helpful at this stage.

Platform

IMX8

Platform Version(s)

No response

Anything else?

No response

bzbarsky-apple commented 6 months ago

@om26er I am not aware of any places in our code where we write to /data... What output are you actually getting? What filenames are involved? What are your $TMP and $TMPDIR set to?

om26er commented 6 months ago

@bzbarsky-apple I figured this project does not set that path, it was rather being patched by the wheel that I was using https://github.com/home-assistant-libs/chip-wheels/blob/b9826e13c31f6db6b920308fcd4b35ca5ff90b9e/0002-Use-data-as-platform-storage-location.patch#L20

So this issue can be closed.