Disabling dietlibc usage for devfsd and modutils; dietlibc updated to a new

Hardened-aware version. Bug #60862.


git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@132 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Tim Yamin 21 years ago
parent 618c9f1686
commit 285047a600

@ -268,6 +268,9 @@ compile_busybox() {
}
compile_modutils() {
# I've disabled dietlibc support for the time being since the
# version we use misses a few needed system calls.
local ARGS
if [ ! -f "${MODUTILS_BINCACHE}" ]
then
@ -281,12 +284,12 @@ compile_modutils() {
cd "${MODUTILS_DIR}"
print_info 1 "modutils: >> Configuring..."
if [ "${USE_DIETLIBC}" -eq '1' ]
then
extract_dietlibc_bincache
OLD_CC="${UTILS_CC}"
UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
fi
# if [ "${USE_DIETLIBC}" -eq '1' ]
# then
# extract_dietlibc_bincache
# OLD_CC="${UTILS_CC}"
# UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
# fi
export_utils_args
export ARCH=${ARCH}
@ -297,11 +300,11 @@ compile_modutils() {
print_info 1 'modutils: >> Compiling...'
compile_generic all utils
if [ "${USE_DIETLIBC}" -eq '1' ]
then
clean_dietlibc_bincache
UTILS_CC="${OLD_CC}"
fi
# if [ "${USE_DIETLIBC}" -eq '1' ]
# then
# clean_dietlibc_bincache
# UTILS_CC="${OLD_CC}"
# fi
print_info 1 'modutils: >> Copying to cache...'
[ -f "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" ] ||
@ -370,6 +373,9 @@ compile_module_init_tools() {
}
compile_devfsd() {
# I've disabled dietlibc support for the time being since the
# version we use misses a few needed system calls.
local ARGS
if [ ! -f "${DEVFSD_BINCACHE}" ]
then
@ -382,26 +388,26 @@ compile_devfsd() {
gen_die "Devfsd directory ${DEVFSD_DIR} invalid"
cd "${DEVFSD_DIR}"
if [ "${USE_DIETLIBC}" -eq '1' ]
then
extract_dietlibc_bincache
OLD_CC="${UTILS_CC}"
UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
fi
# if [ "${USE_DIETLIBC}" -eq '1' ]
# then
# extract_dietlibc_bincache
# OLD_CC="${UTILS_CC}"
# UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
# fi
print_info 1 'devfsd: >> Compiling...'
if [ "${USE_DIETLIBC}" -eq '1' ]
then
compile_generic 'has_dlopen=0 has_rpcsvc=0' utils
else
# if [ "${USE_DIETLIBC}" -eq '1' ]
# then
# compile_generic 'has_dlopen=0 has_rpcsvc=0' utils
# else
compile_generic 'LDFLAGS=-static' utils
fi
# fi
if [ "${USE_DIETLIBC}" -eq '1' ]
then
clean_dietlibc_bincache
UTILS_CC="${OLD_CC}"
fi
# if [ "${USE_DIETLIBC}" -eq '1' ]
# then
# clean_dietlibc_bincache
# UTILS_CC="${OLD_CC}"
# fi
print_info 1 ' >> Copying to cache...'
[ -f "${TEMP}/${DEVFSD_DIR}/devfsd" ] || gen_die 'The devfsd executable does not exist after the compilation of devfsd!'

@ -1,7 +1,7 @@
#!/bin/bash
# Genkernel v3
GK_V='3.0.2f'
GK_V='3.0.2g'
TEMP='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.

@ -78,7 +78,7 @@ MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2"
MODUTILS_DIR="modutils-${MODUTILS_VER}"
MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2"
DIETLIBC_VER="0.24"
DIETLIBC_VER="0.26"
DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2"
DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}"
DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2"

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save