aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorJan Blunck <jblunck@brocade.com>2017-04-11 10:19:53 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2017-06-12 13:10:53 +0100
commit84fc024c38dc0277dd25776fdc99670ef00b39cb (patch)
tree0d530a57e91beb55c262d5751481cc6e73e4a42c /debian
parentb121ff27dbb03c1da9afd078d0ab3818440519ca (diff)
Add dbgsym meta-package
This adds a meta-package to install all generated -dbgsym packages. Change-Id: If2d802317628d5858ce2a60add445da39ab980e8 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/dh-dbgsym-metapkg24
-rwxr-xr-xdebian/rules6
2 files changed, 30 insertions, 0 deletions
diff --git a/debian/dh-dbgsym-metapkg b/debian/dh-dbgsym-metapkg
new file mode 100755
index 00000000..fecbed18
--- /dev/null
+++ b/debian/dh-dbgsym-metapkg
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+PACKAGE=${1:?Missing parameter}
+
+dh_installdocs -p${PACKAGE}
+dh_installchangelogs -p${PACKAGE}
+dh_compress -p${PACKAGE}
+
+install -d debian/${PACKAGE}/DEBIAN
+
+echo -n 'misc:Depends=' > debian/${PACKAGE}.substvars
+grep -E 'lib.*-dbgsym' debian/files | tr '_' ' ' | \
+ awk '{ print $1,"(=",$2 ")" }' | paste -sd ',' - | \
+ sed -e 's/,/, /g' >> debian/${PACKAGE}.substvars
+
+dh_gencontrol -p libdpdk-dev -- \
+ -Pdebian/${PACKAGE} \
+ -Tdebian/${PACKAGE}.substvars \
+ -UPre-Depends -URecommends -USuggests -UEnhances -UProvides \
+ -UEssential -UConflicts -UReplaces -UBreaks \
+ -DSection=debug -DPriority=extra \
+ -DAuto-Built-Package=debug-symbols \
+ -DPackage=${PACKAGE} "-DDepends=\${misc:Depends}" \
+ "-DDescription=Debug symbols for libdpdk-dev (meta-package)"
diff --git a/debian/rules b/debian/rules
index f6e7ccd4..bd5ec0b5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@ export DH_VERBOSE=1
export DH_OPTIONS=-v
VERSION := $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*:)?(.*)-(.*)/\2/p')
+DPDK_ABI := $(shell echo $(VERSION) | cut -d '.' -f1-2)
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
include /usr/share/dpkg/default.mk
@@ -117,6 +118,11 @@ override_dh_gencontrol:
dh_gencontrol -p dpdk-modules-$(KVERS) -- \
-v`cat debian/VERSION` \
-V'built:using:kernel=$(call get_built_using,linux-headers-$(KVERS))'
+ ./debian/dh-dbgsym-metapkg libdpdk$(DPDK_ABI)-dbgsym
+
+override_dh_builddeb:
+ dh_builddeb
+ dh_builddeb -plibdpdk$(DPDK_ABI)-dbgsym
build:
@if [ x"$(KVERS)" = x ] ; then \