Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on *BSD #33

Closed
bugQ opened this issue Jun 3, 2013 · 2 comments
Closed

Installation fails on *BSD #33

bugQ opened this issue Jun 3, 2013 · 2 comments
Assignees
Labels

Comments

@bugQ
Copy link

bugQ commented Jun 3, 2013

Installation fails on any BSD because apparently the redmine_git_hosting:install_scripts task will use SELinux no matter what (contrary to the readme).

[Generating and installing redmine_git_hosting shell scripts:
find: -regextype: unknown option
rake aborted!
Error: ROOT_PATTERN does not match any directories!
/home/redmine/plugins/redmine_git_hosting/lib/tasks/selinux.rake:325:in `redmine_roots'
/home/redmine/plugins/redmine_git_hosting/lib/tasks/selinux.rake:114:in `block (3 levels) in <top (required)>'
/home/redmine/plugins/redmine_git_hosting/lib/tasks/selinux.rake:134:in `block (3 levels) in <top (required)>'
/home/redmine/plugins/redmine_git_hosting/lib/tasks/redmine_git_hosting.rake:100:in `block (2 levels) in <top (required)>'
Tasks: TOP => selinux:redmine_git_hosting:across_roots(See full trace by running task with --trace)

In this case, the rake task fails because of a non-standard find option, but even if I were to bypass this issue, I suspect many more would pop up simply because my NetBSD server is...well...BSD.

Is there a reason that SELinux is absolutely required for installation?

@bugQ
Copy link
Author

bugQ commented Jun 3, 2013

Oh, my bad. Examining the rake files more closely, I see that selinux.rake is used only for the purpose of installing scripts, not the actual SELinux configuration. However, it still must be patched to use -E instead of -regextype posix-extended on BSD-like platforms (including Mac OS X). Perhaps there is a cross-platform solution, or perhaps something more elegant than all of the ugly regex hacks happening in selinux.rake.

@ghost ghost assigned n-rodriguez Jun 4, 2013
@n-rodriguez
Copy link
Contributor

Hi there!
Thanks for your feedback!

Is there a reason that SELinux is absolutely required for installation?

No, SELinux is optional. If you don't use it, you don't need to run rake scripts at all.

n-rodriguez pushed a commit that referenced this issue Mar 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants