Skip to content

Commit 5dc0538

Browse files
committed
Merge remote-tracking branch 'origin/6.0/release' into 6.0/patch
2 parents 5902234 + b5c656f commit 5dc0538

File tree

13 files changed

+87
-142
lines changed

13 files changed

+87
-142
lines changed

lib/common.sh

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export SUPPORTED_KERNEL_FLAVORS="generic aws gcp azure oracle"
2727
#
2828
export JENKINS_OPS_DIR="${JENKINS_OPS_DIR:-jenkins-ops}"
2929

30-
export UBUNTU_DISTRIBUTION="bionic"
30+
export UBUNTU_DISTRIBUTION="focal"
3131

3232
#
3333
# We currently support getting the linux kernel from 3 different sources:
@@ -471,21 +471,10 @@ function create_workdir() {
471471
function install_pkgs() {
472472
for attempt in {1..3}; do
473473
echo "Running: sudo env DEBIAN_FRONTEND=noninteractive " \
474-
"apt-get install -y --allow-downgrades $*"
474+
"apt-get install -y $*"
475475

476-
#
477-
# We use the "--allow-downgrades" for the case of a
478-
# package needing to install the "unzip" debian package
479-
# that we build via the "misc-debs" linux-pkg package.
480-
# The "misc-debs" based "unzip" package may have an
481-
# older version than what's already installed on the
482-
# system, so we need to "--allow-downgrades" in order to
483-
# install that specific package; further, that specific
484-
# package is required to build the "virtualization"
485-
# debian packages.
486-
#
487476
sudo env DEBIAN_FRONTEND=noninteractive apt-get install \
488-
-y --allow-downgrades "$@" && return
477+
-y "$@" && return
489478

490479
echo "apt-get install failed, retrying."
491480
sleep 10
@@ -1241,17 +1230,6 @@ function determine_target_kernels() {
12411230
echo_bold " $KERNEL_VERSIONS"
12421231
}
12431232

1244-
#
1245-
# Install gcc 8, and make it the default
1246-
#
1247-
function install_gcc8() {
1248-
logmust install_pkgs gcc-8 g++-8
1249-
logmust sudo update-alternatives --install /usr/bin/gcc gcc \
1250-
/usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
1251-
logmust sudo update-alternatives --install /usr/bin/gcc gcc \
1252-
/usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
1253-
}
1254-
12551233
#
12561234
# Store git-related build info for the package after the build is done.
12571235
# Note that some of this metadata is used by the Jenkins build so be careful

package-lists/build/main.pkgs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ delphix-rust
1414
delphix-sso-app
1515
drgn
1616
docker-python-image
17+
fluentd-gems
1718
gdb-python
1819
grub2
1920
host-jdks
2021
libkdumpfile
2122
make-jpkg
2223
makedumpfile
2324
masking
24-
misc-debs
2525
nfs-utils
2626
performance-diagnostics
2727
ptools
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2021 Delphix
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# shellcheck disable=SC2034
18+
19+
#
20+
# This package has the same Git URL as the 'masking' package. In general we
21+
# probably don't want to have multiple packages with the same URL, since tools
22+
# like git-ab-pre-push expect that there is a 1:1 correspondence between
23+
# packages and URLs. However, this is OK in this case because git-ab-pre-push
24+
# only works with packages that are included in the appliance, which this one
25+
# isn't.
26+
#
27+
DEFAULT_PACKAGE_GIT_URL="https://gitlab.delphix.com/masking/dms-core-gate.git"
28+
29+
PACKAGE_DEPENDENCIES="adoptopenjdk"
30+
SKIP_COPYRIGHTS_CHECK=true
31+
32+
function prepare() {
33+
logmust install_pkgs "$DEPDIR"/adoptopenjdk/*.deb
34+
}
35+
36+
function build() {
37+
export JAVA_HOME
38+
JAVA_HOME=$(cat "$DEPDIR/adoptopenjdk/JDK_PATH") ||
39+
die "Failed to read $DEPDIR/adoptopenjdk/JDK_PATH"
40+
41+
logmust cd "$WORKDIR/repo"
42+
43+
logmust ./gradlew --no-daemon --stacktrace \
44+
-Porg.gradle.configureondemand=false \
45+
-PenvironmentName=linuxappliance \
46+
:tools:docker:packageMaskingKubernetes
47+
48+
logmust cp -v tools/docker/build/masking-kubernetes.zip \
49+
"$WORKDIR/artifacts/"
50+
}

packages/fluentd-gems/config.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2021 Delphix
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# shellcheck disable=SC2034
18+
19+
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/fluentd-gems.git"
20+
21+
function build() {
22+
logmust mkdir -p "$WORKDIR/repo"
23+
logmust dpkg_buildpackage_default
24+
}

packages/grub2/config.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@
1717
# shellcheck disable=SC2034
1818

1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/grub2"
20-
PACKAGE_DEPENDENCIES="zfs"
2120

2221
UPSTREAM_GIT_URL=https://git.launchpad.net/ubuntu/+source/grub2
23-
UPSTREAM_GIT_BRANCH=applied/ubuntu/bionic-updates
22+
UPSTREAM_GIT_BRANCH="applied/ubuntu/${UBUNTU_DISTRIBUTION}-updates"
2423

2524
SKIP_COPYRIGHTS_CHECK=true
2625

2726
#
2827
# Install build dependencies for the package.
2928
#
3029
function prepare() {
31-
# Install libzfs which is required to build grub
32-
logmust install_pkgs "$DEPDIR"/zfs/{libnvpair1linux,libuutil1linux,libzfs2linux,libzpool2linux,libzfslinux-dev}_*.deb
3330
logmust install_build_deps_from_control_file
3431
}
3532

packages/linux-kernel-aws/config.delphix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# shellcheck disable=SC2034
1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/linux-kernel-aws.git"
2020

21-
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-aws/+git/bionic"
21+
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-aws/+git/${UBUNTU_DISTRIBUTION}"
2222
# Note: UPSTREAM_GIT_BRANCH is not used here
2323
UPSTREAM_GIT_BRANCH="none"
2424

packages/linux-kernel-azure/config.delphix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# shellcheck disable=SC2034
1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/linux-kernel-azure.git"
2020

21-
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-azure/+git/bionic"
21+
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-azure/+git/${UBUNTU_DISTRIBUTION}"
2222
# Note: UPSTREAM_GIT_BRANCH is not used here
2323
UPSTREAM_GIT_BRANCH="none"
2424

packages/linux-kernel-gcp/config.delphix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# shellcheck disable=SC2034
1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/linux-kernel-gcp.git"
2020

21-
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-gcp/+git/bionic"
21+
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-gcp/+git/${UBUNTU_DISTRIBUTION}"
2222
# Note: UPSTREAM_GIT_BRANCH is not used here
2323
UPSTREAM_GIT_BRANCH="none"
2424

packages/linux-kernel-generic/config.delphix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# shellcheck disable=SC2034
1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/linux-kernel-generic.git"
2020

21-
UPSTREAM_GIT_URL="https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic"
21+
UPSTREAM_GIT_URL="https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/${UBUNTU_DISTRIBUTION}"
2222
# Note: UPSTREAM_GIT_BRANCH is not used here
2323
UPSTREAM_GIT_BRANCH="none"
2424

packages/linux-kernel-oracle/config.delphix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# shellcheck disable=SC2034
1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/linux-kernel-oracle.git"
2020

21-
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oracle/+git/bionic"
21+
UPSTREAM_GIT_URL="https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oracle/+git/${UBUNTU_DISTRIBUTION}"
2222
# Note: UPSTREAM_GIT_BRANCH is not used here
2323
UPSTREAM_GIT_BRANCH="none"
2424

0 commit comments

Comments
 (0)