IF APR-UTIL is compiled with >=dev-db/mysql-connector-c-8.0 it is missing apr_dbd_mysql-1.so (and apr_dbd_mysql.so symlink) located in /usr/lib64/apr-util-1, this way if you are using DBD mysql auth, apache fails to start with missing file. If you mask >=dev-db/mysql-connector-c-8.0 and use dev-db/mysql-connector-c-6.1.11-r2 everything is fine and apr-util (and apache) works as expected. Reproducible: Always Steps to Reproduce: 1. upgrade >=dev-db/mysql-connector-c-8.0 2. recompile dev-libs/apr-util-1.6.1-r3 3. Actual Results: Apache fails to start with missing DBD mysql driver, however apt-util it self compiles with without any errors Expected Results: Working apache with >=dev-db/mysql-connector-c-8.0 mih ~ # emerge --info Portage 2.3.88 (python 3.7.6-final-0, default/linux/amd64/17.1/hardened, gcc-9.2.0, glibc-2.30-r3, 5.5.3-gentoo x86_64) ================================================================= System uname: Linux-5.5.3-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.7 KiB Mem: 6098076 total, 1805208 free KiB Swap: 4194300 total, 4193532 free Timestamp of repository gentoo: Fri, 14 Feb 2020 18:37:29 +0000 Head commit of repository gentoo: 620291a1cff93daf48fed908012adb90040b5493 sh bash 5.0_p16 ld GNU ld (Gentoo 2.34 p1) 2.34.0 app-shells/bash: 5.0_p16::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 3.7.6::gentoo dev-util/cmake: 3.16.4::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.1-r2::gentoo sys-devel/binutils: 2.34::gentoo sys-devel/gcc: 9.2.0-r3::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 LocalPortage location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -pipe -O3 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -pipe -O3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--exclude net-firewall/xtables-addons --jobs=4 --load-average 4" 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="-march=native -pipe -O3 -fomit-frame-pointer" 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 parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -pipe -O3 -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/" LANG="sl_SI.UTF8" LDFLAGS="-Wl,-O3 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu" LINGUAS="en sl" MAKEOPTS="-j4 -l4" 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" USE="acl amd64 apache2 apng authfile berkdb bittorrent bzip2 caps cgi cli client corefonts cracklib crypt curl cxx dhcp dlz dovecot-sasl eap exif expat experimental extraengine fontconfig ftp gd gdbm gif glib gmp gssapi gzip hardened http2 iconv icu idn intl iproute2 iptables ipv6 ithreads java jitterentropy jpeg kerberos lcms libtirpc lm_sensors lz4 lzma lzo maildir managesieve mp3 multilib mysql mysqli ncurses nls nping nptl openmp openssl pam pci pcntl pcre pcre16 pcre32 pdo perl php pie png posix python rar readline rpc rtmp ruby samba seccomp server session sieve slang smtp soap sockets socks5 split-usr sqlite ssh ssl ssp suexec svg tcpd threads tiff tracepath truetype udev unicode urandom usb vhosts webui xattr xml xmlreader xmlrpc xmlwriter xslt xtpax xz zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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 authn_dbd authn_socache authz_dbd cache_socache dbd http2 proxy proxy_html proxy_http proxy_http2 xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en sl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="geoip" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Maybe this is linked? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230538
Please attach the entire build log to this bug report.
Created attachment 613906 [details] full build log
Created attachment 619718 [details, diff] fix for mysql8+mariadb patch #1 to fix this issue
Created attachment 619720 [details, diff] mxsql8 my_bool patch #2
Created attachment 619722 [details, diff] mysql8 my_init patch #3
Found patches that ubuntu applys and they seems to work - 3 patches in attachments, #1 need to be applyed 1st
I observe the same behavior and can reproduce the bug as well.
Can confirm the patches worked ( in the order they're attached ). Using dev-db/mariadb-10.4.12 dev-libs/apr-util-1.6.1-r3
This patch is a godsend, it works perfectly with mariadb-10.4.12, mariadb-connector-c-3.1.6 and apache-2.4.41. Any chance we see this in the portage tree anytime soon? :-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a64869237c80ac96494ed4557d581bd416e7ce38 commit a64869237c80ac96494ed4557d581bd416e7ce38 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-07-26 02:41:11 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-07-26 02:41:15 +0000 dev-libs/apr-util: fix building against >=dev-db/mysql-connector-c-8.0 Closes: https://bugs.gentoo.org/709650 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> ...il-1.6.1-r3.ebuild => apr-util-1.6.1-r4.ebuild} | 2 + .../files/apr-util-1.6.1-mariadb-support.patch | 116 +++++++++++++++++++++ .../apr-util/files/apr-util-1.6.1-my_boold.patch | 17 +++ 3 files changed, 135 insertions(+)