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

Create matlab-runtime-9.7 and spm12 packages #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Member

@DimitriPapadopoulos DimitriPapadopoulos commented Oct 10, 2024

Find more information in the relevant documentation:

The binaries are available starting from these pages:

Matlab Compiler Runtime

Choose 9.7 as the Matlab runtime version, as it is the official MATLAB Runtime Version number according to the
MATLAB Runtime download page. Alternatives include v97 or R2019b. None of these versioning schemes account for the update version (R2019b Update 9) of the MATLAB release. Sigh.

For now, keep the package non-relocatable. The patchelf tool fails with obscure error messages on MATLAB Runtime binaries.

SPM Standalone

Initial SPM Standalone binary packages used to be built against MATLAB R2010a and depend on the associated MATLAB Runtime 7.13. Unfortunately, that obsolete version of the MATLAB Runtime is not compatible with recent Linux distributions. We had to jump through hoops to run SPM12 on recent Linux machines, running SPM Standalone against MATLAB Runtime 9.7, associated to MATLAB R2019b, hoping for compatibility both with recent operating systems and the obsolete SPM Standalone binary package:

Nowadays, FIL provide multiple versions of the lastest release 7771 of SPM12, each for a specific version of the MATLAB Runtime:

SPM12 Standalone 7771 package MATLAB Runtime version
spm12_r7771_R2010a.zip MATLAB Runtime 7.13
spm12_r7771_Linux_R2015b.zip MATLAB Runtime 9.0
spm12_r7771_Linux_R2016a.zip MATLAB Runtime 9.0.1
spm12_r7771_Linux_R2016b.zip MATLAB Runtime 9.1
spm12_r7771_Linux_R2017a.zip MATLAB Runtime 9.2
spm12_r7771_Linux_R2017b.zip MATLAB Runtime 9.3
spm12_r7771_Linux_R2018a.zip MATLAB Runtime 9.4
spm12_r7771_Linux_R2018b.zip MATLAB Runtime 9.5
spm12_r7771_Linux_R2019a.zip MATLAB Runtime 9.6
spm12_r7771_Linux_R2019b.zip MATLAB Runtime 9.7
spm12_r7771_Linux_R2020a.zip MATLAB Runtime 9.8
spm12_r7771_Linux_R2020b.zip MATLAB Runtime 9.9
spm12_r7771_Linux_R2021a.zip MATLAB Runtime 9.10
spm12_r7771_Linux_R2021b.zip MATLAB Runtime 9.11
spm12_r7771_Linux_R2022a.zip MATLAB Runtime 9.12
spm12_r7771_Linux_R2022b.zip MATLAB Runtime 9.13

For now, I'm depending on MATLAB Runtime Version 9.7, for consistency with other packages, and to avoid depending on multiple MATLAB Runtime versions.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the matlab-runtime branch 2 times, most recently from 6102bcb to 8430459 Compare October 11, 2024 11:24
@DimitriPapadopoulos DimitriPapadopoulos force-pushed the matlab-runtime branch 6 times, most recently from 4118e6b to 1eeb655 Compare October 29, 2024 16:43
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review October 29, 2024 16:47
@DimitriPapadopoulos
Copy link
Member Author

DimitriPapadopoulos commented Oct 29, 2024

@sapetnioc Can you have a look?

I think this change does not impact other packages in this repository.

Copy link
Contributor

@sapetnioc sapetnioc left a comment

Choose a reason for hiding this comment

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

I was able to install the package but I wait for the corresponding SPM 12 package to really test it.

recipes/matlab-runtime-9.7/recipe.yaml Show resolved Hide resolved
recipes/matlab-runtime-9.7/recipe.yaml Show resolved Hide resolved
@DimitriPapadopoulos DimitriPapadopoulos force-pushed the matlab-runtime branch 3 times, most recently from 099031a to c3b3130 Compare October 31, 2024 14:08
@DimitriPapadopoulos DimitriPapadopoulos changed the title Create matlab-runtime package Create matlab-runtime-9.7 and spm12 packages Nov 21, 2024
@DimitriPapadopoulos
Copy link
Member Author

I moved the spm12 package to this PR, superseding #16.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the matlab-runtime branch 2 times, most recently from cb9cecb to f357da0 Compare November 22, 2024 14:52
@DimitriPapadopoulos
Copy link
Member Author

@sapetnioc Can you have a look?

@sapetnioc
Copy link
Contributor

The PR is ok for me. I did not test the packages yet. My only question is about the non relocatable binaries of the Matlab runtime. Their final location is not known at package time. It could be different for each installation. Is it a problem ?

@DimitriPapadopoulos
Copy link
Member Author

It shouldn't be a problem. SPM12 is started by a shell script that sets LD_LIBRARY_PATH.

Allow multiple versions of the Matlab Runtime. For that we need to
include the version in the package name and make sure each version
is installed alongside other versions.

Note that the package version is simply the update number, 9 in the
case of the 9.7/R2019b Linux binary:
	MATLAB_Runtime_R2019b_Update_9_glnxa64.zip

For now, keep the package non-relocatable. The `patchelf` tool fails
with obscure error messages on MATLAB Runtime binaries.
Note that the package version is the relese number of Standalone
SPM12, the current latest release being r7771:
	spm12_r7771_Linux_R2019b.zip

For now, keep the package non-relocatable. I am not convinced the
`patchelf` tool does the right thing on MATLAB Runtime binaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants