gcc: split packages like Arch did while preserving upgrades - #30473
Open
dragon-archer wants to merge 1 commit into
Open
gcc: split packages like Arch did while preserving upgrades#30473dragon-archer wants to merge 1 commit into
dragon-archer wants to merge 1 commit into
Conversation
Collaborator
Author
|
@lazka @MehdiChinoune How about merging this? |
dragon-archer
force-pushed
the
split-gcc
branch
from
August 11, 2026 13:43
0746c23 to
a44aeea
Compare
dragon-archer
marked this pull request as draft
August 11, 2026 17:58
dragon-archer
force-pushed
the
split-gcc
branch
from
August 12, 2026 16:38
a44aeea to
a44434b
Compare
Collaborator
Author
|
Overhauled the packaging process like Arch, with a few differences:
There're still a few points which may need discussion and/or adjustion:
|
dragon-archer
marked this pull request as ready for review
August 12, 2026 17:00
Collaborator
Author
|
BTW, running LANG=C pacman -Si | grep -E '^(Name|Depends On)' | awk '/^Name/ {name=$3} /^Depends On/ && /gcc-libs/ {print name}'shows that there're lots of (11 for MINGW32, 150+ for MINGW64 and UCRT64) packages that haven't been rebuilt after switching from I suggest rebuilding all these packages in batches. |
Keep gcc-libs as a compatibility package that depends on the new cc-libs metapackage and libgomp. The previous split (msys2#28751) moved the omp provision from gcc-libs to libgomp without retaining a dependency edge between them. During a system upgrade, the old gcc-libs package had to be removed because the split runtime packages took ownership of its files. This also removed the only installed omp provider. Although libgomp provides omp, pacman only searches for providers while resolving forward dependencies of packages already selected for the transaction. The missing omp dependency was detected later, during the final reverse-dependency validation. That validation reports broken dependencies but does not add new provider packages to the transaction, so libgomp was never selected automatically. Add a concrete cc-libs package for the common GCC runtime libraries and turn gcc-libs into a compatibility package depending on matching versions of cc-libs and libgomp. Upgrading the installed gcc-libs package now pulls libgomp into the transaction before reverse-dependency validation, preserving all existing omp dependencies. Keeping libgomp outside cc-libs also allows new common-runtime consumers to avoid installing the OpenMP runtime when it is not required. Move the tzdata dependency to libstdc++, which is the component using the C++ time-zone database.
dragon-archer
force-pushed
the
split-gcc
branch
from
August 13, 2026 09:09
cdf0c8c to
2dfd7e3
Compare
Collaborator
Author
|
@lazka @MehdiChinoune Any comments? |
Collaborator
Author
Ping. |
Collaborator
Author
@lazka @MehdiChinoune Ping^2. |
Member
|
I'll try to have a look... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep gcc-libs as a compatibility package that depends on the new cc-libs metapackage and libgomp.
The previous split (#28751) moved the omp provision from gcc-libs to libgomp without retaining a dependency edge between them. During a system upgrade, the old gcc-libs package had to be removed because the split runtime packages took ownership of its files. This also removed the only installed omp provider.
Although libgomp provides omp, pacman only searches for providers while resolving forward dependencies of packages already selected for the transaction. The missing omp dependency was detected later, during the final reverse-dependency validation. That validation reports broken dependencies but does not add new provider packages to the transaction, so libgomp was never selected automatically.
Add a concrete cc-libs package for the common GCC runtime libraries and turn gcc-libs into a compatibility package depending on matching versions of cc-libs and libgomp. Upgrading the installed gcc-libs package now pulls libgomp into the transaction before reverse-dependency validation, preserving all existing omp dependencies.
Keeping libgomp outside cc-libs also allows new common-runtime consumers to avoid installing the OpenMP runtime when it is not required.
Move the tzdata dependency to libstdc++, which is the component using the C++ time-zone database.