Skip to content

gcc: split packages like Arch did while preserving upgrades#30473

Open
dragon-archer wants to merge 1 commit into
msys2:masterfrom
dragon-archer:split-gcc
Open

gcc: split packages like Arch did while preserving upgrades#30473
dragon-archer wants to merge 1 commit into
msys2:masterfrom
dragon-archer:split-gcc

Conversation

@dragon-archer

Copy link
Copy Markdown
Collaborator

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.

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

Copy link
Copy Markdown
Collaborator Author

@lazka @MehdiChinoune How about merging this?

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.

1 participant