mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-libs/glibc: improve amd64 multilib message
Closes: https://bugs.gentoo.org/934391 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
@@ -612,7 +612,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if "${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -626,7 +626,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -649,7 +649,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if "${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -663,7 +663,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -666,7 +666,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if "${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -680,7 +680,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -733,7 +733,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if "${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -747,7 +747,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -742,7 +742,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if "${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -756,7 +756,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -761,7 +761,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -775,7 +775,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -792,7 +792,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -806,7 +806,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -801,7 +801,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -815,7 +815,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -812,7 +812,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -826,7 +826,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -837,7 +837,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -851,7 +851,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -837,7 +837,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -851,7 +851,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -830,7 +830,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -844,7 +844,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
@@ -830,7 +830,7 @@ sanity_prechecks() {
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking that IA32 emulation is enabled in the running kernel"
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
local STAT
|
||||
if ${CC-${CHOST}-gcc} ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32"; then
|
||||
@@ -844,7 +844,11 @@ sanity_prechecks() {
|
||||
fi
|
||||
rm -f "${T}/check-ia32-emulation.elf32"
|
||||
eend $STAT
|
||||
[[ $STAT -eq 0 ]] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile a multilib glibc."
|
||||
if [[ $STAT -ne 0 ]]; then
|
||||
eerror "Ensure that CONFIG_IA32_EMULATION is enabled in the kernel."
|
||||
eerror "Seek support otherwise."
|
||||
die "Unable to execute 32-bit binaries"
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user