mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
sys-libs/glibc: sync with Gentoo for 2.33-r7
Update sys-libs/glibc to 2.33-r7, mainly to address CVE-2021-38604. Gentoo ref: 8c150cdb5bc5d9fc84079cc764957b7823c3bf43
This commit is contained in:
parent
ec7af9815a
commit
6c0154f285
@ -1,5 +1,5 @@
|
|||||||
DIST gcc-multilib-bootstrap-20201208.tar.xz 5528452 BLAKE2B 16699a6e4df5b2f28a21776ae9e3728b26a9ea251f5580aa5349545ad7c9f6145b9cb6a12ca8f5f96b9cb2a3c70b7e66ca702e4c6f083ac00408e0a20a69e613 SHA512 a243f505e17d0a7e144e8713c077582412f61d6cf7f79baa846de4fb77f5e0f27e11c9a785e14624e04ac52287b32164e7995323aa11caef59113ac438254347
|
DIST gcc-multilib-bootstrap-20201208.tar.xz 5528452 BLAKE2B 16699a6e4df5b2f28a21776ae9e3728b26a9ea251f5580aa5349545ad7c9f6145b9cb6a12ca8f5f96b9cb2a3c70b7e66ca702e4c6f083ac00408e0a20a69e613 SHA512 a243f505e17d0a7e144e8713c077582412f61d6cf7f79baa846de4fb77f5e0f27e11c9a785e14624e04ac52287b32164e7995323aa11caef59113ac438254347
|
||||||
DIST glibc-2.33-patches-5.tar.xz 63032 BLAKE2B e7f5952b2d84dc264e960d8bd3d9af4ca43089ca269735168933e80a0a74d7be1cadc90935b429cfdf5f0052d3ce3482a8f073b15378e7f9c05034535d9eae4d SHA512 00c2f8f104e7899b76398a6a39f054cd109a71f5fcc4020304b7d7e15ae0c53df1c3acbafd56898427b3849452f9fb9e5064ff584d6c86c4d18c8a9201c89d29
|
DIST glibc-2.33-patches-6.tar.xz 64632 BLAKE2B f04ca4320d65c8796c67471cb56d3bf002cc34fb6a81075b85948e41c94df46cb2a3a944cced42d6d2c17ffc11e32a9840810864e655cc0fe18e6e0fe9f3c985 SHA512 b95746cd3415ec9ca275e542a2b5fddd5ce5680aa3bda08e94e96cf431191f7488ef6b7999ff0dfaf7405a4212531a75283e9bd7f5ae65bf572912038877a6df
|
||||||
DIST glibc-2.33.tar.xz 17031280 BLAKE2B 703d12121c1e2c5d9e0c6ba5341f5fb5c4d9111611a83f2360029b5de9c6e5a5611249d1833684a58ed4afdf49cae614365d87ec8721ba0e5d218f593b1f229d SHA512 4cb5777b68b22b746cc51669e0e9282b43c83f6944e42656e6db7195ebb68f2f9260f130fdeb4e3cfc64efae4f58d96c43d388f52be1eb024ca448084684abdb
|
DIST glibc-2.33.tar.xz 17031280 BLAKE2B 703d12121c1e2c5d9e0c6ba5341f5fb5c4d9111611a83f2360029b5de9c6e5a5611249d1833684a58ed4afdf49cae614365d87ec8721ba0e5d218f593b1f229d SHA512 4cb5777b68b22b746cc51669e0e9282b43c83f6944e42656e6db7195ebb68f2f9260f130fdeb4e3cfc64efae4f58d96c43d388f52be1eb024ca448084684abdb
|
||||||
DIST glibc-systemd-20210727.tar.gz 1454 BLAKE2B 0383338f73cec9a13165f0be261eb3d46c0362425b5fe31846f0ec00da9aff69d941e8b0e0ad1f8691edf9dc30796c239e8e984207725e4cf98fd037e7168e22 SHA512 09a91f6351657abfca200d110b0a43d541399c2db142c5706e06b4eebb736932e8f1b026be8d844be64f8e2c981777c342004492ef99c3c81cb04bf75a2c3ee8
|
DIST glibc-systemd-20210814.tar.gz 1469 BLAKE2B 10fa7bcb46d4fdce9c0ab353cbd30871e9b09a347a13a9c9a3b5777f931aa3c826c158d2e49532c604d4a834f2fab4089b67495fb88d0398945dc50d45ad9ef1 SHA512 5346a9ea459a1e6ccf665389f2a294de1e16f1e3e05cdf07e3dd99ed0e4f6f8b52cc333d4bff3c75ac90ab6ce70cd4ab2b3e126f920ce7979abd6dda56315efc
|
||||||
DIST locale-gen-2.10.tar.gz 7747 BLAKE2B 49f569c5ae5260fca128503bc6f22d6f6f1cda817920c41fdadadf1527bbb4f3eb161f79fa729830666a4673e9092f99f4685ec8fcac8ddea0b8242bca9c1f4f SHA512 e350e60d458d67638e3090711fca05af6fafac06c51b97648244549f8a0621dab7543f09dc7ad4c62392f13bdae8e5875dc6d0b6c3d83efc29d116bc2eef92db
|
DIST locale-gen-2.10.tar.gz 7747 BLAKE2B 49f569c5ae5260fca128503bc6f22d6f6f1cda817920c41fdadadf1527bbb4f3eb161f79fa729830666a4673e9092f99f4685ec8fcac8ddea0b8242bca9c1f4f SHA512 e350e60d458d67638e3090711fca05af6fafac06c51b97648244549f8a0621dab7543f09dc7ad4c62392f13bdae8e5875dc6d0b6c3d83efc29d116bc2eef92db
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# /etc/host.conf:
|
# /etc/host.conf:
|
||||||
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
|
|
||||||
|
|
||||||
# The file /etc/host.conf contains configuration information specific to
|
# The file /etc/host.conf contains configuration information specific to
|
||||||
# the resolver library. It should contain one configuration keyword per
|
# the resolver library. It should contain one configuration keyword per
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
L /etc/nscd.conf - - - - ../usr/share/baselayout/nscd.conf
|
|
||||||
d /var/db/nscd - - - - -
|
|
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7} )
|
PYTHON_COMPAT=( python3_{7,8,9,10} )
|
||||||
TMPFILES_OPTIONAL=1
|
TMPFILES_OPTIONAL=1
|
||||||
|
|
||||||
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
|
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
|
||||||
multilib systemd multiprocessing
|
multilib systemd multiprocessing tmpfiles
|
||||||
|
|
||||||
DESCRIPTION="GNU libc C library"
|
DESCRIPTION="GNU libc C library"
|
||||||
HOMEPAGE="https://www.gnu.org/software/libc/"
|
HOMEPAGE="https://www.gnu.org/software/libc/"
|
||||||
@ -17,13 +17,13 @@ SLOT="2.2"
|
|||||||
EMULTILIB_PKG="true"
|
EMULTILIB_PKG="true"
|
||||||
|
|
||||||
# Gentoo patchset (ignored for live ebuilds)
|
# Gentoo patchset (ignored for live ebuilds)
|
||||||
PATCH_VER=5
|
PATCH_VER=6
|
||||||
PATCH_DEV=dilfridge
|
PATCH_DEV=dilfridge
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
if [[ ${PV} == 9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
else
|
else
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
|
SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
|
||||||
SRC_URI+=" https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz"
|
SRC_URI+=" https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz"
|
||||||
fi
|
fi
|
||||||
@ -34,7 +34,7 @@ GCC_BOOTSTRAP_VER=20201208
|
|||||||
|
|
||||||
LOCALE_GEN_VER=2.10
|
LOCALE_GEN_VER=2.10
|
||||||
|
|
||||||
GLIBC_SYSTEMD_VER=20210727
|
GLIBC_SYSTEMD_VER=20210814
|
||||||
|
|
||||||
SRC_URI+=" https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/locale-gen-${LOCALE_GEN_VER}.tar.gz"
|
SRC_URI+=" https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/locale-gen-${LOCALE_GEN_VER}.tar.gz"
|
||||||
SRC_URI+=" multilib-bootstrap? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz )"
|
SRC_URI+=" multilib-bootstrap? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz )"
|
||||||
@ -677,7 +677,7 @@ sanity_prechecks() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# When we actually have to compile something...
|
# When we actually have to compile something...
|
||||||
if ! just_headers ; then
|
if ! just_headers && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||||
ebegin "Checking gcc for __thread support"
|
ebegin "Checking gcc for __thread support"
|
||||||
if ! eend $(want__thread ; echo $?) ; then
|
if ! eend $(want__thread ; echo $?) ; then
|
||||||
echo
|
echo
|
||||||
@ -719,12 +719,10 @@ sanity_prechecks() {
|
|||||||
|
|
||||||
# pkg_pretend
|
# pkg_pretend
|
||||||
|
|
||||||
# Flatcar: Skip sanity checks at pretend time because we don't ship a compiler
|
|
||||||
# in the OS image. This test fails when installing the glibc binpkg and no
|
|
||||||
# compiler is present.
|
|
||||||
pkg_pretend() {
|
pkg_pretend() {
|
||||||
einfo "Flatcar: Skipping sanity_prechecks for binpkg installation. src_unpack will take care of compile-time prechecks."
|
# All the checks...
|
||||||
# sanity_prechecks
|
einfo "Checking general environment sanity."
|
||||||
|
sanity_prechecks
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
@ -1223,13 +1221,12 @@ glibc_do_src_install() {
|
|||||||
# '#define VERSION "2.26.90"' -> '2.26.90'
|
# '#define VERSION "2.26.90"' -> '2.26.90'
|
||||||
local upstream_pv=$(sed -n -r 's/#define VERSION "(.*)"/\1/p' "${S}"/version.h)
|
local upstream_pv=$(sed -n -r 's/#define VERSION "(.*)"/\1/p' "${S}"/version.h)
|
||||||
|
|
||||||
# Flatcar: override this and strip everything to keep image size at bay
|
|
||||||
# Avoid stripping binaries not targeted by ${CHOST}. Or else
|
# Avoid stripping binaries not targeted by ${CHOST}. Or else
|
||||||
# ${CHOST}-strip would break binaries build for ${CTARGET}.
|
# ${CHOST}-strip would break binaries build for ${CTARGET}.
|
||||||
# is_crosscompile && dostrip -x /
|
is_crosscompile && dostrip -x /
|
||||||
# gdb thread introspection relies on local libpthreas symbols. stripping breaks it
|
# gdb thread introspection relies on local libpthreas symbols. stripping breaks it
|
||||||
# See Note [Disable automatic stripping]
|
# See Note [Disable automatic stripping]
|
||||||
# dostrip -x $(alt_libdir)/libpthread-${upstream_pv}.so
|
dostrip -x $(alt_libdir)/libpthread-${upstream_pv}.so
|
||||||
|
|
||||||
if [[ -e ${ED}/$(alt_usrlibdir)/libm-${upstream_pv}.a ]] ; then
|
if [[ -e ${ED}/$(alt_usrlibdir)/libm-${upstream_pv}.a ]] ; then
|
||||||
# Move versioned .a file out of libdir to evade portage QA checks
|
# Move versioned .a file out of libdir to evade portage QA checks
|
||||||
@ -1392,7 +1389,7 @@ glibc_do_src_install() {
|
|||||||
sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd
|
sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd
|
||||||
|
|
||||||
use systemd && systemd_dounit nscd/nscd.service
|
use systemd && systemd_dounit nscd/nscd.service
|
||||||
systemd_newtmpfilesd nscd/nscd.tmpfiles nscd.conf
|
newtmpfiles nscd/nscd.tmpfiles nscd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc
|
echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc
|
||||||
@ -1412,23 +1409,6 @@ glibc_do_src_install() {
|
|||||||
run_locale_gen --inplace-glibc "${ED}/"
|
run_locale_gen --inplace-glibc "${ED}/"
|
||||||
sed -e 's:COMPILED_LOCALES="":COMPILED_LOCALES="1":' -i "${ED}"/usr/sbin/locale-gen || die
|
sed -e 's:COMPILED_LOCALES="":COMPILED_LOCALES="1":' -i "${ED}"/usr/sbin/locale-gen || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Flatcar Container Linux: Add some local changes:
|
|
||||||
# - Config files are installed by baselayout, not glibc.
|
|
||||||
# - Install nscd/systemd stuff in /usr.
|
|
||||||
|
|
||||||
# Use tmpfiles to put nscd.conf in /etc and create directories.
|
|
||||||
insinto /usr/share/baselayout
|
|
||||||
if ! in_iuse nscd || use nscd ; then
|
|
||||||
doins "${S}"/nscd/nscd.conf || die
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}"/nscd-conf.tmpfiles nscd-conf.conf || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clean out any default configs.
|
|
||||||
rm -rf "${ED}"/etc
|
|
||||||
|
|
||||||
# Restore this one for the SDK.
|
|
||||||
test ! -e "${T}"/00glibc || doenvd "${T}"/00glibc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
glibc_headers_install() {
|
glibc_headers_install() {
|
Loading…
Reference in New Issue
Block a user