Closed issue by teldra on void-packages repository https://github.com/void-linux/void-packages/issues/25912 Description: I encounter some problems when updating `kodi-addon-pvr-zattoo` to 18.1.21. The update is necessary, because of the changes by zattoo: There is no login possible with the old version of this addon. `kodi` uses `rapidjson`. It can either use systems `rapidjson-1.1.0_3` or build its own (`rapidjson-1.1.0`). At the moment, it is using systems `rapidjson`. `kodi-addon-pvr-zattoo` needs `rapidjson`. With systems `rapidjson`, it is crashing at runtime (after entering credentials for zattoo). With the one provided by `kodi`, its working: I removed `rapidjson` from makedepends in the templates of `kodi` and `kodi-addon-pvr-zattoo`. I built `kodi`s rapidjson explicitly via template file (added `make PREFIX=/usr -C tools/depends/target/rapidjson`) and cluttered masterdir. With this cluttered masterdir I built `kodi-addon-pvr-zattoo` and it is not crashing at runtime. I tried to build `kodi` with `-DENABLE_INTERNAL_RapidJSON=ON` and its fetching `rapidjson` from them. Build is mostly fine, but at ~70-80% of the build, something (`JSONVariantWriter.cpp`) fails, saying it cant find some *.h `rapidjson` normally provides at `masterdir/builddir/xbmc-18.9-Leia/build/build/include/rapidjson/`. (`prettywriter.h` and `reader.h`) I tried to patch `rapidjson` with upstream patch from `kodi`s repo and set `-DRAPIDJSON_HAS_STDSTRING=ON` and use it without success. Can someone help? Ressources: https://github.com/xbmc/xbmc/tree/Leia/tools/depends/target/rapidjson