Skip to content

Update ebuild-tools-repositories.org

rjhwelsh requested to merge rjhwelsh/emacs-ebuild-tools:patch-1 into master

Add missing require statement

After setting up required packages with dependencies based on the elisp (require) statements. goto-ebuild finally encounters a void function.

Debugger entered--Lisp error: (void-function gentoo-cache-get-package-names) gentoo-cache-get-package-names() byte-code("\301\302\10 \303\211$\303B\207" [ebuild-tools-cpn-get-function completing-read "Package: " nil] 5) call-interactively(goto-ebuild record nil) command-execute(goto-ebuild record) execute-extended-command(nil "goto-ebuild" "goto-ebuild") funcall-interactively(execute-extended-command nil "goto-ebuild" "goto-ebuild") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)

Grep-ing for the issue in ebuild-tools. Looks like default customization value is reliant on gentoo-cache.

ebuild-tools/ebuild-tools-core.el: (defcustom ebuild-tools-cpn-get-function 'gentoo-cache-get-package-names

ebuild-tools/ebuild-tools-repositories.el: (declare-function gentoo-cache-get-package-names "gentoo-cache-core") ; in runtime due to defun-cpn

I suggest adding (require 'gentoo-cache) somewhere, probably in ebuild-tools-repositories.el. I just added it to my config as a workaround.

Merge request reports