All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmake-native: enabled zstd support
@ 2021-05-25 10:04 Samuli Piippo
  2021-05-25 10:07 ` [OE-core] " Alexander Kanavin
  2021-05-26  8:04 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Samuli Piippo @ 2021-05-25 10:04 UTC (permalink / raw)
  To: openembedded-core

Now that zstd is in oe-core, enable support for it in native CMake.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
---
 meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
index d91e42ef9a..335097d387 100644
--- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
@@ -1,7 +1,7 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native"
+DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native zstd-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
             file://environment.d-cmake.sh \
-- 
2.25.1


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

* Re: [OE-core] [PATCH] cmake-native: enabled zstd support
  2021-05-25 10:04 [PATCH] cmake-native: enabled zstd support Samuli Piippo
@ 2021-05-25 10:07 ` Alexander Kanavin
  2021-05-25 11:27   ` Samuli Piippo
  2021-05-26  8:04 ` Khem Raj
  1 sibling, 1 reply; 6+ messages in thread
From: Alexander Kanavin @ 2021-05-25 10:07 UTC (permalink / raw)
  To: Samuli Piippo; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

You need to explain the benefit in doing so, I think? :)

Alex

On Tue, 25 May 2021 at 12:05, Samuli Piippo <samuli.piippo@gmail.com> wrote:

> Now that zstd is in oe-core, enable support for it in native CMake.
>
> Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
> ---
>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> index d91e42ef9a..335097d387 100644
> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> @@ -1,7 +1,7 @@
>  require cmake.inc
>  inherit native
>
> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
> ncurses-native"
> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
> ncurses-native zstd-native"
>
>  SRC_URI += "file://OEToolchainConfig.cmake \
>              file://environment.d-cmake.sh \
> --
> 2.25.1
>
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 2001 bytes --]

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

* Re: [OE-core] [PATCH] cmake-native: enabled zstd support
  2021-05-25 10:07 ` [OE-core] " Alexander Kanavin
@ 2021-05-25 11:27   ` Samuli Piippo
  2021-05-25 12:00     ` Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: Samuli Piippo @ 2021-05-25 11:27 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]

Issue came up while building Qt6, which uses cmake packaging API:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552
Things break when zstd support is not available and CMake doesn't provide
simple why to ask if the support is available.

Quote from cmake dev:
As far as CMake's design is concerned, we have no optional formats. All
should be supported.
That's why we bundle sufficiently new versions of libarchive and libzstd.
If a distro builds with an older libarchive that doesn't have zstd support,
then that is not a proper packaging of CMake.

For target/nativesdk CMake depends on libarchive for this support, which is
covered in the second patch.

-samuli

On Tue, 25 May 2021 at 13:07, Alexander Kanavin <alex.kanavin@gmail.com>
wrote:

> You need to explain the benefit in doing so, I think? :)
>
> Alex
>
> On Tue, 25 May 2021 at 12:05, Samuli Piippo <samuli.piippo@gmail.com>
> wrote:
>
>> Now that zstd is in oe-core, enable support for it in native CMake.
>>
>> Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
>> ---
>>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> index d91e42ef9a..335097d387 100644
>> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> @@ -1,7 +1,7 @@
>>  require cmake.inc
>>  inherit native
>>
>> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>> ncurses-native"
>> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>> ncurses-native zstd-native"
>>
>>  SRC_URI += "file://OEToolchainConfig.cmake \
>>              file://environment.d-cmake.sh \
>> --
>> 2.25.1
>>
>>
>> 
>>
>>

[-- Attachment #2: Type: text/html, Size: 3296 bytes --]

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

* Re: [OE-core] [PATCH] cmake-native: enabled zstd support
  2021-05-25 11:27   ` Samuli Piippo
@ 2021-05-25 12:00     ` Alexander Kanavin
  2021-05-25 12:41       ` Samuli Piippo
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Kanavin @ 2021-05-25 12:00 UTC (permalink / raw)
  To: Samuli Piippo; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]

Thanks, it would be beneficial to record this information in the commit
message.

Alex

On Tue, 25 May 2021 at 13:27, Samuli Piippo <samuli.piippo@gmail.com> wrote:

> Issue came up while building Qt6, which uses cmake packaging API:
> https://gitlab.kitware.com/cmake/cmake/-/issues/21552
> Things break when zstd support is not available and CMake doesn't provide
> simple why to ask if the support is available.
>
> Quote from cmake dev:
> As far as CMake's design is concerned, we have no optional formats. All
> should be supported.
> That's why we bundle sufficiently new versions of libarchive and libzstd.
> If a distro builds with an older libarchive that doesn't have zstd
> support, then that is not a proper packaging of CMake.
>
> For target/nativesdk CMake depends on libarchive for this support, which
> is covered in the second patch.
>
> -samuli
>
> On Tue, 25 May 2021 at 13:07, Alexander Kanavin <alex.kanavin@gmail.com>
> wrote:
>
>> You need to explain the benefit in doing so, I think? :)
>>
>> Alex
>>
>> On Tue, 25 May 2021 at 12:05, Samuli Piippo <samuli.piippo@gmail.com>
>> wrote:
>>
>>> Now that zstd is in oe-core, enable support for it in native CMake.
>>>
>>> Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
>>> ---
>>>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> index d91e42ef9a..335097d387 100644
>>> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> @@ -1,7 +1,7 @@
>>>  require cmake.inc
>>>  inherit native
>>>
>>> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>> ncurses-native"
>>> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>> ncurses-native zstd-native"
>>>
>>>  SRC_URI += "file://OEToolchainConfig.cmake \
>>>              file://environment.d-cmake.sh \
>>> --
>>> 2.25.1
>>>
>>>
>>> 
>>>
>>>

[-- Attachment #2: Type: text/html, Size: 3816 bytes --]

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

* Re: [OE-core] [PATCH] cmake-native: enabled zstd support
  2021-05-25 12:00     ` Alexander Kanavin
@ 2021-05-25 12:41       ` Samuli Piippo
  0 siblings, 0 replies; 6+ messages in thread
From: Samuli Piippo @ 2021-05-25 12:41 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 2339 bytes --]

commit messages updated in v2 patches

-samuli

On Tue, 25 May 2021 at 15:00, Alexander Kanavin <alex.kanavin@gmail.com>
wrote:

> Thanks, it would be beneficial to record this information in the commit
> message.
>
> Alex
>
> On Tue, 25 May 2021 at 13:27, Samuli Piippo <samuli.piippo@gmail.com>
> wrote:
>
>> Issue came up while building Qt6, which uses cmake packaging API:
>> https://gitlab.kitware.com/cmake/cmake/-/issues/21552
>> Things break when zstd support is not available and CMake doesn't provide
>> simple why to ask if the support is available.
>>
>> Quote from cmake dev:
>> As far as CMake's design is concerned, we have no optional formats. All
>> should be supported.
>> That's why we bundle sufficiently new versions of libarchive and libzstd.
>> If a distro builds with an older libarchive that doesn't have zstd
>> support, then that is not a proper packaging of CMake.
>>
>> For target/nativesdk CMake depends on libarchive for this support, which
>> is covered in the second patch.
>>
>> -samuli
>>
>> On Tue, 25 May 2021 at 13:07, Alexander Kanavin <alex.kanavin@gmail.com>
>> wrote:
>>
>>> You need to explain the benefit in doing so, I think? :)
>>>
>>> Alex
>>>
>>> On Tue, 25 May 2021 at 12:05, Samuli Piippo <samuli.piippo@gmail.com>
>>> wrote:
>>>
>>>> Now that zstd is in oe-core, enable support for it in native CMake.
>>>>
>>>> Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
>>>> ---
>>>>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>>> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>>> index d91e42ef9a..335097d387 100644
>>>> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>>> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>>> @@ -1,7 +1,7 @@
>>>>  require cmake.inc
>>>>  inherit native
>>>>
>>>> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>>> ncurses-native"
>>>> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>>> ncurses-native zstd-native"
>>>>
>>>>  SRC_URI += "file://OEToolchainConfig.cmake \
>>>>              file://environment.d-cmake.sh \
>>>> --
>>>> 2.25.1
>>>>
>>>>
>>>> 
>>>>
>>>>

[-- Attachment #2: Type: text/html, Size: 4282 bytes --]

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

* Re: [OE-core] [PATCH] cmake-native: enabled zstd support
  2021-05-25 10:04 [PATCH] cmake-native: enabled zstd support Samuli Piippo
  2021-05-25 10:07 ` [OE-core] " Alexander Kanavin
@ 2021-05-26  8:04 ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2021-05-26  8:04 UTC (permalink / raw)
  To: Samuli Piippo; +Cc: Patches and discussions about the oe-core layer

i wonder if this is the cause of wireshark failure
https://errors.yoctoproject.org/Errors/Details/585545/

On Tue, May 25, 2021 at 3:05 AM Samuli Piippo <samuli.piippo@gmail.com> wrote:
>
> Now that zstd is in oe-core, enable support for it in native CMake.
>
> Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
> ---
>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> index d91e42ef9a..335097d387 100644
> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> @@ -1,7 +1,7 @@
>  require cmake.inc
>  inherit native
>
> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native"
> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native zstd-native"
>
>  SRC_URI += "file://OEToolchainConfig.cmake \
>              file://environment.d-cmake.sh \
> --
> 2.25.1
>
>
> 
>

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

end of thread, other threads:[~2021-05-26  8:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 10:04 [PATCH] cmake-native: enabled zstd support Samuli Piippo
2021-05-25 10:07 ` [OE-core] " Alexander Kanavin
2021-05-25 11:27   ` Samuli Piippo
2021-05-25 12:00     ` Alexander Kanavin
2021-05-25 12:41       ` Samuli Piippo
2021-05-26  8:04 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.