Skip to content

Add JasPer 2.0.14#8207

Merged
adamjstewart merged 5 commits intospack:developfrom
adamjstewart:features/jasper
May 26, 2018
Merged

Add JasPer 2.0.14#8207
adamjstewart merged 5 commits intospack:developfrom
adamjstewart:features/jasper

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

@adamjstewart adamjstewart commented May 19, 2018

I ended up dropping the old version of JasPer because

  1. They switched the build system from Autotools to CMake
  2. They switched from .zip to .tar.gz

If someone really needs it, I can add support for it, but if not, I'd rather leave it out. It increases the complexity of the package too much.

P.S. Successfully installed on macOS 10.13.4 with Clang 9.0.0. Passed all of its own tests.

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented May 19, 2018

Actually, hold off on this, I might need to build with an old version of JasPer anyway:
https://trac.osgeo.org/gdal/wiki/JasPer

EDIT: As I feared, GDAL explicitly requires that old hacked version of JasPer. I'm going to have to make this a multi-build system package.

@healther
Copy link
Copy Markdown
Contributor

Maybe we should take another look at supporting multiple build systems per package. I'm not completely sold on this, but the number of packages that I know of and that changed their build system is >2 now...

This is one of the reasons why I'm yet to add nest to upstream spack...

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented May 24, 2018

Testing this with an older version of CMake and now I'm running into problems:
jasper-software/jasper#176

EDIT: I successfully installed JasPer with a newer version of CMake, so I think cmake_minimum_required is wrong.

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented May 25, 2018

the number of packages that I know of and that changed their build system is >2 now...

There are exactly 7 out of 2693 packages in Spack that use multiple build systems:

  • arpack-ng
  • dyninst
  • glog
  • jasper
  • metis
  • opennurbs
  • superlu

I'm not sure how easy it would be to add builtin support for this. I'm sure it's doable, but would probably require some refactoring. I guess it depends on how much work it would be.

@adamjstewart
Copy link
Copy Markdown
Member Author

@alalazo (@wscullin?) We recently added a mechanism by which a package can depend on another package with a specific patch applied, correct? Can you point me to an example?

GDAL depends on this hacked version of JasPer, but I don't want to apply this patch by default.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 25, 2018

@adamjstewart Look at qmcpack, which depends on a patched version of espresso

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented May 25, 2018

@alalazo If I use a file instead of a URL, does the patch go with the dependent package or with the parent package?

EDIT: Looks like it checks in the GDAL directory, that makes sense.

@adamjstewart
Copy link
Copy Markdown
Member Author

This is now ready to merge. Successfully installed both versions with Clang 9.0.0 on macOS 10.13.4. All unit tests passed.

@adamjstewart adamjstewart merged commit 5490190 into spack:develop May 26, 2018
@adamjstewart adamjstewart deleted the features/jasper branch May 26, 2018 15:37
junghans pushed a commit that referenced this pull request May 29, 2018
* Add JasPer 2.0.14

* Remove no longer necessary patch

* Explicitly disable generation of documentation

* Re-add support for JasPer 1.900.1, add GDAL patch

* Remove GDAL patch
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.

3 participants