Disabling dietlibc usage for devfsd and modutils; dietlibc updated to a new
authorTim Yamin <plasmaroo@gentoo.org>
Sun, 19 Sep 2004 09:11:07 +0000 (09:11 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Sun, 19 Sep 2004 09:11:07 +0000 (09:11 +0000)
Hardened-aware version. Bug #60862.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@132 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh
genkernel
genkernel.conf
pkg/devfsd-1.3.25-dietlibc-kernel25.tar.bz2
pkg/dietlibc-0.24.tar.bz2 [deleted file]
pkg/dietlibc-0.26.tar.bz2 [new file with mode: 0644]

index 9d87a2ae0584c5141f7fe7ef8873419a6b627c31..61a73559a373c0b33316414c8a944c3da64f708f 100644 (file)
@@ -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!'
index ee6c5c88039014861d0a0c70592fe4bd30beecc4..147097634b24b0120f663b8164ff1c2b64ffa362 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -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.
 
index d568b2265b59f872301e75381e95da99d65f085f..25dc0376e40965fc7dc678e5c3f0cd5e37b3cddd 100755 (executable)
@@ -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"
index 3d39ed81d363b3047a800fbc9f302626145be8b0..57dac57e3a82877754bb62b6598ff183fc75e6ab 100644 (file)
Binary files a/pkg/devfsd-1.3.25-dietlibc-kernel25.tar.bz2 and b/pkg/devfsd-1.3.25-dietlibc-kernel25.tar.bz2 differ
diff --git a/pkg/dietlibc-0.24.tar.bz2 b/pkg/dietlibc-0.24.tar.bz2
deleted file mode 100644 (file)
index 75f8e1b..0000000
Binary files a/pkg/dietlibc-0.24.tar.bz2 and /dev/null differ
diff --git a/pkg/dietlibc-0.26.tar.bz2 b/pkg/dietlibc-0.26.tar.bz2
new file mode 100644 (file)
index 0000000..204edc0
Binary files /dev/null and b/pkg/dietlibc-0.26.tar.bz2 differ