[MXS-81] cmake fails when init scripts are missing Created: 2015-04-01  Updated: 2015-06-12  Resolved: 2015-05-09

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.1.1

Type: Bug Priority: Minor
Reporter: Yuval Hager Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

Archlinux, develop branch



 Description   

Trying to run cmake on archlinux (with systemd), I get the following error:

$ cmake -DEMBEDDED_LIB=/usr/local/mysql/lib/ -DERRMSG=/usr/local/mysql/share/english/errmsg.sys -DWITH_SCRIPTS=false -DMYSQL_DIR=/usr/local/mysql/include .
-- CMake version: 3.2.1
-- Using MySQL headers found at: /usr/local/mysql/include/mysql
-- Using custom errmsg.sys found at: /usr/local/mysql/share/english/errmsg.sys
-- Using embedded library: /usr/local/mysql/lib/libmysqld.a
CMake Error at macros.cmake:213 (message):
  Cannot find required init-functions in /lib/lsb/ or /etc/rc.d/init.d/,
  please confirm that your system files are OK.



 Comments   
Comment by Yuval Hager [ 2015-04-01 ]

https://github.com/mariadb-corporation/MaxScale/pull/76

Comment by Dipti Joshi (Inactive) [ 2015-04-01 ]

~markus Please see if the changes that Yuval has put in pull request, are valid for all the supported OS. The supported OS are RHEL, CentOS, Fedora, SLEA, Open SUSE, Debian and Ubuntu. - before accepting the change.

ArchLinux is not a certified distribution for MaxScale at this time. So changing the severity to Minor.

Comment by Yuval Hager [ 2015-04-01 ]

Sorry, the PR should be against the develop branch, not master (I don't think I can modify that)

Comment by markus makela [ 2015-04-17 ]

Please resubmit the pull request into the develop branch.

Comment by Yuval Hager [ 2015-05-09 ]

this is against the develop branch: https://github.com/mariadb-corporation/MaxScale/pull/80

Comment by markus makela [ 2015-05-09 ]

Pull request merged.

Comment by Timofey Turenko [ 2015-05-12 ]

checked manually: cmake .. -DWITH_SCRIPTS=Y works even if there is no /etc/rc.d/init.d files.
make package does not work, but it in any case it does not have any sense to build incomplete package

automatic test is not created (automatic build is done only for full build with scripts)

Generated at Thu Feb 08 03:56:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.