path: root/
diff options
authorSean Whitton <>2015-12-17 11:18:59 -0700
committerDavid Bremner <>2016-01-03 19:19:13 -0400
commite16d9d66b228b36d148caa57870a2a8068894b5f (patch)
tree0dc521fd43164b3243ce5a1904c55c81fc2aed8c /
parent0005243731ed9a4da4e8ebedc4daa1a7e0a0589a (diff)
put ELPA deps into substvar
Diffstat (limited to '')
1 files changed, 16 insertions, 4 deletions
diff --git a/ b/
index cd02027..79d7b67 100755
--- a/
+++ b/
@@ -234,10 +234,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
- if ($dh{BYTECOMPILE}) {
- my $desc = read_package_desc ($tempdir,$elpapkg);
+ my $desc = read_package_desc ($tempdir,$elpapkg);
+ my $deps = $desc->{'ELPA-Requires'};
+ # TODO: addsubstvar fails to add a variable if its blank. So if the
+ # package has no ELPA dependencies, we should tell the user not to
+ # use this substvar in debian/control
+ addsubstvar($package, 'elpa:Depends', $deps);
- addsubstvar($package,'misc:Depends','emacsen-common');
+ if ($dh{BYTECOMPILE}) {
+ addsubstvar($package, 'misc:Depends', 'emacsen-common');
maybe_install_helper($package, 'compat', '0644', $desc);
maybe_install_helper($package, 'install', '0755', $desc);
maybe_install_helper($package, 'remove', '0755', $desc);
@@ -254,7 +260,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
-dh_elpa currently defines two substvars (cf. deb-substvars(5)) that
+dh_elpa currently defines three substvars (cf. deb-substvars(5)) that
can be used in debian/control
=over 4
@@ -267,6 +273,12 @@ These are dependencies needed by every dh_elpa based package.
This adds a value suitable for a Built-Using header identifying the version of dh_elpa used at build time.
+=item ${elpa:Depends}
+These are dependencies on other ELPA packages as given in the Package-Requires: line of the package's main Emacs Lisp file.
+Note that Emacs Lisp dependencies packaged outside the elpa-* dpkg namespace must be specified manually. For example, the s.el library is provided by the binary package s-el. If dh_elpa adds dependency elpa-x where x is an Emacs Lisp binary package outside the elpa-* namespace, please file a bug against dh_elpa to have an exclusion added.