Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656918 - =dev-db/mariadb-10.3.7[-server] fails in prepare phase in _disable_plugin 'semisync'
Summary: =dev-db/mariadb-10.3.7[-server] fails in prepare phase in _disable_plugin 'se...
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:
Depends on:
Blocks:
 
Reported: 2018-05-30 18:20 UTC by Dan Goodliffe
Modified: 2018-05-30 18:52 UTC (History)
0 users

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


Attachments
Full build.log (build.log,2.80 KB, text/x-log)
2018-05-30 18:20 UTC, Dan Goodliffe
Details
emerge --info (file_656918.txt,7.21 KB, text/plain)
2018-05-30 18:22 UTC, Dan Goodliffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2018-05-30 18:20:34 UTC
Created attachment 534160 [details]
Full build.log

As per summary. Works with USE=server, fails with USE=-server. Snip:
>>> Preparing source in /var/tmp/portage/dev-db/mariadb-10.3.7/work/mysql ...
/var/tmp/portage/dev-db/mariadb-10.3.7/temp/environment: line 6023: /var/tmp/portage/dev-db/mariadb-10.3.7/work/mysql/plugin/semisync/CMakeLists.txt: No such file or directory
 * ERROR: dev-db/mariadb-10.3.7::gentoo failed (prepare phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 6042:  Called _disable_plugin 'semisync'
 *   environment, line 6023:  Called die
 * The specific snippet of code:
 *           echo > "${S%/}/plugin/${1}/CMakeLists.txt" || die
 *
 * If you need support, post the output of `emerge --info '=dev-db/mariadb-10.3.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mariadb-10.3.7::gentoo'`.

Presumably that plugin isn't unpacked if server is disabled, but I haven't had chance to check yet.

Full build.log attached.
Comment 1 Dan Goodliffe 2018-05-30 18:22:29 UTC
Created attachment 534162 [details]
emerge --info
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-05-30 18:34:20 UTC
(In reply to Dan Goodliffe from comment #0)
> Created attachment 534160 [details]
> Full build.log
> 
> As per summary. Works with USE=server, fails with USE=-server. Snip:
> >>> Preparing source in /var/tmp/portage/dev-db/mariadb-10.3.7/work/mysql ...
> /var/tmp/portage/dev-db/mariadb-10.3.7/temp/environment: line 6023:
> /var/tmp/portage/dev-db/mariadb-10.3.7/work/mysql/plugin/semisync/CMakeLists.
> txt: No such file or directory

> Presumably that plugin isn't unpacked if server is disabled, but I haven't
> had chance to check yet.
> 

That's very strange.  There is no special processing for server USE when it comes to unpacking.
Comment 3 Dan Goodliffe 2018-05-30 18:40:15 UTC
Presumption was wrong... the whole _disable_plugin is new in 10.3.7 compared with 10.3.6_rc... semisync just doesn't exist. According to the docs at https://mariadb.com/kb/en/library/semisynchronous-replication/ it was merged into the main server in 10.3.

Presumption 2... semisync just needs removing from the list on line 278.
semisync isn't a valid plugin in 10.3.6_rc either, there's just no attempt to disable it.

The server_plugins and test_plugins list look fine otherwise:
~ $ ls /var/tmp/portage/dev-db/mariadb-10.3.7/work/mysql/plugin/ -1
audit_null
auth_dialog
auth_ed25519
auth_examples
auth_gssapi
auth_pam
auth_pipe
auth_socket
aws_key_management
cracklib_password_check
daemon_example
debug_key_management
disks
example_key_management
feedback
file_key_management
fulltext
handler_socket
locale_info
metadata_lock_info
qc_info
query_response_time
server_audit
simple_password_check
sql_errlog
userstat
user_variables
versioning
win_auth_client
wsrep_info
Comment 4 Larry the Git Cow gentoo-dev 2018-05-30 18:52:15 UTC
The bug has been closed via the following commit(s):

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

commit cf280598140afeca0feefa98d15039d778fbb2a3
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-05-30 18:51:54 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-05-30 18:51:54 +0000

    dev-db/mariadb: Fix -server in 10.3.7 for bug 656918
    
    Closes: https://bugs.gentoo.org/656918
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-db/mariadb/mariadb-10.3.7.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)