nix-community / emacs-overlay

Bleeding edge emacs overlay [maintainer=@adisbladis]
510 stars 168 forks source link

Melpa packages failing with `emacs-unstable-pgtk` #425

Closed alexarice closed 2 months ago

alexarice commented 2 months ago

I'm unsure if this is an overlay issue but every melpa package seems to fail to build when using emacs-unstable-pgtk.

They all fail with a variation of the following error:


Error: error ("Can't read whole string")
  error("Can't read whole string")
  package-read-from-string("((emacs \"24.4\") (s \"0\"))")
  lm-package-requires()
  (if (fboundp 'lm-package-requires) (lm-package-requires) (let* ((require-lines (and t (lm-header-multiline "package>
  (package-desc-from-define name version (or (save-excursion (goto-char (point-min)) (and (re-search-forward "^;;; [^>
  (progn (insert-file-contents file) (setq maintainers (if (fboundp 'lm-maintainers) (lm-maintainers) (with-no-warnin>
  (unwind-protect (progn (insert-file-contents file) (setq maintainers (if (fboundp 'lm-maintainers) (lm-maintainers)>
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents file) (setq maintainers >
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protec>
  (and (file-exists-p file) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer t>
  (let* ((name (eieio-oref rcp 'name)) (version (eieio-oref rcp 'version)) (commit (eieio-oref rcp 'commit)) (file (c>
  package-build--desc-from-library(#<package-github-recipe package-github-recipe-329a77> (("amx.el" . "amx.el")))
  (let* ((name (eieio-oref rcp 'name)) (version (eieio-oref rcp 'version)) (commit (eieio-oref rcp 'commit)) (file (c>
  package-build--build-single-file-package(#<package-github-recipe package-github-recipe-329a77> (("amx.el" . "amx.el>
  (if (> (length files) 1) (package-build--build-multi-file-package rcp files) (package-build--build-single-file-pack>
  (let ((files (package-build-expand-files-spec rcp t))) (if files nil (error "Unable to find files matching recipe p>
  (let* ((default-directory (package-recipe--working-tree rcp))) (let ((files (package-build-expand-files-spec rcp t)>
  melpa2nix-build-package-1(#<package-github-recipe package-github-recipe-329a77>)
  (let ((recipe (package-recipe-lookup package))) (let* ((v recipe)) (eieio-oset v 'commit commit)) (let* ((v recipe)>
  (let ((package x112) (version x114) (commit x116)) (let ((recipe (package-recipe-lookup package))) (let* ((v recipe>
  (if (null x117) (let ((package x112) (version x114) (commit x116)) (let ((recipe (package-recipe-lookup package))) >
  (let* ((x116 (car-safe x115)) (x117 (cdr-safe x115))) (if (null x117) (let ((package x112) (version x114) (commit x>
  (if (consp x115) (let* ((x116 (car-safe x115)) (x117 (cdr-safe x115))) (if (null x117) (let ((package x112) (versio>
  (let* ((x114 (car-safe x113)) (x115 (cdr-safe x113))) (if (consp x115) (let* ((x116 (car-safe x115)) (x117 (cdr-saf>
  (if (consp x113) (let* ((x114 (car-safe x113)) (x115 (cdr-safe x113))) (if (consp x115) (let* ((x116 (car-safe x115>
  (let* ((x112 (car-safe command-line-args-left)) (x113 (cdr-safe command-line-args-left))) (if (consp x113) (let* ((>
  (if (consp command-line-args-left) (let* ((x112 (car-safe command-line-args-left)) (x113 (cdr-safe command-line-arg>
  melpa2nix-build-package()
  command-line-1(("-L" "/build/package-build" "-l" "/nix/store/il78imwh61pkvibmnmk2c49m5rrz0isw-melpa2nix.el" "-f" "m>
  command-line()
  normal-top-level()
Can't read whole string

I don't get errors with emacs-pgtk. Apologies if this is an upstream issue or if it's already been reported, but I was struggling to find an issue open on either here or upstream nixpkgs.

brianmcgillion commented 2 months ago

I have been seeing the same and can add that it also does not happen when using emacs-unsable either, just emacs-unstable-pgtk