Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
343 stars 230 forks source link

make fails on newest commit (995c6fd) but works on the previous commit #1549

Closed Dylan1496 closed 3 years ago

Dylan1496 commented 3 years ago

Using the makepkg available on the Arch AUR (https://aur.archlinux.org/packages/macaulay2/), the build fails when it's setting up help for emacs. The error that occurs is the following:

make[2]: *** No rule to make target '../editors/emacs/make-M2-emacs-help.m2', needed by 'TAGS'. Stop.

This issue does not occur with the previous commit (8b41c61). So something appears to be broken here, as there is no way to prevent this from building to allow the makepkg to create the package successfully.

d-torrance commented 3 years ago

It looks like the M2-emacs submodule hasn't been initialized. Glancing at https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=macaulay2, I think the following line should be added before the call to make in line 34:

git submodule update --init Macaulay2/editors/emacs
Dylan1496 commented 3 years ago

Turns out the issue was a bit easier: I needed to first run make before running the configure command, as per the instructions in INSTALL. Then after that it built correctly. The corrected pkgbuild is here: https://pastebin.com/7Ey2DfNi

So this issue is solved and can be closed.