vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
590 stars 83 forks source link

Move away from Cask for testing / managing package dependencies #271

Open vedang opened 3 months ago

vedang commented 3 months ago

Cask errors are getting increasingly difficult to diagnose, and the community seems to be moving away from the project for dependency management.

Related issue: #205

utkarsh181 commented 3 months ago

Due to re-compilation at updates, I decided to try alternative installation method via AUR. But, it gives me the following error:

Using Emacs 30.0
cask exec emacs --batch -L lisp -f batch-byte-compile lisp/*.el
Cannot open load file: No such file or directory, package-build
Warning: Lisp directory '
Error': No such file or directory
Warning: Lisp directory ' file-missing ("Cannot open load file" "No such file or directory" "package-build")
  require(package-build)
  (let (package-alist package-archive-contents package--initialized (load-path (add-to-list 'load-path (expand-file-name "package-build" cask-directory))) (package-archives '(("gnu" . "https': File name too long
Warning: Lisp directory '//elpa.gnu.org/packages/") ("melpa" . "https': No such file or directory
Warning: Lisp directory '//melpa.org/packages/"))) (package-user-dir cask-bootstrap-dir) (deps '(s f commander git epl shut-up cl-lib cl-generic eieio ansi))) (package-initialize) (setq package-archive-contents nil) (if (package-installed-p 'cl-lib) nil (if package-archive-contents nil (package-refresh-contents)) (package-install 'cl-lib)) (require 'package-build) (let ((tail deps)) (while tail (let ((pkg (car tail))) (if (featurep pkg) nil (if (package-installed-p pkg) nil (if package-archive-contents nil (package-refresh-contents)) (package-install pkg)) (require pkg)) (setq tail (cdr tail))))))
  load-with-code-conversion("/usr/share/cask/cask-bootstrap.el" "/usr/share/cask/cask-bootstrap.el" nil t)
  require(cask-bootstrap "/usr/share/cask/cask-bootstrap")
  #f(compiled-function (buffer file) #<bytecode 0x197fb3a89239>)(#<buffer  *load*> "/usr/share/cask/cask-cli.el")
  load-with-code-conversion("/usr/share/cask/cask-cli.el" "/usr/share/cask/cask-cli.el" nil t #f(compiled-function (buffer file) #<bytecode 0x197fb3a89239>))
  command-line--load-script("/usr/share/cask/cask-cli.el")
  command-line-1(("-scriptload" "/usr/share/cask/cask-cli.el" "--" "load-path"))
  command-line()
  normal-top-level()': No such file or directory
Warning: Could not find simple.el or simple.elc
The EMACSLOADPATH environment variable is set, please check its value
Cannot open load file: File name too long, package
/usr/bin/cask: line 53: emacs: command not found
make: *** [Makefile:28: bytecompile] Error 127

Upon debugging, I stumbled across #589, which is at best, not positive.