On 5 January 2013 01:37, Stefan Hellermann <ste...@the2masters.de> wrote:

> That's easy:
> DEPENDS:=+!BUSYBOX_CONFIG_MKSWAP:swap-utils
>
> the @ is only needed if you want to select a symbol. I have never
> watched into a opkg control file, otherwise I would have seen that
> busybox depends will not work. For compiling you own image it's fine.
>


Unfortunately this doesn't work. Menuconfig does not see the symbol
"swap-utils" which is expected behavior.

* Symbol: PACKAGE_kmod-zram [=n]
  x Prompt: kmod-zram.................................... Compressed RAM
block device
  x   Defined at tmp/.config-package.in:7970
  x   Location:
  x     -> Kernel modules
  x       -> Other modules
  x   Selects: swap-utils && PACKAGE_kmod-lib-lzo [=y] && swap-utils &&
PACKAGE_kmod-zsmalloc [=n]
*
It won't select PACKAGE_swap-utils if BUSYBOX_CONFIG_MKSWAP is *not* set
(because it tries to select swap-utils symbol which is nonexistent). Thus
leaving package with broken dependencies.


I think this has to be workaround/pached on buildroot first so it allows
DEPENDS like above and generates proper opkg control files in such
situations. Eg:

a) It should strip the "PACKAGE_" portion from opkg control file in such
case:

*DEPENDS:=+!BUSYBOX_CONFIG_MKSWAP:PACKAGE_swap-utils*

b) but also It should strip the whole symbol in case it is not a package
symbol, eg:

*DEPENDS:=+!PACKAGE_swap-utils*:*BUSYBOX_CONFIG_MKSWAP
*

Then it should work ok I think.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to