mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] libkmod: fix dependency on BUSYBOX_MODPROBE_SMALL
@ 2014-03-27  8:56 Alexander Aring
  2014-03-29  9:29 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2014-03-27  8:56 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Aring

If BUSYBOX_MODPROBE_SMALL it will install modprobe, rmmod and insmod.
The current libkmod doesn't check on this so I got a:

 * check_data_file_clashes: Package busybox wants to install file
 * .../build-target/image-root-tgz/sbin/modprobe
        But that file is already provided by package  * libkmod
 * check_data_file_clashes: Package busybox wants to install file
 * .../build-target/image-root-tgz/sbin/insmod
        But that file is already provided by package  * libkmod
 * check_data_file_clashes: Package busybox wants to install file
 * .../build-target/image-root-tgz/sbin/rmmod
        But that file is already provided by package  * libkmod
 * opkg_install_cmd: Cannot install package busybox.

This patch fix this issue.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 rules/libkmod.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/rules/libkmod.in b/rules/libkmod.in
index 4d5a9d8..1660f7c 100644
--- a/rules/libkmod.in
+++ b/rules/libkmod.in
@@ -17,24 +17,24 @@ config LIBKMOD_TOOLS
 config LIBKMOD_INSMOD
 	bool
 	prompt "Install insmod"
-	depends on !BUSYBOX_INSMOD || ALLYES
+	depends on (!BUSYBOX_INSMOD && !BUSYBOX_MODPROBE_SMALL) || ALLYES
 	select LIBKMOD_TOOLS
 	help
 	  simple program to insert a module into the Linux Kernel
 
 comment "BusyBox' insmod is selected!"
-	depends on BUSYBOX_INSMOD
+	depends on BUSYBOX_INSMOD || BUSYBOX_MODPROBE_SMALL
 
 config LIBKMOD_RMMOD
 	bool
 	prompt "Install rmmod"
-	depends on !BUSYBOX_RMMOD || ALLYES
+	depends on (!BUSYBOX_RMMOD && !BUSYBOX_MODPROBE_SMALL) || ALLYES
 	select LIBKMOD_TOOLS
 	help
 	  simple program to remove a module from the Linux Kernel
 
 comment "BusyBox' rmmod is selected!"
-	depends on BUSYBOX_RMMOD
+	depends on BUSYBOX_RMMOD || BUSYBOX_MODPROBE_SMALL
 
 config LIBKMOD_LSMOD
 	bool
@@ -61,13 +61,13 @@ comment "BusyBox' modinfo is selected!"
 config LIBKMOD_MODPROBE
 	bool
 	prompt "Install modprobe"
-	depends on !BUSYBOX_MODPROBE || ALLYES
+	depends on (!BUSYBOX_MODPROBE && !BUSYBOX_MODPROBE_SMALL) || ALLYES
 	select LIBKMOD_TOOLS
 	help
 	  program to add and remove modules from the Linux Kernel
 
 comment "BusyBox' modprobe is selected!"
-	depends on BUSYBOX_MODPROBE
+	depends on BUSYBOX_MODPROBE || BUSYBOX_MODPROBE_SMALL
 
 config LIBKMOD_DEPMOD
 	bool
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] libkmod: fix dependency on BUSYBOX_MODPROBE_SMALL
  2014-03-27  8:56 [ptxdist] [PATCH] libkmod: fix dependency on BUSYBOX_MODPROBE_SMALL Alexander Aring
@ 2014-03-29  9:29 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2014-03-29  9:29 UTC (permalink / raw)
  To: ptxdist

On Thu, Mar 27, 2014 at 09:56:29AM +0100, Alexander Aring wrote:
> If BUSYBOX_MODPROBE_SMALL it will install modprobe, rmmod and insmod.
> The current libkmod doesn't check on this so I got a:
> 
>  * check_data_file_clashes: Package busybox wants to install file
>  * .../build-target/image-root-tgz/sbin/modprobe
>         But that file is already provided by package  * libkmod
>  * check_data_file_clashes: Package busybox wants to install file
>  * .../build-target/image-root-tgz/sbin/insmod
>         But that file is already provided by package  * libkmod
>  * check_data_file_clashes: Package busybox wants to install file
>  * .../build-target/image-root-tgz/sbin/rmmod
>         But that file is already provided by package  * libkmod
>  * opkg_install_cmd: Cannot install package busybox.
> 
> This patch fix this issue.

Thanks, applied.

Michael

> 
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> ---
>  rules/libkmod.in | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/rules/libkmod.in b/rules/libkmod.in
> index 4d5a9d8..1660f7c 100644
> --- a/rules/libkmod.in
> +++ b/rules/libkmod.in
> @@ -17,24 +17,24 @@ config LIBKMOD_TOOLS
>  config LIBKMOD_INSMOD
>  	bool
>  	prompt "Install insmod"
> -	depends on !BUSYBOX_INSMOD || ALLYES
> +	depends on (!BUSYBOX_INSMOD && !BUSYBOX_MODPROBE_SMALL) || ALLYES
>  	select LIBKMOD_TOOLS
>  	help
>  	  simple program to insert a module into the Linux Kernel
>  
>  comment "BusyBox' insmod is selected!"
> -	depends on BUSYBOX_INSMOD
> +	depends on BUSYBOX_INSMOD || BUSYBOX_MODPROBE_SMALL
>  
>  config LIBKMOD_RMMOD
>  	bool
>  	prompt "Install rmmod"
> -	depends on !BUSYBOX_RMMOD || ALLYES
> +	depends on (!BUSYBOX_RMMOD && !BUSYBOX_MODPROBE_SMALL) || ALLYES
>  	select LIBKMOD_TOOLS
>  	help
>  	  simple program to remove a module from the Linux Kernel
>  
>  comment "BusyBox' rmmod is selected!"
> -	depends on BUSYBOX_RMMOD
> +	depends on BUSYBOX_RMMOD || BUSYBOX_MODPROBE_SMALL
>  
>  config LIBKMOD_LSMOD
>  	bool
> @@ -61,13 +61,13 @@ comment "BusyBox' modinfo is selected!"
>  config LIBKMOD_MODPROBE
>  	bool
>  	prompt "Install modprobe"
> -	depends on !BUSYBOX_MODPROBE || ALLYES
> +	depends on (!BUSYBOX_MODPROBE && !BUSYBOX_MODPROBE_SMALL) || ALLYES
>  	select LIBKMOD_TOOLS
>  	help
>  	  program to add and remove modules from the Linux Kernel
>  
>  comment "BusyBox' modprobe is selected!"
> -	depends on BUSYBOX_MODPROBE
> +	depends on BUSYBOX_MODPROBE || BUSYBOX_MODPROBE_SMALL
>  
>  config LIBKMOD_DEPMOD
>  	bool
> -- 
> 1.9.1
> 
> 
> -- 
> 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] 2+ messages in thread

end of thread, other threads:[~2014-03-29  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27  8:56 [ptxdist] [PATCH] libkmod: fix dependency on BUSYBOX_MODPROBE_SMALL Alexander Aring
2014-03-29  9:29 ` Michael Olbrich

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