From: Carsten Schlote <c.schl...@konzeptpark.de>

This seems to be a troubling problem with sudo.
For our crossbuild the choice was wrong.

Commented out detection. autogen.sh will fix
the scripts.

Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de>
---
 patches/sudo-1.7.2p2/autogen.sh                    |    3 ++
 .../sudo-1.7.2p2/fix-problem-with-unsetenv.patch   |   25 ++++++++++++++++++++
 patches/sudo-1.7.2p2/series                        |    1 +
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100755 patches/sudo-1.7.2p2/autogen.sh
 create mode 100644 patches/sudo-1.7.2p2/fix-problem-with-unsetenv.patch

diff --git a/patches/sudo-1.7.2p2/autogen.sh b/patches/sudo-1.7.2p2/autogen.sh
new file mode 100755
index 0000000..84d1401
--- /dev/null
+++ b/patches/sudo-1.7.2p2/autogen.sh
@@ -0,0 +1,3 @@
+# Reconfigure configure script with patch .in file
+autoconf
+
diff --git a/patches/sudo-1.7.2p2/fix-problem-with-unsetenv.patch 
b/patches/sudo-1.7.2p2/fix-problem-with-unsetenv.patch
new file mode 100644
index 0000000..ecd5a2a
--- /dev/null
+++ b/patches/sudo-1.7.2p2/fix-problem-with-unsetenv.patch
@@ -0,0 +1,25 @@
+From: Carsten Schlote <c.schl...@konzeptpark.de>
+Subject: Fix a problem with unsetenv and eglibc(?) 
+
+The configuration for unsetenv() is detected wrong. The test has 
+beend removed as a hotfix.
+
+Signed-off-by: Carsten Schlote <c.schl...@konzeptpark.de>
+---
+---
+ configure.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: sudo-1.7.2p2/configure.in
+===================================================================
+--- sudo-1.7.2p2.orig/configure.in     2009-11-25 02:55:34.000000000 +0100
++++ sudo-1.7.2p2/configure.in  2010-01-13 18:53:41.000000000 +0100
+@@ -1842,7 +1842,7 @@
+ AC_CHECK_FUNCS(strchr strrchr memchr memcpy memset sysconf tzset \
+              strftime setrlimit initgroups getgroups fstat gettimeofday \
+              setlocale getaddrinfo setsid setenv)
+-AC_CHECK_FUNCS(unsetenv, SUDO_FUNC_UNSETENV_VOID)
++#AC_CHECK_FUNCS(unsetenv, SUDO_FUNC_UNSETENV_VOID)
+ SUDO_FUNC_PUTENV_CONST
+ if test -z "$SKIP_SETRESUID"; then
+     AC_CHECK_FUNCS(setresuid, [SKIP_SETREUID=yes])
diff --git a/patches/sudo-1.7.2p2/series b/patches/sudo-1.7.2p2/series
index fab2261..38ae162 100644
--- a/patches/sudo-1.7.2p2/series
+++ b/patches/sudo-1.7.2p2/series
@@ -1 +1,2 @@
 0001-install-sh-disable-stripping.patch
+fix-problem-with-unsetenv.patch
-- 
1.6.5.6.gb3118


--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to