[pve-devel] [PATCH lxcfs] enable lxcfs-dbg package

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jan 11 15:13:55 CET 2016


---
 Makefile          | 4 +++-
 debian/control    | 8 ++++++++
 debian/dirs       | 1 -
 debian/lxcfs.dirs | 1 +
 debian/rules      | 6 ++++++
 5 files changed, 18 insertions(+), 2 deletions(-)
 delete mode 100644 debian/dirs
 create mode 100644 debian/lxcfs.dirs

diff --git a/Makefile b/Makefile
index 6f1d7b6..ed8587d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ SRCTAR=${SRCDIR}.tgz
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
-DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb
+DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb \
+    ${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
 
 all: ${DEB}
 
@@ -36,6 +37,7 @@ upload: ${DEB}
 	umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
 	mkdir -p /pve/${RELEASE}/extra
 	rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
+	rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
 	rm -f /pve/${RELEASE}/extra/Packages*
 	cp ${DEB} /pve/${RELEASE}/extra
 	cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
diff --git a/debian/control b/debian/control
index 3e7d27a..1bccd45 100644
--- a/debian/control
+++ b/debian/control
@@ -15,3 +15,11 @@ Description: LXC userspace filesystem
  limitations of the Linux kernel. The main driver for this work was the
  need to run systemd based containers as a regular unprivileged user
  while still allowing systemd inside the container to interact with cgroups. 
+
+Package: lxcfs-dbg
+Architecture: any
+Section: debug
+Depends: lxcfs (= ${binary:Version}), ${misc:Depends}
+Description: lxcfs debugging symbols
+ This package contains the debugging symbols for lxcfs.
+
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index 298dbbc..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1 +0,0 @@
-/var/lib/lxcfs
diff --git a/debian/lxcfs.dirs b/debian/lxcfs.dirs
new file mode 100644
index 0000000..298dbbc
--- /dev/null
+++ b/debian/lxcfs.dirs
@@ -0,0 +1 @@
+/var/lib/lxcfs
diff --git a/debian/rules b/debian/rules
index 775ebf2..de2fd6e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,3 +5,9 @@
 
 %:
 	dh $@  --with autotools_dev,autoreconf,systemd,quilt
+
+override_dh_strip:
+	dh_strip --dbg-package=lxcfs-dbg
+
+override_dh_auto_install:
+	dh_auto_install --destdir=debian/lxcfs
-- 
2.1.4





More information about the pve-devel mailing list