There's a merged pull request on the void-packages repository maxima: add a subpkg maxima-ecl needed for sagemath https://github.com/void-linux/void-packages/pull/34273 Description: - Added a build option 'ecl' (enabled by default) - The ecl binary and library will be in a subpkg maxima-ecl so this should not affect current users of maxima - new patches: - a0d7a43...: build a FASL library for ECL (this is merged upstream) - handle-multiple-ldflags.patch: otherwise compilation with multiple options in LDFLAGS fails (taken from debian) - matrixexp.patch: fixes an error in matrix exponentiation (taken from debian, this originates in sagemath) A weak point is that the library maxima.fas is installed in /usr/lib/ecl-${ecl_version} which is where ecl looks for them, but this doesn't seem right. Maybe an alternative would be to have the ecl package ship a symlink at /usr/lib/ecl pointing to the versioned directory, then have the maxima-ecl package place its library in the non-versioned directory. #### Testing the changes - I tested the changes in this PR: **briefly** To compile sagemath using system maxima, two things are necessary: - the maxima-ecl package that this PR introduces - the (yet unmerged) changes for sagemath in https://trac.sagemath.org/ticket/32867 Using both I compiled and doctested sagemath, and it seems to be working ok. #### RFC My doubts are: - where to place the library `maxima.fas` as discussed above - whether to have a build_option for ecl or just hardcode it as enabled - whether to split the `maxima-ecl` package or place the two files it contains in the package `maxima` itself