[Tile-serving] [openstreetmap/mod_tile] 0.7.1 Lost leading "/" from "/var/cache/renderd/tiles" (Issue #416)

Hummeltech notifications at github.com
Tue Mar 19 18:37:55 UTC 2024


Are you building this yourself, or are you using the newly released `Debian Unstable` package? The change you're mentioning was made at the request of the Debian package maintainer, and as per CMake recommended usage. Using absolute paths when setting install target paths, such as `RENDERD_TILE_DIR`, causes issues when specifying custom `CMAKE_INSTALL_*` paths during a package build using `DESTDIR`.

If you are using the `Debian Unstable` package, the default value for `RENDERD_TILE_DIR` is absolute (which is generated from `CMAKE_INSTALL_LOCALSTATEDIR` + `/cache/renderd/tiles` => `/var/cache/renderd/tiles`.)

However if you are building `mod_tile` yourself and not specifying an absolute path for `CMAKE_INSTALL_LOCALSTATEDIR` as updated in the documentation then it will default to `CMAKE_INSTALL_PREFIX` + `CMAKE_LOCALSTATEDIR` + `/cache/renderd/tiles` which will yield `/usr/local/var/cache/renderd/tiles`.

You can check what default value is compiled into your binary using `strings`:
```shell
$ strings /usr/lib/apache2/modules/mod_tile.so | grep cache/renderd/tiles
/var/cache/renderd/tiles
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/416#issuecomment-2007878652
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/mod_tile/issues/416/2007878652 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240319/99fb4d44/attachment-0001.htm>


More information about the Tile-serving mailing list