mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] iputils: Fix targetinstall
@ 2021-05-25 16:30 Alexander Dahl
  2021-05-28  7:01 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2021-05-25 16:30 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

The tools are all optional.  If no tool to be installed in /usr/bin is
selected, targetinstall fails.  Same for tools going to /usr/sbin. See
for example following log of failed targetinstall, if only arping and
ping are selected, but none of the others:

    install file:
      src=rsu/platform-v7a/packages/iputils-s20200821/usr/bin/arping
      dst=/usr/bin/arping
      owner=0
      group=0
      permissions=0755
      debug file: /usr/lib/debug/.build-id/51/e139e0e79232c85ddadeb45ae7ecc901d4073c.debug

    install file:
      src=rsu/platform-v7a/packages/iputils-s20200821/usr/bin/ping
      dst=/usr/bin/ping
      owner=0
      group=0
      permissions=0755
      debug file: /usr/lib/debug/.build-id/93/03312f626e591bc167b0e7e2a9b38c71d4bc7b.debug

    No suitable file '/usr/sbin' could be found in any of these locations:
    /home/adahl/[…]/rsu/platform-v7a/packages/iputils-s20200821/usr/sbin.v7a
    /home/adahl/[…]/rsu/platform-v7a/packages/iputils-s20200821/usr/sbin

    Error: install_tree failed!

Fixes: 928752d3a0bc ("iputils: version bump s20180629 -> s20200821")
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/iputils.make | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/rules/iputils.make b/rules/iputils.make
index 33fa4826e..441433b05 100644
--- a/rules/iputils.make
+++ b/rules/iputils.make
@@ -67,8 +67,30 @@ $(STATEDIR)/iputils.targetinstall:
 	@$(call install_fixup, iputils,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
 	@$(call install_fixup, iputils,DESCRIPTION,missing)
 
-	@$(call install_tree, iputils, 0, 0, -, /usr/bin)
-	@$(call install_tree, iputils, 0, 0, -, /usr/sbin)
+ifdef PTXCONF_IPUTILS_ARPING
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/arping)
+endif
+ifdef PTXCONF_IPUTILS_CLOCKDIFF
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/clockdiff)
+endif
+ifdef PTXCONF_IPUTILS_PING
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/ping)
+endif
+ifdef PTXCONF_IPUTILS_RARPD
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/sbin/rarpd)
+endif
+ifdef PTXCONF_IPUTILS_RDISC
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/sbin/rdisc)
+endif
+ifdef PTXCONF_IPUTILS_TFTPD
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/tftpd)
+endif
+ifdef PTXCONF_IPUTILS_TRACEPATH
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/tracepath)
+endif
+ifdef PTXCONF_IPUTILS_TRACEROUTE6
+	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/traceroute6)
+endif
 
 	@$(call install_finish, iputils)
 

base-commit: c62c6b11dbd20a4fa8122a773b46dfd8ba385840
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] [APPLIED] iputils: Fix targetinstall
  2021-05-25 16:30 [ptxdist] [PATCH] iputils: Fix targetinstall Alexander Dahl
@ 2021-05-28  7:01 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-05-28  7:01 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 98bce3e1496006303fcea400e0daacd8988c7a39.

Michael

[sent from post-receive hook]

On Fri, 28 May 2021 09:01:19 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> The tools are all optional.  If no tool to be installed in /usr/bin is
> selected, targetinstall fails.  Same for tools going to /usr/sbin. See
> for example following log of failed targetinstall, if only arping and
> ping are selected, but none of the others:
> 
>     install file:
>       src=rsu/platform-v7a/packages/iputils-s20200821/usr/bin/arping
>       dst=/usr/bin/arping
>       owner=0
>       group=0
>       permissions=0755
>       debug file: /usr/lib/debug/.build-id/51/e139e0e79232c85ddadeb45ae7ecc901d4073c.debug
> 
>     install file:
>       src=rsu/platform-v7a/packages/iputils-s20200821/usr/bin/ping
>       dst=/usr/bin/ping
>       owner=0
>       group=0
>       permissions=0755
>       debug file: /usr/lib/debug/.build-id/93/03312f626e591bc167b0e7e2a9b38c71d4bc7b.debug
> 
>     No suitable file '/usr/sbin' could be found in any of these locations:
>     /home/adahl/[…]/rsu/platform-v7a/packages/iputils-s20200821/usr/sbin.v7a
>     /home/adahl/[…]/rsu/platform-v7a/packages/iputils-s20200821/usr/sbin
> 
>     Error: install_tree failed!
> 
> Fixes: 928752d3a0bc ("iputils: version bump s20180629 -> s20200821")
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20210525163015.59080-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/iputils.make b/rules/iputils.make
> index 33fa4826e067..441433b05b0e 100644
> --- a/rules/iputils.make
> +++ b/rules/iputils.make
> @@ -67,8 +67,30 @@ $(STATEDIR)/iputils.targetinstall:
>  	@$(call install_fixup, iputils,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
>  	@$(call install_fixup, iputils,DESCRIPTION,missing)
>  
> -	@$(call install_tree, iputils, 0, 0, -, /usr/bin)
> -	@$(call install_tree, iputils, 0, 0, -, /usr/sbin)
> +ifdef PTXCONF_IPUTILS_ARPING
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/arping)
> +endif
> +ifdef PTXCONF_IPUTILS_CLOCKDIFF
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/clockdiff)
> +endif
> +ifdef PTXCONF_IPUTILS_PING
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/ping)
> +endif
> +ifdef PTXCONF_IPUTILS_RARPD
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/sbin/rarpd)
> +endif
> +ifdef PTXCONF_IPUTILS_RDISC
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/sbin/rdisc)
> +endif
> +ifdef PTXCONF_IPUTILS_TFTPD
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/tftpd)
> +endif
> +ifdef PTXCONF_IPUTILS_TRACEPATH
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/tracepath)
> +endif
> +ifdef PTXCONF_IPUTILS_TRACEROUTE6
> +	@$(call install_copy, iputils, 0, 0, 0755, -, /usr/bin/traceroute6)
> +endif
>  
>  	@$(call install_finish, iputils)
>  

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

end of thread, other threads:[~2021-05-28  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 16:30 [ptxdist] [PATCH] iputils: Fix targetinstall Alexander Dahl
2021-05-28  7:01 ` [ptxdist] [APPLIED] " Michael Olbrich

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