Skip to content

Commit

Permalink
mysql-multilib-r1.eclass: Only detect systemd-notify for native ABI a…
Browse files Browse the repository at this point in the history
…nd server USE
  • Loading branch information
Brian Evans committed Jul 9, 2017
1 parent e78b336 commit b8cea59
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eclass/mysql-multilib-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,6 @@ multilib_src_configure() {
mycmakeargs+=( -DINSTALL_MYSQLTESTDIR='' )
fi

if in_iuse systemd ; then
mycmakeargs+=( -DWITH_SYSTEMD=$(usex systemd) )
fi

if use openssl || use libressl ; then
mycmakeargs+=( -DWITH_SSL=system )
else
Expand Down Expand Up @@ -447,6 +443,12 @@ multilib_src_configure() {
mycmakeargs+=( -DWITH_EDITLINE=bundled )

if multilib_is_native_abi && use server ; then

# systemd is only linked to for server notification
if in_iuse systemd ; then
mycmakeargs+=( -DWITH_SYSTEMD=$(usex systemd) )
fi

if [[ ( -n ${MYSQL_DEFAULT_CHARSET} ) && ( -n ${MYSQL_DEFAULT_COLLATION} ) ]]; then
ewarn "You are using a custom charset of ${MYSQL_DEFAULT_CHARSET}"
ewarn "and a collation of ${MYSQL_DEFAULT_COLLATION}."
Expand Down Expand Up @@ -505,6 +507,7 @@ multilib_src_configure() {
-DWITHOUT_EMBEDDED_SERVER=1
-DEXTRA_CHARSETS=none
-DINSTALL_SQLBENCHDIR=
-DWITH_SYSTEMD=NO
)
fi

Expand Down

0 comments on commit b8cea59

Please sign in to comment.