Skip to content

libnl: new package#7833

Merged
adamjstewart merged 2 commits intospack:developfrom
ResearchIT:libnl
Apr 25, 2018
Merged

libnl: new package#7833
adamjstewart merged 2 commits intospack:developfrom
ResearchIT:libnl

Conversation

@baberlevi
Copy link
Copy Markdown
Member

New package, based on #6978 and #4168

The comments in #4168 addressed questions around which repo is canonical - seems there was consensus on using the thom311/libnl github repo.

def check_platform(self):
if not (sys.platform.startswith('freebsd') or
sys.platform.startswith('linux')):
raise InstallError("libnl requires FreeBSD or Linux")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replace this whole thing with a conflicts statement? Something like:

conflicts('platform=darwin', msg='libnl requires FreeBSD or Linux')

Unfortunately, Spack doesn't have a "not" in the spec syntax, so we would have to iterate through each platform (I don't even know what the full list is). But the benefit would be that Spack would crash during concretization instead of installation (before all of the dependencies are even installed).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good suggestion - changed

@adamjstewart adamjstewart merged commit a21571e into spack:develop Apr 25, 2018
@baberlevi baberlevi deleted the libnl branch April 27, 2018 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants