Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682020 - www-servers/lighttpd-1.4.53 and dev-db/mariadb-10.2 should depend on dev-db/mariadb-connector-c
Summary: www-servers/lighttpd-1.4.53 and dev-db/mariadb-10.2 should depend on dev-db/m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Herb Miller Jr.
URL:
Whiteboard:
Keywords:
: 700014 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-29 15:11 UTC by nic
Modified: 2021-02-06 14:16 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nic 2019-03-29 15:11:10 UTC
www-servers/lighttpd-1.4.53 fails to compile with dev-db/mariadb-10.2.22-r1,


 /bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -O2 -pipe -Wall -W -Wshadow -pedantic -module -export-dynamic -avoid-version -Wl,-O1 -Wl,--as-needed -o mod_vhostdb_mysql.la -rpath /usr/lib64/lighttpd mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo -lmariadb -lpthread -lz -ldl -lm -lssl -lcrypto
 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmariadb
 collect2: error: ld returned 1 exit status
 make[3]: *** [Makefile:1924: mod_mysql_vhost.la] Error 1



Package should depend on dev-db/mariadb-connector-c if mariadb >= 10.2 to provide the required mariadb_config

https://archives.gentoo.org/gentoo-dev-announce/message/3fa80f79b03921ea0f6ad304ff93fe7e


note that lighttpd-1.4.51 complies fine with mariadb-10.2 -- lighttpd made changes with the 1.4.53 release https://redmine.lighttpd.net/issues/2925


Thank you
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-03-29 15:25:19 UTC
(In reply to nic from comment #0)
> www-servers/lighttpd-1.4.53 fails to compile with dev-db/mariadb-10.2.22-r1,
> 
> 
>  /bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -O2
> -pipe -Wall -W -Wshadow -pedantic -module -export-dynamic -avoid-version
> -Wl,-O1 -Wl,--as-needed -o mod_vhostdb_mysql.la -rpath /usr/lib64/lighttpd
> mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo -lmariadb -lpthread -lz -ldl -lm
> -lssl -lcrypto
>  /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: cannot find -lmariadb
>  collect2: error: ld returned 1 exit status
>  make[3]: *** [Makefile:1924: mod_mysql_vhost.la] Error 1
> 
> 
> 
> Package should depend on dev-db/mariadb-connector-c if mariadb >= 10.2 to
> provide the required mariadb_config
> 
> https://archives.gentoo.org/gentoo-dev-announce/message/
> 3fa80f79b03921ea0f6ad304ff93fe7e
> 
> 
> note that lighttpd-1.4.51 complies fine with mariadb-10.2 -- lighttpd made
> changes with the 1.4.53 release https://redmine.lighttpd.net/issues/2925


Here's the problem with depending on mariadb-connector-c and this package.. it provides libmariadb.pc while dev-db/mariadb provides mariadb.pc which is what the package is looking for.

If the dependency change is made, the autotools will need to look for libmariadb.pc instead to be consistent.

The other option is for mariadb to not install a mariadb.pc file but don't know what kind of headaches will come in the future.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-11-15 09:21:48 UTC
*** Bug 700014 has been marked as a duplicate of this bug. ***
Comment 3 Herb Miller Jr. 2021-02-06 14:16:21 UTC
As of lighttpd-1.4.58, via commit https://github.com/gentoo/gentoo/commit/6ce9a250, we now pull in database support via libdbi, which depends on dev-db/mariadb-connector-c, so this bug is addressed by the version bump.