Skip to content

libexpat: Fix for older systems, move to GitHub#8135

Merged
adamjstewart merged 3 commits intospack:developfrom
citibeth:efischer/180514-FixLibExpat
May 18, 2018
Merged

libexpat: Fix for older systems, move to GitHub#8135
adamjstewart merged 3 commits intospack:developfrom
citibeth:efischer/180514-FixLibExpat

Conversation

@citibeth
Copy link
Copy Markdown
Member

On SuSE (SLES) 11, I got the following error, in spite of using --with-libbsd as added in #4945:

lib/xmlparse.c:56:3: error: #error You do not have support for any sources of high quality entropy enabled...

spack-build.out.txt

An update to the latest version of libexpat solved the problem. In the meantime, I'm moving this package to GitHub, as per instructions on the upstream website https://sourceforge.net/projects/expat/

PLEASE NOTE that we are in the process of moving to GitHub: https://github.com/libexpat/libexpat

…rsion of libexpat did. Also update for Expat's move to GitHub.
version('2.2.2', '1ede9a41223c78528b8c5d23e69a2667',
url='https://github.com/libexpat/libexpat/releases/download/R_2_2_2/expat-2.2.2.tar.bz2')
version('2.2.0', '2f47841c829facb346eb6e3fab5212e2',
url='https://github.com/libexpat/libexpat/releases/download/R_2_2_0/expat-2.2.0.tar.bz2')
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.

You should be able to write a url_for_version to handle this:

def url_for_version(self, version):
    url = 'https://github.com/libexpat/libexpat/releases/download/R_{0}/expat-{1}.tar.bz2'
    return url.format(version.underscored, version.dotted)

Move to url_for_version()
@adamjstewart adamjstewart merged commit 99f6780 into spack:develop May 18, 2018
@adamjstewart adamjstewart deleted the efischer/180514-FixLibExpat branch May 18, 2018 01:05
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