Skip to content

Commit acb840a

Browse files
authored
Merge pull request #2269 from joto/gen-install
Also install osm2pgsql-gen on make install
2 parents 973abc4 + 08e4669 commit acb840a

File tree

4 files changed

+2
-53
lines changed

4 files changed

+2
-53
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,6 @@ name: CI
33
on: [ push, pull_request ]
44

55
jobs:
6-
macos:
7-
strategy:
8-
fail-fast: false
9-
matrix:
10-
os:
11-
- "macos-13"
12-
- "macos-14" # latest
13-
runs-on: ${{ matrix.os }}
14-
15-
env:
16-
LUA_VERSION: 5.4
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Install prerequisites
22-
run: |
23-
# Workaround for github/brew problem. Python is already install
24-
# on the Github action runner and then homebrew comes along...
25-
# See also: https://github.com/Homebrew/homebrew-core/issues/173191
26-
rm -f /usr/local/bin/2to3* /usr/local/bin/idle3* /usr/local/bin/pydoc3* /usr/local/bin/python3*
27-
brew install boost lua nlohmann-json opencv pandoc postgis potrace python3
28-
# --break-system-packages is needed on macOS 14
29-
pip3 install --break-system-packages psycopg2 behave osmium
30-
mkdir ~/postgres
31-
pg_ctl -D ~/postgres init
32-
pg_ctl -D ~/postgres start
33-
shell: bash
34-
35-
- name: Setup database
36-
run: |
37-
psql -d postgres -c 'CREATE EXTENSION postgis'
38-
psql -d postgres -c 'CREATE EXTENSION hstore'
39-
psql -d postgres -c 'SELECT PostGIS_Full_Version()'
40-
mkdir -m 700 $GITHUB_WORKSPACE/tablespacetest
41-
psql -d postgres -c "CREATE TABLESPACE tablespacetest LOCATION '$GITHUB_WORKSPACE/tablespacetest'"
42-
shell: bash
43-
44-
- uses: ./.github/actions/linux-cmake
45-
- uses: ./.github/actions/build-and-test
46-
with:
47-
test-wrapper: ''
48-
env:
49-
PGHOST: /tmp
506

517
ubuntu20-pg96-gcc10-jit:
528
runs-on: ubuntu-20.04

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ if (ENABLE_INSTALL)
330330
install(FILES default.style empty.style DESTINATION share/osm2pgsql)
331331
install(PROGRAMS scripts/osm2pgsql-replication DESTINATION bin)
332332
if (BUILD_GEN)
333-
install(TARGETS osm2pgsql-gen COMPONENT gen EXCLUDE_FROM_ALL DESTINATION bin)
334-
add_custom_target(install-gen cmake --install ${CMAKE_BINARY_DIR} --component gen)
333+
install(TARGETS osm2pgsql-gen DESTINATION bin)
335334
endif()
336335
endif()

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@ The compiled files can be installed with
150150
sudo make install
151151
```
152152

153-
To install the experimental `osm2pgsql-gen` binary use
154-
155-
```sh
156-
sudo make install-gen
157-
```
158-
159153
By default, the Release build with debug info is created and no tests are
160154
compiled. You can change that behavior by using additional options like
161155
following:

man/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ if(ENABLE_INSTALL)
6565
install(FILES osm2pgsql.1 DESTINATION share/man/man1)
6666
install(FILES osm2pgsql-replication.1 DESTINATION share/man/man1)
6767
if (BUILD_GEN)
68-
install(FILES osm2pgsql-gen.1 COMPONENT gen EXCLUDE_FROM_ALL DESTINATION share/man/man1)
68+
install(FILES osm2pgsql-gen.1 DESTINATION share/man/man1)
6969
endif()
7070
endif()

0 commit comments

Comments
 (0)