| 12 |
12 |
EMULTILIB_PKG="true"
|
| 13 |
13 |
|
| 14 |
14 |
# Gentoo patchset (ignored for live ebuilds)
|
| 15 |
|
PATCH_VER=3
|
| 16 |
|
PATCH_DEV=dilfridge
|
|
15 |
PATCH_VER=1
|
| 17 |
16 |
|
| 18 |
17 |
# gcc mulitilib bootstrap files version
|
| 19 |
18 |
GCC_BOOTSTRAP_VER=20201208
|
| ... | ... | |
| 21 |
20 |
# systemd integration version
|
| 22 |
21 |
GLIBC_SYSTEMD_VER=20210729
|
| 23 |
22 |
|
| 24 |
|
# Minimum kernel version that glibc requires
|
| 25 |
|
MIN_KERN_VER="3.2.0"
|
|
23 |
# Minimum kernel version that glibc requires (used with USE=old-kernel)
|
|
24 |
MIN_KERN_VER_UPSTREAM="3.2.0"
|
|
25 |
|
|
26 |
# Minimum kernel version that Gentoo recommends (oldest in the tree)
|
|
27 |
MIN_KERN_VER_GENTOO="6.1.0"
|
| 26 |
28 |
|
| 27 |
29 |
# Minimum pax-utils version needed (which contains any new syscall changes for
|
| 28 |
30 |
# its seccomp filter!). Please double check this!
|
| ... | ... | |
| 43 |
45 |
if [[ ${PV} == *9999 ]]; then
|
| 44 |
46 |
inherit git-r3
|
| 45 |
47 |
else
|
| 46 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
48 |
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
| 47 |
49 |
SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
|
| 48 |
50 |
SRC_URI+=" https://distfiles.gentoo.org/pub/proj/toolchain/glibc/patches/${P}-patches-${PATCH_VER}.tar.xz"
|
| 49 |
51 |
SRC_URI+=" verify-sig? ( mirror://gnu/glibc/${P}.tar.xz.sig )"
|
| ... | ... | |
| 54 |
56 |
|
| 55 |
57 |
LICENSE="LGPL-2.1+ BSD HPND ISC inner-net rc PCRE"
|
| 56 |
58 |
SLOT="2.2"
|
| 57 |
|
IUSE="audit caps cet clang compile-locales custom-cflags doc gd hash-sysv-compat headers-only +multiarch multilib multilib-bootstrap nscd perl profile selinux sframe +ssp stack-realign +static-libs suid systemd systemtap test vanilla"
|
|
59 |
IUSE="audit caps cet clang compile-locales custom-cflags doc gd hash-sysv-compat headers-only +multiarch multilib multilib-bootstrap nscd old-kernel perl profile selinux sframe +ssp stack-realign +static-libs suid systemd systemtap test vanilla"
|
| 58 |
60 |
|
| 59 |
61 |
# Here's how the cross-compile logic breaks down ...
|
| 60 |
62 |
# CTARGET - machine that will target the binaries
|
| ... | ... | |
| 924 |
926 |
die "Found directory (${ESYSROOT}/usr/lib/include) which will break build (bug #833620)!"
|
| 925 |
927 |
fi
|
| 926 |
928 |
|
| 927 |
|
if [[ ${CTARGET} == *-linux* ]] ; then
|
|
929 |
if is_linux ; then
|
|
930 |
if use old-kernel ; then
|
|
931 |
MIN_KERN_VER=${MIN_KERN_VER_UPSTREAM}
|
|
932 |
else
|
|
933 |
MIN_KERN_VER=${MIN_KERN_VER_GENTOO}
|
|
934 |
fi
|
|
935 |
|
| 928 |
936 |
local run_kv build_kv want_kv
|
| 929 |
937 |
|
| 930 |
938 |
run_kv=$(g_get_running_KV)
|
| ... | ... | |
| 938 |
946 |
eend 1
|
| 939 |
947 |
echo
|
| 940 |
948 |
eerror "You need a kernel of at least ${want_kv}!"
|
| 941 |
|
die "Kernel version too low!"
|
|
949 |
die "Kernel version too low! Maybe setting USE=old-kernel helps."
|
| 942 |
950 |
fi
|
| 943 |
951 |
eend 0
|
| 944 |
952 |
fi
|
| ... | ... | |
| 1109 |
1117 |
|
| 1110 |
1118 |
[[ $(tc-is-softfloat) == "yes" ]] && myconf+=( --without-fp )
|
| 1111 |
1119 |
|
|
1120 |
if use old-kernel ; then
|
|
1121 |
MIN_KERN_VER=${MIN_KERN_VER_UPSTREAM}
|
|
1122 |
else
|
|
1123 |
MIN_KERN_VER=${MIN_KERN_VER_GENTOO}
|
|
1124 |
fi
|
| 1112 |
1125 |
myconf+=( --enable-kernel=${MIN_KERN_VER} )
|
| 1113 |
1126 |
|
| 1114 |
1127 |
# Since SELinux support is only required for nscd, only enable it if:
|
| ... | ... | |
| 1617 |
1630 |
|
| 1618 |
1631 |
if is_hurd && has amd64 $(get_install_abis) ; then
|
| 1619 |
1632 |
# First, let's check for sanity
|
| 1620 |
|
if [[ -f "${D}$(alt_prefix)/lib/ld-x86-64.so.1" ]] ; then
|
|
1633 |
if [[ -f "${D}/$(alt_prefix)/lib/ld-x86-64.so.1" ]] ; then
|
| 1621 |
1634 |
die "Somehow your amd64 hurd glibc installed /lib/ld-x86-64.so.1 ... this should not happen."
|
| 1622 |
1635 |
fi
|
| 1623 |
1636 |
|
| ... | ... | |
| 1627 |
1640 |
|
| 1628 |
1641 |
if is_hurd && has x86 $(get_install_abis) ; then
|
| 1629 |
1642 |
# First, let's check for sanity
|
| 1630 |
|
if [[ -f "${D}$(alt_prefix)/$(get_abi_LIBDIR x86)/ld.so" ]] ; then
|
|
1643 |
if [[ -f "${D}/$(alt_prefix)/$(get_abi_LIBDIR x86)/ld.so" ]] ; then
|
| 1631 |
1644 |
die "Somehow your x86 hurd glibc installed ld.so ... this should not happen."
|
| 1632 |
1645 |
fi
|
| 1633 |
1646 |
|