[Buildroot] [PATCH v2 6/6] udisks: new package

Belisko Marek marek.belisko at gmail.com
Mon Jan 7 22:03:10 UTC 2013


Hi Thomas,

On Mon, Jan 7, 2013 at 10:47 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon,  7 Jan 2013 21:43:19 +0100, Marek Belisko wrote:
>
>> --- /dev/null
>> +++ b/package/udisks/Config.in
>> @@ -0,0 +1,32 @@
>> +config BR2_PACKAGE_UDISKS
>> +     bool "udisks"
>> +     depends on BR2_PACKAGE_UDEV
>> +     depends on BR2_PACKAGE_DBUS
>> +     select BR2_PACKAGE_SG3_UTILS
>> +     select BR2_PACKAGE_UDEV_ALL_EXTRAS
>> +     select BR2_PACKAGE_DBUS_GLIB
>> +     select BR2_PACKAGE_POLKIT
>> +     select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
>> +     select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
>
> If you select BR2_PACKAGE_LVM2_DMSETUP_ONLY, then you also have to
> select BR2_PACKAGE_LVM2.
This is selected conditionally when LVM2 support if selected.
>
>> +     select BR2_PACKAGE_LIBATASMART
>
> Also, you're doing a lot of select here. Please verify that all the
> configuration options you're selecting don't have depends on
> dependencies that aren't already brought through the dependency on dbus
> and udev here.
>
>> +     help
>> +       The udisks project provides
>> +
>> +        o A storage daemon that implements well-defined D-Bus
>> +          interfaces that can be used to query and manipulate
>> +          storage devices.
>> +
>> +        o a command-line tool, udisks(1), that can be used to query
>> +          and use the daemon
>> +
>> +       http://www.freedesktop.org/wiki/Software/udisks
>> +
>> +config BR2_PACKAGE_UDISKS_LVM2
>> +     bool "lvm2 support"
>> +     depends on BR2_PACKAGE_UDISKS
>> +     depends on BR2_PACKAGE_LVM2
>> +     select BR2_PACKAGE_LVM2_APP_LIBRARY
>> +     default n
>
> BR2_PACKAGE_LVM2 is necessarily defined if
> BR2_PACKAGE_LVM2_DMSETUP_ONLY is selected by the main
> BR2_PACKAGE_UDISKS option.
>
> If I understand correctly, you can build:
>
>  * udisks without the lvm2 library, but it needs the dmsetup binary
>    unconditionally (which sounds strange, isn't capable of supporting
>    setups without LVM stuff)
It is weird but configure phase require devmapper library (otherwise
fails) in both case (udisks with/without lvm2 support)
>
>  * udisks with the lvm2 library
>
> Not sure how to handle that properly with the current BR2_PACKAGE_LVM2
> options. Needs more thought.
>
>> +#############################################################
>> +#
>> +# udisks
>> +#
>> +#############################################################
>> +UDISKS_VERSION = 1.0.4
>> +UDISKS_SITE    = http://hal.freedesktop.org/releases/
>> +UDISKS_LICENCE = GPLv2+
>> +UDISKS_LICENCE_FILES = COPYING
>
> LICENSE.
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

Regards,

mbe

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


More information about the buildroot mailing list