Created attachment 576082 [details] spatialite build log In attempting to rebuild spatialite via @preserved-rebuild because sci-libs/proj was updated, the following error shows up at configuration time: checking proj_api.h usability... no checking proj_api.h presence... no checking for proj_api.h... no configure: error: cannot find proj_api.h, bailing out This is despite the fact that /usr/include/proj_api.h exists. Taking a quick look at the include file, perhaps it's because spatialite now must enable ACCEPT_USE_OF_DEPRECATED_PROJ_API_H, and the configure system can't distinguish between an include that doesn't exist and one that breaks compilation? emerge --info '=dev-db/spatialite-4.3.0a::gentoo': Portage 2.3.66 (python 3.7.3-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-9.1.0, glibc-2.29-r2, 5.0.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.0.12-gentoo-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4450B-with-gentoo-2.6 KiB Mem: 3762032 total, 232000 free KiB Swap: 8388604 total, 7416692 free Timestamp of repository gentoo: Fri, 10 May 2019 09:00:01 +0000 Head commit of repository gentoo: 1b57f8ba3b117c04a58623c59c0fc206f7184956 sh bash 5.0_p7 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 5.0_p7::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo dev-util/cmake: 3.14.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.17::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes mytestbed location: /usr/local/portage masters: gentoo crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 10 dotnet location: /var/lib/layman/dotnet sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/dotnet.git masters: gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/vmware.git masters: gentoo priority: 50 Installed sets: @kde-frameworks, @kde-plasma ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-keep-masks" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gtk iconv ipv6 jack jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="sheets" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="mouse keyboard wacom evdev joystick" KERNEL="linux" L10N="en-US en de fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 i386 ppc" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-db/spatialite-4.3.0a::gentoo was built with the following: USE="geos iconv proj xls xml -test" ABI_X86="(64)" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
This caused due proj_api.h deprecation in latest proj versions. Workaround is add ">=sci-libs/proj-6.0.0" to /etc/portage/package.mask
Created attachment 576664 [details] Updated ebuild for PROJ.6
(In reply to Dmitry Suloev from comment #2) > Created attachment 576664 [details] > Updated ebuild for PROJ.6 Thank you, seems to work here.
Thanks, the updated ebuild works for me too, though I see some warnings? checking proj_api.h usability... yes checking proj_api.h presence... no configure: WARNING: proj_api.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: proj_api.h: proceeding with the compiler's result checking for proj_api.h... yes checking for library containing pj_init_plus... -lproj checking for library containing pj_init_ctx... none required Later I saw "gcc ... -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H". It compiled/installed at least.
dev-db/spatialite-4.3.0-r1 is affected by this as well. See also bug # 690994 about dependency (rebuild) issue.
*** Bug 696988 has been marked as a duplicate of this bug. ***
Thanks for your ebuild, please instead submit a unified diff next time so the changes can be examined.
*** Bug 693072 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc61c208f0045cf5335a130d0dbad2909241073 commit edc61c208f0045cf5335a130d0dbad2909241073 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-20 13:31:11 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-20 14:19:36 +0000 dev-db/spatialite: Workaround build with >=sci-libs/proj-6 Thanks-to: Dmitry Suloev <SuloevDmitry@gmail.com> Closes: https://bugs.gentoo.org/685668 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-db/spatialite/spatialite-4.3.0a.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Re-opening as a workaround is no fix and it is running out of time.
From the URL (bug): " sandro added on 2019-05-15 08:59:05: full PROJ.6 support has been implemented by commit b72ce4b2a5" We can see the related changes here: https://www.gaia-gis.it/fossil/libspatialite/tkthistory/6eabdf0e6d3520a7 There have been some more recent changes to Proj and GDAL support, so maybe a snapshot for now would work. The latest beta is from August 2018, unfortunately.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3a925d0f1ba42a6dacde0b2bd09ac8dc20c6096 commit a3a925d0f1ba42a6dacde0b2bd09ac8dc20c6096 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-01 23:32:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-01 23:35:38 +0000 dev-db/spatialite-tools: bump to 5.0.1 Bug: https://bugs.gentoo.org/685668 Signed-off-by: Sam James <sam@gentoo.org> dev-db/spatialite-tools/Manifest | 1 + .../spatialite-tools/spatialite-tools-5.0.1.ebuild | 33 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1befe72c0a511c34cd1d7979a77f31147a68287e commit 1befe72c0a511c34cd1d7979a77f31147a68287e Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-01 23:24:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-01 23:35:35 +0000 dev-db/spatialite: bump to 5.0.1 Seems to build with PROJ 8 as per upstream notes. Bug: https://bugs.gentoo.org/685668 Signed-off-by: Sam James <sam@gentoo.org> dev-db/spatialite/Manifest | 1 + dev-db/spatialite/spatialite-5.0.1.ebuild | 56 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+)
Unable to check for sanity: > no match for package: dev-db/spatialite-5.0.1
x86 stable
amd64 stable
arm64 done all arches done