diff options
| author | Armin Kuster <akuster808@gmail.com> | 2022-04-01 09:53:00 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2022-04-02 11:21:42 -0700 |
| commit | 2be1d069ec4b60be3d486021301e0e0990565cc6 (patch) | |
| tree | ed5734a1a32cde9d7fe914c776407366ae5d9716 | |
| parent | 0c41d792cf837d56f496b891bb9fe8b72354b8d1 (diff) | |
| download | meta-security-2be1d069ec4b60be3d486021301e0e0990565cc6.tar.gz | |
python3-fail2ban: fix compile issue on some hosts
Use python3-native to use 2to3
Fix build issue on some hosts with this error:
(result, consumed) = self._buffer_decode(data, self.errors, final)
| UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 152: invalid continuation byte
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb index 4118732..96e17b7 100644 --- a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb +++ b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | |||
| @@ -9,6 +9,8 @@ HOMEPAGE = "http://www.fail2ban.org" | |||
| 9 | LICENSE = "GPL-2.0-only" | 9 | LICENSE = "GPL-2.0-only" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecabc31e90311da843753ba772885d9f" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecabc31e90311da843753ba772885d9f" |
| 11 | 11 | ||
| 12 | DEPENDS = "python3-native" | ||
| 13 | |||
| 12 | SRCREV ="4fe4ac8dde6ba14841da598ec37f8c6911fe0f64" | 14 | SRCREV ="4fe4ac8dde6ba14841da598ec37f8c6911fe0f64" |
| 13 | SRC_URI = " git://github.com/fail2ban/fail2ban.git;branch=0.11;protocol=https \ | 15 | SRC_URI = " git://github.com/fail2ban/fail2ban.git;branch=0.11;protocol=https \ |
| 14 | file://initd \ | 16 | file://initd \ |
| @@ -21,6 +23,11 @@ S = "${WORKDIR}/git" | |||
| 21 | 23 | ||
| 22 | do_compile () { | 24 | do_compile () { |
| 23 | cd ${S} | 25 | cd ${S} |
| 26 | |||
| 27 | #remove symlink to python3 | ||
| 28 | # otherwise 2to3 is run against it | ||
| 29 | rm -f bin/fail2ban-python | ||
| 30 | |||
| 24 | ./fail2ban-2to3 | 31 | ./fail2ban-2to3 |
| 25 | } | 32 | } |
| 26 | 33 | ||
