diff mbox series

[22/45] libarchive: upgrade 3.7.9 -> 3.8.0

Message ID 20250604084524.864-22-wangmy@fujitsu.com
State New
Headers show
Series [01/45] apr: upgrade 1.7.5 -> 1.7.6 | expand

Commit Message

Wang Mingyu June 4, 2025, 8:45 a.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

License-Update:
   file in public domain changed from
   libarchive/archive_getdate.c to libarchive/archive_parse_date.c

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb} (93%)

Comments

Mathieu Dubois-Briand June 5, 2025, 6:52 a.m. UTC | #1
On Wed Jun 4, 2025 at 10:45 AM CEST, wangmy via lists.openembedded.org wrote:
> From: Wang Mingyu <wangmy@fujitsu.com>
>
> License-Update:
>    file in public domain changed from
>    libarchive/archive_getdate.c to libarchive/archive_parse_date.c
>
> Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> ---
>  .../libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb}   | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>  rename meta/recipes-extended/libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb} (93%)
>
> diff --git a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
> similarity index 93%
> rename from meta/recipes-extended/libarchive/libarchive_3.7.9.bb
> rename to meta/recipes-extended/libarchive/libarchive_3.8.0.bb
> index d70cdb3d83..0722f26f9f 100644
> --- a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb
> +++ b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
> @@ -3,7 +3,7 @@ DESCRIPTION = "C library and command-line tools for reading and writing tar, cpi
>  HOMEPAGE = "http://www.libarchive.org/"
>  SECTION = "devel"
>  LICENSE = "BSD-2-Clause"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=d499814247adaee08d88080841cb5665"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=7ce08437ff7f5e24d72e666313ae4084"
>  
>  DEPENDS = "e2fsprogs-native"
>  
> @@ -31,7 +31,7 @@ EXTRA_OECONF += "--enable-largefile --without-iconv"
>  
>  SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz"
>  
> -SRC_URI[sha256sum] = "aa90732c5a6bdda52fda2ad468ac98d75be981c15dde263d7b5cf6af66fd009f"
> +SRC_URI[sha256sum] = "191b5b24811499d5c2e5efa3248975fa6daa5e6a227700cc7b8e54d6d7c06eef"
>  
>  inherit autotools update-alternatives pkgconfig
>  

Hi Joshua,

Adding you to the discussion. I believe this patch will require a fix on
meta-mingw side, as the build appears broken on the autobuilder.

ERROR: nativesdk-libarchive-3.8.0-r0 do_compile: oe_runmake failed
ERROR: nativesdk-libarchive-3.8.0-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-libarchive/3.8.0/temp/run.do_compile.581979' failed with exit code 1
...
| ../libarchive-3.8.0/libarchive/archive_version_details.c: In function 'archive_wincrypt_version':
| ../libarchive-3.8.0/libarchive/archive_version_details.c:443:50: error: passing argument 3 of 'CryptGetProvParam' from incompatible pointer type [-Wincompatible-pointer-types]
|   443 |         if (!CryptGetProvParam(prov, PP_VERSION, &version, &length, 0)) {
|       |                                                  ^~~~~~~~
|       |                                                  |
|       |                                                  DWORD * {aka long unsigned int *}
| In file included from ../libarchive-3.8.0/libarchive/archive_digest_private.h:179,
|                  from ../libarchive-3.8.0/libarchive/archive_version_details.c:86:
| /srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-libarchive/3.8.0/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/include/wincrypt.h:826:84: note: expected 'BYTE *' {aka 'unsigned char *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
|   826 |   WINIMPM WINBOOL WINAPI CryptGetProvParam (HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData, DWORD *pdwDataLen, DWORD dwFlags);
|       |

https://autobuilder.yoctoproject.org/valkyrie/#/builders/7/builds/1815
Khem Raj June 5, 2025, 4:36 p.m. UTC | #2
On 6/4/25 11:52 PM, Mathieu Dubois-Briand via lists.openembedded.org wrote:
> On Wed Jun 4, 2025 at 10:45 AM CEST, wangmy via lists.openembedded.org wrote:
>> From: Wang Mingyu <wangmy@fujitsu.com>
>>
>> License-Update:
>>     file in public domain changed from
>>     libarchive/archive_getdate.c to libarchive/archive_parse_date.c
>>
>> Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
>> ---
>>   .../libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb}   | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>   rename meta/recipes-extended/libarchive/{libarchive_3.7.9.bb => libarchive_3.8.0.bb} (93%)
>>
>> diff --git a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
>> similarity index 93%
>> rename from meta/recipes-extended/libarchive/libarchive_3.7.9.bb
>> rename to meta/recipes-extended/libarchive/libarchive_3.8.0.bb
>> index d70cdb3d83..0722f26f9f 100644
>> --- a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb
>> +++ b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
>> @@ -3,7 +3,7 @@ DESCRIPTION = "C library and command-line tools for reading and writing tar, cpi
>>   HOMEPAGE = "http://www.libarchive.org/"
>>   SECTION = "devel"
>>   LICENSE = "BSD-2-Clause"
>> -LIC_FILES_CHKSUM = "file://COPYING;md5=d499814247adaee08d88080841cb5665"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=7ce08437ff7f5e24d72e666313ae4084"
>>   
>>   DEPENDS = "e2fsprogs-native"
>>   
>> @@ -31,7 +31,7 @@ EXTRA_OECONF += "--enable-largefile --without-iconv"
>>   
>>   SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz"
>>   
>> -SRC_URI[sha256sum] = "aa90732c5a6bdda52fda2ad468ac98d75be981c15dde263d7b5cf6af66fd009f"
>> +SRC_URI[sha256sum] = "191b5b24811499d5c2e5efa3248975fa6daa5e6a227700cc7b8e54d6d7c06eef"
>>   
>>   inherit autotools update-alternatives pkgconfig
>>   
> 
> Hi Joshua,
> 
> Adding you to the discussion. I believe this patch will require a fix on
> meta-mingw side, as the build appears broken on the autobuilder.
> 
> ERROR: nativesdk-libarchive-3.8.0-r0 do_compile: oe_runmake failed
> ERROR: nativesdk-libarchive-3.8.0-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-libarchive/3.8.0/temp/run.do_compile.581979' failed with exit code 1
> ...
> | ../libarchive-3.8.0/libarchive/archive_version_details.c: In function 'archive_wincrypt_version':
> | ../libarchive-3.8.0/libarchive/archive_version_details.c:443:50: error: passing argument 3 of 'CryptGetProvParam' from incompatible pointer type [-Wincompatible-pointer-types]
> |   443 |         if (!CryptGetProvParam(prov, PP_VERSION, &version, &length, 0)) {
> |       |                                                  ^~~~~~~~
> |       |                                                  |
> |       |                                                  DWORD * {aka long unsigned int *}
> | In file included from ../libarchive-3.8.0/libarchive/archive_digest_private.h:179,
> |                  from ../libarchive-3.8.0/libarchive/archive_version_details.c:86:
> | /srv/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/i686-nativesdk-mingw32-w64-mingw32/nativesdk-libarchive/3.8.0/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/i686-w64-mingw32/usr/include/wincrypt.h:826:84: note: expected 'BYTE *' {aka 'unsigned char *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
> |   826 |   WINIMPM WINBOOL WINAPI CryptGetProvParam (HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData, DWORD *pdwDataLen, DWORD dwFlags);
> |       |
> 
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/7/builds/1815

I think it could be due to  32-bit systems to have 64bit time

Does this help ?
CFLAGS += " -D__MINGW_USE_VC2005_COMPAT"

> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#217988): https://lists.openembedded.org/g/openembedded-core/message/217988
> Mute This Topic: https://lists.openembedded.org/mt/113462781/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
similarity index 93%
rename from meta/recipes-extended/libarchive/libarchive_3.7.9.bb
rename to meta/recipes-extended/libarchive/libarchive_3.8.0.bb
index d70cdb3d83..0722f26f9f 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.8.0.bb
@@ -3,7 +3,7 @@  DESCRIPTION = "C library and command-line tools for reading and writing tar, cpi
 HOMEPAGE = "http://www.libarchive.org/"
 SECTION = "devel"
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d499814247adaee08d88080841cb5665"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7ce08437ff7f5e24d72e666313ae4084"
 
 DEPENDS = "e2fsprogs-native"
 
@@ -31,7 +31,7 @@  EXTRA_OECONF += "--enable-largefile --without-iconv"
 
 SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz"
 
-SRC_URI[sha256sum] = "aa90732c5a6bdda52fda2ad468ac98d75be981c15dde263d7b5cf6af66fd009f"
+SRC_URI[sha256sum] = "191b5b24811499d5c2e5efa3248975fa6daa5e6a227700cc7b8e54d6d7c06eef"
 
 inherit autotools update-alternatives pkgconfig