microsoft / azurelinux

Linux OS for Azure 1P services and edge appliances
MIT License
4.28k stars 535 forks source link

fix: remove override_glibc logic from libxcrypt #9494

Closed christopherco closed 3 months ago

christopherco commented 3 months ago
Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)


Summary

Now that glibc no longer builds libcrypt.so, we can directly use libxcrypt's version of libcrypt.so and remove the override macros in the libxcrypt spec.

The override_glibc logic was added by us to workaround an issue with adding this improved version of libcrypt into Mariner 1.0 while it was already released. And in 1.0, 2.0, and pre-Nov 2023 3.0, the macro was %bcond_without override_glibc, but after Nov 2023, the macro was changed to %bcond_with override_glibc which means all these overrides are currently inert and are now just diffs from the original spec.

The only real functional change here is the addition of Requires: glibc%{?_isa} >= %{glibc_minver}

Signed-off-by: Chris Co chrco@microsoft.com

Does this affect the toolchain?

YES

Associated issues
Test Methodology
anphel31 commented 3 months ago

Looks good, but can we run a toolchain build for extra validation? The buddybuild environment is slightly different. (you might need to push a branch to this repo to run the toolchain build)

christopherco commented 3 months ago

Looks good, but can we run a toolchain build for extra validation? The buddybuild environment is slightly different. (you might need to push a branch to this repo to run the toolchain build)

Of course! Queued the toolchain build - https://dev.azure.com/mariner-org/mariner/_build/results?buildId=593711&view=results

christopherco commented 3 months ago

Toolchain and RPM builds passed: