[Packaging] Install pymsalruntime on Ubuntu#31832
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
fa9bbc6 to
db4386b
Compare
|
|
0072e69 to
2544078
Compare
|
Deb build fails after installing |
2544078 to
b4e5ab7
Compare
b4e5ab7 to
beb49a4
Compare
377ee22 to
df54281
Compare
| apt install -y apt-transport-https git gcc python3-dev | ||
|
|
||
| dpkg -i /mnt/artifacts/azure-cli_$CLI_VERSION-1~${DISTRO}_*.deb | ||
| apt-get install -y /mnt/artifacts/azure-cli_$CLI_VERSION-1~${DISTRO}_*.deb |
There was a problem hiding this comment.
Use apt-get to install dependency.
dpkg -i /mnt/artifacts/azure-cli_$CLI_VERSION-1~${DISTRO}_*.deb
+ dpkg -i /mnt/artifacts/azure-cli_2.83.0-1~bookworm_arm64.deb
Selecting previously unselected package azure-cli.
(Reading database ... 16988 files and directories currently installed.)
Preparing to unpack .../azure-cli_2.83.0-1~bookworm_arm64.deb ...
Unpacking azure-cli (2.83.0-1~bookworm) ...
dpkg: dependency problems prevent configuration of azure-cli:
azure-cli depends on libwebkit2gtk-4.1-dev; however:
Package libwebkit2gtk-4.1-dev is not installed.
dpkg: error processing package azure-cli (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
azure-cli
bde125c to
135b861
Compare
135b861 to
1671148
Compare
| ${TAB}dh_clean --exclude=__pycache__ | ||
|
|
||
| override_dh_shlibdeps: | ||
| ${TAB}dh_shlibdeps --exclude=*/site-packages/pymsalruntime/* |
There was a problem hiding this comment.
Exclude pymsalruntime dependency manually. The user needs to install libwebkit2gtk-4.1-dev manually.
dpkg-shlibdeps: error: cannot find library libdbus-1.so.3 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libcurl.so.4 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libwebkit2gtk-4.1.so.0 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libjavascriptcoregtk-4.1.so.0 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libgtk-3.so.0 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libgdk-3.so.0 needed by debian/azure-cli/opt/az/lib/python3.13/site-packages/pymsalruntime/libmsalruntime.so (ELF format: 'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')
Ref: https://learn.microsoft.com/en-us/entra/msal/python/advanced/linux-broker-py?tabs=ubuntudep#linux-dependencies
https://manpages.debian.org/unstable/debhelper/dh_shlibdeps.1.en.html#X
Description
Install
pymsalruntimeon amd64 Ubuntu package.The disk usage increases by 46MB.
Users need to manually install
libwebkit2gtk-4.1-devto use WAM, which takes about 740MB disk space. (That's why I don't add it as a dependency of azure-cli)Ref: https://learn.microsoft.com/en-us/entra/msal/python/advanced/linux-broker-py?tabs=ubuntudep#linux-dependencies
Related work items: