Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905378 - dev-db/postgis-3.3.2-r1 with bundled flatgeobuf which is bundling flatbuffers, with dev-cpp/abseil-cpp-20230125.2: /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
Summary: dev-db/postgis-3.3.2-r1 with bundled flatgeobuf which is bundling flatbuffers...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 905701
  Show dependency tree
 
Reported: 2023-04-30 15:45 UTC by Andreas Sturmlechner
Modified: 2023-05-29 19:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-db:postgis-3.3.2-r1:20230430-152556.log (dev-db:postgis-3.3.2-r1:20230430-152556.log,112.03 KB, text/plain)
2023-04-30 15:45 UTC, Andreas Sturmlechner
Details
building postgis-3.3.2-r1 with abseil-2023 (abseil-2023-cxx-14.patch,736 bytes, patch)
2023-05-11 14:40 UTC, José de Paula Rodrigues
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2023-04-30 15:45:01 UTC
Created attachment 860976 [details]
dev-db:postgis-3.3.2-r1:20230430-152556.log

Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r2, 5.10.165-gentoo x86_64)
=================================================================
System uname: Linux-5.10.165-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.37
KiB Mem:    16077464 total,   1801356 free
KiB Swap:    4194292 total,   3140028 free
Timestamp of repository gentoo: Sun, 30 Apr 2023 14:15:01 +0000
Head commit of repository gentoo: 1e88860433156d35f8e1c75d756a0d41276857f9
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo, 13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

kde
    location: /home/andreas/projects/gentoo/kde
    masters: gentoo
    volatile: True

qt
    location: /home/andreas/projects/gentoo/qt
    masters: gentoo
    eclass-overrides: kde
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE AdobeFlash-11.x android AVASYS Eizo Interbase-1.0 PUEL unRAR CC-BY-ND-3.0 Q3AEULA Q3AEULA-20000111 worldofpadman intel-ucode linux-fw-redistributable no-source-code as-is bluez-firmware all-rights-reserved bh-luxi exljbris-free freedist free-noncomm MSttfEULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.2/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="-O2 -march=native -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --buildpkg-exclude "sys-kernel/gentoo-sources virtual/* sys-kernel/linux-firmware""
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://104.22.5.179/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_AT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en_GB en de_AT de"
MAKEOPTS="-j8"
PKGDIR="/var/lib/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"
SHELL="/bin/bash"
USE="X a52 aacs acl acpi activities addressbook alsa amd64 apache2 avahi avif bash-completion bluetooth bluray branding bzip2 cairo caps cdda cddb cdparanoia cdr cli colord corefonts crypt cups custom-cflags custom-cpuopts dbus declarative dirac discover djvu dri dts dvb dvd dvdr egl elogind encode eps epub exif expat ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git glamor gpg gpm gs gui heif iconv icu id3tag idn imagemagick inotify jpeg jpeg2k jumbo-build kde kipi kwallet lame laptop lastfm lcms libglvnd libinput libnotify libtirpc lm-sensors lqr lzma lzo mad markdown matroska mng mp3 mp4 mpeg mplayer mtp multilib musicbrainz ncurses networkmanager nls nptl offensive ogg openexr opengl openmp pam pcre pdf plasma png policykit postgres ppds pulseaudio qml qrcode qt5 quicktime raw readline samba schroedinger screencast sdl seccomp secure-delete semantic-desktop share smp sound spamassassin spell split-usr ssl startup-notification svg syslog taglib telemetry test-rust theora thunderbolt tidy tiff touchpad truetype udev udisks uefi unicode upower usb v4l vaapi vcd vlc vorbis vpx wayland webengine webp widgets x264 xattr xcb xcomposite xft xml xmp xpm xv xvid yaz zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" 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 lbmethod_byrequests proxy proxy_balancer slotmem_shm" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon nikon pentax ptp2 ricoh" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="pc" ICC_PROFILES="S2243W" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en_GB en de_AT de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 x86_64" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2023-05-01 15:19:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b443b69f39a883db7fecda54e216f578c0e0ae6

commit 8b443b69f39a883db7fecda54e216f578c0e0ae6
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2023-05-01 15:19:03 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2023-05-01 15:19:57 +0000

    dev-db/postgis: Add blocker for dev-cpp/abseil-cpp
    
    Closes: https://bugs.gentoo.org/905378
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 dev-db/postgis/postgis-3.1.3.ebuild    | 3 ++-
 dev-db/postgis/postgis-3.1.8-r1.ebuild | 1 +
 dev-db/postgis/postgis-3.2.4-r1.ebuild | 1 +
 dev-db/postgis/postgis-3.3.2-r1.ebuild | 1 +
 dev-db/postgis/postgis-9999.ebuild     | 1 +
 5 files changed, 6 insertions(+), 1 deletion(-)
Comment 2 Andreas Sturmlechner gentoo-dev 2023-05-01 15:49:04 UTC
That does not look right.
Comment 3 Larry the Git Cow gentoo-dev 2023-05-01 15:55:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a74f524709ca1ca6cc43cd627a88ccebad9bd81

commit 5a74f524709ca1ca6cc43cd627a88ccebad9bd81
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-05-01 15:55:40 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-05-01 15:55:40 +0000

    Reverts: [QA] 8b443b6 (dev-db/postgis: Add blocker for dev-cpp/abseil-cpp)
    
    * Hard blockers are terrible UX and are a sin unto our users.
    * This is a lazy fix instead of porting the package to a more recent
      version of C++.
    
    Bug: https://bugs.gentoo.org/905378
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-db/postgis/postgis-3.1.3.ebuild    | 3 +--
 dev-db/postgis/postgis-3.1.8-r1.ebuild | 1 -
 dev-db/postgis/postgis-3.2.4-r1.ebuild | 1 -
 dev-db/postgis/postgis-3.3.2-r1.ebuild | 1 -
 dev-db/postgis/postgis-9999.ebuild     | 1 -
 5 files changed, 1 insertion(+), 6 deletions(-)
Comment 4 José de Paula Rodrigues 2023-05-11 14:40:53 UTC
Created attachment 861521 [details, diff]
building postgis-3.3.2-r1 with abseil-2023
Comment 5 José de Paula Rodrigues 2023-05-11 14:44:03 UTC
This user patch allows postgis-3.3.2-r1 to be built with the latest version of abseil. The C++ standard version must be C++17; I've tried C++14, but the build keeps failing:


---8><---
x86_64-pc-linux-gnu-gcc -std=c++14 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG  -march=native -O2 -pipe  -fPIC -DPIC -c -o flatgeobuf_c.o flatgeobuf_c.cpp
x86_64-pc-linux-gnu-gcc -std=c++14 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG  -march=native -O2 -pipe  -fPIC -DPIC -c -o geometrywriter.o geometrywriter.cpp
x86_64-pc-linux-gnu-gcc -std=c++14 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG  -march=native -O2 -pipe  -fPIC -DPIC -c -o geometryreader.o geometryreader.cpp
x86_64-pc-linux-gnu-gcc -std=c++14 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG  -march=native -O2 -pipe  -fPIC -DPIC -c -o packedrtree.o packedrtree.cpp
make[2]: Entering directory '/var/tmp/portage/dev-db/postgis-3.3.2-r1/work/postgis-3.3.2-15/deps/wagyu'
x86_64-pc-linux-gnu-gcc -std=c++14 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG  -march=native -O2 -pipe  -fPIC -DPIC -c -o lwgeom_wagyu.o lwgeom_wagyu.cpp
/usr/bin/perl ../utils/create_undef.pl legacy.sql 150 > uninstall_legacy.sql
/usr/bin/perl ../utils/create_undef.pl postgis.sql 150 > uninstall_postgis.sql
/usr/bin/perl ../utils/create_upgrade.pl postgis.sql > postgis_upgrade.sql.in
echo "BEGIN;" > postgis_upgrade.sql
cat postgis_before_upgrade.sql postgis_upgrade.sql.in postgis_after_upgrade.sql >> postgis_upgrade.sql
echo "COMMIT;" >> postgis_upgrade.sql
In file included from ./include/flatbuffers/base.h:237,
                 from ./include/flatbuffers/array.h:20,
                 from ./include/flatbuffers/flatbuffers.h:22,
                 from feature_generated.h:7,
                 from flatgeobuf_c.cpp:26:
/usr/include/absl/strings/string_view.h:52:26: error: 'string_view' in namespace 'std' does not name a type
   52 | using string_view = std::string_view;
      |                          ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: 'std::string_view' is only available from C++17 onwards
   52 | using string_view = std::string_view;
      |                     ^~~
---8><---

C++17 (which the above patch specifies) does the trick.
Comment 6 Andreas Sturmlechner gentoo-dev 2023-05-13 18:46:36 UTC
Works for me, any objections?
Comment 7 Larry the Git Cow gentoo-dev 2023-05-29 19:09:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc10ecae76251e05914bdd47a9728a42ef0cc853

commit dc10ecae76251e05914bdd47a9728a42ef0cc853
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-05-29 18:50:28 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-05-29 19:09:34 +0000

    dev-db/postgis: Fix build with dev-cpp/abseil-cpp-20230125.2
    
    Closes: https://bugs.gentoo.org/905378
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../postgis-3.3.2-flatbuffers-abseil-2023.patch    | 39 ++++++++++++++++++++++
 dev-db/postgis/postgis-3.3.2-r1.ebuild             |  2 ++
 2 files changed, 41 insertions(+)