diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index 1c48d4475..0036d9fd9 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -254,6 +254,7 @@ class Gencontrol(Base): 'revisions': ' '.join([i.debian for i in self.versions[::-1]]), 'source': "%(linux_upstream)s-%(debian)s" % self.version.__dict__, 'upstream': self.version.linux_upstream, + 'abiname': self.abiname, } apply = self.substitute(apply, vars) diff --git a/debian/templates/patch.apply.in b/debian/templates/patch.apply.in index fe41bba50..664a75c8a 100644 --- a/debian/templates/patch.apply.in +++ b/debian/templates/patch.apply.in @@ -3,6 +3,8 @@ import os, os.path, re, sys from warnings import warn +sys.path.append("/usr/src/linux-support-@upstream@@abiname@/lib/python") + from debian_linux.debian import VersionLinux from debian_linux.patches import PatchSeries, PatchSeriesList