[Buildroot] [PATCH 3/3] package/libva-utils: new package
Arnout Vandecappelle
arnout at mind.be
Mon Apr 3 13:33:28 UTC 2017
On 02-04-17 23:46, Thomas Petazzoni wrote:
> Hello,
>
> On Sun, 2 Apr 2017 10:13:27 +0200, Bernd Kuhls wrote:
>> The utils provided by this package were formerly packaged with libva.
>> Libva contained a patch not to compile mpeg2vldemo to reduce
>> dependencies by avoiding C++, this patch is not moved to this package.
>>
>> Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
>> ---
>> package/Config.in | 1 +
>> package/libva-utils/Config.in | 15 +++++++++++++++
>> package/libva-utils/libva-utils.hash | 4 ++++
>> package/libva-utils/libva-utils.mk | 14 ++++++++++++++
>
> Entry to DEVELOPERS file is missing.
>
>> diff --git a/package/Config.in b/package/Config.in
>> index d6d134d0c..364766e37 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -1049,6 +1049,7 @@ menu "Graphics"
>> source "package/libsvgtiny/Config.in"
>> source "package/libva/Config.in"
>> source "package/libva-intel-driver/Config.in"
>> + source "package/libva-utils/Config.in"
>
> Does it really makes sense to have this package in Libraries->Graphics
> when it is in fact not a library at all?
>
>> diff --git a/package/libva-utils/Config.in b/package/libva-utils/Config.in
>> new file mode 100644
>> index 000000000..89615cad3
>> --- /dev/null
>> +++ b/package/libva-utils/Config.in
>> @@ -0,0 +1,15 @@
>> +config BR2_PACKAGE_LIBVA_UTILS
>> + bool "libva-utils"
>> + select BR2_PACKAGE_LIBVA
>> + depends on BR2_INSTALL_LIBSTDCPP
>> + depends on BR2_TOOLCHAIN_HAS_THREADS # libva
>> + depends on !BR2_STATIC_LIBS # libva
>
> Perhaps this can be summarized as:
>
> depends on BR2_PACKAGE_LIBVA
>
> indeed, someone wanting the libva tests will surely realize that he
> needs to enable libva in the first place, no?
IMO, if you move the package somewhere else in the menu structure, and then
replace the select with a depends, you're really making life difficult for the
user because they have to go to two places to select this package.
For me, it does make sense to keep the _UTILS in the library menu. I think the
typical use case would be that you select libva because you know you'll need it,
then you see the menu entry for the _UTILS and realize that a test program would
be convenient.
By the way, Bernd, the help text says "Libva-utils is a collection of tests",
so would libva-tests (or perhaps libva-demos" be a more appropriate name?
Regards,
Arnout
>
> Thanks!
>
> Thomas
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list