All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lei, Maohui" <leimaohui@cn.fujitsu.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: [meta-security][PATCH] python3-fail2ban: Fix build error of xrange.
Date: Tue, 21 May 2019 06:57:21 +0000	[thread overview]
Message-ID: <1B56A49860EB2D45ADE3731B15C959FD01BF11D5F1@G08CNEXMBPEKD01.g08.fujitsu.local> (raw)
In-Reply-To: <1555646319-7243-1-git-send-email-leimaohui@cn.fujitsu.com>

ping

> -----Original Message-----
> From: Lei, Maohui
> Sent: Friday, April 19, 2019 11:59 AM
> To: yocto@yoctoproject.org
> Cc: Lei, Maohui
> Subject: [yocto] [meta-security][PATCH] python3-fail2ban: Fix build error of
> xrange.
> 
> NameError: name 'xrange' is not defined
> 
> Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> ---
>  .../files/0001-To-fix-build-error-of-xrang.patch   | 28 ++++++++++++++++++++++
>  .../fail2ban/python3-fail2ban_0.10.4.0.bb          |  4 ++++
>  2 files changed, 32 insertions(+)
>  create mode 100644 recipes-security/fail2ban/files/0001-To-fix-build-error-of-
> xrang.patch
> 
> diff --git a/recipes-security/fail2ban/files/0001-To-fix-build-error-of-
> xrang.patch b/recipes-security/fail2ban/files/0001-To-fix-build-error-of-
> xrang.patch
> new file mode 100644
> index 0000000..7f0812c
> --- /dev/null
> +++ b/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch
> @@ -0,0 +1,28 @@
> +From fe3436d65518099d35c643848cba50253abc249c Mon Sep 17 00:00:00 2001
> +From: Lei Maohui <leimaohui@cn.fujitsu.com>
> +Date: Thu, 9 May 2019 14:44:51 +0900
> +Subject: [PATCH] To fix build error of xrange.
> +
> +NameError: name 'xrange' is not defined
> +
> +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> +---
> + fail2ban/__init__.py | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py
> +index fa6dcf7..61789a4 100644
> +--- a/fail2ban/__init__.py
> ++++ b/fail2ban/__init__.py
> +@@ -82,7 +82,7 @@ strptime("2012", "%Y")
> +
> + # short names for pure numeric log-level ("Level 25" could be truncated by
> short formats):
> + def _init():
> +-	for i in xrange(50):
> ++	for i in range(50):
> + 		if logging.getLevelName(i).startswith('Level'):
> + 			logging.addLevelName(i, '#%02d-Lev.' % i)
> + _init()
> +--
> +2.7.4
> +
> diff --git a/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb b/recipes-
> security/fail2ban/python3-fail2ban_0.10.4.0.bb
> index 5c887e8..23ef027 100644
> --- a/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb
> +++ b/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb
> @@ -2,3 +2,7 @@ inherit setuptools3
>  require python-fail2ban.inc
> 
>  RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-
> fail2ban"
> +
> +SRC_URI += " \
> +        file://0001-To-fix-build-error-of-xrang.patch \
> +"
> --
> 2.7.4




  reply	other threads:[~2019-05-21  6:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-09  6:29 [meta-security][PATCH] python3-fail2ban: Fix build error of xrange Lei Maohui
2019-05-21  6:57 ` Lei, Maohui [this message]
2019-05-21 16:44   ` akuster808
2019-06-13  3:02 ` Lei, Maohui

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=1B56A49860EB2D45ADE3731B15C959FD01BF11D5F1@G08CNEXMBPEKD01.g08.fujitsu.local \
    --to=leimaohui@cn.fujitsu.com \
    --cc=yocto@yoctoproject.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.