summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-01-03 11:14:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-01-03 11:14:13 -0700
commita965ed3b6664b075a034b2997487893e39dada80 (patch)
tree802d1e6ebda9a624277a9e41f3f52abdbcb5d2f1 /debian
parentd6040c47e4e5769807d236f30ea995abfa4d4505 (diff)
downloademacs-a965ed3b6664b075a034b2997487893e39dada80.tar.gz
d/emacs-snapshot.sh: Add comment regarding update-alternatives
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog1
-rw-r--r--debian/emacs-snapshot.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 44e62c15f43..981a91c3d2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
emacs-snapshot (29.1~git20221203.2) UNRELEASED; urgency=medium
* d/merge-snapshot: Find merge base with origin/emacs-29, not origin/master.
+ * d/emacs-snapshot.sh: Add comment regarding update-alternatives.
-- Sean Whitton <spwhitton@spwhitton.name> Tue, 03 Jan 2023 11:10:46 -0700
diff --git a/debian/emacs-snapshot.sh b/debian/emacs-snapshot.sh
index 12c67a4a44a..7893d16aa12 100644
--- a/debian/emacs-snapshot.sh
+++ b/debian/emacs-snapshot.sh
@@ -1,3 +1,8 @@
+# We install this script rather than using update-alternatives because
+# whatever is providing /usr/bin/emacs is used to bytecompile files
+# for Debian's packaged builds of Emacs, and there could be
+# incompatibilities if emacs-snapshot builds were invoked to do that.
+
if [ "`id -u`" -ne 0 ]; then
PATH=/opt/emacs-snapshot/bin:$PATH
fi