* [bug#32813] [PATCH 2/4] gnu: Add imposm3.
2018-09-23 20:43 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Julien Lepiller
@ 2018-09-23 20:43 ` Julien Lepiller
2018-09-25 17:16 ` Björn Höfling
2018-09-23 20:43 ` [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql Julien Lepiller
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Julien Lepiller @ 2018-09-23 20:43 UTC (permalink / raw)
To: 32813
* gnu/packages/geo.scm (imposm3): New variable.
---
gnu/packages/geo.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index e6aafff7d..81bffcc88 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -790,3 +790,37 @@ location queries to be run in SQL.")
takes geospatial data and slices it into vector tiles that can be efficiently
delivered to any client.")
(license license:expat)))
+
+(define-public imposm3
+ (package
+ (name "imposm3")
+ (version "0.6.0-alpha.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/omniscale/imposm3/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "06f0kwmv52yd5m9jlckqxqmkf0cnqy3hamakrvg9lspplyqrds80"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:import-path "github.com/omniscale/imposm3/cmd/imposm"
+ #:unpack-path "github.com/omniscale"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'rename-import
+ (lambda _
+ (rename-file (string-append "src/github.com/omniscale/imposm3-" ,version)
+ "src/github.com/omniscale/imposm3")
+ #t)))))
+ (inputs
+ `(("geos" ,geos)
+ ("leveldb" ,leveldb)))
+ (home-page "http://imposm.org/")
+ (synopsis "OpenStreetMap importer for PostGIS.")
+ (description "Imposm is an importer for OpenStreetMap data. It reads PBF
+files and imports the data into PostgreSQL/PostGIS databases. It is designed
+to create databases that are optimized for rendering/tile/map-services.")
+ (license license:asl2.0)))
--
2.18.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 2/4] gnu: Add imposm3.
2018-09-23 20:43 ` [bug#32813] [PATCH 2/4] gnu: Add imposm3 Julien Lepiller
@ 2018-09-25 17:16 ` Björn Höfling
0 siblings, 0 replies; 12+ messages in thread
From: Björn Höfling @ 2018-09-25 17:16 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32813
[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]
On Sun, 23 Sep 2018 22:43:09 +0200
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/geo.scm (imposm3): New variable.
> ---
> gnu/packages/geo.scm | 34 ++++++++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index e6aafff7d..81bffcc88 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -790,3 +790,37 @@ location queries to be run in SQL.")
> takes geospatial data and slices it into vector tiles that can be
> efficiently delivered to any client.")
> (license license:expat)))
> +
> +(define-public imposm3
> + (package
> + (name "imposm3")
> + (version "0.6.0-alpha.4")
Is there a reason you chose the -alpha.4 instead of 0.5.0?
[..]
> + (home-page "http://imposm.org/")
Use https.
> + (synopsis "OpenStreetMap importer for PostGIS.")
> + (description "Imposm is an importer for OpenStreetMap data. It
> reads PBF +files and imports the data into PostgreSQL/PostGIS
> databases. It is designed +to create databases that are optimized
> for rendering/tile/map-services.")
> + (license license:asl2.0)))
/pre-inst-env guix lint $REVIEW_PACKAGE
gnu/packages/geo.scm:798:2: imposm3@0.6.0-alpha.4: permanent redirect from http://imposm.org/ to https://imposm.org/
gnu/packages/geo.scm:825:14: imposm3@0.6.0-alpha.4: no period allowed at the end of the synopsis
As with tegola, there are some dependencies in the 'vendors' directory.
Either unbundle them or add their licenses to the license field.
This does not work too:
./pre-inst-env guix environment --ad-hoc imposm3 -- imposm version
0.0.0-dev
Otherwise fine.
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql.
2018-09-23 20:43 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Julien Lepiller
2018-09-23 20:43 ` [bug#32813] [PATCH 2/4] gnu: Add imposm3 Julien Lepiller
@ 2018-09-23 20:43 ` Julien Lepiller
2018-09-25 17:37 ` Björn Höfling
2018-09-25 17:39 ` Björn Höfling
2018-09-23 20:43 ` [bug#32813] [PATCH 4/4] gnu: Add tippecanoe Julien Lepiller
2018-09-25 17:04 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Björn Höfling
3 siblings, 2 replies; 12+ messages in thread
From: Julien Lepiller @ 2018-09-23 20:43 UTC (permalink / raw)
To: 32813
* gnu/packages/geo.scm (osm2pgsql): New variable.
---
gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 81bffcc88..efc68ea85 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -824,3 +824,33 @@ delivered to any client.")
files and imports the data into PostgreSQL/PostGIS databases. It is designed
to create databases that are optimized for rendering/tile/map-services.")
(license license:asl2.0)))
+
+(define-public osm2pgsql
+ (package
+ (name "osm2pgsql")
+ (version "0.96.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/openstreetmap/osm2pgsql/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "08y7776r4l9v9177a4q6cfdri0lpirky96m6g699hwl7v1vhw0mn"))))
+ (build-system cmake-build-system)
+ (arguments
+ ;; failure :/
+ `(#:tests? #f))
+ (inputs
+ `(("boost" ,boost)
+ ("expat" ,expat)
+ ("lua" ,lua)
+ ("postgresql" ,postgresql)
+ ("proj.4" ,proj.4)
+ ("zlib" ,zlib)))
+ (home-page "https://github.com/openstreetmap/osm2pgsql")
+ (synopsis "OSM data importer to postgresql")
+ (description "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.")
+ (license license:gpl2)))
--
2.18.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql.
2018-09-23 20:43 ` [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql Julien Lepiller
@ 2018-09-25 17:37 ` Björn Höfling
2018-09-25 17:39 ` Björn Höfling
1 sibling, 0 replies; 12+ messages in thread
From: Björn Höfling @ 2018-09-25 17:37 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32813
[-- Attachment #1: Type: text/plain, Size: 1816 bytes --]
On Sun, 23 Sep 2018 22:43:10 +0200
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/geo.scm (osm2pgsql): New variable.
> ---
> gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index 81bffcc88..efc68ea85 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -824,3 +824,33 @@ delivered to any client.")
> files and imports the data into PostgreSQL/PostGIS databases. It is
> designed to create databases that are optimized for
> rendering/tile/map-services.") (license license:asl2.0)))
> +
> +(define-public osm2pgsql
> + (package
> + (name "osm2pgsql")
> + (version "0.96.0")
[..]
> + (license license:gpl2)))
Hm.
The COPYING file says gpl2.
The README is saying nothing about the license. A LICENSE file is
missing.
Most .cpp/.h files do not have a header and do not clarify it.
But these 3 do:
./parse-osmium.cpp: *No copyright* GPL (v2 or later)
./parse-osmium.hpp: *No copyright* GPL (v2 or later)
./tests/test-options-projection.cpp: GPL (v2 or later)
Is this (list gpl2 gpl2+) ?!
Found more:
./contrib/protozero/LICENSE.from_folly: *No copyright* Apache License (v2.0)
./contrib/protozero/LICENSE.md: BSD 2-clause "Simplified" License
./contrib/libosmium/osmium/*: BSL
Does it make sense/have you tried to
unbundle protozero and libosmonium:
https://github.com/mapbox/protozero
https://github.com/osmcode/libosmium
Either unbundle or add to copyright line.
Missing import:
#:use-module (gnu packages lua)
Otherwise, LGTM
Thanks,
Björn
--
Dipl.-Inf. Björn Höfling
Software Developer (GIS, Java)
http://www.bjoernhoefling.de/
+49-176-666 875 06
USt-IdNr: DE275885245
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql.
2018-09-23 20:43 ` [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql Julien Lepiller
2018-09-25 17:37 ` Björn Höfling
@ 2018-09-25 17:39 ` Björn Höfling
1 sibling, 0 replies; 12+ messages in thread
From: Björn Höfling @ 2018-09-25 17:39 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32813
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
On Sun, 23 Sep 2018 22:43:10 +0200
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/geo.scm (osm2pgsql): New variable.
> ---
> gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index 81bffcc88..efc68ea85 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -824,3 +824,33 @@ delivered to any client.")
> files and imports the data into PostgreSQL/PostGIS databases. It is
> designed to create databases that are optimized for
> rendering/tile/map-services.") (license license:asl2.0)))
> +
> +(define-public osm2pgsql
> + (package
> + (name "osm2pgsql")
> + (build-system cmake-build-system)
Sorry, missed one more:
Import missing:
#:use-module (guix build-system cmake)
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 4/4] gnu: Add tippecanoe.
2018-09-23 20:43 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Julien Lepiller
2018-09-23 20:43 ` [bug#32813] [PATCH 2/4] gnu: Add imposm3 Julien Lepiller
2018-09-23 20:43 ` [bug#32813] [PATCH 3/4] gnu: Add osm2pgsql Julien Lepiller
@ 2018-09-23 20:43 ` Julien Lepiller
2018-09-25 17:52 ` Björn Höfling
2018-09-25 17:04 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Björn Höfling
3 siblings, 1 reply; 12+ messages in thread
From: Julien Lepiller @ 2018-09-23 20:43 UTC (permalink / raw)
To: 32813
* gnu/packages/geo.scm (tippecanoe): New variable.
---
gnu/packages/geo.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index efc68ea85..ed3d922d1 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -854,3 +854,35 @@ to create databases that are optimized for rendering/tile/map-services.")
PostgreSQL / PostGIS database suitable for applications like rendering into a
map, geocoding with Nominatim, or general analysis.")
(license license:gpl2)))
+
+(define-public tippecanoe
+ (package
+ (name "tippecanoe")
+ (version "1.31.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/mapbox/tippecanoe/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1057na1dkgjaryr7jr15lqkxpam111d3l5zdpdkqzzzpxmdjxqcf"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases (delete 'configure))
+ #:test-target "test"
+ #:make-flags
+ (list "CC=gcc"
+ (string-append "PREFIX=" (assoc-ref %outputs "out")))))
+ (inputs
+ `(("sqlite" ,sqlite)
+ ("zlib" ,zlib)))
+ (native-inputs
+ `(("perl" ,perl)))
+ (home-page "https://github.com/mapbox/tippecanoe")
+ (synopsis "Vector tile server for maps")
+ (description "Tippecanoe creates scale-independent view of data, so that
+the texture and density of features is visible at every zoom level, instead of
+dropping features at lower levels.")
+ (license license:bsd-2)))
--
2.18.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 4/4] gnu: Add tippecanoe.
2018-09-23 20:43 ` [bug#32813] [PATCH 4/4] gnu: Add tippecanoe Julien Lepiller
@ 2018-09-25 17:52 ` Björn Höfling
0 siblings, 0 replies; 12+ messages in thread
From: Björn Höfling @ 2018-09-25 17:52 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32813
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
On Sun, 23 Sep 2018 22:43:11 +0200
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/geo.scm (tippecanoe): New variable.
> ---
> gnu/packages/geo.scm | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index efc68ea85..ed3d922d1 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -854,3 +854,35 @@ to create databases that are optimized for
> rendering/tile/map-services.") PostgreSQL / PostGIS database suitable
> for applications like rendering into a map, geocoding with Nominatim,
> or general analysis.") (license license:gpl2)))
> +
> +(define-public tippecanoe
> + (package
> + (name "tippecanoe")
[..]
> + (inputs
> + `(("sqlite" ,sqlite)
> + ("zlib" ,zlib)))
> + (native-inputs
> + `(("perl" ,perl)))
filters/limit-tiles-to-bbox uses perl, but perl is in native-inputs.
Is this meant to be used only at compile-time?
On the other hand, this file is not in the store item's bin directory,
so it looks like it's fine that way.
Thanks for that series!
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#32813] [PATCH 1/4] gnu: Add tegola.
2018-09-23 20:43 ` [bug#32813] [PATCH 1/4] gnu: Add tegola Julien Lepiller
` (2 preceding siblings ...)
2018-09-23 20:43 ` [bug#32813] [PATCH 4/4] gnu: Add tippecanoe Julien Lepiller
@ 2018-09-25 17:04 ` Björn Höfling
3 siblings, 0 replies; 12+ messages in thread
From: Björn Höfling @ 2018-09-25 17:04 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32813
[-- Attachment #1: Type: text/plain, Size: 2966 bytes --]
On Sun, 23 Sep 2018 22:43:08 +0200
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/geo.scm (tegola): New variable.
> ---
> gnu/packages/geo.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
> index ae6ba024e..e6aafff7d 100644
> --- a/gnu/packages/geo.scm
> +++ b/gnu/packages/geo.scm
> @@ -760,3 +760,33 @@ location queries to be run in SQL.")
> license:bsd-3 ; files only say "BSD"
> ;; doc
> license:cc-by-sa3.0))))
> +
> +(define-public tegola
> + (package
> + (name "tegola")
> + (version "0.7.0")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://github.com/go-spatial/tegola/archive/v"
> + version ".tar.gz"))
> + (sha256
> + (base32
> +
> "09vnzxfn0r70kmd776kcdfqxhzdj11syxa0b27z4ci1k367v7viw"))))
> + (build-system go-build-system)
> + (arguments
> + `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
> + #:unpack-path "github.com/go-spatial"
> + #:phases
> + (modify-phases %standard-phases
> + (add-before 'build 'rename-import
> + (lambda _
> + (rename-file (string-append
> "src/github.com/go-spatial/tegola-" ,version)
> + "src/github.com/go-spatial/tegola")
> + #t)))))
> + (home-page "http://tegola.io")
> + (synopsis "Vector tile server for maps")
> + (description "Tegola is a free vector tile server written in
> Go. Tegola +takes geospatial data and slices it into vector tiles
> that can be efficiently +delivered to any client.")
> + (license license:expat)))
Hi Julien,
thanks for the patch-set!
Here are my remarks:
Import for go-system missing:
+ #:use-module (guix build-system go)
./pre-inst-env guix lint $REVIEW_PACKAGE
gnu/packages/geo.scm:770:12: tegola@0.7.0: the source file name should contain the package name
--> i.e. add to the source a line:
(file-name (string-append name "-" version ".zip"))
Under directory 'vendor' are a bunch of dependencies. I never used Go,
so I ask carefully:
* Do we already have them as a package (or some of them)?
* Can those be snipped away?
* If not, please check the licenses. With licensecheck, I found at
least:
Apache 2.0
BSD-2
BSD-3
And here is one I didn't know yet and I think we don't yet have a
license term for it in Guix :-)
vendor/github.com/BurntSushi/toml/COPYING
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Isn't that nice? :-)
I ran the program and got:
./pre-inst-env guix environment --ad-hoc tegola -- tegola version
version not set
But I wouldn't invest too much time into this one, as long as the
"serve" command works (havn't tried that).
Thanks,
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread