Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxslt: Add new version that supports newer libxml2 versions #25404

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/libxslt/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.1.42":
sha256: "85ca62cac0d41fc77d3f6033da9df6fd73d20ea2fc18b0a3609ffb4110e1baeb"
url: "https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.42.tar.xz"
"1.1.39":
sha256: "2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0"
url: "https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.39.tar.xz"
Expand Down
7 changes: 5 additions & 2 deletions recipes/libxslt/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ def layout(self):
basic_layout(self, src_folder="src")

def requirements(self):
if Version(self.version) >= "1.1.39":
# see https://github.com/conan-io/conan-center-index/pull/16205#discussion_r1149570846
if Version(self.version) >= "1.1.42":
self.requires("libxml2/[>=2.12.5 <3]", transitive_headers=True, transitive_libs=True)
elif Version(self.version) >= "1.1.39":
# see https://github.com/conan-io/conan-center-index/pull/16205#discussion_r1149570846
# Older versions use deprecated functions that were removed in libxml2 2.13
self.requires("libxml2/[>=2.12.5 <2.13]", transitive_headers=True, transitive_libs=True)
else:
self.requires("libxml2/2.11.6", transitive_headers=True, transitive_libs=True)

Expand Down
2 changes: 2 additions & 0 deletions recipes/libxslt/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"1.1.42":
folder: all
"1.1.39":
folder: all
"1.1.37":
Expand Down
Loading