Commit 6067bbf8 authored by Tim Gardner's avatar Tim Gardner Committed by Juerg Haefliger

UBUNTU: [Debian] Dynamically determine linux udebs package name

BugLink: http://bugs.launchpad.net/bugs/1764794Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 4d827776
......@@ -6,6 +6,7 @@ ifeq ($(disable_d_i),)
do-binary-udebs
endif
do-binary-udebs: linux_udeb_name=$(shell if echo $(src_pkg_name)|grep -q linux-lts; then echo $(src_pkg_name); else echo linux; fi)
do-binary-udebs: debian/control
@echo Debug: $@
dh_testdir
......@@ -50,7 +51,7 @@ do-binary-udebs: debian/control
@gawk ' \
/^Package:/ { \
package=$$2; flavour=""; parch="" } \
(/Package-Type: udeb/ && package !~ /^$(src_pkg_name)-udebs-/) { \
(/Package-Type: udeb/ && package !~ /^$(linux_udeb_name)-udebs-/) { \
match(package, "'$(release)'-'$(abinum)'-(.*)-di", bits); \
flavour = bits[1]; \
} \
......@@ -63,7 +64,7 @@ do-binary-udebs: debian/control
} \
END { \
for (flavour in udebs) { \
package="$(src_pkg_name)-udebs-" flavour; \
package="$(linux_udeb_name)-udebs-" flavour; \
file="debian/" package ".substvars"; \
print("udeb:Depends=" udebs[flavour]) > file; \
metas="'$(builddir)'/udeb-meta-packages"; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment