package/osm2pgsql: new package
PATCH 1/1 package/osm2pgsql: new package
osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.
--- package/Config.in | 1 + package/osm2pgsql/Config.in | 15 +++++++++++++++ package/osm2pgsql/osm2pgsql.hash | 3 +++ package/osm2pgsql/osm2pgsql.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 package/osm2pgsql/Config.in create mode 100644 package/osm2pgsql/osm2pgsql.hash create mode 100644 package/osm2pgsql/osm2pgsql.mk
package/Config.in +1 -0
@@ -1400,6 +1400,7 @@ menu "Database" source "package/libpqxx/Config.in" source "package/mongodb/Config.in" source "package/mysql/Config.in" + source "package/osm2pgsql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in" source "package/rocksdb/Config.in"
package/osm2pgsql/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +config BR2_PACKAGE_OSM2PGSQL + bool "osm2pgsql" + depends on BR2_PACKAGE_POSTGRESQL + select BR2_PACKAGE_EXPAT + select BR2_PACKAGE_PROJ + select BR2_PACKAGE_BZIP2 + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_FILESYSTEM + help + osm2pgsql is a tool for loading OpenStreetMap data into a + PostgreSQL / PostGIS database suitable for applications like + rendering into a map, geocoding with Nominatim, or general analysis. + + https://osm2pgsql.org
package/osm2pgsql/osm2pgsql.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 403e25a0310d088183a868d80e5325dceee88617d0df570056e50a2930905369 osm2pgsql-1.4.0.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/osm2pgsql/osm2pgsql.mk new file +26 -0
@@ -0,0 +1,26 @@ +################################################################################ +# +# osm2pgsql +# +################################################################################ + +OSM2PGSQL_VERSION = 1.4.0 +OSM2PGSQL_SITE = $(call github,openstreetmap,osm2pgsql,$(OSM2PGSQL_VERSION)) +OSM2PGSQL_LICENSE = GPL-2.0+ +OSM2PGSQL_LICENSE_FILES = COPYING +OSM2PGSQL_SUPPORTS_IN_SOURCE_BUILD = NO + +OSM2PGSQL_DEPENDENCIES = postgresql expat proj bzip2 zlib boost + +ifeq ($(BR2_PACKAGE_LUAJIT),y) +OSM2PGSQL_DEPENDENCIES += luajit +OSM2PGSQL_CONF_OPTS += -DWITH_LUAJIT=ON +else +ifeq ($(BR2_PACKAGE_LUA),y) +OSM2PGSQL_DEPENDENCIES += lua +else +OSM2PGSQL_CONF_OPTS += -DWITH_LUA=OFF +endif +endif + +$(eval $(cmake-package))
Signature · 1 line
2.29.2
PATCH 1/1 package/osm2pgsql: new package
Has this patch chance to be upstreamable? Should I resend or what?
27.01.2021 10:18, Maxim Kochetkov via buildroot ?????:
Quoted 92 lines
osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.
Signed-off-by Maxim Kochetkov <[email protected]>--- package/Config.in | 1 + package/osm2pgsql/Config.in | 15 +++++++++++++++ package/osm2pgsql/osm2pgsql.hash | 3 +++ package/osm2pgsql/osm2pgsql.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 45 insertions(+)create mode 100644 package/osm2pgsql/Config.in create mode 100644 package/osm2pgsql/osm2pgsql.hash create mode 100644
package/osm2pgsql/osm2pgsql.mkpackage/Config.in +1
-0@@ -1400,6 +1400,7 @@ menu "Database" source "package/libpqxx/Config.in" source "package/mongodb/Config.in" source "package/mysql/Config.in" + source "package/osm2pgsql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in" source "package/rocksdb/Config.in"package/osm2pgsql/Config.in new file +15
-0@@ -0,0 +1,15 @@ +config BR2_PACKAGE_OSM2PGSQL + bool "osm2pgsql" + depends on BR2_PACKAGE_POSTGRESQL + select BR2_PACKAGE_EXPAT + select BR2_PACKAGE_PROJ + select BR2_PACKAGE_BZIP2 + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_FILESYSTEM + help + osm2pgsql is a tool for loading OpenStreetMap data into a + PostgreSQL / PostGIS database suitable for applications like + rendering into a map, geocoding with Nominatim, or general analysis. + + https://osm2pgsql.orgpackage/osm2pgsql/osm2pgsql.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally calculated +sha256 403e25a0310d088183a868d80e5325dceee88617d0df570056e50a2930905369 osm2pgsql-1.4.0.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYINGpackage/osm2pgsql/osm2pgsql.mk new file +26
-0@@ -0,0 +1,26 @@ +################################################################################ +# +# osm2pgsql +# +################################################################################ + +OSM2PGSQL_VERSION = 1.4.0 +OSM2PGSQL_SITE = $(call github,openstreetmap,osm2pgsql,$(OSM2PGSQL_VERSION)) +OSM2PGSQL_LICENSE = GPL-2.0+ +OSM2PGSQL_LICENSE_FILES = COPYING +OSM2PGSQL_SUPPORTS_IN_SOURCE_BUILD = NO + +OSM2PGSQL_DEPENDENCIES = postgresql expat proj bzip2 zlib boost + +ifeq ($(BR2_PACKAGE_LUAJIT),y) +OSM2PGSQL_DEPENDENCIES += luajit +OSM2PGSQL_CONF_OPTS += -DWITH_LUAJIT=ON +else +ifeq ($(BR2_PACKAGE_LUA),y) +OSM2PGSQL_DEPENDENCIES += lua +else +OSM2PGSQL_CONF_OPTS += -DWITH_LUA=OFF +endif +endif + +$(eval $(cmake-package))
PATCH 1/1 package/osm2pgsql: new package
Quoted 1 line · Maxim Kochetkov via buildroot
Has this patch chance to be upstreamable? Should I resend or what?
Or find someone to do some review of the patch ;-)
Quoted 34 lines
27.01.2021 10:18, Maxim Kochetkov via buildroot ?????:
Quoted 32 lines
osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.
Signed-off-by Maxim Kochetkov <[email protected]>--- package/Config.in | 1 + package/osm2pgsql/Config.in | 15 +++++++++++++++ package/osm2pgsql/osm2pgsql.hash | 3 +++ package/osm2pgsql/osm2pgsql.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 45 insertions(+)create mode 100644 package/osm2pgsql/Config.in create mode 100644 package/osm2pgsql/osm2pgsql.hash create mode 100644
package/osm2pgsql/osm2pgsql.mkpackage/Config.in +1
-0@@ -1400,6 +1400,7 @@ menu "Database" source "package/libpqxx/Config.in" source "package/mongodb/Config.in" source "package/mysql/Config.in" + source "package/osm2pgsql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in" source "package/rocksdb/Config.in"package/osm2pgsql/Config.in new file +0
-0
Quoted 8 lines
package/osm2pgsql/Config.in line 5
Quoted 8 lines
package/osm2pgsql/Config.in new file +5
-0@@ -0,0 +1,15 @@ +config BR2_PACKAGE_OSM2PGSQL + bool "osm2pgsql" + depends on BR2_PACKAGE_POSTGRESQL + select BR2_PACKAGE_EXPAT + select BR2_PACKAGE_PROJ
Same as for postgis package, dependencies should be propagated (with comment), here:
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
Quoted 3 lines
package/osm2pgsql/Config.in line 8
Quoted 3 lines
package/osm2pgsql/Config.in new file +3
-0+ select BR2_PACKAGE_BZIP2 + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_BOOST
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
Quoted 5 lines
package/osm2pgsql/Config.in line 13
Quoted 5 lines
package/osm2pgsql/Config.in new file +5
-0+ select BR2_PACKAGE_BOOST_FILESYSTEM + help + osm2pgsql is a tool for loading OpenStreetMap data into a + PostgreSQL / PostGIS database suitable for applications like + rendering into a map, geocoding with Nominatim, or general analysis.
$ /utils/check-package package/osm2pgsql/* package/osm2pgsql/Config.in:11: line contains trailing whitespace package/osm2pgsql/Config.in:12: line contains trailing whitespace package/osm2pgsql/Config.in:13: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
Quoted 22 lines
Quoted 22 lines
package/osm2pgsql/Config.in new file +2
-0+ + https://osm2pgsql.orgpackage/osm2pgsql/osm2pgsql.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally calculated +sha256 403e25a0310d088183a868d80e5325dceee88617d0df570056e50a2930905369 osm2pgsql-1.4.0.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYINGpackage/osm2pgsql/osm2pgsql.mk new file +5
-0@@ -0,0 +1,26 @@ +################################################################################ +# +# osm2pgsql +# +################################################################################
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk line 13
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk new file +8
-0+ +OSM2PGSQL_VERSION = 1.4.0 +OSM2PGSQL_SITE = $(call github,openstreetmap,osm2pgsql,$(OSM2PGSQL_VERSION)) +OSM2PGSQL_LICENSE = GPL-2.0+ +OSM2PGSQL_LICENSE_FILES = COPYING +OSM2PGSQL_SUPPORTS_IN_SOURCE_BUILD = NO + +OSM2PGSQL_DEPENDENCIES = postgresql expat proj bzip2 zlib boost
Should be sorted alphabetically...
Quoted 5 lines
Quoted 5 lines
package/osm2pgsql/osm2pgsql.mk new file +5
-0+ +ifeq ($(BR2_PACKAGE_LUAJIT),y) +OSM2PGSQL_DEPENDENCIES += luajit +OSM2PGSQL_CONF_OPTS += -DWITH_LUAJIT=ON +else
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk line 26
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk new file +8
-0+ifeq ($(BR2_PACKAGE_LUA),y) +OSM2PGSQL_DEPENDENCIES += lua +else +OSM2PGSQL_CONF_OPTS += -DWITH_LUA=OFF +endif +endif + +$(eval $(cmake-package))
And add an entry in the DEVELOPERS file...
Did not find time (yet) for compile testing...
Regards,
Peter
Quoted 5 lines
Quoted 1 line
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 1/1 package/osm2pgsql: new package
Hello Maxim,
Quoted 64 lines · Peter Seiderer
Quoted 1 line · Maxim Kochetkov via buildroot
Has this patch chance to be upstreamable? Should I resend or what?
Or find someone to do some review of the patch ;-)
Quoted 34 lines
27.01.2021 10:18, Maxim Kochetkov via buildroot ?????:
Quoted 32 lines
osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.
Signed-off-by Maxim Kochetkov <[email protected]>--- package/Config.in | 1 + package/osm2pgsql/Config.in | 15 +++++++++++++++ package/osm2pgsql/osm2pgsql.hash | 3 +++ package/osm2pgsql/osm2pgsql.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 45 insertions(+)create mode 100644 package/osm2pgsql/Config.in create mode 100644 package/osm2pgsql/osm2pgsql.hash create mode 100644
package/osm2pgsql/osm2pgsql.mkpackage/Config.in +1
-0@@ -1400,6 +1400,7 @@ menu "Database" source "package/libpqxx/Config.in" source "package/mongodb/Config.in" source "package/mysql/Config.in" + source "package/osm2pgsql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in" source "package/rocksdb/Config.in"package/osm2pgsql/Config.in new file +0
-0Quoted 8 lines
package/osm2pgsql/Config.in line 5
Quoted 8 lines
package/osm2pgsql/Config.in new file +5
-0@@ -0,0 +1,15 @@ +config BR2_PACKAGE_OSM2PGSQL + bool "osm2pgsql" + depends on BR2_PACKAGE_POSTGRESQL + select BR2_PACKAGE_EXPAT + select BR2_PACKAGE_PROJSame as for postgis package, dependencies should be propagated (with comment), here:
depends onBR2_INSTALL_LIBSTDCPP
depends onBR2_TOOLCHAIN_GCC_AT_LEAST_4_7# C++11
depends onBR2_TOOLCHAIN_HAS_THREADS
depends onBR2_USE_WCHARQuoted 3 lines
package/osm2pgsql/Config.in line 8
Quoted 3 lines
package/osm2pgsql/Config.in new file +3
-0+ select BR2_PACKAGE_BZIP2 + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_BOOSTdepends on
BR2_INSTALL_LIBSTDCPP
depends onBR2_TOOLCHAIN_HAS_THREADS
depends onBR2_USE_WCHAR
Quoted 1 line
Quoted 1 line
package/osm2pgsql/Config.in line 9
Quoted 1 line
package/osm2pgsql/Config.in new file +1
-0+ select BR2_PACKAGE_BOOST_FILESYSTEM
according to CMakeLists.txt boost system and filesystem should be selected...
Quoted 34 lines
Quoted 4 lines
package/osm2pgsql/Config.in line 13
Quoted 4 lines
package/osm2pgsql/Config.in new file +4
-0+ help + osm2pgsql is a tool for loading OpenStreetMap data into a + PostgreSQL / PostGIS database suitable for applications like + rendering into a map, geocoding with Nominatim, or general analysis.$ /utils/check-package package/osm2pgsql/* package/osm2pgsql/Config.in:11: line contains trailing whitespace package/osm2pgsql/Config.in:12: line contains trailing whitespace package/osm2pgsql/Config.in:13: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)Quoted 22 lines
Quoted 22 lines
package/osm2pgsql/Config.in new file +2
-0+ + https://osm2pgsql.orgpackage/osm2pgsql/osm2pgsql.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally calculated +sha256 403e25a0310d088183a868d80e5325dceee88617d0df570056e50a2930905369 osm2pgsql-1.4.0.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYINGpackage/osm2pgsql/osm2pgsql.mk new file +5
-0@@ -0,0 +1,26 @@ +################################################################################ +# +# osm2pgsql +# +################################################################################
Quoted 8 lines
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk line 13
Quoted 8 lines
package/osm2pgsql/osm2pgsql.mk new file +8
-0+ +OSM2PGSQL_VERSION = 1.4.0 +OSM2PGSQL_SITE = $(call github,openstreetmap,osm2pgsql,$(OSM2PGSQL_VERSION)) +OSM2PGSQL_LICENSE = GPL-2.0+ +OSM2PGSQL_LICENSE_FILES = COPYING +OSM2PGSQL_SUPPORTS_IN_SOURCE_BUILD = NO + +OSM2PGSQL_DEPENDENCIES = postgresql expat proj bzip2 zlib boost
According to the README.md the proj dependency is optional...
Looking at osm2pgsql-1.4.0/CMakeLists.txt shows some more options:
option(BUILD_TESTS "Build test suite" OFF)
handled by cmake-package
option(BUILD_COVERAGE "Build with coverage" OFF)
should be forced to OFF (in case the default will change)...
option(WITH_LUA "Build with Lua support" ON)
option(WITH_LUAJIT "Build with LuaJIT support" OFF)
already handled...
option(EXTERNAL_LIBOSMIUM "Do not use the bundled libosmium" OFF) option(EXTERNAL_PROTOZERO "Do not use the bundled protozero" OFF)
both not in buildroot(?), bundled version o.k. (did your check the licenses?)...
option(EXTERNAL_FMT "Do not use the bundled fmt" OFF)
using buildroot package (in case it works) preferred...
Quoted 7 lines
Should be sorted alphabetically...
Quoted 4 lines
package/osm2pgsql/osm2pgsql.mk line 17
Quoted 4 lines
package/osm2pgsql/osm2pgsql.mk new file +4
-0+ +ifeq ($(BR2_PACKAGE_LUAJIT),y) +OSM2PGSQL_DEPENDENCIES += luajit +OSM2PGSQL_CONF_OPTS += -DWITH_LUAJIT=ON
My reading of the CMakeLists.txt is that this should be
-DWITH_LUA=ON -DWITH_LUAJIT=ON
Quoted 3 lines
Quoted 3 lines
package/osm2pgsql/osm2pgsql.mk line 20
Quoted 3 lines
package/osm2pgsql/osm2pgsql.mk new file +3
-0+else +ifeq ($(BR2_PACKAGE_LUA),y) +OSM2PGSQL_DEPENDENCIES += lua
Did your test all lua versions (5.1, 5.3, 5.4 see package/lua/Config.in), the README.md file talks only about lua5.3 liblua5.3-dev)...
Regards,
Peter
Quoted 24 lines
Quoted 6 lines
package/osm2pgsql/osm2pgsql.mk line 26
Quoted 6 lines
package/osm2pgsql/osm2pgsql.mk new file +6
-0+else +OSM2PGSQL_CONF_OPTS += -DWITH_LUA=OFF +endif +endif + +$(eval $(cmake-package))And add an entry in the DEVELOPERS file...
Did not find time (yet) for compile testing...
Regards,
PeterQuoted 5 lines
Quoted 1 line
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot