Package Details: osmium-tool 1.16.0-3

Git Clone URL: https://aur.archlinux.org/osmium-tool.git (read-only, click to copy)
Package Base: osmium-tool
Description: Command line tool for working with OpenStreetMap data based on the Osmium library
Upstream URL: https://osmcode.org/osmium-tool/
Keywords: gis osm
Licenses: GPL3
Submitter: simon04
Maintainer: akstrfn
Last Packager: akstrfn
Votes: 10
Popularity: 0.141786
First Submitted: 2016-07-08 12:11 (UTC)
Last Updated: 2024-07-06 12:49 (UTC)

Dependencies (6)

Required by (1)

Sources (3)

Latest Comments

m040601 commented on 2025-07-07 03:21 (UTC) (edited on 2025-07-07 03:49 (UTC) by m040601)

Thanks for the work on the PKGBUILD for this very usefull cli tool.

It needs an update, new versions,

TITLE           TYPE    TAG NAME  PUBLISHED
Version 1.18.0  Latest  v1.18.0   about 3 months ago
Version 1.17.0          v1.17.0   about 5 months ago
Version 1.16.0          v1.16.0   about 1 year ago
Version 1.15.0          v1.15.0   about 2 years ago

Let's see what the current v1.16 PKGBUILD installs,

$ pacman -Ql osmium-tool

osmium-tool /usr/
osmium-tool /usr/bin/
osmium-tool /usr/bin/osmium
osmium-tool /usr/share/
osmium-tool /usr/share/zsh/
osmium-tool /usr/share/zsh/site-functions/
osmium-tool /usr/share/zsh/site-functions/_osmium

Let's see what else is inside the latest released tar.gz

$ wget https://github.com/osmcode/osmium-tool/archive/v1.18.0.tar.gz $ tar tf v1.18.0.tar.gz | tmux load-buffer -

osmium-tool-1.18.0/
...........
...........
osmium-tool-1.18.0/CHANGELOG.md
..........
osmium-tool-1.18.0/CONTRIBUTING.md
osmium-tool-1.18.0/LICENSE.txt
osmium-tool-1.18.0/README.md
..........
..........
osmium-tool-1.18.0/man/
osmium-tool-1.18.0/man/common-options.md
osmium-tool-1.18.0/man/input-options.md
osmium-tool-1.18.0/man/manpage.template
.................. LOTS OF MD MARKDOWN text files here
.................
osmium-tool-1.18.0/zsh_completion/
osmium-tool-1.18.0/zsh_completion/_osmium

Please make sure those usefull important files end up in

/usr/share/doc/osmium-tool/CHANGELOG.md
/usr/share/doc/osmium-tool/README.md

Maybe the same for the missing license

/usr/share/licenses/osmium-tool/LICENSE.txt

Now regarding the "man pages".

You currently have this,

Optional Deps   : pandoc: building documentation

Nice that is optional, and not forcing or imposing something on the AUR end user. Being forced to download the huge pandoc dependency just for "building" the man pages is not nice.

Why not make it very simple ?

All Those "md" files inside "man/xxx.md" are extensive descriptions of each osmium commands. Much more than a simple "-h" flag.

Those files are already usable readable plain text markdown files. They dont necessarly need to be converted to man pages to be usefull.

Please install them to a folder called "help" or "man" or "md" in

/usr/share/doc/osmium-tool/help/xxx.md
/usr/share/doc/osmium-tool/help/yyy.md
.... etc

Dont confuse these above files with the other extensive documentation and guides of the osmium project.

Online.

Concepts, formats etc are found at https://osmcode.org/docs.html,

Another proper "manual" of the osmium-tool, https://osmcode.org/osmium-tool/manual.html,

But these build from a different github repo https://github.com/osmcode/osmcode.github.io

Thanks in advance.

lfgrijalva commented on 2024-07-04 18:09 (UTC)

@Baktyl I believe that is the same issue mentioned below, it's related to the rapidjson library. Look at this GitHub issue: https://github.com/Tencent/rapidjson/issues/2277 where this is discussed. It seems like they are merged already, but if they aren't then you can make the changes yourself, it's around 3 lines of code. Then try building again, I had the same issue but this fixed it

Baktyl commented on 2024-07-03 10:51 (UTC)

My build for osmium-tool currently fails at 1% with the following error:

319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } | ~^~ make[2]: *** [src/CMakeFiles/osmium.dir/build.make:90: src/CMakeFiles/osmium.dir/commands.cpp.o] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:529: src/CMakeFiles/osmium.dir/all] Fehler 2 make: *** [Makefile:146: all] Fehler 2

This version of osmium-tools was previously working for me (both compilation and the tool worked), does anybody know why it now fails on my new Arch install?

lfgrijalva commented on 2024-06-23 14:28 (UTC)

Thanks for the tip, after making the changes manually and recompiling it does work. I was confused at first but turns out it simply didn't add osmium to /usr/bin. Thanks

kashortie commented on 2024-06-22 06:38 (UTC)

@lfgrijalva I changed some lines in document.h of include/json... There are some fixes in the rapidjson github that haven't yet been merged so I did it manually osmium-tools then compiled and is working on arch

lfgrijalva commented on 2024-06-13 13:55 (UTC)

Currently compilation fails at 23% on my machine, trying to install version 1.16. I'm using GCC 14 and the error might be related to rapidjson.

akstrfn commented on 2023-12-19 14:34 (UTC)

Thx for the report. I've added it to build dependencies.

BrainDamage commented on 2023-12-19 07:31 (UTC)

protozero is missing from the deps, or it'll fail to build with:

-- Could NOT find Protozero: Found unsuitable version "unknown", but required is at least "1.6.3" (found PROTOZERO_INCLUDE_DIR-NOTFOUND) CMake Warning at cmake/FindOsmium.cmake:138 (message): Osmium: Can not find some libraries for PBF input/output, please install them or configure the paths. Call Stack (most recent call first): CMakeLists.txt:46 (find_package)

fosskers commented on 2020-07-14 16:18 (UTC)

Compilation seems to fail with messages like:

CMake Error in src/CMakeLists.txt:
  Imported target "Boost::program_options" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Have you seen this before?

melvinvermeeren commented on 2017-10-20 08:28 (UTC)

pandoc is an optional makedepend to generate man pages. I understand you probably don't want to list it because of gigantic haskell deps. Perhaps printing a message in prepare or build could be added? Thanks.