8000 Fix package distribution. Specify OS explicitly by ami-GS · Pull Request #4434 · microsoft/msquic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix package distribution. Specify OS explicitly #4434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

ami-GS
Copy link
Contributor
@ami-GS ami-GS commented Aug 6, 2024

Description

Checking artifact directory name doesn't work for identifying Ubuntu version for XDP build.

Testing

locally done and used internal repo

Documentation

N/A

@ami-GS ami-GS requested a review from a team as a code owner August 6, 2024 20:05
Copy link
codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.80%. Comparing base (679a965) to head (1b59035).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4434      +/-   ##
==========================================
- Coverage   86.49%   85.80%   -0.69%     
==========================================
  Files          56       56              
  Lines       15508    15508              
==========================================
- Hits        13413    13306     -107     
- Misses       2095     2202     +107     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

csujedihy
csujedihy previously approved these changes Aug 6, 2024
@@ -184,6 +184,12 @@ if [ "$OS" == "linux" ]; then
FILES="${FILES} ${ARTIFACTS}/libmsquic.lttng.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}=/usr/${LIBDIR}/libmsquic.lttng.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}"
fi

# XDP means Ubuntu 24.04 which installs libssl3t64 instead of libssl3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a case where we build a package for ubuntu 24.04 without depending on XDP?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for arm* arch

} else {
& $RootDir/scripts/make-packages.sh --output $DistDir --tls $Tls --ubuntu $UbuntuVersion # x64
& $RootDir/scripts/make-packages.sh --output $DistDir --tls $Tls --xdp $UseXdp --time64 $Time64Distro # x64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like I said, this is only requirement for armhf for now, but I believe it's fine to keep it as-is, since all architectures of Ubuntu24.04 is already installing libssl3t64 if you try to install libssl3

@ami-GS ami-GS enabled auto-merge (squash) August 6, 2024 22:40
@ami-GS ami-GS merged commit b4d79a3 into main Aug 6, 2024
446 of 447 checks passed
@ami-GS ami-GS deleted the dev/daiki/ubuntu24_package_fix branch August 6, 2024 22:42
} else {
& $RootDir/scripts/make-packages.sh --output $DistDir --tls $Tls --ubuntu $UbuntuVersion # x64
& $RootDir/scripts/make-packages.sh --output $DistDir --tls $Tls --xdp $UseXdp --time64 $Time64Distro # x64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't see a fundamental difference between UbuntuVersion when it's ubuntu and UseXdp and Time64Distro. They are basically the same thing and make-packages.sh actually assumes that XDP is ubuntu 24.04.

They knobs would make sense if you pass the correct value to them from here.

For example, for arm, we don't pass --xdp but we pass --time64 because we don't build xdp for arm but if $Time64Distro is true, we use the t64 version of libssl3.

The current code basically creates 2 aliases for ubuntu24.04.

ami-GS added a commit that referenced this pull request Aug 6, 2024
* Pass OS information explicitly to package-distribution

* libssl3 variants for ubuntu24.04

* detail flag for time64
ami-GS added a commit that referenced this pull request Aug 7, 2024
* Pass OS information explicitly to package-distribution

* libssl3 variants for ubuntu24.04

* detail flag for time64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0