commit:     7fd4908a3e0afb2a80a0728d1ea267c9433634c4
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 28 03:10:15 2026 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Wed Jan 28 03:10:15 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fd4908a

sys-auth/libnss-mysql: add 1.7.1-r1

Thanks Bruno

Closes: https://bugs.gentoo.org/969313
Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 ...libnss-mysql-1.7.1-r1-remove_libnsl_check.patch | 12 ++++++
 sys-auth/libnss-mysql/libnss-mysql-1.7.1-r1.ebuild | 50 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git 
a/sys-auth/libnss-mysql/files/libnss-mysql-1.7.1-r1-remove_libnsl_check.patch 
b/sys-auth/libnss-mysql/files/libnss-mysql-1.7.1-r1-remove_libnsl_check.patch
new file mode 100644
index 000000000000..5998d2051a29
--- /dev/null
+++ 
b/sys-auth/libnss-mysql/files/libnss-mysql-1.7.1-r1-remove_libnsl_check.patch
@@ -0,0 +1,12 @@
+https://github.com/saknopper/libnss-mysql/issues/9
+https://bugs.gentoo.org/969313
+--- a/configure.ac     2026-01-27 15:14:57.962563753 +0100
++++ b/configure.ac     2026-01-27 15:15:09.562705312 +0100
+@@ -73,7 +73,6 @@ AC_SUBST(LIBVER)
+ AC_SUBST(OS)
+ 
+ AC_CHECK_LIB(socket, getsockname)
+-AC_CHECK_LIB(nsl, gethostbyname)
+ AC_CHECK_LIB(m, floor)
+ AC_CHECK_LIB(z, compress)
+ 

diff --git a/sys-auth/libnss-mysql/libnss-mysql-1.7.1-r1.ebuild 
b/sys-auth/libnss-mysql/libnss-mysql-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..2d8421a4518a
--- /dev/null
+++ b/sys-auth/libnss-mysql/libnss-mysql-1.7.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="NSS MySQL Library"
+HOMEPAGE="https://github.com/saknopper/libnss-mysql";
+SRC_URI="https://github.com/saknopper/libnss-mysql/releases/download/v${PV}/libnss-mysql-${PV}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="debug"
+
+DEPEND="dev-db/mysql-connector-c:="
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS DEBUGGING FAQ INSTALL NEWS README THANKS
+       UPGRADING ChangeLog
+)
+
+PATCHES=(
+       "${FILESDIR}/libnss-mysql-1.7.1-r1-remove_libnsl_check.patch"
+)
+
+src_prepare() {
+       eautoreconf
+       default
+}
+
+src_configure() {
+       econf \
+               $(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
+}

Reply via email to