Bug#1055590: r-cran-sf: FTBFS with GDAL 3.8.0

2023-11-08 Thread Andreas Tille
Control: tags -1 upstream
Control: forwarded -1 https://github.com/r-spatial/sf/issues/2252


-- 
http://fam-tille.de



Bug#1055590: r-cran-sf: FTBFS with GDAL 3.8.0

2023-11-08 Thread Bas Couwenberg
Source: r-cran-sf
Version: 1.0-14+dfsg-1
Severity: important
Tags: ftbfs
User: debian-...@lists.debian.org
Usertags: gdal-3.8

Dear Maintainer,


Your package FTBFS with GDAL 3.8.0 from experimental:

 g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG 
-I/usr/include/x86_64-linux-gnu -I/usr/include/webp  -DHAVE_PROJ_H 
-I/usr/include/gdal -I/usr/include -I'/usr/lib/R/site-library/Rcpp/include' 
-fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.3.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c 
gdal_read.cpp -o gdal_read.o
 In file included from /usr/include/gdal/ogr_geometry.h:36,
  from /usr/include/gdal/ogr_feature.h:36,
  from /usr/include/gdal/ogrsf_frmts.h:35,
  from gdal_read.cpp:4:
 /usr/include/gdal/cpl_json.h:97:36: error: expected ')' before 'nVal'
97 | explicit CPLJSONObject(uint64_t nVal);
   |   ~^
   |)
 /usr/include/gdal/cpl_json.h:119:41: error: 'uint64_t' has not been declared
   119 | void Add(const std::string &osName, uint64_t nValue);
   | ^~~~
 /usr/include/gdal/cpl_json.h:119:10: error: 'void CPLJSONObject::Add(const 
std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Add(const 
std::string&, int)'
   119 | void Add(const std::string &osName, uint64_t nValue);
   |  ^~~
 /usr/include/gdal/cpl_json.h:117:10: note: previous declaration 'void 
CPLJSONObject::Add(const std::string&, int)'
   117 | void Add(const std::string &osName, int nValue);
   |  ^~~
 /usr/include/gdal/cpl_json.h:131:41: error: 'uint64_t' has not been declared
   131 | void Set(const std::string &osName, uint64_t nValue);
   | ^~~~
 /usr/include/gdal/cpl_json.h:131:10: error: 'void CPLJSONObject::Set(const 
std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Set(const 
std::string&, int)'
   131 | void Set(const std::string &osName, uint64_t nValue);
   |  ^~~
 /usr/include/gdal/cpl_json.h:129:10: note: previous declaration 'void 
CPLJSONObject::Set(const std::string&, int)'
   129 | void Set(const std::string &osName, int nValue);
   |  ^~~
 /usr/include/gdal/cpl_json.h:245:14: error: 'uint64_t' has not been declared
   245 | void Add(uint64_t nValue);
   |  ^~~~
 /usr/include/gdal/cpl_json.h:245:10: error: 'void CPLJSONArray::Add(int)' 
cannot be overloaded with 'void CPLJSONArray::Add(int)'
   245 | void Add(uint64_t nValue);
   |  ^~~
 /usr/include/gdal/cpl_json.h:243:10: note: previous declaration 'void 
CPLJSONArray::Add(int)'
   243 | void Add(int nValue);
   |  ^~~

The full buildlog is attached.

Kind Regards,

Bas
dpkg-checkbuilddeps: error: Unmet build dependencies: r-cran-classint 
r-cran-dbi r-cran-magrittr r-cran-rcpp r-cran-s2 (>= 1.1.0) r-cran-units (>= 
0.7-0) libgdal-dev
W: Unmet build-dependency in source
dh clean --buildsystem R
   dh_auto_clean -O--buildsystem=R
   dh_autoreconf_clean -O--buildsystem=R
   dh_clean -O--buildsystem=R
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building r-cran-sf using existing 
./r-cran-sf_1.0-14+dfsg.orig.tar.xz
dpkg-source: info: building r-cran-sf in r-cran-sf_1.0-14+dfsg-1.1.debian.tar.xz
dpkg-source: info: building r-cran-sf in r-cran-sf_1.0-14+dfsg-1.1.dsc
I: Generating source changes file for original dsc
dpkg-genchanges: info: not including original source code in upload
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.3062380
I: forking: cp -al /var/cache/pbuilder/base-sid+rebuild.cow 
/var/cache/pbuilder/build/cow.3062380
I: removed stale ilistfile /var/cache/pbuilder/build/cow.3062380/.ilist
I: forking: chroot /var/cache/pbuilder/build/cow.3062380 cowdancer-ilistcreate 
/.ilist 'find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ''
I: Invoking pbuilder
I: forking: pbuilder build --debbuildopts  --debbuildopts  --buildplace 
/var/cache/pbuilder/build/cow.3062380 --buildresult /var/cache/pbuilder/result/ 
--mirror http://ftp.nl.debian.org/debian/ --distribution sid --no-targz 
--internal-chrootexec 'chroot /var/cache/pbuilder/build/cow.3062380 cow-shell' 
/home/bas/tmp/debian/r-cran-sf_1.0-14+dfsg-1.1.dsc
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Wed Nov  8 16:42:36 CET 2023
I: pbuilder-time-stamp: 1699458156
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage 
for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating