Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/fail2ban: The (host-python3) 2to3 utility needs to be present
@ 2020-02-26  8:28 Pascal de Bruijn
  2020-02-26  8:41 ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal de Bruijn @ 2020-02-26  8:28 UTC (permalink / raw)
  To: buildroot

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/

Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
 package/fail2ban/fail2ban.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/fail2ban/fail2ban.mk b/package/fail2ban/fail2ban.mk
index 6f023b48a1..6cb77c2514 100644
--- a/package/fail2ban/fail2ban.mk
+++ b/package/fail2ban/fail2ban.mk
@@ -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
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/fail2ban: The (host-python3) 2to3 utility needs to be present
  2020-02-26  8:28 [Buildroot] [PATCH] package/fail2ban: The (host-python3) 2to3 utility needs to be present Pascal de Bruijn
@ 2020-02-26  8:41 ` Baruch Siach
  2020-02-26 15:29   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2020-02-26  8:41 UTC (permalink / raw)
  To: buildroot

Hi Pascal,

On Wed, Feb 26 2020, Pascal de Bruijn wrote:
> 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.

> Cc: Baruch Siach <baruch@tkos.co.il>
> Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
> ---
>  package/fail2ban/fail2ban.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/fail2ban/fail2ban.mk b/package/fail2ban/fail2ban.mk
> index 6f023b48a1..6cb77c2514 100644
> --- a/package/fail2ban/fail2ban.mk
> +++ b/package/fail2ban/fail2ban.mk
> @@ -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

>  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 -

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/fail2ban: The (host-python3) 2to3 utility needs to be present
  2020-02-26  8:41 ` Baruch Siach
@ 2020-02-26 15:29   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-02-26 15:29 UTC (permalink / raw)
  To: buildroot

>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > Hi Pascal,
 > On Wed, Feb 26 2020, Pascal de Bruijn wrote:
 >> 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.

 >> Cc: Baruch Siach <baruch@tkos.co.il>
 >> Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
 >> ---
 >> package/fail2ban/fail2ban.mk | 2 +-
 >> 1 file changed, 1 insertion(+), 1 deletion(-)
 >> 
 >> diff --git a/package/fail2ban/fail2ban.mk b/package/fail2ban/fail2ban.mk
 >> index 6f023b48a1..6cb77c2514 100644
 >> --- a/package/fail2ban/fail2ban.mk
 >> +++ b/package/fail2ban/fail2ban.mk
 >> @@ -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.

Committed after adding that comment, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-26 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-26  8:28 [Buildroot] [PATCH] package/fail2ban: The (host-python3) 2to3 utility needs to be present Pascal de Bruijn
2020-02-26  8:41 ` Baruch Siach
2020-02-26 15:29   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox