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

at-spi2-core - Remove duplicated method (recipe linter) #11238

Merged
merged 1 commit into from
Jun 17, 2022
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
10 changes: 4 additions & 6 deletions recipes/at-spi2-core/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ def configure(self):
if self.options.shared:
self.options["glib"].shared = True

def validate(self):
if self.options.shared and not self.options["glib"].shared:
raise ConanInvalidConfiguration(
"Linking a shared library against static glib can cause unexpected behaviour."
)

def build_requirements(self):
self.build_requires("meson/0.62.2")
self.build_requires("pkgconf/1.7.4")
Expand All @@ -63,6 +57,10 @@ def requirements(self):
self.requires("dbus/1.12.20")

def validate(self):
if self.options.shared and not self.options["glib"].shared:
raise ConanInvalidConfiguration(
"Linking a shared library against static glib can cause unexpected behaviour."
)
if self.settings.os != "Linux":
raise ConanInvalidConfiguration("only linux is supported by this recipe")

Expand Down