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

strawberryperl: Fix binaries not supporting non x86 archs #24142

Merged
merged 1 commit into from
May 29, 2024
Merged
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
7 changes: 5 additions & 2 deletions recipes/strawberryperl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class StrawberryPerlConan(ConanFile):
homepage = "http://strawberryperl.com"
url = "https://github.com/conan-io/conan-center-index"
topics = ("perl", "interpreter", "windows")
package_type = "application"
settings = "os", "arch", "compiler", "build_type"

def layout(self):
Expand All @@ -24,8 +25,10 @@ def package_id(self):
del self.info.settings.build_type

def validate(self):
if self.info.settings.os != "Windows":
raise ConanInvalidConfiguration("Strawberry Perl is only intended to be used on Windows.")
if self.settings.os != "Windows":
raise ConanInvalidConfiguration(f"{self.ref} is only intended to be used on Windows.")
if self.settings.arch not in ("x86", "x86_64"):
raise ConanInvalidConfiguration(f"{self.ref} is only available for x86 and x86_64 architectures.")

def source(self):
pass
Expand Down
Loading