summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/package.mk2
-rw-r--r--mk/vars.mk5
-rw-r--r--package/cfgfs/Makefile2
-rw-r--r--package/cfgfs/src/fwcf.sh2
-rw-r--r--package/e2fsprogs/Makefile17
-rw-r--r--package/gdbserver/Makefile2
-rw-r--r--package/gdbserver/patches/patch-gdb_gdbserver_linux-cris-low_c11
-rw-r--r--package/krb5/Makefile8
-rw-r--r--package/krb5/files/kadm5.acl1
-rw-r--r--package/krb5/files/kadmind.acl1
-rw-r--r--package/krb5/files/kdc.conf1
-rw-r--r--package/krb5/patches/patch-src_appl_sample_sclient_sclient_c11
-rw-r--r--package/krb5/patches/patch-src_appl_sample_sserver_sserver_c10
-rw-r--r--package/krb5/patches/patch-src_appl_simple_client_sim_client_c10
-rw-r--r--package/krb5/patches/patch-src_appl_simple_server_sim_server_c11
-rw-r--r--package/krb5/patches/patch-src_appl_user_user_client_c10
-rw-r--r--package/krb5/patches/patch-src_appl_user_user_server_c10
-rw-r--r--package/krb5/patches/patch-src_clients_kdestroy_kdestroy_c11
-rw-r--r--package/krb5/patches/patch-src_clients_kinit_kinit_c11
-rw-r--r--package/krb5/patches/patch-src_clients_klist_klist_c11
-rw-r--r--package/krb5/patches/patch-src_clients_ksu_ksu_h10
-rw-r--r--package/krb5/patches/patch-src_clients_kvno_kvno_c11
-rw-r--r--package/krb5/patches/patch-src_include_k5-int_h11
-rw-r--r--package/krb5/patches/patch-src_kadmin_dbutil_dump_c10
-rw-r--r--package/krb5/patches/patch-src_kadmin_dbutil_kdb5_destroy_c10
-rw-r--r--package/krb5/patches/patch-src_kadmin_dbutil_kdb5_stash_c10
-rw-r--r--package/krb5/patches/patch-src_kadmin_ktutil_ktutil_c10
-rw-r--r--package/krb5/patches/patch-src_kdc_do_as_req_c10
-rw-r--r--package/krb5/patches/patch-src_kdc_main_c10
-rw-r--r--package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c11
-rw-r--r--package/krb5/patches/patch-src_lib_gssapi_generic_disp_com_err_status_c11
-rw-r--r--package/krb5/patches/patch-src_lib_gssapi_krb5_disp_status_c11
-rw-r--r--package/krb5/patches/patch-src_lib_kadm5_admin_h11
-rw-r--r--package/krb5/patches/patch-src_lib_kadm5_clnt_client_init_c10
-rw-r--r--package/krb5/patches/patch-src_lib_kadm5_logger_c10
-rw-r--r--package/krb5/patches/patch-src_lib_kadm5_srv_server_init_c10
-rw-r--r--package/krb5/patches/patch-src_lib_kdb_kdb_convert_c11
-rw-r--r--package/krb5/patches/patch-src_lib_krb5_krb5_libinit_c11
-rw-r--r--package/krb5/patches/patch-src_lib_krb5_krb_gic_pwd_c10
-rw-r--r--package/krb5/patches/patch-src_lib_krb5_krb_recvauth_c11
-rw-r--r--package/krb5/patches/patch-src_lib_krb5_krb_sendauth_c11
-rw-r--r--package/krb5/patches/patch-src_plugins_kdb_db2_policy_db_h11
-rw-r--r--package/krb5/patches/patch-src_slave_kprop_c10
-rw-r--r--package/krb5/patches/patch-src_slave_kpropd_c10
-rw-r--r--package/krb5/patches/patch-src_tests_asn_1_krb5_decode_leak_c10
-rw-r--r--package/krb5/patches/patch-src_tests_asn_1_krb5_decode_test_c10
-rw-r--r--package/krb5/patches/patch-src_tests_asn_1_krb5_encode_test_c10
-rw-r--r--package/krb5/patches/patch-src_tests_create_kdb5_mkdums_c10
-rw-r--r--package/krb5/patches/patch-src_tests_dejagnu_t_inetd_c11
-rw-r--r--package/krb5/patches/patch-src_tests_hammer_kdc5_hammer_c10
-rw-r--r--package/krb5/patches/patch-src_tests_verify_kdb5_verify_c10
-rw-r--r--package/krb5/patches/patch-src_util_profile_prof_int_h11
-rw-r--r--package/nasm/Makefile2
-rw-r--r--package/valgrind/Makefile6
-rw-r--r--package/valgrind/patches/patch-auxprogs_valgrind-listener_c29
-rw-r--r--package/valgrind/patches/patch-configure126
-rw-r--r--package/valgrind/patches/patch-coregrind_launcher-linux_c29
-rw-r--r--target/cris/target.mk2
58 files changed, 475 insertions, 199 deletions
diff --git a/mk/package.mk b/mk/package.mk
index 6565bad18..d572e67b0 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -15,6 +15,7 @@ endif
endif
CONFIGURE_ENV+= GCC_HONOUR_COPTS=s \
+ PATH='${TARGET_PATH}' \
CONFIG_SHELL='$(strip ${SHELL})' \
CFLAGS='$(strip ${TARGET_CFLAGS})' \
CXXFLAGS='$(strip ${TARGET_CXXFLAGS})' \
@@ -42,6 +43,7 @@ ALL_TARGET?= all
INSTALL_TARGET?= install
MAKE_ENV+= GCC_HONOUR_COPTS=2 \
+ PATH='${TARGET_PATH}' \
WRKDIR='${WRKDIR}' WRKDIST='${WRKDIST}' \
WRKSRC='${WRKSRC}' WRKBUILD='${WRKBUILD}' \
CFLAGS='$(strip ${TARGET_CFLAGS})' \
diff --git a/mk/vars.mk b/mk/vars.mk
index e50710f7d..909e75d11 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -81,9 +81,9 @@ TARGET_LDFLAGS+= -flto
endif
ifneq ($(ADK_DEBUG),)
-TARGET_CPPFLAGS+= -DNDEBUG
TARGET_CFLAGS+= -g3 -fno-omit-frame-pointer
else
+TARGET_CPPFLAGS+= -DNDEBUG
TARGET_CFLAGS+= -fomit-frame-pointer $(TARGET_OPTIMIZATION)
endif
@@ -97,7 +97,7 @@ CF_FOR_BUILD=$(call check_gcc,-fhonour-copts,)
# host compiler flags
CPPFLAGS_FOR_BUILD?=
-CFLAGS_FOR_BUILD= -O2 -Wall $(CF_FOR_BUILD)
+CFLAGS_FOR_BUILD= -O2 -Wall $(CF_FOR_BUILD)
CXXFLAGS_FOR_BUILD?= -O2 -Wall
LDFLAGS_FOR_BUILD?=
FLAGS_FOR_BUILD= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD}
@@ -111,7 +111,6 @@ KERNEL_MODULE_FLAGS:= ARCH=${ARCH} KERNELVERSION="2.6" \
PREFIX=/usr CROSS_COMPILE="${TARGET_CROSS}" \
LDFLAGS="" CFLAGS_MODULE="-fhonour-copts" V=1
-
TARGET_CONFIGURE_OPTS= PATH='${TARGET_PATH}' \
AR='$(TARGET_CROSS)ar' \
AS='$(TARGET_CROSS)as' \
diff --git a/package/cfgfs/Makefile b/package/cfgfs/Makefile
index 2d824e1bb..57f394c0d 100644
--- a/package/cfgfs/Makefile
+++ b/package/cfgfs/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cfgfs
PKG_VERSION:= 1.0.8
-PKG_RELEASE:= 5
+PKG_RELEASE:= 6
PKG_DESCR:= compressed config filesystem
PKG_SECTION:= base
PKG_URL:= http://openadk.org/
diff --git a/package/cfgfs/src/fwcf.sh b/package/cfgfs/src/fwcf.sh
index ddcbfcc50..b37da0bcd 100644
--- a/package/cfgfs/src/fwcf.sh
+++ b/package/cfgfs/src/fwcf.sh
@@ -257,7 +257,6 @@ if test $1 = commit; then
cfgfs.helper -Z - /tmp/.cfgfs/status.asz
cd /tmp/.cfgfs/root
rm -f /tmp/.cfgfs/temp/.cfgfs_* /tmp/.cfgfs/temp/.rnd
- find /tmp/.cfgfs/temp -type d -empty -delete
find . -type f | while read f; do
f=${f#./}
if [[ ! -e /tmp/.cfgfs/temp/$f ]]; then
@@ -269,6 +268,7 @@ if test $1 = commit; then
y=$(cd ../temp; md5sum "$f" 2>/dev/null)
[[ "$x" = "$y" ]] && rm "../temp/$f"
done
+ find /tmp/.cfgfs/temp -type d -empty -delete
rv=0
if [ $mtd -eq 1 ]; then
if ! ( cfgfs.helper -M /tmp/.cfgfs/temp | eval $mtdtool -F write - cfgfs ); then
diff --git a/package/e2fsprogs/Makefile b/package/e2fsprogs/Makefile
index 211256a57..d0d2d1bc1 100644
--- a/package/e2fsprogs/Makefile
+++ b/package/e2fsprogs/Makefile
@@ -16,12 +16,17 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
PKG_CFLINE_E2FSPROGS:= default y if ADK_TARGET_ROOTFS_CF
PKG_SUBPKGS:= E2FSPROGS LIBUUID LIBCOM_ERR LIBSS LIBBLKID E2FSCK_STATIC
+PKG_SUBPKGS+= LIBCOM_ERR_DEV LIBSS_DEV
PKGSD_LIBUUID:= UUID library
PKGSC_LIBUUID:= libs
PKGSD_LIBCOM_ERR:= Common error library
PKGSC_LIBCOM_ERR:= libs
+PKGSD_LIBCOM_ERR_DEV:= Common error headers
+PKGSC_LIBCOM_ERR_DEV:= devel
PKGSD_LIBSS:= Subsystem command parsing library
PKGSC_LIBSS:= libs
+PKGSD_LIBSS_DEV:= Subsystem command parsing headers
+PKGSC_LIBSS_DEV:= devel
PKGSD_LIBBLKID:= Libblkid
PKGSC_LIBBLKID:= libs
PKGSD_E2FSCK_STATIC:= Static build of e2fsck
@@ -32,7 +37,9 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBUUID},${PKGSC_LIBUUID}))
$(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBCOM_ERR},${PKGSC_LIBCOM_ERR}))
+$(eval $(call PKG_template,LIBCOM_ERR_DEV,libcom-err-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBCOM_ERR_DEV},${PKGSC_LIBCOM_ERR_DEV}))
$(eval $(call PKG_template,LIBSS,libss,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBSS},${PKGSC_LIBSS}))
+$(eval $(call PKG_template,LIBSS_DEV,libss-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBSS_DEV},${PKGSC_LIBSS_DEV}))
$(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
$(eval $(call PKG_template,E2FSCK_STATIC,e2fsck-static,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_E2FSCK_STATIC},${PKGSC_E2FSCK_STATIC}))
@@ -71,11 +78,21 @@ libcom-err-install:
${IDIR_LIBCOM_ERR}/usr/lib/
${CP} ${WRKINST}/usr/bin/compile_et ${STAGING_HOST_DIR}/bin
+libcom-err-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBCOM_ERR_DEV}/usr/include/et
+ ${CP} ${WRKINST}/usr/include/et/com_err.h \
+ ${IDIR_LIBCOM_ERR_DEV}/usr/include/et
+
libss-install:
${INSTALL_DIR} ${IDIR_LIBSS}/usr/lib
${CP} ${WRKINST}/usr/lib/libss.so* \
${IDIR_LIBSS}/usr/lib/
+libss-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBSS_DEV}/usr/include/ss
+ ${CP} ${WRKINST}/usr/include/ss/ss*.h \
+ ${IDIR_LIBSS_DEV}/usr/include/ss
+
libuuid-install:
${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
${CP} ${WRKINST}/usr/lib/libuuid.so* \
diff --git a/package/gdbserver/Makefile b/package/gdbserver/Makefile
index e57cc44f2..e13e4ec53 100644
--- a/package/gdbserver/Makefile
+++ b/package/gdbserver/Makefile
@@ -9,8 +9,6 @@ PKG_SECTION:= debug
PKG_DEPENDS:= libthread-db
PKG_SUBPKGS:= GDBSERVER
-PKG_ARCH_DEPENDS:= !cris
-
WRKSRC= ${WRKDIST}/gdb/gdbserver
include ${TOPDIR}/mk/package.mk
diff --git a/package/gdbserver/patches/patch-gdb_gdbserver_linux-cris-low_c b/package/gdbserver/patches/patch-gdb_gdbserver_linux-cris-low_c
new file mode 100644
index 000000000..e500d6642
--- /dev/null
+++ b/package/gdbserver/patches/patch-gdb_gdbserver_linux-cris-low_c
@@ -0,0 +1,11 @@
+--- gdb-7.1.orig/gdb/gdbserver/linux-cris-low.c
++++ gdb-7.1/gdb/gdbserver/linux-cris-low.c
+@@ -62,7 +62,7 @@
+ extern int debug_threads;
+
+ static CORE_ADDR
+-cris_get_pc (struct regcache *regcache, void)
++cris_get_pc (struct regcache *regcache)
+ {
+ unsigned long pc;
+ collect_register_by_name (regcache, "pc", &pc);
diff --git a/package/krb5/Makefile b/package/krb5/Makefile
index 2ed4be6de..783a63870 100644
--- a/package/krb5/Makefile
+++ b/package/krb5/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= krb5
PKG_VERSION:= 1.9
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 220c3dbb05a1bae1e6ad0bec4a6ac331
PKG_DESCR:= MIT kerberos server
PKG_SECTION:= crypto
@@ -25,13 +25,16 @@ PKGSS_KRB5_CLIENT:= libkrb5 libncurses libss libcom-err
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-signed.tar
WRKSRC= ${WRKDIST}/src
+ifeq ($(ADK_NATIVE),y)
+NM:=nm
+endif
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,KRB5_SERVER,krb5-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,KRB5_CLIENT,krb5-client,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_KRB5_CLIENT},${PKGSD_KRB5_CLIENT},${PKGSC_KRB5_CLIENT}))
$(eval $(call PKG_template,LIBKRB5,libkrb5,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBKRB5},${PKGSC_LIBKRB5}))
-TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/et
CONFIGURE_ARGS+= --disable-static \
--disable-profiled \
--with-system-ss \
@@ -55,6 +58,7 @@ krb5-server-install:
${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/sbin
${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
${INSTALL_DATA} ./files/kdc.conf ${IDIR_KRB5_SERVER}/etc/krb5kdc
+ ${INSTALL_DATA} ./files/kadm5.acl ${IDIR_KRB5_SERVER}/etc/krb5kdc
${INSTALL_BIN} ${WRKINST}/usr/bin/{ktutil,kadmin} \
${IDIR_KRB5_SERVER}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/{kdb5_util,krb5kdc,kadmind,kadmin.local} \
diff --git a/package/krb5/files/kadm5.acl b/package/krb5/files/kadm5.acl
new file mode 100644
index 000000000..a6d0368ea
--- /dev/null
+++ b/package/krb5/files/kadm5.acl
@@ -0,0 +1 @@
+*/admin@MY.REALM *
diff --git a/package/krb5/files/kadmind.acl b/package/krb5/files/kadmind.acl
deleted file mode 100644
index e5da87fb5..000000000
--- a/package/krb5/files/kadmind.acl
+++ /dev/null
@@ -1 +0,0 @@
-#principal [priv1,priv2,...] [glob-pattern]
diff --git a/package/krb5/files/kdc.conf b/package/krb5/files/kdc.conf
index a27228694..4044051e2 100644
--- a/package/krb5/files/kdc.conf
+++ b/package/krb5/files/kdc.conf
@@ -3,6 +3,7 @@
[realms]
MY.REALM = {
+ acl_file = /etc/krb5kdc/kadm5.acl
kdc_ports = 750,88
max_life = 10h 0m 0s
max_renewable_life = 7d 0h 0m 0s
diff --git a/package/krb5/patches/patch-src_appl_sample_sclient_sclient_c b/package/krb5/patches/patch-src_appl_sample_sclient_sclient_c
new file mode 100644
index 000000000..034e80bcc
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_sample_sclient_sclient_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/appl/sample/sclient/sclient.c 2009-11-24 18:46:45.000000000 +0100
++++ krb5-1.9/src/appl/sample/sclient/sclient.c 2011-01-31 14:42:12.000000000 +0100
+@@ -31,7 +31,7 @@
+ */
+
+ #include "krb5.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+
+ #include <stdio.h>
+ #include <string.h>
diff --git a/package/krb5/patches/patch-src_appl_sample_sserver_sserver_c b/package/krb5/patches/patch-src_appl_sample_sserver_sserver_c
new file mode 100644
index 000000000..bcfe38acf
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_sample_sserver_sserver_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/appl/sample/sserver/sserver.c 2009-11-24 18:46:45.000000000 +0100
++++ krb5-1.9/src/appl/sample/sserver/sserver.c 2011-01-31 14:42:29.000000000 +0100
+@@ -39,7 +39,6 @@
+ */
+
+ #include "k5-int.h"
+-#include "com_err.h"
+
+ #include <stdio.h>
+ #include <string.h>
diff --git a/package/krb5/patches/patch-src_appl_simple_client_sim_client_c b/package/krb5/patches/patch-src_appl_simple_client_sim_client_c
new file mode 100644
index 000000000..03cbd6890
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_simple_client_sim_client_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/appl/simple/client/sim_client.c 2009-11-24 18:46:45.000000000 +0100
++++ krb5-1.9/src/appl/simple/client/sim_client.c 2011-01-31 14:49:49.000000000 +0100
+@@ -39,7 +39,6 @@
+ #include <errno.h>
+
+ #include <k5-int.h>
+-#include "com_err.h"
+
+ #include "simple.h"
+
diff --git a/package/krb5/patches/patch-src_appl_simple_server_sim_server_c b/package/krb5/patches/patch-src_appl_simple_server_sim_server_c
new file mode 100644
index 000000000..76f6f7e35
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_simple_server_sim_server_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/appl/simple/server/sim_server.c 2010-04-24 21:24:36.000000000 +0200
++++ krb5-1.9/src/appl/simple/server/sim_server.c 2011-01-31 14:56:28.000000000 +0100
+@@ -42,7 +42,7 @@
+ #include <netinet/in.h>
+ #include <netdb.h>
+
+-#include "com_err.h"
++#include <et/com_err.h>
+
+ #include "simple.h"
+
diff --git a/package/krb5/patches/patch-src_appl_user_user_client_c b/package/krb5/patches/patch-src_appl_user_user_client_c
new file mode 100644
index 000000000..61fd8b156
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_user_user_client_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/appl/user_user/client.c 2009-11-24 18:46:45.000000000 +0100
++++ krb5-1.9/src/appl/user_user/client.c 2011-01-31 15:04:15.000000000 +0100
+@@ -38,7 +38,6 @@
+ #include <errno.h>
+
+ #include "k5-int.h"
+-#include "com_err.h"
+
+ int main (int argc, char *argv[])
+ {
diff --git a/package/krb5/patches/patch-src_appl_user_user_server_c b/package/krb5/patches/patch-src_appl_user_user_server_c
new file mode 100644
index 000000000..314804002
--- /dev/null
+++ b/package/krb5/patches/patch-src_appl_user_user_server_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/appl/user_user/server.c 2009-11-24 18:46:45.000000000 +0100
++++ krb5-1.9/src/appl/user_user/server.c 2011-01-31 15:04:26.000000000 +0100
+@@ -41,7 +41,6 @@
+
+ #include "port-sockets.h"
+ #include "k5-int.h"
+-#include "com_err.h"
+
+ /* fd 0 is a tcp socket used to talk to the client */
+
diff --git a/package/krb5/patches/patch-src_clients_kdestroy_kdestroy_c b/package/krb5/patches/patch-src_clients_kdestroy_kdestroy_c
new file mode 100644
index 000000000..fd0f19712
--- /dev/null
+++ b/package/krb5/patches/patch-src_clients_kdestroy_kdestroy_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/clients/kdestroy/kdestroy.c 2009-11-03 04:27:56.000000000 +0100
++++ krb5-1.9/src/clients/kdestroy/kdestroy.c 2011-01-31 14:22:03.000000000 +0100
+@@ -30,7 +30,7 @@
+
+ #include "autoconf.h"
+ #include <krb5.h>
+-#include <com_err.h>
++#include <et/com_err.h>
+ #include <string.h>
+ #include <stdio.h>
+ #ifdef HAVE_UNISTD_H
diff --git a/package/krb5/patches/patch-src_clients_kinit_kinit_c b/package/krb5/patches/patch-src_clients_kinit_kinit_c
new file mode 100644
index 000000000..4517cd7e1
--- /dev/null
+++ b/package/krb5/patches/patch-src_clients_kinit_kinit_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/clients/kinit/kinit.c 2010-12-03 01:05:44.000000000 +0100
++++ krb5-1.9/src/clients/kinit/kinit.c 2011-01-31 14:03:02.000000000 +0100
+@@ -36,7 +36,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <errno.h>
+-#include <com_err.h>
++#include <et/com_err.h>
+
+ #ifdef GETOPT_LONG
+ #include <getopt.h>
diff --git a/package/krb5/patches/patch-src_clients_klist_klist_c b/package/krb5/patches/patch-src_clients_klist_klist_c
new file mode 100644
index 000000000..274f87972
--- /dev/null
+++ b/package/krb5/patches/patch-src_clients_klist_klist_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/clients/klist/klist.c 2010-12-03 01:05:44.000000000 +0100
++++ krb5-1.9/src/clients/klist/klist.c 2011-01-31 13:56:44.000000000 +0100
+@@ -30,7 +30,7 @@
+
+ #include "autoconf.h"
+ #include <krb5.h>
+-#include <com_err.h>
++#include <et/com_err.h>
+ #include <stdlib.h>
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
diff --git a/package/krb5/patches/patch-src_clients_ksu_ksu_h b/package/krb5/patches/patch-src_clients_ksu_ksu_h
new file mode 100644
index 000000000..164f53750
--- /dev/null
+++ b/package/krb5/patches/patch-src_clients_ksu_ksu_h
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/clients/ksu/ksu.h 2009-10-31 01:48:38.000000000 +0100
++++ krb5-1.9/src/clients/ksu/ksu.h 2011-01-31 14:28:47.000000000 +0100
+@@ -29,7 +29,6 @@
+ #include "k5-int.h"
+ #include "k5-util.h"
+ #include <stdio.h>
+-#include "com_err.h"
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <pwd.h>
diff --git a/package/krb5/patches/patch-src_clients_kvno_kvno_c b/package/krb5/patches/patch-src_clients_kvno_kvno_c
new file mode 100644
index 000000000..23bdbe6e3
--- /dev/null
+++ b/package/krb5/patches/patch-src_clients_kvno_kvno_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/clients/kvno/kvno.c 2009-10-31 01:48:38.000000000 +0100
++++ krb5-1.9/src/clients/kvno/kvno.c 2011-01-31 14:35:33.000000000 +0100
+@@ -53,7 +53,7 @@ static void do_v5_kvno (int argc, char *
+ char *sname, int canon, int unknown,
+ char *for_user, int proxy);
+
+-#include <com_err.h>
++#include <et/com_err.h>
+ static void extended_com_err_fn (const char *, errcode_t, const char *,
+ va_list);
+
diff --git a/package/krb5/patches/patch-src_include_k5-int_h b/package/krb5/patches/patch-src_include_k5-int_h
new file mode 100644
index 000000000..dfc1eb832
--- /dev/null
+++ b/package/krb5/patches/patch-src_include_k5-int_h
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/include/k5-int.h 2010-12-03 01:05:44.000000000 +0100
++++ krb5-1.9/src/include/k5-int.h 2011-01-30 22:39:25.000000000 +0100
+@@ -1345,7 +1345,7 @@ void KRB5_CALLCONV krb5_free_iakerb_fini
+ krb5_iakerb_finished *);
+
+ /* #include "krb5/wordsize.h" -- comes in through base-defs.h. */
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include "k5-plugin.h"
+
+ #include <krb5/authdata_plugin.h>
diff --git a/package/krb5/patches/patch-src_kadmin_dbutil_dump_c b/package/krb5/patches/patch-src_kadmin_dbutil_dump_c
new file mode 100644
index 000000000..37cd8b43d
--- /dev/null
+++ b/package/krb5/patches/patch-src_kadmin_dbutil_dump_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kadmin/dbutil/dump.c 2010-07-06 23:53:23.000000000 +0200
++++ krb5-1.9/src/kadmin/dbutil/dump.c 2011-01-31 13:32:19.000000000 +0100
+@@ -37,7 +37,6 @@
+ #include <kadm5/admin.h>
+ #include <kadm5/server_internal.h>
+ #include <kdb.h>
+-#include <com_err.h>
+ #include "kdb5_util.h"
+ #if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)
+ #include <regex.h>
diff --git a/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_destroy_c b/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_destroy_c
new file mode 100644
index 000000000..2aaebb5dd
--- /dev/null
+++ b/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_destroy_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kadmin/dbutil/kdb5_destroy.c 2009-11-03 04:27:56.000000000 +0100
++++ krb5-1.9/src/kadmin/dbutil/kdb5_destroy.c 2011-01-31 13:18:24.000000000 +0100
+@@ -32,7 +32,6 @@
+
+ #include "k5-int.h"
+ #include <stdio.h>
+-#include "com_err.h"
+ #include <kadm5/admin.h>
+ #include <kdb.h>
+ #include "kdb5_util.h"
diff --git a/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_stash_c b/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_stash_c
new file mode 100644
index 000000000..bca55f9ce
--- /dev/null
+++ b/package/krb5/patches/patch-src_kadmin_dbutil_kdb5_stash_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kadmin/dbutil/kdb5_stash.c 2010-06-22 15:09:58.000000000 +0200
++++ krb5-1.9/src/kadmin/dbutil/kdb5_stash.c 2011-01-31 13:26:20.000000000 +0100
+@@ -55,7 +55,6 @@
+ */
+
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include <kadm5/admin.h>
+ #include <stdio.h>
+ #include "kdb5_util.h"
diff --git a/package/krb5/patches/patch-src_kadmin_ktutil_ktutil_c b/package/krb5/patches/patch-src_kadmin_ktutil_ktutil_c
new file mode 100644
index 000000000..cad21e871
--- /dev/null
+++ b/package/krb5/patches/patch-src_kadmin_ktutil_ktutil_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kadmin/ktutil/ktutil.c 2010-06-08 19:53:19.000000000 +0200
++++ krb5-1.9/src/kadmin/ktutil/ktutil.c 2011-01-31 13:38:18.000000000 +0100
+@@ -29,7 +29,6 @@
+
+ #include "k5-int.h"
+ #include "ktutil.h"
+-#include <com_err.h>
+ #include "adm_proto.h"
+ #include <ss/ss.h>
+ #include <stdio.h>
diff --git a/package/krb5/patches/patch-src_kdc_do_as_req_c b/package/krb5/patches/patch-src_kdc_do_as_req_c
new file mode 100644
index 000000000..de4b83147
--- /dev/null
+++ b/package/krb5/patches/patch-src_kdc_do_as_req_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kdc/do_as_req.c 2010-10-01 19:12:41.000000000 +0200
++++ krb5-1.9/src/kdc/do_as_req.c 2011-01-31 13:06:33.000000000 +0100
+@@ -57,7 +57,6 @@
+ */
+
+ #include "k5-int.h"
+-#include "com_err.h"
+
+ #include <syslog.h>
+ #ifdef HAVE_NETINET_IN_H
diff --git a/package/krb5/patches/patch-src_kdc_main_c b/package/krb5/patches/patch-src_kdc_main_c
new file mode 100644
index 000000000..433249448
--- /dev/null
+++ b/package/krb5/patches/patch-src_kdc_main_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/kdc/main.c 2010-12-01 22:37:25.000000000 +0100
++++ krb5-1.9/src/kdc/main.c 2011-01-31 13:12:23.000000000 +0100
+@@ -64,7 +64,6 @@
+ #include <sys/wait.h>
+
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include "adm.h"
+ #include "adm_proto.h"
+ #include "kdc_util.h"
diff --git a/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c b/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c
new file mode 100644
index 000000000..e7686248f
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/crypto/krb/prng/prng.c 2010-10-05 05:18:22.000000000 +0200
++++ krb5-1.9/src/lib/crypto/krb/prng/prng.c 2011-01-30 22:37:36.000000000 +0100
+@@ -168,7 +168,7 @@ krb5_c_random_os_entropy(krb5_context co
+ we have both /dev/random and /dev/urandom. We want the strong
+ data included in the reseed so we get it first.*/
+ if (strong) {
+- if (read_entropy_from_device(context, "/dev/random"))
++ if (read_entropy_from_device(context, "/dev/urandom"))
+ *oursuccess = 1;
+ }
+ if (read_entropy_from_device(context, "/dev/urandom"))
diff --git a/package/krb5/patches/patch-src_lib_gssapi_generic_disp_com_err_status_c b/package/krb5/patches/patch-src_lib_gssapi_generic_disp_com_err_status_c
new file mode 100644
index 000000000..7fae48bc4
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_gssapi_generic_disp_com_err_status_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/gssapi/generic/disp_com_err_status.c 2009-12-08 01:04:48.000000000 +0100
++++ krb5-1.9/src/lib/gssapi/generic/disp_com_err_status.c 2011-01-30 23:14:27.000000000 +0100
+@@ -26,7 +26,7 @@
+ */
+
+ #include "gssapiP_generic.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+
+ /* XXXX internationalization!! */
+
diff --git a/package/krb5/patches/patch-src_lib_gssapi_krb5_disp_status_c b/package/krb5/patches/patch-src_lib_gssapi_krb5_disp_status_c
new file mode 100644
index 000000000..e26d8ee34
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_gssapi_krb5_disp_status_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/gssapi/krb5/disp_status.c 2009-12-08 01:04:48.000000000 +0100
++++ krb5-1.9/src/lib/gssapi/krb5/disp_status.c 2011-01-30 23:18:34.000000000 +0100
+@@ -22,7 +22,7 @@
+ */
+
+ #include "gssapiP_krb5.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+
+ /* XXXX internationalization!! */
+
diff --git a/package/krb5/patches/patch-src_lib_kadm5_admin_h b/package/krb5/patches/patch-src_lib_kadm5_admin_h
new file mode 100644
index 000000000..0fcb38b2c
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_kadm5_admin_h
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/kadm5/admin.h 2010-12-01 22:37:25.000000000 +0100
++++ krb5-1.9/src/lib/kadm5/admin.h 2011-01-30 23:29:11.000000000 +0100
+@@ -47,7 +47,7 @@
+ #include <gssrpc/rpc.h>
+ #include <krb5.h>
+ #include <kdb.h>
+-#include <com_err.h>
++#include <et/com_err.h>
+ #include <kadm5/kadm_err.h>
+ #include <kadm5/chpass_util_strings.h>
+
diff --git a/package/krb5/patches/patch-src_lib_kadm5_clnt_client_init_c b/package/krb5/patches/patch-src_lib_kadm5_clnt_client_init_c
new file mode 100644
index 000000000..03de1b7de
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_kadm5_clnt_client_init_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/lib/kadm5/clnt/client_init.c 2010-07-09 01:51:24.000000000 +0200
++++ krb5-1.9/src/lib/kadm5/clnt/client_init.c 2011-01-31 12:41:38.000000000 +0100
+@@ -36,7 +36,6 @@
+ #include <memory.h>
+ #endif
+ #include <string.h>
+-#include <com_err.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
diff --git a/package/krb5/patches/patch-src_lib_kadm5_logger_c b/package/krb5/patches/patch-src_lib_kadm5_logger_c
new file mode 100644
index 000000000..ccaa44792
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_kadm5_logger_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/lib/kadm5/logger.c 2010-03-10 21:45:12.000000000 +0100
++++ krb5-1.9/src/lib/kadm5/logger.c 2011-01-31 12:34:25.000000000 +0100
+@@ -34,7 +34,6 @@
+ */
+ #include "k5-int.h"
+ #include "adm_proto.h"
+-#include "com_err.h"
+ #include <stdio.h>
+ #include <ctype.h>
+ #ifdef HAVE_SYSLOG_H
diff --git a/package/krb5/patches/patch-src_lib_kadm5_srv_server_init_c b/package/krb5/patches/patch-src_lib_kadm5_srv_server_init_c
new file mode 100644
index 000000000..518d5b92f
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_kadm5_srv_server_init_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/lib/kadm5/srv/server_init.c 2010-09-29 23:29:14.000000000 +0200
++++ krb5-1.9/src/lib/kadm5/srv/server_init.c 2011-01-31 12:47:29.000000000 +0100
+@@ -17,7 +17,6 @@ static char *rcsid = "$Header$";
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
+-#include <com_err.h>
+ #include "k5-int.h" /* needed for gssapiP_krb5.h */
+ #include <kadm5/admin.h>
+ #include <krb5.h>
diff --git a/package/krb5/patches/patch-src_lib_kdb_kdb_convert_c b/package/krb5/patches/patch-src_lib_kdb_kdb_convert_c
new file mode 100644
index 000000000..7c156955d
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_kdb_kdb_convert_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/kdb/kdb_convert.c 2010-07-06 23:53:23.000000000 +0200
++++ krb5-1.9/src/lib/kdb/kdb_convert.c 2011-01-30 23:23:52.000000000 +0100
+@@ -11,7 +11,7 @@
+ * struct(s) into krb5_db_entry struct(s) and vice-versa.
+ */
+ #include <sys/types.h>
+-#include <com_err.h>
++#include <et/com_err.h>
+ #include <locale.h>
+ #include <errno.h>
+ #include <iprop_hdr.h>
diff --git a/package/krb5/patches/patch-src_lib_krb5_krb5_libinit_c b/package/krb5/patches/patch-src_lib_krb5_krb5_libinit_c
new file mode 100644
index 000000000..30f9e9e3a
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_krb5_krb5_libinit_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/krb5/krb5_libinit.c 2010-09-29 23:38:26.000000000 +0200
++++ krb5-1.9/src/lib/krb5/krb5_libinit.c 2011-01-30 23:10:08.000000000 +0100
+@@ -2,7 +2,7 @@
+ #include <assert.h>
+
+ #include "autoconf.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include "k5-int.h"
+
+ #if defined(_WIN32) || defined(USE_CCAPI)
diff --git a/package/krb5/patches/patch-src_lib_krb5_krb_gic_pwd_c b/package/krb5/patches/patch-src_lib_krb5_krb_gic_pwd_c
new file mode 100644
index 000000000..4ff2408cf
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_krb5_krb_gic_pwd_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/lib/krb5/krb/gic_pwd.c 2010-12-01 03:16:37.000000000 +0100
++++ krb5-1.9/src/lib/krb5/krb/gic_pwd.c 2011-01-30 22:42:53.000000000 +0100
+@@ -1,6 +1,6 @@
+ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+ #include "k5-int.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include "init_creds_ctx.h"
+
+ krb5_error_code
diff --git a/package/krb5/patches/patch-src_lib_krb5_krb_recvauth_c b/package/krb5/patches/patch-src_lib_krb5_krb_recvauth_c
new file mode 100644
index 000000000..2d62562da
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_krb5_krb_recvauth_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/krb5/krb/recvauth.c 2009-10-31 01:48:38.000000000 +0100
++++ krb5-1.9/src/lib/krb5/krb/recvauth.c 2011-01-30 23:02:39.000000000 +0100
+@@ -30,7 +30,7 @@
+
+ #include "k5-int.h"
+ #include "auth_con.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include <errno.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/package/krb5/patches/patch-src_lib_krb5_krb_sendauth_c b/package/krb5/patches/patch-src_lib_krb5_krb_sendauth_c
new file mode 100644
index 000000000..356b966cc
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_krb5_krb_sendauth_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/krb5/krb/sendauth.c 2009-10-31 01:48:38.000000000 +0100
++++ krb5-1.9/src/lib/krb5/krb/sendauth.c 2011-01-30 23:06:08.000000000 +0100
+@@ -30,7 +30,7 @@
+
+
+ #include "k5-int.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include "auth_con.h"
+ #include <errno.h>
+ #include <stdio.h>
diff --git a/package/krb5/patches/patch-src_plugins_kdb_db2_policy_db_h b/package/krb5/patches/patch-src_plugins_kdb_db2_policy_db_h
new file mode 100644
index 000000000..c35021862
--- /dev/null
+++ b/package/krb5/patches/patch-src_plugins_kdb_db2_policy_db_h
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/plugins/kdb/db2/policy_db.h 2010-07-06 23:53:23.000000000 +0200
++++ krb5-1.9/src/plugins/kdb/db2/policy_db.h 2011-01-31 13:00:29.000000000 +0100
+@@ -32,7 +32,7 @@
+ #include <gssrpc/xdr.h>
+ #include <db.h>
+ #include "adb_err.h"
+-#include <com_err.h>
++#include <et/com_err.h>
+
+ typedef long osa_adb_ret_t;
+
diff --git a/package/krb5/patches/patch-src_slave_kprop_c b/package/krb5/patches/patch-src_slave_kprop_c
new file mode 100644
index 000000000..c61ad0301
--- /dev/null
+++ b/package/krb5/patches/patch-src_slave_kprop_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/slave/kprop.c 2010-12-01 03:15:55.000000000 +0100
++++ krb5-1.9/src/slave/kprop.c 2011-01-31 13:46:16.000000000 +0100
+@@ -44,7 +44,6 @@
+ #include <fcntl.h>
+
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include "kprop.h"
+
+ #ifndef GETSOCKNAME_ARG3_TYPE
diff --git a/package/krb5/patches/patch-src_slave_kpropd_c b/package/krb5/patches/patch-src_slave_kpropd_c
new file mode 100644
index 000000000..29ab27efa
--- /dev/null
+++ b/package/krb5/patches/patch-src_slave_kpropd_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/slave/kpropd.c 2010-12-01 03:16:04.000000000 +0100
++++ krb5-1.9/src/slave/kpropd.c 2011-01-31 13:46:26.000000000 +0100
+@@ -78,7 +78,6 @@
+ #include <syslog.h>
+
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include <errno.h>
+
+ #include "kprop.h"
diff --git a/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_leak_c b/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_leak_c
new file mode 100644
index 000000000..388374e52
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_leak_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/asn.1/krb5_decode_leak.c 2010-04-30 23:22:48.000000000 +0200
++++ krb5-1.9/src/tests/asn.1/krb5_decode_leak.c 2011-01-31 15:25:17.000000000 +0100
+@@ -12,7 +12,6 @@
+
+ #include <stdio.h>
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include "utility.h"
+
+ #include "ktest.h"
diff --git a/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_test_c b/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_test_c
new file mode 100644
index 000000000..5fdf13f84
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_asn_1_krb5_decode_test_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/asn.1/krb5_decode_test.c 2010-04-30 23:22:48.000000000 +0200
++++ krb5-1.9/src/tests/asn.1/krb5_decode_test.c 2011-01-31 15:18:13.000000000 +0100
+@@ -1,7 +1,6 @@
+ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+ #include "k5-int.h"
+ #include "ktest.h"
+-#include "com_err.h"
+ #include "utility.h"
+ #include "ktest_equal.h"
+
diff --git a/package/krb5/patches/patch-src_tests_asn_1_krb5_encode_test_c b/package/krb5/patches/patch-src_tests_asn_1_krb5_encode_test_c
new file mode 100644
index 000000000..6cc947964
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_asn_1_krb5_encode_test_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/asn.1/krb5_encode_test.c 2010-04-30 23:22:48.000000000 +0200
++++ krb5-1.9/src/tests/asn.1/krb5_encode_test.c 2011-01-31 15:11:16.000000000 +0100
+@@ -1,7 +1,6 @@
+ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+ #include <stdio.h>
+ #include "k5-int.h"
+-#include "com_err.h"
+ #include "utility.h"
+
+ #include "ktest.h"
diff --git a/package/krb5/patches/patch-src_tests_create_kdb5_mkdums_c b/package/krb5/patches/patch-src_tests_create_kdb5_mkdums_c
new file mode 100644
index 000000000..c6105df97
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_create_kdb5_mkdums_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/create/kdb5_mkdums.c 2010-07-06 23:53:23.000000000 +0200
++++ krb5-1.9/src/tests/create/kdb5_mkdums.c 2011-01-31 17:54:44.000000000 +0100
+@@ -30,7 +30,6 @@
+
+ #include "k5-int.h"
+ #include "kdb.h"
+-#include "com_err.h"
+ #include <ss/ss.h>
+ #include <stdio.h>
+
diff --git a/package/krb5/patches/patch-src_tests_dejagnu_t_inetd_c b/package/krb5/patches/patch-src_tests_dejagnu_t_inetd_c
new file mode 100644
index 000000000..a39a66e4d
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_dejagnu_t_inetd_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/tests/dejagnu/t_inetd.c 2010-04-22 01:14:49.000000000 +0200
++++ krb5-1.9/src/tests/dejagnu/t_inetd.c 2011-01-31 18:34:11.000000000 +0100
+@@ -55,7 +55,7 @@
+ #include <unistd.h>
+ #endif
+
+-#include "com_err.h"
++#include <et/com_err.h>
+
+
+ char *progname;
diff --git a/package/krb5/patches/patch-src_tests_hammer_kdc5_hammer_c b/package/krb5/patches/patch-src_tests_hammer_kdc5_hammer_c
new file mode 100644
index 000000000..d41c7a26e
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_hammer_kdc5_hammer_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/hammer/kdc5_hammer.c 2010-04-22 01:37:04.000000000 +0200
++++ krb5-1.9/src/tests/hammer/kdc5_hammer.c 2011-01-31 18:20:05.000000000 +0100
+@@ -31,7 +31,6 @@
+ #include <sys/time.h>
+
+ #include "k5-int.h"
+-#include "com_err.h"
+
+ #define KRB5_DEFAULT_OPTIONS 0
+ #define KRB5_DEFAULT_LIFE 60*60*8 /* 8 hours */
diff --git a/package/krb5/patches/patch-src_tests_verify_kdb5_verify_c b/package/krb5/patches/patch-src_tests_verify_kdb5_verify_c
new file mode 100644
index 000000000..1bbb80bfa
--- /dev/null
+++ b/package/krb5/patches/patch-src_tests_verify_kdb5_verify_c
@@ -0,0 +1,10 @@
+--- krb5-1.9.orig/src/tests/verify/kdb5_verify.c 2010-09-15 19:13:23.000000000 +0200
++++ krb5-1.9/src/tests/verify/kdb5_verify.c 2011-01-31 18:26:51.000000000 +0100
+@@ -30,7 +30,6 @@
+
+ #include "k5-int.h"
+ #include "kdb.h"
+-#include "com_err.h"
+ #include <ss/ss.h>
+ #include <stdio.h>
+
diff --git a/package/krb5/patches/patch-src_util_profile_prof_int_h b/package/krb5/patches/patch-src_util_profile_prof_int_h
new file mode 100644
index 000000000..9cf1229c2
--- /dev/null
+++ b/package/krb5/patches/patch-src_util_profile_prof_int_h
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/util/profile/prof_int.h 2009-12-28 01:21:20.000000000 +0100
++++ krb5-1.9/src/util/profile/prof_int.h 2011-01-30 22:28:21.000000000 +0100
+@@ -12,7 +12,7 @@
+
+ #include "k5-thread.h"
+ #include "k5-platform.h"
+-#include "com_err.h"
++#include <et/com_err.h>
+ #include "profile.h"
+
+ typedef long prf_magic_t;
diff --git a/package/nasm/Makefile b/package/nasm/Makefile
index 5a92cdaec..23cbfecb4 100644
--- a/package/nasm/Makefile
+++ b/package/nasm/Makefile
@@ -8,7 +8,7 @@ PKG_VERSION:= 2.07
PKG_RELEASE:= 1
PKG_MD5SUM:= 84d8e009b3d2565a810ab3ddad1f4f63
PKG_DESCR:= the netwide assembler
-PKG_SECTION:= devel
+PKG_SECTION:= lang
PKG_URL:= http://sourceforge.net/projects/nasm/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nasm/nasm%20sources/2.07/}
diff --git a/package/valgrind/Makefile b/package/valgrind/Makefile
index abf6f5a47..5940b1afe 100644
--- a/package/valgrind/Makefile
+++ b/package/valgrind/Makefile
@@ -4,15 +4,15 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= valgrind
-PKG_VERSION:= 3.5.0
+PKG_VERSION:= 3.6.0
PKG_RELEASE:= 1
-PKG_MD5SUM:= f03522a4687cf76c676c9494fcc0a517
+PKG_MD5SUM:= b289c5f4ab8e39741602445f1dd09b34
PKG_DESCR:= memory management debugging
PKG_SECTION:= debug
PKG_URL:= http://valgrind.org/
PKG_SITES:= http://valgrind.org/downloads/
-PKG_ARCH_DEPENDS:= x86 x86_64
+PKG_ARCH_DEPENDS:= x86 x86_64 native
PKG_HOST_DEPENDS:= !darwin
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
diff --git a/package/valgrind/patches/patch-auxprogs_valgrind-listener_c b/package/valgrind/patches/patch-auxprogs_valgrind-listener_c
deleted file mode 100644
index be4b433ed..000000000
--- a/package/valgrind/patches/patch-auxprogs_valgrind-listener_c
+++ /dev/null
@@ -1,29 +0,0 @@
- try to avoid problems with a pre #defined st_atime here, too
---- valgrind-3.5.0.orig/auxprogs/valgrind-listener.c 2009-08-19 15:37:30.000000000 +0200
-+++ valgrind-3.5.0/auxprogs/valgrind-listener.c 2010-12-30 17:23:49.807262269 +0100
-@@ -32,6 +32,12 @@
-
- /*---------------------------------------------------------------*/
-
-+#include "pub_core_basics.h"
-+#include "pub_core_libcassert.h" // For VG_BUGS_TO
-+#include "pub_core_vki.h" // Avoids warnings from
-+ // pub_core_libcfile.h
-+#include "pub_core_libcfile.h" // For VG_CLO_DEFAULT_LOGPORT
-+
- #include <stdio.h>
- #include <unistd.h>
- #include <string.h>
-@@ -44,12 +50,6 @@
- #include <sys/socket.h>
- #include <netinet/in.h>
-
--#include "pub_core_basics.h"
--#include "pub_core_libcassert.h" // For VG_BUGS_TO
--#include "pub_core_vki.h" // Avoids warnings from
-- // pub_core_libcfile.h
--#include "pub_core_libcfile.h" // For VG_CLO_DEFAULT_LOGPORT
--
-
- /*---------------------------------------------------------------*/
-
diff --git a/package/valgrind/patches/patch-configure b/package/valgrind/patches/patch-configure
deleted file mode 100644
index 8c2df9ad5..000000000
--- a/package/valgrind/patches/patch-configure
+++ /dev/null
@@ -1,126 +0,0 @@
---- valgrind-3.5.0.orig/configure 2009-08-19 15:44:07.000000000 +0200
-+++ valgrind-3.5.0/configure 2011-01-21 23:59:05.014913852 +0100
-@@ -1819,7 +1819,6 @@ fi
- #----------------------------------------------------------------------------
- # Checks for various programs.
- #----------------------------------------------------------------------------
--CFLAGS="-Wno-long-long"
-
- echo "$as_me:$LINENO: checking whether ln -s works" >&5
- echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
-@@ -2429,7 +2428,6 @@ echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&
- GCC=`test $ac_compiler_gnu = yes && echo yes`
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
--CFLAGS="-g"
- echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
- echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
- if test "${ac_cv_prog_cc_g+set}" = set; then
-@@ -2481,23 +2479,6 @@ ac_cv_prog_cc_g=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
--echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
--echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
--if test "$ac_test_CFLAGS" = set; then
-- CFLAGS=$ac_save_CFLAGS
--elif test $ac_cv_prog_cc_g = yes; then
-- if test "$GCC" = yes; then
-- CFLAGS="-g -O2"
-- else
-- CFLAGS="-g"
-- fi
--else
-- if test "$GCC" = yes; then
-- CFLAGS="-O2"
-- else
-- CFLAGS=
-- fi
--fi
- echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
- echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
- if test "${ac_cv_prog_cc_stdc+set}" = set; then
-@@ -4215,7 +4196,7 @@ echo "${ECHO_T}ok (${host_os})" >&6
- echo "$as_me:$LINENO: checking for the kernel version" >&5
- echo $ECHO_N "checking for the kernel version... $ECHO_C" >&6
-
-- kernel=`uname -r`
-+ kernel=2.6.33
-
- case "${kernel}" in
- 2.6.*)
-@@ -4841,6 +4822,27 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
- fi
- rm -f conftest*
-
-+cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h. */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h. */
-+
-+#include <features.h>
-+#ifdef __GNU_LIBRARY__
-+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
-+ GLIBC_212
-+ #endif
-+#endif
-+
-+_ACEOF
-+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-+ $EGREP "GLIBC_212" >/dev/null 2>&1; then
-+ libc="2.12"
-+fi
-+rm -f conftest*
-+
-
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
-@@ -5005,15 +5007,15 @@ cat >>conftest.$ac_ext <<_ACEOF
-
- #include <features.h>
- #ifdef __GNU_LIBRARY__
-- #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 10)
-- GLIBC_210
-+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
-+ GLIBC_212
- #endif
- #endif
-
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "GLIBC_210" >/dev/null 2>&1; then
-- GLIBC_VERSION="2.10"
-+ $EGREP "GLIBC_212" >/dev/null 2>&1; then
-+ GLIBC_VERSION="2.12"
- fi
- rm -f conftest*
-
-@@ -5174,6 +5176,17 @@ _ACEOF
- DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
- DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
- ;;
-+ 2.12*)
-+ echo "$as_me:$LINENO: result: 2.12 family" >&5
-+echo "${ECHO_T}2.12 family" >&6
-+
-+cat >>confdefs.h <<\_ACEOF
-+#define GLIBC_2_12 1
-+_ACEOF
-+
-+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
-+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
-+ ;;
- aix5)
- echo "$as_me:$LINENO: result: AIX 5.1 or 5.2 or 5.3" >&5
- echo "${ECHO_T}AIX 5.1 or 5.2 or 5.3" >&6
-@@ -5198,7 +5211,7 @@ _ACEOF
- *)
- echo "$as_me:$LINENO: result: unsupported version" >&5
- echo "${ECHO_T}unsupported version" >&6
-- { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.10" >&5
-+ { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.11.1" >&5
- echo "$as_me: error: Valgrind requires glibc version 2.2 - 2.10" >&2;}
- { (exit 1); exit 1; }; }
- { { echo "$as_me:$LINENO: error: or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" >&5
diff --git a/package/valgrind/patches/patch-coregrind_launcher-linux_c b/package/valgrind/patches/patch-coregrind_launcher-linux_c
deleted file mode 100644
index e94ffd908..000000000
--- a/package/valgrind/patches/patch-coregrind_launcher-linux_c
+++ /dev/null
@@ -1,29 +0,0 @@
- try to avoid errors regarding already #defined st_atime in bits/stat.h or so
---- valgrind-3.5.0.orig/coregrind/launcher-linux.c 2009-08-19 15:37:47.000000000 +0200
-+++ valgrind-3.5.0/coregrind/launcher-linux.c 2010-12-30 17:08:00.035938916 +0100
-@@ -32,6 +32,12 @@
- and so it doesn't have to conform to Valgrind's arcane rules on
- no-glibc-usage etc. */
-
-+#include "pub_core_debuglog.h"
-+#include "pub_core_vki.h" // Avoids warnings from
-+ // pub_core_libcfile.h
-+#include "pub_core_libcproc.h" // For VALGRIND_LIB, VALGRIND_LAUNCHER
-+#include "pub_core_ume.h"
-+
- #include <assert.h>
- #include <ctype.h>
- #include <elf.h>
-@@ -45,12 +51,6 @@
- #include <sys/user.h>
- #include <unistd.h>
-
--#include "pub_core_debuglog.h"
--#include "pub_core_vki.h" // Avoids warnings from
-- // pub_core_libcfile.h
--#include "pub_core_libcproc.h" // For VALGRIND_LIB, VALGRIND_LAUNCHER
--#include "pub_core_ume.h"
--
-
-
- #define PATH_MAX 4096 /* POSIX refers to this a lot but I dunno
diff --git a/target/cris/target.mk b/target/cris/target.mk
index 34e1f05ec..a0b68f06b 100644
--- a/target/cris/target.mk
+++ b/target/cris/target.mk
@@ -1,5 +1,5 @@
include $(TOPDIR)/mk/kernel-ver.mk
ARCH:= cris
CPU_ARCH:= cris
-TARGET_OPTIMIZATION:= -Os -pipe -fno-peephole2
+TARGET_OPTIMIZATION:= -Os -pipe -fno-auto-inc-dec -fno-peephole2
TARGET_CFLAGS_ARCH:= -march=v10