Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845150 - dev-db/postgis: fails to build with sci-libs/gdal-3.5.0-r1 (can't find gdal.h)
Summary: dev-db/postgis: fails to build with sci-libs/gdal-3.5.0-r1 (can't find gdal.h)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 07:21 UTC by Rémi Cardona
Modified: 2022-05-17 13:39 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,14.67 KB, text/plain)
2022-05-17 07:21 UTC, Rémi Cardona
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Cardona 2022-05-17 07:21:00 UTC
Build fails during configure phase:

checking for gdal-config... /usr/bin/gdal-config
checking GDAL version... 3.5.0
checking for OGR enabled... yes
checking for gdal.h... no


Reproducible: Always




# emerge --info '=dev-db/postgis-3.2.1::gentoo'
Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.3.0, glibc-2.35-r4, 5.15.37-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.37-gentoo-x86_64-Intel-R-_Core-TM-_i7-8665U_CPU_@_1.90GHz-with-glibc2.35
KiB Mem:    32528428 total,   7441764 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 17 May 2022 05:00:01 +0000
Head commit of repository gentoo: 456ad4a33e8ff4f2820505f268737a391efe0009
sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.6.15-r1::gentoo, 3.7.13::gentoo, 3.8.13_p1::gentoo, 3.9.12::gentoo, 3.10.4_p1::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.62.1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.5-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.3::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.3::gentoo
sys-devel/llvm:            14.0.3::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -g -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --complete-graph=y --quiet-build=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -g -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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 qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -g -pipe"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
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 aac acpi alsa amd64 apng avahi bash-completion branding bzip2 cairo cdda cdr clang cli colord crypt cups dav1d dbus dconf dri drm dts dvd dvdnav dvdr eds encode evo exif faac faad flac fontconfig fuse gbm gdbm gegl gif glamor gles2 gnome gnome-keyring gnome-online-accounts gnutls gstreamer gtk gtk3 gui harfbuzz iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc live mad matroska mng modemmanager mp3 mp4 mpeg mtp multilib nautilus ncurses netlink networkmanager nls nptl ogg opengl opus pam pango pcre pdf pipewire png policykit ppds pulseaudio python qt5 readline rtsp rubberband screencast sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd theora threads tiff truetype udev udisks unicode upower usb uxa v4l vala vorbis wayland wxwidgets x264 xattr xcb xml xv xvfb xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_6 python3_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="intel iris" 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, LEX, LFLAGS, LIBTOOL, LINGUAS, 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

=================================================================
                        Package Settings
=================================================================

dev-db/postgis-3.2.1::gentoo was built with the following:
USE="gtk -address-standardizer -doc -static-libs -topology" ABI_X86="(64)" POSTGRES_TARGETS="postgres12 postgres13 -postgres10 -postgres11 -postgres14 -postgres9_6"
Comment 1 Rémi Cardona 2022-05-17 07:21:32 UTC
Created attachment 779321 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 07:23:54 UTC
Could you include config.log please?

(/var/tmp/portage/dev-db/postgis-3.2.1/work/postgis-3.2.1-13/config.log)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 07:27:45 UTC
(In reply to Sam James from comment #2)
> Could you include config.log please?
> 
> (/var/tmp/portage/dev-db/postgis-3.2.1/work/postgis-3.2.1-13/config.log)

nevermind, I see the issue, cheers
Comment 4 Larry the Git Cow gentoo-dev 2022-05-17 07:36:03 UTC
The bug has been closed via the following commit(s):

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

commit 1530091ee1de288e50cf9091eada9797ae3cd940
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 07:32:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 07:35:54 +0000

    sci-libs/gdal: fix pkg-config include dir for 3.5.0
    
    Closes: https://bugs.gentoo.org/845150
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/gdal/{gdal-3.5.0-r1.ebuild => gdal-3.5.0-r2.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 Rémi Cardona 2022-05-17 13:39:59 UTC
Thanks for the quick fix, Sam. Cheers.