Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669236 - dev-db/mysql-5.7.23-r2 requires libevent with USE=-server
Summary: dev-db/mysql-5.7.23-r2 requires libevent with USE=-server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 669920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-21 20:22 UTC by Sven Wegener
Modified: 2018-10-29 17:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Wegener gentoo-dev 2018-10-21 20:22:37 UTC
mysql-5.7.23-r2 fails to build with USE=-server, because it tries to build against the bundled libevent, which we intentionally remove to build against the system libevent:

> CMake Error at cmake/libevent.cmake:22 (ADD_SUBDIRECTORY):
>   ADD_SUBDIRECTORY given source "libevent" which is not an existing
>   directory.
> Call Stack (most recent call first):
>   cmake/libevent.cmake:46 (MYSQL_USE_BUNDLED_LIBEVENT)
>   CMakeLists.txt:534 (MYSQL_CHECK_LIBEVENT)

For USE=server we pass -DWITH_LIBEVENT=system to cmake. It looks like we need it for both cases, because the libevent checks in cmake are not conditional.
Comment 1 Larry the Git Cow gentoo-dev 2018-10-23 00:33:44 UTC
The bug has been closed via the following commit(s):

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

commit 640b8e5b86ef37c4c8efcecefac7411ae7a0dc0a
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-10-23 00:33:29 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-10-23 00:33:29 +0000

    dev-db/mysql: Respin patch for serverless installation on 5.7
    
    Closes: https://bugs.gentoo.org/669236
    Signed-off-by: Brian Evans <grknight@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-db/mysql/Manifest               | 2 +-
 dev-db/mysql/mysql-5.7.23-r2.ebuild | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-10-29 17:43:38 UTC
*** Bug 669920 has been marked as a duplicate of this bug. ***