Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 131
View file
pykolab.spec
Changed
@@ -35,6 +35,7 @@ URL: http://kolab.org/ Source0: http://files.kolab.org/releases/%{name}-%{version}.tar.gz +Patch0: fix_mariadb_centos7.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch @@ -199,6 +200,7 @@ %prep %setup -q +%patch0 -p1 %build autoreconf -v @@ -522,6 +524,9 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog +* Thu Feb 12 2015 Timotheus Pokorra (TBits.net) <tp@tbits.net> +- fix for CentOS7, start service mariadb instead of mysqld. fixing #3877 + * Fri Jan 23 2015 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.7-1 - Implement #4256, allowing Wallace messages to be localized
View file
fix_mariadb_centos7.patch
Added
@@ -0,0 +1,41 @@ +From 29431733f10e452a4291e626dd0f0c9c72b21753 Mon Sep 17 00:00:00 2001 +From: Timotheus Pokorra <tp@tbits.net> +Date: Thu, 12 Feb 2015 15:17:51 +0100 +Subject: [PATCH] on CentOS7, there is MariaDB instead of MySQL. fixing bug + 3877 + +--- + pykolab/setup/setup_mysql.py | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py +index 2211876..174cbc7 100644 +--- a/pykolab/setup/setup_mysql.py ++++ b/pykolab/setup/setup_mysql.py +@@ -39,8 +39,13 @@ def description(): + return _("Setup MySQL.") + + def execute(*args, **kw): ++ # on CentOS7, there is MariaDB instead of MySQL ++ mysqlservice = 'mysqld.service' ++ if os.path.isfile('/usr/lib/systemd/system/mariadb.service'): ++ mysqlservice = 'mariadb.service' ++ + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'restart', 'mysqld.service']) ++ subprocess.call(['/bin/systemctl', 'restart', mysqlservice]) + elif os.path.isfile('/sbin/service'): + subprocess.call(['/sbin/service', 'mysqld', 'restart']) + elif os.path.isfile('/usr/sbin/service'): +@@ -49,7 +54,7 @@ def execute(*args, **kw): + log.error(_("Could not start the MySQL database service.")) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'enable', 'mysqld.service']) ++ subprocess.call(['/bin/systemctl', 'enable', mysqlservice]) + elif os.path.isfile('/sbin/chkconfig'): + subprocess.call(['/sbin/chkconfig', 'mysqld', 'on']) + elif os.path.isfile('/usr/sbin/update-rc.d'): +-- +1.8.3.1 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.