You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by iw...@apache.org on 2022/04/14 00:51:29 UTC
[bigtop] branch master updated: BIGTOP-3664: Add warn message to gradle when users try to build on fedora-35 (#885)
This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new e864973c BIGTOP-3664: Add warn message to gradle when users try to build on fedora-35 (#885)
e864973c is described below
commit e864973c2296084545452b336548199b83376a72
Author: Leona Yoda <yo...@oss.nttdata.com>
AuthorDate: Thu Apr 14 09:51:23 2022 +0900
BIGTOP-3664: Add warn message to gradle when users try to build on fedora-35 (#885)
---
packages.gradle | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/packages.gradle b/packages.gradle
index 393b4799..cb61d4f0 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -652,6 +652,9 @@ def genTasks = { target ->
group: PACKAGES_GROUP) doLast {
def _prefix = project.hasProperty("prefix") ? prefix : "trunk"
def _OS = project.hasProperty("OS") ? OS : "centos-7"
+ if (_OS == "fedora-35") {
+ logger.warn('fedora-35 requires privileged mode, pass `-Pdocker-run-option="--privileged"` to gradle option')
+ }
def _target_pkg = "$target-pkg"
def _docker_run_option = project.hasProperty("docker-run-option") ? this.'docker-run-option' : ""
def additionalConfigKeys = ['git_repo', 'git_ref', 'git_dir', 'git_commit_hash', 'base_version']
@@ -870,6 +873,9 @@ task "repo-ind" (
group: PACKAGES_GROUP) doLast {
def _prefix = project.hasProperty("prefix") ? prefix : "trunk"
def _OS = project.hasProperty("OS") ? OS : "centos-7"
+ if (_OS == "fedora-35") {
+ logger.warn('fedora-35 requires privileged mode, pass `-Pdocker-run-option="--privileged"` to gradle option')
+ }
def _docker_run_option = project.hasProperty("docker-run-option") ? this.'docker-run-option' : ""
def command = [
'bash', '-x',