diff options
| author | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-26 22:32:40 +0100 |
|---|---|---|
| committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-26 22:33:44 +0100 |
| commit | 8515ca38ffc7da23296958f80ed6f0cef6ad86fb (patch) | |
| tree | bd0cceb6306a588666eb89ee48e17c307f54b4d8 /sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild | |
| parent | 1a5b3cab908c19c899a1c4710d80fa1a6b4dedb9 (diff) | |
| download | gentoo-8515ca38ffc7da23296958f80ed6f0cef6ad86fb.tar.gz gentoo-8515ca38ffc7da23296958f80ed6f0cef6ad86fb.tar.bz2 gentoo-8515ca38ffc7da23296958f80ed6f0cef6ad86fb.zip | |
sys-auth/libnss-mysql: fix building against MariaDB 10.2+ and MySQL 8
Closes: https://github.com/gentoo/gentoo/pull/15083
Closes: https://bugs.gentoo.org/693392
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild')
| -rw-r--r-- | sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild b/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild new file mode 100644 index 000000000000..090feab7685a --- /dev/null +++ b/sys-auth/libnss-mysql/libnss-mysql-1.5_p20060915-r5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +KEYWORDS="amd64 ppc ~sparc x86" + +DESCRIPTION="NSS MySQL Library" +HOMEPAGE="http://libnss-mysql.sourceforge.net/" +SRC_URI="http://libnss-mysql.sourceforge.net/snapshot/${PN}-${PV/1.5_p/}.tgz" +LICENSE="GPL-2" +SLOT="0" +IUSE="debug" + +DEPEND="dev-db/mysql-connector-c:=" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +DOCS=( AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS + TODO UPGRADING ChangeLog +) + +PATCHES=( + "${FILESDIR}"/${P}-no-automagic-debug.diff + "${FILESDIR}"/${PN}-1.5_p20060915-multiarch.patch + "${FILESDIR}"/${PN}-1.5_p20060915-mariadb10.2.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + + eautoreconf +} + +src_configure() { + # Usually, authentication libraries don't belong into usr. + # But here, it's required that the lib is in the same dir + # as libmysql, because else failures may occur on boot if + # udev tries to access a user / group that doesn't exist + # on the system before /usr is mounted. + econf --libdir="/usr/$(get_libdir)" \ + $(use_enable debug) +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + newdoc sample/README README.sample + + local subdir + for subdir in sample/{linux,freebsd,complex,minimal} ; do + docinto "${subdir}" + dodoc "${subdir}/"{*.sql,*.cfg} + done +} |
