flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
95 stars 13 forks source link

ALR update/build failure on Mac #150

Closed rogermc2 closed 2 years ago

rogermc2 commented 2 years ago

I am trying to build OpenGLAda using alire but am having many difficulties. When I try alr update in any of the OpenGLAda subdirectories I get:

error: Cannot continue with invalid session:
error:    Failed to load /Ada_Source/OpenGLAda/opengl/alire.toml:
error:    Cannot load manifest openglada, please review contents:
error:    Loading release from manifest: /Ada_Source/OpenGLAda/opengl/alire.toml:
error:    licenses:
error:    license expects an array

The alire documentation does not seem to address this issue. This problem is particularly strange as alr update works on my other Mac.

flyx commented 2 years ago

That is very strange. The Alire docs say:

licenses: mandatory (for indexing) string. A valid SPDX expression. Custom license identifiers are accepted with the format: custom-[0-9a-zA-Z.-]+

Therefore, opengl/alire.toml is right to specify

licenses = "MIT"

What OS are you on and what alr version are you using?

rogermc2 commented 2 years ago

OSX 10.13.6 High Sierra

Alr version: 0.7.1
Alire Library version: 0.7.1

I'm new to alr and am having quite a battle getting used to it. Thanks for your assistance.

flyx commented 2 years ago

This Alire PR introduced SPDX expression to licenses and consequentially, you'll need an alr that includes this change. You need at least alr 1.0.0, though using the 1.1.x would probably be preferrable.

rogermc2 commented 2 years ago

Thanks. ALR on my other computer is 1.1 On this computer which alr revealed the older version hiding in another directory. Deleting that fixed things. OpenGLAda working again!