mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 18:09:40 +01:00
Old 1.6.8p12 is quite old, even w/o source available now (only cached in pokylinux).
[Patches-Poky]
KEEP _autofoo.patch_: deal with bunch of autotool warnings/errors, more about
underquotes. In 1.7.2p7, those error conditions disappear.
But the underquotes fix is still valid to remove a bunch
of autoconf warnings
REMOVE _autofoo1.patch_: copy of autofoo.patch. no one uses it. REMOVE.
KEEP _noexec-link.patch_: use "-module" to avoid libtool complaining about not
starting with "lib". Add comment to the patch file.
DISABLE _nostrip.patch_: it's wrong to strip target binaries on build host. Borrow
from OE to use 'sed' instead of patch, but keept it for
remind to upstream
REMOVE _nonrootinstall.patch_: handle mode/owner population at install. It's not
requried at all since there's pkg_postinst to handle
it at right stage
Other misc stuff:
- update metadata information
- no need to use ${S} in 1.7.2p7
- fix idention
- use sed to disable strip
- changes from OE:
* disable PAM as our pam doesn't include necessary config files and plugs
* no need to special sudo_cv_uid_t_len tweak in the recipe. It's already there
in poky site files for a long time
* move sudo_cv_func_unsetenv_void to meta/site/common. Stdlib.h is common across
architectures in our libc headers, which conforms to POSIX standard
(borrow from openembedded 1.7.2p4)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
144 lines
4.3 KiB
Diff
144 lines
4.3 KiB
Diff
# fix underquotes, rebased to 1.7.2p7
|
|
#
|
|
# by Kevin Tian <kevin.tian@intel.com>, 06/23/2010
|
|
Index: sudo-1.7.2p7/aclocal.m4
|
|
===================================================================
|
|
--- sudo-1.7.2p7.orig/aclocal.m4 2010-06-23 13:33:57.000000000 +0800
|
|
+++ sudo-1.7.2p7/aclocal.m4 2010-06-23 13:36:41.000000000 +0800
|
|
@@ -10,7 +10,7 @@
|
|
dnl
|
|
dnl check for sendmail
|
|
dnl
|
|
-AC_DEFUN(SUDO_PROG_SENDMAIL, [AC_MSG_CHECKING(for sendmail)
|
|
+AC_DEFUN([SUDO_PROG_SENDMAIL], [AC_MSG_CHECKING(for sendmail)
|
|
if test -f "/usr/sbin/sendmail"; then
|
|
AC_MSG_RESULT(/usr/sbin/sendmail)
|
|
SUDO_DEFINE(_PATH_SUDO_SENDMAIL, "/usr/sbin/sendmail")
|
|
@@ -37,7 +37,7 @@
|
|
dnl
|
|
dnl check for vi
|
|
dnl
|
|
-AC_DEFUN(SUDO_PROG_VI, [AC_MSG_CHECKING(for vi)
|
|
+AC_DEFUN([SUDO_PROG_VI], [AC_MSG_CHECKING(for vi)
|
|
if test -f "/usr/bin/vi"; then
|
|
AC_MSG_RESULT(/usr/bin/vi)
|
|
SUDO_DEFINE(_PATH_VI, "/usr/bin/vi")
|
|
@@ -61,7 +61,7 @@
|
|
dnl
|
|
dnl check for mv
|
|
dnl
|
|
-AC_DEFUN(SUDO_PROG_MV, [AC_MSG_CHECKING(for mv)
|
|
+AC_DEFUN([SUDO_PROG_MV], [AC_MSG_CHECKING(for mv)
|
|
if test -f "/usr/bin/mv"; then
|
|
AC_MSG_RESULT(/usr/bin/mv)
|
|
SUDO_DEFINE(_PATH_MV, "/usr/bin/mv")
|
|
@@ -82,7 +82,7 @@
|
|
dnl
|
|
dnl check for bourne shell
|
|
dnl
|
|
-AC_DEFUN(SUDO_PROG_BSHELL, [AC_MSG_CHECKING(for bourne shell)
|
|
+AC_DEFUN([SUDO_PROG_BSHELL], [AC_MSG_CHECKING(for bourne shell)
|
|
if test -f "/bin/sh"; then
|
|
AC_MSG_RESULT(/bin/sh)
|
|
SUDO_DEFINE(_PATH_BSHELL, "/bin/sh")
|
|
@@ -115,7 +115,7 @@
|
|
dnl
|
|
dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm
|
|
dnl
|
|
-AC_DEFUN(SUDO_LOGFILE, [AC_MSG_CHECKING(for log file location)
|
|
+AC_DEFUN([SUDO_LOGFILE], [AC_MSG_CHECKING(for log file location)
|
|
if test -n "$with_logpath"; then
|
|
AC_MSG_RESULT($with_logpath)
|
|
SUDO_DEFINE_UNQUOTED(_PATH_SUDO_LOGFILE, "$with_logpath")
|
|
@@ -136,7 +136,7 @@
|
|
dnl
|
|
dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm
|
|
dnl
|
|
-AC_DEFUN(SUDO_TIMEDIR, [AC_MSG_CHECKING(for timestamp file location)
|
|
+AC_DEFUN([SUDO_TIMEDIR], [AC_MSG_CHECKING(for timestamp file location)
|
|
if test -n "$with_timedir"; then
|
|
AC_MSG_RESULT($with_timedir)
|
|
SUDO_DEFINE_UNQUOTED(_PATH_SUDO_TIMEDIR, "$with_timedir")
|
|
@@ -160,7 +160,7 @@
|
|
dnl SUDO_CHECK_TYPE(TYPE, DEFAULT)
|
|
dnl XXX - should require the check for unistd.h...
|
|
dnl
|
|
-AC_DEFUN(SUDO_CHECK_TYPE,
|
|
+AC_DEFUN([SUDO_CHECK_TYPE],
|
|
[AC_REQUIRE([AC_HEADER_STDC])dnl
|
|
AC_MSG_CHECKING(for $1)
|
|
AC_CACHE_VAL(sudo_cv_type_$1,
|
|
@@ -181,31 +181,31 @@
|
|
dnl
|
|
dnl Check for size_t declation
|
|
dnl
|
|
-AC_DEFUN(SUDO_TYPE_SIZE_T,
|
|
+AC_DEFUN([SUDO_TYPE_SIZE_T],
|
|
[SUDO_CHECK_TYPE(size_t, int)])
|
|
|
|
dnl
|
|
dnl Check for ssize_t declation
|
|
dnl
|
|
-AC_DEFUN(SUDO_TYPE_SSIZE_T,
|
|
+AC_DEFUN([SUDO_TYPE_SSIZE_T],
|
|
[SUDO_CHECK_TYPE(ssize_t, int)])
|
|
|
|
dnl
|
|
dnl Check for dev_t declation
|
|
dnl
|
|
-AC_DEFUN(SUDO_TYPE_DEV_T,
|
|
+AC_DEFUN([SUDO_TYPE_DEV_T],
|
|
[SUDO_CHECK_TYPE(dev_t, int)])
|
|
|
|
dnl
|
|
dnl Check for ino_t declation
|
|
dnl
|
|
-AC_DEFUN(SUDO_TYPE_INO_T,
|
|
+AC_DEFUN([SUDO_TYPE_INO_T],
|
|
[SUDO_CHECK_TYPE(ino_t, unsigned int)])
|
|
|
|
dnl
|
|
dnl check for working fnmatch(3)
|
|
dnl
|
|
-AC_DEFUN(SUDO_FUNC_FNMATCH,
|
|
+AC_DEFUN([SUDO_FUNC_FNMATCH],
|
|
[AC_MSG_CHECKING([for working fnmatch with FNM_CASEFOLD])
|
|
AC_CACHE_VAL(sudo_cv_func_fnmatch,
|
|
[rm -f conftestdata; > conftestdata
|
|
@@ -271,7 +271,7 @@
|
|
dnl
|
|
dnl check for sa_len field in struct sockaddr
|
|
dnl
|
|
-AC_DEFUN(SUDO_SOCK_SA_LEN,
|
|
+AC_DEFUN([SUDO_SOCK_SA_LEN],
|
|
[AC_MSG_CHECKING(for sa_len field in struct sockaddr)
|
|
AC_CACHE_VAL(sudo_cv_sock_sa_len,
|
|
[AC_TRY_RUN([#include <sys/types.h>
|
|
@@ -294,7 +294,7 @@
|
|
dnl we can't really trust UID_MAX or MAXUID since they may exist
|
|
dnl only for backwards compatibility.
|
|
dnl
|
|
-AC_DEFUN(SUDO_UID_T_LEN,
|
|
+AC_DEFUN([SUDO_UID_T_LEN],
|
|
[AC_REQUIRE([AC_TYPE_UID_T])
|
|
AC_MSG_CHECKING(max length of uid_t)
|
|
AC_CACHE_VAL(sudo_cv_uid_t_len,
|
|
@@ -327,7 +327,7 @@
|
|
dnl
|
|
dnl Check for presence of long long and for sizeof(long long) == sizeof(long)
|
|
dnl
|
|
-AC_DEFUN(SUDO_TYPE_LONG_LONG,
|
|
+AC_DEFUN([SUDO_TYPE_LONG_LONG],
|
|
[AC_CHECK_TYPES(long long, [AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the "long long" type.])]
|
|
[AC_MSG_CHECKING(for long and long long equivalence)
|
|
AC_CACHE_VAL(sudo_cv_type_long_is_quad,
|
|
@@ -347,7 +347,7 @@
|
|
dnl
|
|
dnl append a libpath to an LDFLAGS style variable
|
|
dnl
|
|
-AC_DEFUN(SUDO_APPEND_LIBPATH, [
|
|
+AC_DEFUN([SUDO_APPEND_LIBPATH], [
|
|
if test X"$with_rpath" = X"yes"; then
|
|
case "$host" in
|
|
*-*-hpux*) $1="${$1} -L$2 -Wl,+b,$2"
|