Package Details: osmium-tool 1.18.0-2

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: 9
Popularity: 0.025052
First Submitted: 2016-07-08 12:11 (UTC)
Last Updated: 2025-07-21 09:32 (UTC)

Dependencies (7)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

akstrfn commented on 2025-07-21 11:01 (UTC)

I didnt decide on anything and I dont have any particular opinion about it because I dont ever read readme from archlinux packages. If you really use it we can add it but if you asking for it "just because" then not. My point about spamming is that you put walls of text when basically single word is enough.

Your find actually proves my point because bunch of e.g. readme's are often from one package. You can try same exercise with all packages pacman -Fx readme | grep usr/share/doc/

m040601 commented on 2025-07-21 10:39 (UTC) (edited on 2025-07-21 10:59 (UTC) by m040601)

... AFAIK readme and changelog are not mandatory to include and are seldom included

$ find /usr/share/doc/ -type f -iname 'change'

$ find /usr/share/doc/ -type f -iname 'news'

$ find /usr/share/doc/ -type f -iname 'readme'

 ... but if necessary can be added.

I'm not going to spend more of my time arguing with you. Why this is important, and especially for this kind of advanced CLI tool.

You have plain and simply pretended to ignore all my previous comments and reasoning. You seem to already have made up your mind. And decided that somehow a few KB of plain text .txt and .md files is redundant "fluff" and will bloat and blow up the storage space of my computer.

akstrfn commented on 2025-07-21 09:42 (UTC)

tastedcheese thanks for the report, fixed now.

m040601 please dont spam just saying package is missing is enough (cmake error is quite clear). I have tested on my local computer but not in clean chroot. License is GPL3 which is common license hence nothing is to be copied because it is provided by licenses package of archlinux. AFAIK readme and changelog are not mandatory to include and are seldom included but if necessary can be added.

m040601 commented on 2025-07-21 00:23 (UTC) (edited on 2025-07-21 00:37 (UTC) by m040601)

Since the last update,

7 hours    v1.18.0                                    Aleksandar Trifunovic

I am getting this error and cannot install it,

....
....
....
-- Found Osmium: /usr/include (found suitable version "2.22.0", minimum required is "2.20.0")
CMake Warning at CMakeLists.txt:54 (find_package):
  By not providing "Findnlohmann_json.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "nlohmann_json", but CMake did not find one.

  Could not find a package configuration file provided by "nlohmann_json"
  with any of the following names:

    nlohmann_jsonConfig.cmake
    nlohmann_json-config.cmake

  Add the installation prefix of "nlohmann_json" to CMAKE_PREFIX_PATH or set
  "nlohmann_json_DIR" to a directory containing one of the above files.  If
  "nlohmann_json" provides a separate development package or SDK, be sure it
  has been installed.


-- Found LZ4: /usr/lib/liblz4.so (found version "1.10.0")
.....
.....
.....
-- Looking for clang-tidy
-- Looking for clang-tidy - not found
--   Build target 'clang-tidy' will not be available.
-- Configuring done (2.4s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NLOHMANN_INCLUDE_DIR
   used as include directory in directory /dev/shm/aurydesty/osmium-tool/src/osmium-tool-1.18.0
   used as include directory in directory /dev/shm/aurydesty/osmium-tool/src/osmium-tool-1.18.0
.....
.....
.....
CMake Error in src/CMakeLists.txt:
  Found relative path while evaluating include directories of "osmium":

    "NLOHMANN_INCLUDE_DIR-NOTFOUND"



CMake Error in test/CMakeLists.txt:
  Found relative path while evaluating include directories of "unit_tests":

    "NLOHMANN_INCLUDE_DIR-NOTFOUND"



-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_LIBDIR


CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: osmium-tool-exit status 4

Did you test the build on your personal computer before updating the PKGBUILD ?

As the other commentator remarked installing,

$ pacman -Si nlohmann-json

Repository      : extra
Name            : nlohmann-json
Version         : 3.12.0-2
Description     : JSON for Modern C++
Architecture    : any
URL             : https://github.com/nlohmann/json
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 149.17 KiB
Installed Size  : 1048.51 KiB
Packager        : Jakub Klinkovský <lahwaacz@archlinux.org>
Build Date      : Thu 24 Apr 2025 06:33:44 AM WEST
Validated By    : SHA-256 Sum  Signature

Seems to solve to problem.

It is there on the README,

You need a C++14 compliant compiler.

You also need the following libraries:

....

NLohmann JSON (>= 3.0)
    https://json.nlohmann.me/
    Debian/Ubuntu: nlohmann-json3-dev
....

Why dont you install the README ?

/usr/share/doc/osmium-tool/CHANGELOG.md
/usr/share/doc/osmium-tool/README.md
/usr/share/licenses/osmium-tool/LICENSE.txt

tastedcheese commented on 2025-07-20 21:31 (UTC) (edited on 2025-07-20 21:39 (UTC) by tastedcheese)

Package throws an error during building, installing nlohmann-json solves the issue, it should be added to the make dependencies.

UPD: yeah, this is from osmium github

NLohmann JSON (>= 3.0)
    https://json.nlohmann.me/
    Debian/Ubuntu: nlohmann-json3-dev

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