All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: openembedded-devel@lists.openembedded.org
Cc: Fahad Usman <fahad_usman@mentor.com>
Subject: Re: [OE-core] [PATCH] readline: add missing macros in acinclude.m4
Date: Mon, 23 Jul 2012 11:28:43 -0700	[thread overview]
Message-ID: <500D97DB.5050007@linux.intel.com> (raw)
In-Reply-To: <1343037078-9760-1-git-send-email-fahad.usman@gmail.com>

On 07/23/2012 02:51 AM, fahad.usman@gmail.com wrote:
> From: Fahad Usman <fahad_usman@mentor.com>
>
> some bash macros are missing from acinclude.m4 which are added up-stream. This
> wasn't actually breaking anything but but it was causing the configure script
> to not run all the tests it's intended to run. (by Christopher Larson)
>
> Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
> ---
>   meta/recipes-core/readline/files/acinclude.m4 |   56 +++++++++++++++++++++++++
>   1 files changed, 56 insertions(+), 0 deletions(-)
>
You would need a PR bump in the readline .bb files, did you test this 
with the 5.2 version and the 6.2 version?

If this was pulled from the 6.2 version, then you will need to also 
modify the 5.2 bb file to use the older version of the macro file to not 
do any gplv3 contamination, please use caution here, we need to ensure 
correct separation.

Sau!
> diff --git a/meta/recipes-core/readline/files/acinclude.m4 b/meta/recipes-core/readline/files/acinclude.m4
> index 8a45f99..c30a7d3 100644
> --- a/meta/recipes-core/readline/files/acinclude.m4
> +++ b/meta/recipes-core/readline/files/acinclude.m4
> @@ -1813,3 +1813,59 @@ AC_MSG_RESULT($ac_cv_rl_version)
>
>   fi
>   ])
> +
> +AC_DEFUN(BASH_FUNC_CTYPE_NONASCII,
> +[
> +AC_MSG_CHECKING(whether the ctype macros accept non-ascii characters)
> +AC_CACHE_VAL(bash_cv_func_ctype_nonascii,
> +[AC_TRY_RUN([
> +#ifdef HAVE_LOCALE_H
> +#include <locale.h>
> +#endif
> +#include <stdio.h>
> +#include <ctype.h>
> +
> +main(c, v)
> +int	c;
> +char	*v[];
> +{
> +	char	*deflocale;
> +	unsigned char x;
> +	int	r1, r2;
> +
> +#ifdef HAVE_SETLOCALE
> +	/* We take a shot here.  If that locale is not known, try the
> +	   system default.  We try this one because '\342' (226) is
> +	   known to be a printable character in that locale. */
> +	deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
> +	if (deflocale == 0)
> +		deflocale = setlocale(LC_ALL, "");
> +#endif
> +
> +	x = '\342';
> +	r1 = isprint(x);
> +	x -= 128;
> +	r2 = isprint(x);
> +	exit (r1 == 0 || r2 == 0);
> +}
> +], bash_cv_func_ctype_nonascii=yes, bash_cv_func_ctype_nonascii=no,
> +   [AC_MSG_WARN(cannot check ctype macros if cross compiling -- defaulting to no)
> +    bash_cv_func_ctype_nonascii=no]
> +)])
> +AC_MSG_RESULT($bash_cv_func_ctype_nonascii)
> +if test $bash_cv_func_ctype_nonascii = yes; then
> +AC_DEFINE(CTYPE_NON_ASCII)
> +fi
> +])
> +
> +AC_DEFUN(BASH_TYPE_SIG_ATOMIC_T,
> +[AC_CACHE_CHECK([for sig_atomic_t in signal.h], ac_cv_have_sig_atomic_t,
> +[AC_TRY_LINK([
> +#include <signal.h>
> +],[ sig_atomic_t x; ],
> +ac_cv_have_sig_atomic_t=yes, ac_cv_have_sig_atomic_t=no)])
> +if test "$ac_cv_have_sig_atomic_t" = "no"
> +then
> +    AC_CHECK_TYPE(sig_atomic_t,int)
> +fi
> +])
>




      parent reply	other threads:[~2012-07-23 18:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fahad.usman@gmail.com>
2012-07-23  9:51 ` [OE-core] [PATCH] readline: add missing macros in acinclude.m4 fahad.usman
2012-07-23 12:18   ` Fahad Usman
2012-07-23 18:28   ` Saul Wold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=500D97DB.5050007@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=fahad_usman@mentor.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.