Skip to content

Commit 22b3e97

Browse files
committed
Stop relying on internal sources in favor of upstream packages for LTS upgrade
PR URL: https://www.github.com/delphix/linux-pkg/pull/325
1 parent d8c2f8f commit 22b3e97

File tree

15 files changed

+7
-385
lines changed

15 files changed

+7
-385
lines changed

.github/scripts/verify-query-packages.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ read -r -a fields <<<"$(./query-packages.sh single -o git-url zfs 2>&1)"
3030
test ${#fields[@]} -eq 1
3131
test "${fields[0]}" == 'https://github.com/delphix/zfs.git'
3232

33-
# Expect: "bpftrace bcc true https://github.com/delphix/bpftrace.git"
34-
read -r -a fields <<<"$(./query-packages.sh single -o name,dependencies,can-update,git-url bpftrace 2>&1)"
35-
test ${#fields[@]} -eq 4
36-
test "${fields[0]}" == 'bpftrace'
37-
test "${fields[1]}" == 'bcc'
38-
test "${fields[2]}" == 'true'
39-
test "${fields[3]}" == 'https://github.com/delphix/bpftrace.git'
40-
4133
# Expect that "list all" outputs all directory names under packages/
4234
diff <(ls -1 packages | sort) <(./query-packages.sh list all 2>&1 | sort)
4335

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,7 @@ of some of the scripts defined above.
280280

281281
* **package_S3_URL**: Similar to the package_VAR variables above. This is used
282282
to override the default S3 location for where package build-dependencies are
283-
fetched for a given linux-pkg package. For instance, if you are building
284-
bpftrace, which has `PACKAGE_DEPENDENCIES="bcc"` in its config, the
285-
`fetch_dependencies()` stage in the build will fetch the latest build
286-
artifacts of the bcc package from a predetermined S3 location. If you pass
287-
`BCC_S3_URL=s3://path/to/custom/bcc/artifacts` then those artifacts will be
288-
fetched insteasd.
283+
fetched for a given linux-pkg package.
289284

290285
* **DELPHIX_PACKAGE_MIRROR_MAIN, DELPHIX_PACKAGE_MIRROR_SECONDARY**: When
291286
the [setup.sh](#setupsh) script is run, it will configure the apt sources

package-lists/build/main.pkgs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# List of non-kernel packages to be included in the Delphix Appliance.
33
#
44

5-
adoptopenjdk
6-
bcc
7-
bpftrace
85
challenge-response
96
cloud-init
107
crash-python
@@ -13,20 +10,15 @@ delphix-go
1310
delphix-platform
1411
delphix-rust
1512
delphix-sso-app
16-
drgn
1713
docker-python-image
1814
dwarves
19-
fio
2015
fluentd-gems
21-
gdb-python
2216
grub2
2317
host-jdks
24-
libkdumpfile
2518
make-jpkg
2619
makedumpfile
2720
masking
2821
misc-debs
29-
mold
3022
nfs-utils
3123
performance-diagnostics
3224
ptools

packages/adoptopenjdk/config.sh

Lines changed: 0 additions & 81 deletions
This file was deleted.

packages/bcc/config.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

packages/bpftrace/config.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/containerized-masking/config.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,19 @@ source "$PWD/lib/common.sh"
2929

3030
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/dms-core-gate.git"
3131

32-
PACKAGE_DEPENDENCIES="adoptopenjdk"
3332
SKIP_COPYRIGHTS_CHECK=true
3433

3534
function prepare() {
36-
logmust install_pkgs "$DEPDIR"/adoptopenjdk/*.deb
35+
echo "Nothing to prepare"
3736
}
3837

3938
function build() {
40-
export JAVA_HOME
41-
JAVA_HOME=$(cat "$DEPDIR/adoptopenjdk/JDK_PATH") ||
42-
die "Failed to read $DEPDIR/adoptopenjdk/JDK_PATH"
43-
4439
logmust cd "$WORKDIR/repo"
4540

4641
local args=()
4742

4843
set_secret_build_args
44+
args+=("-Dorg.gradle.java.home=/lib/jvm/java-8-openjdk-amd64/")
4945
args+=("${_SECRET_BUILD_ARGS[@]}")
5046

5147
args+=("-Porg.gradle.configureondemand=false")

packages/delphix-sso-app/config.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@
1717
# shellcheck disable=SC2034
1818

1919
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/saml-app.git"
20-
PACKAGE_DEPENDENCIES="adoptopenjdk"
2120

2221
function prepare() {
23-
logmust install_pkgs "$DEPDIR"/adoptopenjdk/*.deb
22+
echo "Nothing to prepare"
2423
}
2524

2625
function build() {
27-
local java_home
28-
java_home=$(cat "$DEPDIR/adoptopenjdk/JDK_PATH") ||
29-
die "Failed to read $DEPDIR/adoptopenjdk/JDK_PATH"
3026
logmust cd "$WORKDIR/repo"
31-
logmust sudo ./gradlew "-Dorg.gradle.java.home=$java_home" distDeb
27+
logmust sudo ./gradlew distDeb
3228
logmust sudo mv ./build/distributions/*deb "$WORKDIR/artifacts/"
3329
}

packages/drgn/config.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/fio/config.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/gdb-python/config.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)