Bug#961211: r-cran-lwgeom: autopkgtest failures on s390x

2020-05-23 Thread Adrian Bunk
[ debian-s390 added ]

On Thu, May 21, 2020 at 02:30:21PM +0200, Gianfranco Costamagna wrote:
>...
> Hello, looks like some changes in r-cran-lwgeom/proj/geom made the testsuite 
> fail with the latest versions
> of the programs in sid.
> Looks like an endianess regression introduced in the last version fo lwgeom, 
> can you please have a look?
>...

Can an s390x porter please have a look?

Thanks
Adrian



Bug#961211: r-cran-lwgeom: autopkgtest failures on s390x

2020-05-21 Thread Gianfranco Costamagna
Source: r-cran-lwgeom
Version: 0.2-3-1
Severity: serious

Hello, looks like some changes in r-cran-lwgeom/proj/geom made the testsuite 
fail with the latest versions
of the programs in sid.
Looks like an endianess regression introduced in the last version fo lwgeom, 
can you please have a look?

I'm attaching a log taken from a test on zelenka.debian.org

thanks

Gianfranco
BEGIN TEST azimuth.R

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: s390x-ibm-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> suppressPackageStartupMessages(library(sf))
> suppressPackageStartupMessages(library(lwgeom))
> p = st_sfc(st_point(c(7,52)), st_point(c(8,53)), crs = 4326)
> st_geod_azimuth(p)
Unknown WKB type (248)! Full WKB type number was (16777248).
Error in CPL_geodetic_azimuth(st_geometry(x), p$SemiMajor, p$InvFlattening) : 
  lwgeom error
Calls: st_geod_azimuth -> CPL_geodetic_azimuth
Execution halted
BEGIN TEST dist.R

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: s390x-ibm-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> suppressPackageStartupMessages(library(sf))
> library(sp)
> suppressPackageStartupMessages(library(units))
> library(geosphere)
> 
> x = st_sfc(
+ st_point(c(0,0)),
+ st_point(c(1,0)),
+ st_point(c(2,0)),
+ st_point(c(3,0)),
+ crs = 4326
+ )
> 
> y = st_sfc(
+ st_point(c(0,10)),
+ st_point(c(1,0)),
+ st_point(c(2,0)),
+ st_point(c(3,0)),
+ st_point(c(4,0)),
+ crs = 4326
+ )
> 
> st_crs(y) = 4326
> st_crs(x) = 4326
> (d.sf = st_distance(x, y))
Error in CPL_geodetic_distance(st_geometry(x), st_geometry(y), p$SemiMajor,  : 
  Unknown WKB type (248)! Full WKB type number was (16777248).
Calls: st_distance ->  -> CPL_geodetic_distance
Execution halted
BEGIN TEST geod.R

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: s390x-ibm-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> ### Name: lw_geodetic
> ### Title: geodetic length, area, and predicates
> ### Aliases: lw_geodetic st_geod_area lw_geodetic st_geod_length
> ###   lw_geodetic st_geod_segmentize lw_geodetic st_geod_covers
> 
> ### ** Examples
> 
> suppressPackageStartupMessages(library(sf))
> suppressPackageStartupMessages(library(lwgeom))
> suppressPackageStartupMessages(library(units))
> nc = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE)
> st_geod_area(nc[1:3,])
Unknown WKB type (296)! Full WKB type number was (100663296).
Error in CPL_geodetic_area(st_geometry(x), p$SemiMajor, p$InvFlattening) : 
  lwgeom error
Calls: st_geod_area -> CPL_geodetic_area
Execution halted
BEGIN TEST perimeter.R

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: s390x-ibm-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> suppressPackageStartupMessages(library(lwgeom))
> suppressPackageStartupMessages(library(sf))
> nc = st_read(system.file("gpkg/nc.gpkg", package="sf"), quiet = TRUE)
> nc = st_transform(nc, 3857)
> st_perimeter(nc)[1:5]
Unknown WKB type (328)! Full WKB type number was (100663328).
Error in