这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: do not imply platform independent for metapackages #25425

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
Jul 23, 2025

Conversation

thunder-coding
Copy link
Member

@thunder-coding thunder-coding commented Jul 21, 2025

All the build.sh files in the repository for metapackages are also
setting TERMUX_PKG_PLATFORM_INDEPENDENT=true, so this does not need any
changes at all in any of the build.sh files

The only exception are dotnet-host and netstandard-targeting-pack-2.1
due to 2c2daf3 and
07d53e5

Closes #25417

# Usually metapackages are also platform dependent but it is not always the
# right decision to mark them as such when they depend on packages which may
# not be available for all architectures
# TERMUX_PKG_PLATFORM_INDEPENDENT=true
Copy link
Contributor

@robertkirkman robertkirkman Jul 21, 2025

Choose a reason for hiding this comment

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

I agree with this. Technically, any package which depends on a package that does not exist on some (OS-supported) architectures is not architecture independent - it is dependent on the existence of the dependency package, which does not exist on some architectures.

Since it is convenient to post it here for reference by anyone reading this PR in the future, the reason why this ends up mattering and is necessary is because the folder organization patterns of the mirrors can vary, and in at least some cases, packages marked as platform-independent are placed into the same folder for all architectures and cannot be "hidden" from the apt install commands of devices that have an architecture that is not supported by one of the dependencies of the package marked as architecture-independent, which is why it is necessary to use this specific definition of "architecture independent".

# exist. Could be an aptly mirror where the
# all arch is mixed into the other arches,

All the build.sh files in the repository for metapackages are also
setting TERMUX_PKG_PLATFORM_INDEPENDENT=true, so this does not need any
changes at all in any of the build.sh files

The only exception are dotnet-host and netstandard-targeting-pack-2.1
due to 2c2daf3 and
07d53e5
@thunder-coding thunder-coding force-pushed the platform-dependent-metapackages branch from d01467f to 0934127 Compare July 23, 2025 02:35
@thunder-coding thunder-coding merged commit 0934127 into master Jul 23, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repository Health Check Failed
2 participants