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

[luajit] Use Conan Center Backup Sources for sources #25061

Merged
merged 2 commits into from
Aug 30, 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
9 changes: 5 additions & 4 deletions recipes/luajit/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# INFO: Upstream moved to rolling releases and removed all tarballs.
# The Github mirror (https://github.com/LuaJIT/LuaJIT) does not match the checksums and have missing header files.
# Conan will consume the backup sources from the Conan Center Artifactory instead, which are the original tarballs (same checksums).
# Read the issue https://github.com/conan-io/conan-center-index/issues/25032 for more information.
sources:
"2.1.0-beta3":
url: "https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz"
url: "https://c3i.jfrog.io/artifactory/conan-center-backup-sources/1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3"
sha256: "1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3"
"2.0.5":
url: "http://luajit.org/download/LuaJIT-2.0.5.tar.gz"
sha256: "874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979"
patches:
"2.1.0-beta3":
- patch_file: "patches/2.1.0-beta3-0001-remove-mac-deploy.patch"
Expand Down
3 changes: 2 additions & 1 deletion recipes/luajit/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def validate(self):
raise ConanInvalidConfiguration(f"{self.ref} is not supported by Mac M1. Please, try any version >=2.1")

def source(self):
get(self, **self.conan_data["sources"][self.version], destination=self.source_folder, strip_root=True)
filename = f"LuaJIT-{self.version}.tar.gz"
get(self, **self.conan_data["sources"][self.version], destination=self.source_folder, filename=filename, strip_root=True)

def generate(self):
if is_msvc(self):
Expand Down
2 changes: 0 additions & 2 deletions recipes/luajit/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
versions:
"2.1.0-beta3":
folder: "all"
"2.0.5":
folder: "all"
Loading