heroku / heroku-geo-buildpack

Classic buildpack that installs the Geo/GIS libraries GDAL, GEOS and PROJ.
38 stars 28 forks source link

libkml build failing #51

Closed edmorley closed 6 months ago

edmorley commented 6 months ago

libkml is a dependency of the GDAL build, and so needs to be built for Heroku-24 so I can build GDAL for Heroku-24.

However, the libkml build is currently failing with:

Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/tmp.ul8utM3CPi/include/minizip/crypt.h
-- Installing: /tmp/tmp.ul8utM3CPi/include/minizip/ioapi.h
-- Installing: /tmp/tmp.ul8utM3CPi/include/minizip/mztools.h
-- Installing: /tmp/tmp.ul8utM3CPi/include/minizip/unzip.h
-- Installing: /tmp/tmp.ul8utM3CPi/include/minizip/zip.h
-- Installing: /tmp/tmp.ul8utM3CPi/lib/libminizip.so
[  6%] Completed 'MINIZIP'
[  6%] Built target MINIZIP
[  7%] Creating directories for 'URIPARSER'
[  7%] Performing download step (download, verify and extract) for 'URIPARSER'
-- Downloading...
   dst='/tmp/tmp.zpELfYAgk1/libkml-libkml-0da164d/URIPARSER/src/uriparser-0.7.5.tar.bz2'
   timeout='none'
   inactivity timeout='none'
-- Using src='http://sourceforge.net/projects/uriparser/files/Sources/0.7.5/uriparser-0.7.5.tar.bz2/download'
CMake Error at URIPARSER-stamp/download-URIPARSER.cmake:170 (message):
  Each download failed!

    error: downloading 'http://sourceforge.net/projects/uriparser/files/Sources/0.7.5/uriparser-0.7.5.tar.bz2/download' failed
          status_code: 22
          status_string: "HTTP response code said error"
          log:
          --- LOG BEGIN ---
            Trying 104.18.12.149:80...

  Connected to sourceforge.net (104.18.12.149) port 80 (#0)

  GET
  /projects/uriparser/files/Sources/0.7.5/uriparser-0.7.5.tar.bz2/download
  HTTP/1.1

  Host: sourceforge.net

  User-Agent: curl/7.81.0

  Accept: */*

  Mark bundle as not supporting multiuse

  HTTP/1.1 301 Moved Permanently

  Date: Fri, 17 May 2024 07:16:34 GMT

  Content-Type: text/html

  Transfer-Encoding: chunked

  Connection: keep-alive

  location:
  https://sourceforge.net/projects/uriparser/files/Sources/0.7.5/uriparser-0.7.5.tar.bz2/download

...
edmorley commented 6 months ago

The libkml project sadly hasn't had a new release since 2025: https://github.com/libkml/libkml/releases

It's possible this is fixed on master (which was last updated in 2016), or else we could use the packages Ubuntu's APT repo instead. (Though we'd then need to copy over the libs into the archive, since they wouldn't be present at runtime if only installed into the binary build environment's image using APT.)