> On 5 January 2013 01:37, Stefan Hellermann <ste...@the2masters.de> wrote:
>>
>> That's easy:
>> DEPENDS:=+!BUSYBOX_CONFIG_MKSWAP:swap-utils
>>
>
> 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.
>

Hmm, here it works! I double checked it!
A package with DEPENDS:= +!BUSYBOX_CONFIG_HOSTNAME:net-tools-hostname

I compiled it with BUSYBOX_CONFIG_HOSTNAME=y and the resulting opkg
does not depend on net-tools-hostname
Then I removed BUSYBOX_CONFIG_HOSTNAME and compiled the package again,
now it depends on net-tools-hostname and it is even build before my
own package.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to