Also moved `cors = NULL` fix from #479 into `_add_tile_config` instead as that fix only applied to configs added via `AddTileConfig` in `httpd.conf` files, not all methods.
The empty string as initialization for CORS breaks the tile access in case Origin header is sent. Properly initialize it with the correct value NULL. Error was introduced 10 months ago it seems.
Otherwise `renderd` processes configured to use TCP/IP server sockets may need to wait until the address and/or port are released before restarting under certain circumstances (especially an ungraceful termination).
The memory allocated by `strndup` needs to be freed.
The code has also been changed to not lose the allocation pointer and according to the semantics of `strtok_r` explained here:
https://man.freebsd.org/cgi/man.cgi?query=strtok_r
Also improved messaging.
Co-authored-by: Roland Bosa <roland.bosa@gmail.com>
`libcurl` & `libcairo` are also optional and their usage can now be optionally disabled (along with `libmemcached` & `librados`.)
* No longer test macOS Autotools building
* Also allow overriding `RENDERD_STATS` (defaults to `/run/renderd/renderd.stats`)
* Also allow overriding `REPLICATION_STATE` (defaults to `/home/osm/replicate/state.txt`)
* Updates are no longer available for CentOS Stream 8 since the end of May 2024
* Updates will cease being available for CentOS 7 at the end of June 2024
_And_:
* Remove Fedora 38
* Fix `openSUSE Leap 15` Docker build's default GCC no longer compiles `Mapnik` latest
* C++17 is now required, so a newer GCC will be installed
* Fix for coverage capturing with LCOV 2.1
* Seems to currently only exist on macOS
In order to remove any confusion if the user has duplicate `renderd` sections in their `renderd.conf` file.
Currently with a configuration like this one:
```ini
[renderd]
pid_file=/run/renderd/renderd.pid
socketname=/run/renderd/renderd.sock
stats_file=/run/renderd/renderd.stats
tile_dir=/var/cache/renderd/tiles
[renderd0]
pid_file=/run/renderd/renderd0.pid
socketname=/run/renderd/renderd0.sock
stats_file=/run/renderd/renderd0.stats
tile_dir=/var/cache/renderd/tiles
```
only the second `renderd` section (`renderd0`) will actually be used.
After this patch is merged, an error message will be shown and the application will exit.
* Fixed `render_list` build needs `libm`
* Added tests
* Updated man page
* Created function to set double
* Cleaned up / optimized a bit
* Removed `--dont-render` option
So that workflows will still show as passing when issues arise.
* Build & Test
* debian:unstable
* fedora:rawhide
* ubuntu:devel
* Docker Image Build
* debian-unstable/debian-unstable-autotools
* fedora-rawhide
* opensuse-tumbleweed
* ubuntu-devel/ubuntu-devel-autotools