Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693392 - 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'
Summary: sys-auth/libnss-mysql-1.5_p20060915-r4 - mysql.c: In function '_nss_mysql_set...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: mysql-8
  Show dependency tree
 
Reported: 2019-09-03 10:29 UTC by Jan Hudoba
Modified: 2020-03-26 21:33 UTC (History)
2 users (show)

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


Attachments
build.log (build-log.txt,14.65 KB, text/plain)
2019-09-03 10:29 UTC, Jan Hudoba
Details
emerge --info output (emerge-info.txt,5.58 KB, text/plain)
2019-09-03 10:29 UTC, Jan Hudoba
Details
new r5 ebuild with patch (libnss-mysql-1.5_p20060915-r5.ebuild,1.21 KB, text/plain)
2019-09-03 10:30 UTC, Jan Hudoba
Details
files/libnss-mysql-1.5_p20060915-mariadb-bool.diff (libnss-mysql-1.5_p20060915-mariadb-bool.diff,537 bytes, patch)
2019-09-03 10:30 UTC, Jan Hudoba
Details | Diff
ebuild patch (ebuild.patch,560 bytes, patch)
2019-09-03 10:32 UTC, Jan Hudoba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)