skip building emacs package is no emacs is available
Open
Beginner friendly
Nobody has claimed this yet.
build issue
editors
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
With cmake build, on Linux without emacs installed, I get
[100%] Linking CXX executable mathicgb-unit-tests
[100%] Built target mathicgb-unit-tests
[100%] Generating Emacs package
Error copying file "/home/dima/software/M2/M2/BUILD/build/Macaulay2/editors/emacs/M2-symbols.el" to "/home/dima/software/M2/M2/BUILD/build/usr-dist/common/share/emacs/site-lisp/macaulay2": No such file or directory
gmake[2]: *** [Macaulay2/editors/CMakeFiles/M2-emacs.dir/build.make:78: usr-dist/common/share/emacs/site-lisp/macaulay2/M2-emacs-help.txt] Error 1
gmake[2]: *** Deleting file 'usr-dist/common/share/emacs/site-lisp/macaulay2/M2-emacs-help.txt'
gmake[1]: *** [CMakeFiles/Makefile2:58270: Macaulay2/editors/CMakeFiles/M2-emacs.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
emacs things should be skipped if no emacs is available
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CMake build target shown in Macaulay2/editors/CMakeFiles/M2-emacs.dir/build.make and reproduce the failure on Linux without Emacs installed. Trace how the M2-emacs target generates files under usr-dist/common/share/emacs/site-lisp/macaulay2. Done means the regular build succeeds and Emacs package generation is skipped when Emacs is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, emacs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100