Accepting request 112416 from home:achaios:branches:server:database

Reenable use of initgroups() (disabled since 2004 as a workaround for ancient bmc #3037, see changes file). This is necessary for auth_pam plugin to work with pam_unix2, as it requires mysqld to run with group shadow privileges.
If accepted, the change should be applied to all mariadb versions, and possibly mysql too.

OBS-URL: https://build.opensuse.org/request/show/112416
OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=73
This commit is contained in:
Sascha Peilicke 2012-04-04 08:38:51 +00:00 committed by Git OBS Bridge
parent c2c86d2ee0
commit cd3fc3786d

View File

@ -6,7 +6,7 @@
%if 0%{?suse_version} > 1140
export WARN_DIS="$WARN_DIS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter "
%endif
export CFLAGS="$RPM_OPT_FLAGS -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -DFORCE_INIT_OF_VARS $WARN_DIS "
export CFLAGS="$RPM_OPT_FLAGS -DPIC -fPIC -DFORCE_INIT_OF_VARS $WARN_DIS "
export CXXFLAGS="$CFLAGS -fno-exceptions -fno-rtti"
%if 0%{use_cmake} < 1