[Tile-serving] [osm2pgsql-dev/osm2pgsql] osm2pgsql-expire built but not installed (Issue #2419)

Raphael Das Gupta notifications at github.com
Thu Sep 18 07:50:49 UTC 2025


das-g created an issue (osm2pgsql-dev/osm2pgsql#2419)

<!-- Please don't use screenshots. Copy and paste the *text* output here if that's needed for context. -->

## What version of osm2pgsql are you using?

<!-- Paste output of `osm2pgsql --version` here. Please use the [latest
release](https://osm2pgsql.org/releases/) of osm2pgsql if at all
possible. -->
osm2pgsql version 2.2.0
Build: Release
Compiled using the following library versions:
Libosmium 2.22.0
Proj 9.6.1
nlohmann JSON 3.11.3
Lua 5.2.4


## What operating system and PostgreSQL/PostGIS version are you using?

<!-- Also what Linux distribution if applicable, OS version? -->
NixOS unstable

### output of `nix-shell -p nix-info --run "nix-info -m"`

 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.46, NixOS, 25.11 (Xantusia), 25.11.20250910.ab0f360`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.93.3
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/das-g/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/das-g/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/das-g/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/das-g/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/das-g/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/6hbhsylkvc45vpc20f8nbi0p0zvldh32-gnome-settings-daemon-48.1/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/9vmv9w3rn5jr4r0v3ash0ndja3x0lagy-lix-2.93.3/share`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/9rfm3gjhphdvi7qnzdsi7piw1gi4c8vp-source`

## Tell us something about your system

<!-- How much RAM do you have, how many CPUs, bare metal or cloud setup? -->


## What did you do exactly?

<!-- Please provide the command(s) you used including all options etc. Include
links to input files. -->
Followed "Instructions to test this update" at https://github.com/NixOS/nixpkgs/pull/443845, specifically in Bash:
```bash
nix-store -r /nix/store/c6mj2k4ww8r7y6isxi5cwwvb9w816zjs-osm2pgsql-2.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

ls -la /nix/store/c6mj2k4ww8r7y6isxi5cwwvb9w816zjs-osm2pgsql-2.2.0/bin -l
```

## What did you expect to happen?

<!-- Describe in detail what you expected the above would do. -->
Expected the listing of `.../bin` to include the executable `osm2pgsql-expire` for the new experimental command `osm2pgsql-expire` announced in the [release notes](https://github.com/osm2pgsql-dev/osm2pgsql/releases/tag/2.2.0).

## What did happen instead?

<!-- Please describe what happened and why you think this is wrong. Please include
(or link to, if it is too verbose) the log output. -->
Only the executables for the traditional osm2pgsql commands are there:
```
insgesamt 7052
-r-xr-xr-x 2 root root 3855712  1. Jan 1970  osm2pgsql
-r-xr-xr-x 2 root root 3328840  1. Jan 1970  osm2pgsql-gen
-r-xr-xr-x 2 root root   31130  1. Jan 1970  osm2pgsql-replication
```

## What did you do to try analyzing the problem?

<!-- Describe what steps you already did to try analyzing the problem before
reporting. -->
Commented on the nixpkgs Pull Request (see https://github.com/NixOS/nixpkgs/pull/443845#issuecomment-3304544231), where another maintainer of the corresponding nixpkgs package responded (https://github.com/NixOS/nixpkgs/pull/443845#issuecomment-3305814565) that `osm2pgsql-expire` is built
```
[ 98%] Linking CXX executable osm2pgsql-expire
[ 98%] Built target osm2pgsql-expire
```
but it looks like it is not getting installed:
https://github.com/osm2pgsql-dev/osm2pgsql/blob/master/CMakeLists.txt#L331-L337

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2419
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/issues/2419 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250918/600e6780/attachment-0001.htm>


More information about the Tile-serving mailing list