You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by se...@apache.org on 2022/12/07 01:08:51 UTC
[bigtop] branch master updated: BIGTOP-3892. Fix build scripts so that we can define components which only supports deb or rpm. (#1071)
This is an automated email from the ASF dual-hosted git repository.
sekikn 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 e53bdefe BIGTOP-3892. Fix build scripts so that we can define components which only supports deb or rpm. (#1071)
e53bdefe is described below
commit e53bdefe449442bfd620400be4c24716b8c689f6
Author: Kengo Seki <se...@apache.org>
AuthorDate: Wed Dec 7 10:08:45 2022 +0900
BIGTOP-3892. Fix build scripts so that we can define components which only supports deb or rpm. (#1071)
---
bigtop.bom | 5 +++++
packages.gradle | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/bigtop.bom b/bigtop.bom
index b7c81e59..2c2edd60 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -83,6 +83,9 @@
user = "john_doe"
token = "john's access token"
}
+ packaging = 'rpm' // *optional* If this component can be built only as either
+ // DEB or RPM, specify that packaging format explicitly.
+ // If both formats are supported, omit this option.
}
}
}
@@ -272,6 +275,7 @@ bigtop {
relNotes = "Service package for Apache Bigtop information to use Ambari"
version { base = bigtop.version; pkg = base-"-SNAPSHOT"; release = 1 }
tarball { destination = "bigtop-select-${version.base}.tar.gz" }
+ packaging = 'rpm'
}
'bigtop-jsvc' {
name = "bigtop-jsvc"
@@ -371,6 +375,7 @@ bigtop {
source = destination }
url { site = "https://github.com/apache/ranger/archive/refs/tags"
archive = site }
+ packaging = 'rpm'
}
}
}
diff --git a/packages.gradle b/packages.gradle
index 95012af9..ba929452 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -136,6 +136,7 @@ task "bom-json" (description: "List the components of the stack in json format")
project: it.value.name,
pkg: it.value.pkg,
relNotes: it.value.relNotes,
+ packaging: it.value.packaging,
],
tarball: [
destination: it.value.tarball.destination,
@@ -168,7 +169,8 @@ task "bom-json" (description: "List the components of the stack in json format")
task "all-components" (description: "List the components of the stack") doLast {
println "${project.name} ${config.bigtop.version} stack includes the following components"
config.bigtop.components.sort().each { label, comp ->
- println sprintf ('\t%1$s %2$s', comp.name.padRight(20), comp.version.base.padLeft(15))
+ println sprintf('\t%1$s %2$s%3$s', comp.name.padRight(20), comp.version.base.padLeft(15),
+ comp.packaging ? " (${comp.packaging.toUpperCase()} only)" : '')
}
}
@@ -819,7 +821,9 @@ project.afterEvaluate {
doValidateBOM(config)
config.bigtop.components.each { component_label, comp ->
assert component_label == comp.name
- genTasks(comp.name)
+ if (!comp.packaging || comp.packaging.equalsIgnoreCase(nativePackaging.pkg)) {
+ genTasks(comp.name)
+ }
}
// Versions need to be preserved for more than just component:
// - there are JDK version requirement