Skip to contentSkip to conversation

package/fail2ban: The (host-python3) 2to3 utility needs to be present

PATCH New Pascal de Bruijn 3 participants 3 messages Feb 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fail2ban: The (host-python3) 2to3 utility needs to be present

During _POST_PATCH_HOOKS _DEPENDANCIES aren't guaranteed to be built, however during _PRE_CONFIGURE_HOOKS they should be built.

Should fix:
http://autobuild.buildroot.net/results/dd8e225e2a49cfa6735bed11459007003a37c137/
http://autobuild.buildroot.net/results/e688c3652bd474ac682984e2e5947701942f0f57/

---
 package/fail2ban/fail2ban.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/fail2ban/fail2ban.mk +1 -1
index 6f023b48a1..6cb77c2514 100644
@@ -15,7 +15,7 @@ define FAIL2BAN_PYTHON_2TO3
 	$(HOST_DIR)/bin/2to3 --write --nobackups --no-diffs $(@D)/bin/* $(@D)/fail2ban
 endef
 FAIL2BAN_DEPENDENCIES += host-python3
-FAIL2BAN_POST_PATCH_HOOKS += FAIL2BAN_PYTHON_2TO3
+FAIL2BAN_PRE_CONFIGURE_HOOKS += FAIL2BAN_PYTHON_2TO3
 endif
 
 define FAIL2BAN_FIX_DEFAULT_CONFIG
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/fail2ban: The (host-python3) 2to3 utility needs to be present

Hi Pascal,

Quoted 6 lines · Pascal de Bruijn

During _POST_PATCH_HOOKS _DEPENDANCIES aren't guaranteed to be built, however during _PRE_CONFIGURE_HOOKS they should be built.

Should fix:
http://autobuild.buildroot.net/results/dd8e225e2a49cfa6735bed11459007003a37c137/
http://autobuild.buildroot.net/results/e688c3652bd474ac682984e2e5947701942f0f57/

Thanks for following up on this.

Quoted 11 lines
---
 package/fail2ban/fail2ban.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/fail2ban/fail2ban.mk +0 -0
index 6f023b48a1..6cb77c2514 100644

package/fail2ban/fail2ban.mk define FAIL2BAN_PYTHON_2TO3 · line 18

Quoted 5 lines
package/fail2ban/fail2ban.mk +1 -1
@@ -15,7 +15,7 @@ define FAIL2BAN_PYTHON_2TO3
 	$(HOST_DIR)/bin/2to3 --write --nobackups --no-diffs $(@D)/bin/* $(@D)/fail2ban
 endef
 FAIL2BAN_DEPENDENCIES += host-python3
-FAIL2BAN_POST_PATCH_HOOKS += FAIL2BAN_PYTHON_2TO3
+FAIL2BAN_PRE_CONFIGURE_HOOKS += FAIL2BAN_PYTHON_2TO3

As Thomas suggested please add a comment here. Something like:

# We can't use _POST_PATCH_HOOKS because dependencies are not guaranteed

# to build and install before _POST_PATCH_HOOKS run.

baruch

package/fail2ban/fail2ban.mk define FAIL2BAN_PYTHON_2TO3 · line 21

Quoted 3 lines
package/fail2ban/fail2ban.mk +0 -0
 endif
 
 define FAIL2BAN_FIX_DEFAULT_CONFIG

--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

#2 lore raw

PATCH 1/1 package/fail2ban: The (host-python3) 2to3 utility needs to be present

Quoted 32 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Hi Pascal,

Quoted 6 lines · Pascal de Bruijn

During _POST_PATCH_HOOKS _DEPENDANCIES aren't guaranteed to be built, however during _PRE_CONFIGURE_HOOKS they should be built.

Should fix:
http://autobuild.buildroot.net/results/dd8e225e2a49cfa6735bed11459007003a37c137/
http://autobuild.buildroot.net/results/e688c3652bd474ac682984e2e5947701942f0f57/

Thanks for following up on this.

Quoted 14 lines

---
package/fail2ban/fail2ban.mk | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
package/fail2ban/fail2ban.mk +0 -0
index 6f023b48a1..6cb77c2514 100644
@@ -15,7 +15,7 @@ define FAIL2BAN_PYTHON_2TO3

$(HOST_DIR)/bin/2to3 --write --nobackups --no-diffs $(@D)/bin/* $(@D)/fail2ban endef
FAIL2BAN_DEPENDENCIES += host-python3

package/fail2ban/fail2ban.mk define FAIL2BAN_PYTHON_2TO3 · line 18

Quoted 2 lines
package/fail2ban/fail2ban.mk +1 -1
-FAIL2BAN_POST_PATCH_HOOKS += FAIL2BAN_PYTHON_2TO3
+FAIL2BAN_PRE_CONFIGURE_HOOKS += FAIL2BAN_PYTHON_2TO3

As Thomas suggested please add a comment here. Something like:

Quoted 2 lines

# We can't use _POST_PATCH_HOOKS because dependencies are not guaranteed

# to build and install before _POST_PATCH_HOOKS run.

Committed after adding that comment, thanks.

Signature · 1 line
Bye, Peter Korsgaard