After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795079 - Update libarchive to >= 3.0
Update libarchive to >= 3.0
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
unspecified
Other Linux
: Normal normal
: 0.42
Assigned To: Vala maintainers
Vala maintainers
: 771916 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2018-04-08 18:37 UTC by Corentin Noël
Modified: 2018-04-25 08:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libarchive: Add "has_typedef = false" attributes to delegates as needed (1.76 KB, patch)
2018-04-15 16:39 UTC, Rico Tzschichholz
committed Details | Review
libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback() (1.64 KB, patch)
2018-04-25 06:54 UTC, Rico Tzschichholz
committed Details | Review

Description Corentin Noël 2018-04-08 18:37:47 UTC
libarchive 3.0 has been released in 2011 it's probably time to hide the deprecated symbols that have replacement since a long time.

Here is a branch (also contains some data-array related changes)
https://git.gnome.org/browse/vala/log/?h=wip/tintou/libarchive-v3

Related issue: #771916
Comment 1 Rico Tzschichholz 2018-04-08 19:24:48 UTC
Please preserve/fix the code-style for the touched lines. Keep using Posix.off_t and add array_length_type = "size_t" annotations for the uint8[] buffer parameters.
Comment 2 Rico Tzschichholz 2018-04-15 16:39:06 UTC
Created attachment 370965 [details] [review]
libarchive: Add "has_typedef = false" attributes to delegates as needed
Comment 3 Rico Tzschichholz 2018-04-22 19:24:45 UTC
*** Bug 771916 has been marked as a duplicate of this bug. ***
Comment 4 Rico Tzschichholz 2018-04-22 20:47:55 UTC
Attachment 370965 [details] pushed as c535db7 - libarchive: Add "has_typedef = false" attributes to delegates as needed
Comment 5 Michael Catanzaro 2018-04-24 23:10:55 UTC
Can you please fix Boxes?

../src/archive-writer.vala:126.33-126.36: error: Argument 1: Cannot convert from `void*' to `unowned uint8[]'
        if (archive.write_data (data, (size_t) len) != len)
                                ^^^^
../src/archive-writer.vala:75.35-75.86: error: 1 extra arguments for `ssize_t Archive.Read.read_data (uint8[])'
                insert_data (buf, archive_reader.archive.read_data (buf, (size_t) len));

(from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/jobs/26658)
Comment 6 Rico Tzschichholz 2018-04-25 06:54:26 UTC
Created attachment 371362 [details] [review]
libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()
Comment 7 Rico Tzschichholz 2018-04-25 08:58:49 UTC
Comment on attachment 371362 [details] [review]
libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()

Attachment 371362 [details] pushed as ee0d5a2 - libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()