New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/46293#issuecomment-1765001413 Comment: > @dkwo No problem, I'm glad to help. Looks like you have figured out what the basic problem is, good luck from here on out. @robert-dodier sorry for the confusion with my bad `use-shared-library.patch`. I've since improved it so the binary that is built works without having to fiddle with `patchelf`. Please let me know if I can help to upstream some of the patches we have in https://github.com/tornaria/void-packages/tree/maxima/srcpkgs/maxima/patches. I think at least the following would be quite reasonable to upstream: - [handle-multiple-ldflags.patch](https://github.com/tornaria/void-packages/blob/maxima/srcpkgs/maxima/patches/handle-multiple-ldflags.patch) Handle multiple LDFLAGS. - [matrixexp.patch](https://github.com/tornaria/void-packages/blob/maxima/srcpkgs/maxima/patches/matrixexp.patch) Fix error in matrix exponentiation. - [maxima-sbcl-with-gmp.patch](https://github.com/tornaria/void-packages/blob/maxima/srcpkgs/maxima/patches/maxima-sbcl-with-gmp.patch) Patch maxima initialization for sbcl so it uses gmp for arithmetic. - [musl-round.patch](https://github.com/tornaria/void-packages/blob/maxima/srcpkgs/maxima/patches/musl-round.patch) Add a bit more room for rounding errors which cause two tests to fail on x86_64-musl. Also a comment about documentation. The tarball includes all the documentation so it is not necessary to rebuild. However: - Configure will write makefiles and maybe a version file, and building documentation depends on the makefiles so they are rebuild nonetheless. I workaround that by `touch`ing the target files after configure. - There's an option to configure to skip building documentation. Unfortunately, it also disables installing the documentation, so it doesn't help us.