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 786397 - Increase libarchive version requirement
Increase libarchive version requirement
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-17 07:05 UTC by Jason Crain
Modified: 2017-09-21 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Increase-libarchive-version-requirement.patch (911 bytes, patch)
2017-08-17 07:09 UTC, Jason Crain
none Details | Review
Increase-libarchive-version-requirement.patch [3.2.0] (908 bytes, patch)
2017-08-19 16:22 UTC, Jason Crain
none Details | Review
Increase-libarchive-version-requirement.patch (964 bytes, patch)
2017-09-21 21:02 UTC, Jason Crain
committed Details | Review

Description Jason Crain 2017-08-17 07:05:45 UTC
As mentioned recently in IRC, evince does not compile with older libarchive versions due to use of the archive_free and archive_entry_is_encrypted functions.
Comment 1 Jason Crain 2017-08-17 07:09:53 UTC
Created attachment 357767 [details] [review]
Increase-libarchive-version-requirement.patch

This patch increases the required libarchive version to 3.1.900a, which is when these functions were introduced.
Comment 2 Carlos Garcia Campos 2017-08-19 06:57:56 UTC
What kind of version number is that? I'm surprised pkg-config handles version numbers with non numeric values :-) Is that an "stable" version? Maybe it's better to bump to 3.2.0?
Comment 3 Jason Crain 2017-08-19 16:17:43 UTC
I think it's like an alpha. The libarchive commit messages say it's a test release. The version is listed that way in the libarchive git tags, the download page (https://www.libarchive.org/downloads/), and in the .pc files. I tested the version numbers with pkg-config and they seemed to be handled correctly; Asking pkg-config for version >= 3.1.900a accepts versions 3.1.900a, 3.1.901a, and 3.2.0 and rejects version 3.1.2. But I think requiring version >= 3.2.0 would be fine too.
Comment 4 Jason Crain 2017-08-19 16:22:57 UTC
Created attachment 357981 [details] [review]
Increase-libarchive-version-requirement.patch [3.2.0]

This patch increases the required libarchive version to 3.2.0.
Comment 5 Bastien Nocera 2017-08-21 17:19:08 UTC
Review of attachment 357981 [details] [review]:

> functions, which were introduced in libarchive 3.1.900a.

Can you mention that this version is an alpha/pre-release version of 3.2.0? Otherwise it makes it quite weird to mention one version but use another.

Looks good otherwise.
Comment 6 Jason Crain 2017-09-21 21:02:37 UTC
Created attachment 360230 [details] [review]
Increase-libarchive-version-requirement.patch

Updated patch. Sorry it's taken so long, I've been busy with other things lately.