File: 0006-Add-DEBIAN_ELPA_DIR-for-async-detection.patch

package info (click to toggle)
helm 4.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,900 kB
  • sloc: lisp: 33,135; sh: 196; makefile: 60
file content (23 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Xiyue Deng <manphiz@gmail.com>
Date: Wed, 28 May 2025 20:08:45 -0700
Subject: Add DEBIAN_ELPA_DIR for async detection

---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index baa4261..65ab800 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,9 @@ LOADPATH	:= -L $(PKGDIR)
 # Assume emacs-user-directory is ~/.emacs.d
 # Try to find ELPA directory or STRAIGHT directory.
 XDG_ELPA_DIR	:= $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME)/emacs/elpa, $(HOME)/.config/emacs/elpa)
-ELPA_DIR := $(if $(shell test -d $(XDG_ELPA_DIR)), $(XDG_ELPA_DIR), $(HOME)/.emacs.d/elpa)
+TMP_ELPA_DIR := $(if $(shell test -d $(XDG_ELPA_DIR)), $(XDG_ELPA_DIR), $(HOME)/.emacs.d/elpa)
+DEBIAN_ELPA_DIR := /usr/share/emacs/site-lisp/elpa
+ELPA_DIR := $(if $(DEBIAN_ELPA_DIR), $(DEBIAN_ELPA_DIR), $(TMP_ELPA_DIR))
 
 XDG_STRAIGHT_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME)/emacs/straight/build, $(HOME)/.config/emacs/straight/build)
 STRAIGHT_DIR := $(if $(shell test -d $(XDG_STRAIGHT_DIR)), $(XDG_STRAIGHT_DIR), $(HOME)/.emacs.d/straight/build)