mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rauc: add dependency on 'unsquashfs'
@ 2017-03-31 16:39 Michael Tretter
  2017-04-03  8:23 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Tretter @ 2017-03-31 16:39 UTC (permalink / raw)
  To: ptxdist; +Cc: ejo, Michael Tretter

rauc uses unsquashfs to extract the data from the bundle. If unsquashfs
is not installed, for example 'rauc info' fails with the following error
message:

	(rauc:302): rauc-WARNING **: Failed to start unsquashfs: Failed to execute child process "unsquashfs" (No such file or directory)

Therefore, rauc should pull unsquashfs as a dependency.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/rauc.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/rauc.in b/rules/rauc.in
index 263a67bf1..892cb730a 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -7,6 +7,7 @@ menuconfig RAUC
 	select GLIB
 	select LIBCURL		if RAUC_NETWORK
 	select JSON_GLIB	if RAUC_JSON
+	select SQUASHFS_TOOLS_UNSQUASHFS
 	help
 	  Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems.
 
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] rauc: add dependency on 'unsquashfs'
  2017-03-31 16:39 [ptxdist] [PATCH] rauc: add dependency on 'unsquashfs' Michael Tretter
@ 2017-04-03  8:23 ` Michael Olbrich
  2017-04-04  7:27   ` [ptxdist] [PATCH v2] " Michael Tretter
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2017-04-03  8:23 UTC (permalink / raw)
  To: ptxdist

On Fri, Mar 31, 2017 at 06:39:24PM +0200, Michael Tretter wrote:
> rauc uses unsquashfs to extract the data from the bundle. If unsquashfs
> is not installed, for example 'rauc info' fails with the following error
> message:
> 
> 	(rauc:302): rauc-WARNING **: Failed to start unsquashfs: Failed to execute child process "unsquashfs" (No such file or directory)
> 
> Therefore, rauc should pull unsquashfs as a dependency.
> 
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
>  rules/rauc.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/rules/rauc.in b/rules/rauc.in
> index 263a67bf1..892cb730a 100644
> --- a/rules/rauc.in
> +++ b/rules/rauc.in
> @@ -7,6 +7,7 @@ menuconfig RAUC
>  	select GLIB
>  	select LIBCURL		if RAUC_NETWORK
>  	select JSON_GLIB	if RAUC_JSON
> +	select SQUASHFS_TOOLS_UNSQUASHFS

You need to select the package symbol as well. And this is a runtime only
dependency, right? So add this before the line above:

	select SQUASHFS_TOOLS	if RUNTIME

Michael

>  	help
>  	  Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems.
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH v2] rauc: add dependency on 'unsquashfs'
  2017-04-03  8:23 ` Michael Olbrich
@ 2017-04-04  7:27   ` Michael Tretter
  2017-04-04  8:09     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Tretter @ 2017-04-04  7:27 UTC (permalink / raw)
  To: ptxdist; +Cc: ejo, Michael Tretter

rauc uses unsquashfs to extract the data from the bundle. If unsquashfs
is not installed, for example 'rauc info' fails with the following error
message:

	(rauc:302): rauc-WARNING **: Failed to start unsquashfs: Failed to execute child process "unsquashfs" (No such file or directory)

Therefore, rauc should pull unsquashfs as a runtime dependency.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/rauc.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/rauc.in b/rules/rauc.in
index 263a67b..ec8e76f 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -7,6 +7,8 @@ menuconfig RAUC
 	select GLIB
 	select LIBCURL		if RAUC_NETWORK
 	select JSON_GLIB	if RAUC_JSON
+	select SQUASHFS_TOOLS			if RUNTIME
+	select SQUASHFS_TOOLS_UNSQUASHFS	if RUNTIME
 	help
 	  Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems.
 
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH v2] rauc: add dependency on 'unsquashfs'
  2017-04-04  7:27   ` [ptxdist] [PATCH v2] " Michael Tretter
@ 2017-04-04  8:09     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2017-04-04  8:09 UTC (permalink / raw)
  To: ptxdist

On Tue, Apr 04, 2017 at 09:27:38AM +0200, Michael Tretter wrote:
> rauc uses unsquashfs to extract the data from the bundle. If unsquashfs
> is not installed, for example 'rauc info' fails with the following error
> message:
> 
> 	(rauc:302): rauc-WARNING **: Failed to start unsquashfs: Failed to execute child process "unsquashfs" (No such file or directory)
> 
> Therefore, rauc should pull unsquashfs as a runtime dependency.
> 
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>

Thanks, applied,

Michael

> ---
>  rules/rauc.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/rules/rauc.in b/rules/rauc.in
> index 263a67b..ec8e76f 100644
> --- a/rules/rauc.in
> +++ b/rules/rauc.in
> @@ -7,6 +7,8 @@ menuconfig RAUC
>  	select GLIB
>  	select LIBCURL		if RAUC_NETWORK
>  	select JSON_GLIB	if RAUC_JSON
> +	select SQUASHFS_TOOLS			if RUNTIME
> +	select SQUASHFS_TOOLS_UNSQUASHFS	if RUNTIME
>  	help
>  	  Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems.
>  
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2017-04-04  8:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 16:39 [ptxdist] [PATCH] rauc: add dependency on 'unsquashfs' Michael Tretter
2017-04-03  8:23 ` Michael Olbrich
2017-04-04  7:27   ` [ptxdist] [PATCH v2] " Michael Tretter
2017-04-04  8:09     ` Michael Olbrich

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