Skip to content

Consider options for automatically providing geographiclib dataset for binary installations #1005

Open
@tfoote

Description

@tfoote

I've been putting together a demo and was surprised by the need to manually install the geographiclib datasets even when installing from binary packages. (osrf/drone_demo#1)

I know that there's been discussion of adding the download at build time, but that's not exactly right as building is better if it doesn't need to have internet access. And also the database is only a runtime dependency not a build time dependency, so downloading/installing it at build time doesn't make much sense.

Since this is really a runtime/packaging issue more than a build issue, I think that the best approach would be to integrate it into the packaging. Potentially as a debian post install hook. Or potentially create a debian package with the geographiclib dataset that is added as a dependency in the packaging process so that the binary installation will get the data.

This might be a package that could be submitted upstream. I'm not sure why the geographiclib debian packaging doesn't actually include the dataset itself in a separate package, or at least have an installer package that will pull it down in a post install hook.

Does either of these approaches sound preferable to others? My suggestion would be to work toward contributing the downloading tool upstream so we can just add the dependency and then it's much less patching etc.


Here's an example of using a preinst and prerm script for fetching a dataset: https://github.com/tork-a/jsk_3rdparty-release/blob/debian/kinetic/jessie/julius/debian/preinst

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions