Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 693392

Summary: sys-auth/libnss-mysql-1.5_p20060915-r4 - mysql.c: In function '_nss_mysql_set_options': mysql.c:141:9: error: unknown type name 'my_bool'
Product: Gentoo Linux Reporter: Jan Hudoba <bugs>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jaco, sabel
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/15083
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 692570    
Attachments: build.log
emerge --info output
new r5 ebuild with patch
files/libnss-mysql-1.5_p20060915-mariadb-bool.diff
ebuild patch

Description Jan Hudoba 2019-09-03 10:29:08 UTC
Created attachment 588868 [details]
build.log

>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-auth/libnss-mysql-1.5_p20060915-r4/work/libnss-mysql ...
...
mysql.c: In function '_nss_mysql_set_options':
mysql.c:141:9: error: unknown type name 'my_bool'
   const my_bool reconnect = 1;
         ^~~~~~~
make[2]: *** [Makefile:323: mysql.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I /usr/include/mysql -D_REENTRANT -mtune=native -O2 -pipe -fstack-protector -mfunction-return=thunk -mindirect-branch=thunk -mindirect-branch-register -c lookup.c  -fPIC -DPIC -o .libs/lookup.o
make[2]: Leaving directory '/var/tmp/portage/sys-auth/libnss-mysql-1.5_p20060915-r4/work/libnss-mysql/src'
make[1]: *** [Makefile:264: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-auth/libnss-mysql-1.5_p20060915-r4/work/libnss-mysql'
make: *** [Makefile:193: all] Error 2
 * ERROR: sys-auth/libnss-mysql-1.5_p20060915-r4::gentoo failed (compile phase):
 *   emake failed


using: dev-db/mariadb-10.4.7-r1
other info and patch in attachment
Comment 1 Jan Hudoba 2019-09-03 10:29:38 UTC
Created attachment 588870 [details]
emerge --info output
Comment 2 Jan Hudoba 2019-09-03 10:30:15 UTC
Created attachment 588872 [details]
new r5 ebuild with patch
Comment 3 Jan Hudoba 2019-09-03 10:30:48 UTC
Created attachment 588874 [details, diff]
files/libnss-mysql-1.5_p20060915-mariadb-bool.diff

files/libnss-mysql-1.5_p20060915-mariadb-bool.diff
Comment 4 Jan Hudoba 2019-09-03 10:32:53 UTC
Created attachment 588876 [details, diff]
ebuild patch
Comment 5 Jaco Kroon 2020-02-24 09:13:56 UTC
I can confirm the patch.
Comment 6 Larry the Git Cow gentoo-dev 2020-03-26 21:33:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8515ca38ffc7da23296958f80ed6f0cef6ad86fb

commit 8515ca38ffc7da23296958f80ed6f0cef6ad86fb
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-03-26 21:32:40 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-03-26 21:33:44 +0000

    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>

 .../libnss-mysql-1.5_p20060915-mariadb10.2.patch   | 35 ++++++++++++
 .../libnss-mysql-1.5_p20060915-multiarch.patch     | 21 ++++++++
 .../libnss-mysql-1.5_p20060915-r5.ebuild           | 62 ++++++++++++++++++++++
 3 files changed, 118 insertions(+)