[Tile-serving] [openstreetmap/mod_tile] Fix installation when using DESTDIR. (PR #411)

Hummeltech notifications at github.com
Sat Mar 16 16:14:22 UTC 2024


Thank you for the pull request, I have also tried using relative paths (as per [CMake's recommendation](https://cmake.org/cmake/help/latest/command/install.html#id3)) but was never able to get everything to install to where I expected.

Are you using a prefix as well when generating the project buildsystem (I.E. `--install-prefix` or `CMAKE_INSTALL_PREFIX`)?

I currently do have some tests running using Docker which do use `DESTDIR` and it seems to work as expected in my experience. 

* Here is an example of it running with `DESTDIR=/tmp/mod_tile` and `CMAKE_INSTALL_PREFIX=/usr`
  * With absolute path:
    * Installs `renderd.conf` to `/tmp/mod_tile/etc/renderd.conf`
    * https://github.com/openstreetmap/mod_tile/actions/runs/8260157407/job/22595204449#step:3:4158
  * With relative path (from this pull request):
    * Installs `renderd.conf` to `/tmp/mod_tile/usr/etc/renderd.conf`
    * https://github.com/openstreetmap/mod_tile/actions/runs/8307036047/job/22739523290#step:3:4154

I would really love to get this working as well.

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

Message ID: <openstreetmap/mod_tile/pull/411/c2002034042 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240316/16e01961/attachment.htm>


More information about the Tile-serving mailing list