Adjust gcc versions for current limited LIBC_VERSION variation. (#11872)

* Adjust logic.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust gcc versions for limited LIBC variations, tweak LIBC_VERSION detection.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add zstd_static to CREW_ESSENTIAL_PACKAGES to avoid unit test issues.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust again to fix unit tests

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust install to always install zstd_static, thus creating a deterministic essential package removal for zstd in the unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust glibc dev packages for limited LIBC.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust LIBC version in libssp

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Bypass broken portion of unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2025-05-03 16:23:57 -04:00
committed by GitHub
parent 9d8157326a
commit b9f11943d9
9 changed files with 48 additions and 79 deletions

View File

@@ -1,28 +1,21 @@
require 'package'
Package.load_package("#{__dir__}/glibc.rb")
Package.load_package("#{__dir__}/glibc_build235.rb")
Package.load_package("#{__dir__}/glibc_build237.rb")
Package.load_package("#{__dir__}/glibc_standalone.rb")
class Glibc_lib < Package
description 'glibc libraries'
homepage Glibc.homepage
license Glibc.license
homepage Glibc_standalone.homepage
license Glibc_standalone.license
source_url 'SKIP'
is_fake
case LIBC_VERSION
when '2.35'
version Glibc_build235.version
compatibility Glibc_build235.compatibility
depends_on 'glibc_lib235'
when '2.37'
version Glibc_build237.version
compatibility Glibc_build237.compatibility
depends_on 'glibc_lib237'
if LIBC_VERSION <= '2.41'
version Glibc_standalone.version
compatibility Glibc_standalone.compatibility
depends_on 'glibc_standalone'
else
version Glibc.version
compatibility Glibc.compatibility
depends_on 'glibc'
version LIBC_VERSION
compatibility 'aarch64 armv7l x86_64'
depends_on 'glibc_fallthrough'
end
end