Skip to content

Commit 2ae493c

Browse files
palash-gandhiprakashsurya
authored andcommitted
DLPX-93263 24.04 LTS: Set delphix-rust package version to rustc version (#333)
PR URL: https://www.github.com/delphix/linux-pkg/pull/333
1 parent 95d10b3 commit 2ae493c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/delphix-rust/config.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@ DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/delphix-rust.git"
2020

2121
function build() {
2222
logmust mkdir -p "$WORKDIR/repo"
23+
24+
#
25+
# Instead of relying on linux-pkg to assign a default version like 1.0.0, set the
26+
# version of the `delphix-rust` package to the version of the `rustc` package.
27+
# This is done to ensure that third-party packages that rely on specific versions
28+
# of `rustc` can correctly compare the version of the `rustc` package supplied by
29+
# `delphix-rust` with their requirement.
30+
#
31+
PACKAGE_VERSION="$(tr -d '\n' <"$WORKDIR/repo/RUSTC_VERSION")"
32+
[[ -n "$PACKAGE_VERSION" ]] || die "Failed to retrieve package version"
33+
2334
logmust dpkg_buildpackage_default
2435
}

0 commit comments

Comments
 (0)