[package] name = "glibc" version = "2.43" revision = 4 description = "GNU C Library" homepage = "https://sourceware.org/glibc" license = "LGPL-2.1-or-later" [[manual_sources]] file = "nsswitch.conf" sha256 = "skip" [[manual_sources]] file = "ld.so.conf" sha256 = "skip" [[manual_sources]] file = "locale-gen" sha256 = "skip" [[manual_sources]] file = "locale.gen.txt" sha256 = "skip" [[manual_sources]] file = "glibc-longjmp-ssp-fix.patch" sha256 = "skip" [[manual_sources]] file = "glibc-sfp-handle-exceptions-fix.patch" sha256 = "skip" [[manual_sources]] file = "glibc-2.43-use-compiler-reported-libgcc.patch" sha256 = "skip" [[manual_sources]] file = "ldd" sha256 = "skip" [[manual_sources]] file = "lib32-postinstall.sh" sha256 = "skip" [[manual_sources]] file = "glibc-2.43-clang-math-barriers.patch" sha256 = "skip" [[source]] url = "https://mirrors.kernel.org/gnu/glibc/glibc-$version.tar.xz" sha256 = "d9c86c6b5dbddb43a3e08270c5844fc5177d19442cf5b8df4be7c07cd5fa3831" extract_dir = "$name-$version" patches = ["glibc-fhs-1.patch","glibc-longjmp-ssp-fix.patch","glibc-sfp-handle-exceptions-fix.patch","glibc-2.43-use-compiler-reported-libgcc.patch", "glibc-2.43-clang-math-barriers.patch" ] post_extract = ["mkdir -p build", "echo 'rootsbindir=/usr/sbin' > build/configparms"] [build] type = "autotools" [build.flags] build_dir = "build" prefix = "/usr" configure = [ "--disable-werror", "--disable-nscd", "libc_cv_slibdir=/usr/lib", "--enable-stack-protector=strong", "--enable-kernel=5.4", ] post_compile = [ "sed '/test-installation/s@$(PERL)@echo not running@' -i Makefile", "touch ./locale/programs/charmap-kw.h", "touch ./locale/programs/locfile-kw.h" ] post_install = [ "mkdir -p $DESTDIR/etc", "cp -rv $DEPOT_SPECDIR/ld.so.conf $DEPOT_SPECDIR/nsswitch.conf $DESTDIR/etc", "rm -f ${DESTDIR}/etc/ld.so.cache", "install -dm755 \"${DESTDIR}\"/usr/share/i18n", "install -dm755 \"${DESTDIR}\"/usr/lib/locale", "install -m644 posix/gai.conf \"${DESTDIR}\"/etc/gai.conf", "install -m755 \"${DEPOT_SPECDIR}\"/locale-gen \"${DESTDIR}\"/usr/bin", "install -m644 \"${DEPOT_SPECDIR}\"/locale.gen.txt \"${DESTDIR}\"/etc/locale.gen", "sed -e '1,3d' -e 's|/| |g' -e 's|\\\\| |g' -e 's|^|#|g' localedata/SUPPORTED >> \"${DESTDIR}\"/etc/locale.gen", "sed -e '1,3d' -e 's|/| |g' -e 's| \\\\||g' localedata/SUPPORTED > \"${DESTDIR}\"/usr/share/i18n/SUPPORTED", "sed -i '/#C\\.UTF-8 /d' \"${DESTDIR}\"/etc/locale.gen", "rm $DESTDIR/usr/bin/ldd", "install -m 0755 $DEPOT_SPECDIR/ldd $DESTDIR/usr/bin/ldd" ] use_lto = false keep = [ "etc/locale.gen", "etc/ld.so.conf", "etc/nsswitch.conf", "etc/gai.conf" ] # you can do the tests if you want, not me though... skip_tests = true no_delete_static = true build_32 = true configure_lib32 = [ "--disable-werror", "--disable-nscd", "libc_cv_slibdir=/usr/lib32", "libc_cv_cc_with_libunwind=no", "--enable-stack-protector=strong", "--enable-kernel=5.4", ] post_install_lib32 = [ "mkdir -p $DESTDIR/usr/include/gnu/", "install -vm644 destdir/usr/include/gnu/stubs-32.h destdir/usr/include/gnu/lib-names-32.h $DESTDIR/usr/include/gnu/" ] ldflags-lib32 += [ "-L/usr/lib32 -Wl,-rpath-link,/usr/lib32" ] [dependencies] runtime = ["filesystem", "tzdata", "linux-headers"] build = [ "python" ] [dependencies.lib32] runtime = ["filesystem", "tzdata", "linux-headers"] build = [ "python" ]