diff mbox

[07/11] dbg/debian: add libodphelper-linux* packages

Message ID 1458305959-26825-8-git-send-email-anders.roxell@linaro.org
State Superseded
Headers show

Commit Message

Anders Roxell March 18, 2016, 12:59 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 pkg/debian/control | 27 ++++++++++++++++++++++++++-
 pkg/debian/rules   |  3 ++-
 scripts/builddeb   |  4 ++--
 3 files changed, 30 insertions(+), 4 deletions(-)

Comments

Ricardo Salveti March 22, 2016, 9:43 p.m. UTC | #1
On Fri, Mar 18, 2016 at 9:59 AM, Anders Roxell <anders.roxell@linaro.org> wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  pkg/debian/control | 27 ++++++++++++++++++++++++++-
>  pkg/debian/rules   |  3 ++-
>  scripts/builddeb   |  4 ++--
>  3 files changed, 30 insertions(+), 4 deletions(-)
>
> diff --git a/pkg/debian/control b/pkg/debian/control
> index 8a1f679..0c5821b 100644
> --- a/pkg/debian/control
> +++ b/pkg/debian/control
> @@ -14,7 +14,7 @@ Package: odp-linux-bin
>  Section: libdevel
>  Architecture: any
>  Multi-Arch: allowed
> -Depends: libodp-linux (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
> +Depends: ${misc:Depends}, ${shlibs:Depends}
>  Description: Example binaries for OpenDataPlane
>   These are the executable examples from the reference implementation.
>
> @@ -42,3 +42,28 @@ Multi-Arch: same
>  Depends: ${misc:Depends}, ${shlibs:Depends}
>  Description: Library for OpenDataPlane
>   This is the OpenDataPlane library from the reference implementation.
> +
> +Package: libodphelper-linux-dbg
> +Priority: extra
> +Section: debug
> +Architecture: any
> +Multi-Arch: same
> +Depends: libodphelper-linux (= ${binary:Version}), ${misc:Depends}
> +Description: Debug symbols for OpenDataPlane
> + This is the OpenDataPlane helper library from the reference implementation
> + with debug turned on.
> +
> +Package: libodphelper-linux-dev
> +Section: libdevel
> +Architecture: any
> +Multi-Arch: same
> +Depends: ${misc:Depends}, ${shlibs:Depends}, libssl-dev
> +Description: Helper development files for OpenDataPlane
> + These are the helper source file for the OpenDataPlane reference implementation.
> +
> +Package: libodphelper-linux
> +Architecture: any
> +Multi-Arch: same
> +Depends: ${misc:Depends}, ${shlibs:Depends}
> +Description: Helper library for OpenDataPlane
> + This is the OpenDataPlane helper library from the reference implementation.
> diff --git a/pkg/debian/rules b/pkg/debian/rules
> index be8a2ae..4f7a057 100755
> --- a/pkg/debian/rules
> +++ b/pkg/debian/rules
> @@ -18,4 +18,5 @@ override_dh_auto_configure:
>
>  .PHONY: override_dh_strip
>  override_dh_strip:
> -       dh_strip --dbg-package=libodp-linux-dbg
> +       dh_strip -p libodp-linux --dbg-package=libodp-linux-dbg
> +       dh_strip -p libodphelper-linux --dbg-package=libodphelper-linux-dbg
> diff --git a/scripts/builddeb b/scripts/builddeb
> index 988cb5d..8bde7cf 100755
> --- a/scripts/builddeb
> +++ b/scripts/builddeb
> @@ -23,8 +23,8 @@ cp -r ${ROOT_DIR}/pkg/debian .
>  current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
>  rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
>
> -sed -i "s:\(.*odp-linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
> -sed -i "s:\(.*odp-linux\)\(.*\):\1${current}\2:g" debian/rules
> +sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
> +sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\| \):\1${current}\2:g" debian/rules
>
>  if [ $(egrep "\.([a-z0-9]{8}\>|dirty)" .scmversion |wc -l) -gt 0 ]; then
>         export DEBFULLNAME="Donald Duck"
> --
> 2.1.4

Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
diff mbox

Patch

diff --git a/pkg/debian/control b/pkg/debian/control
index 8a1f679..0c5821b 100644
--- a/pkg/debian/control
+++ b/pkg/debian/control
@@ -14,7 +14,7 @@  Package: odp-linux-bin
 Section: libdevel
 Architecture: any
 Multi-Arch: allowed
-Depends: libodp-linux (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: Example binaries for OpenDataPlane
  These are the executable examples from the reference implementation.
 
@@ -42,3 +42,28 @@  Multi-Arch: same
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: Library for OpenDataPlane
  This is the OpenDataPlane library from the reference implementation.
+
+Package: libodphelper-linux-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Multi-Arch: same
+Depends: libodphelper-linux (= ${binary:Version}), ${misc:Depends}
+Description: Debug symbols for OpenDataPlane
+ This is the OpenDataPlane helper library from the reference implementation
+ with debug turned on.
+
+Package: libodphelper-linux-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, ${shlibs:Depends}, libssl-dev
+Description: Helper development files for OpenDataPlane
+ These are the helper source file for the OpenDataPlane reference implementation.
+
+Package: libodphelper-linux
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Helper library for OpenDataPlane
+ This is the OpenDataPlane helper library from the reference implementation.
diff --git a/pkg/debian/rules b/pkg/debian/rules
index be8a2ae..4f7a057 100755
--- a/pkg/debian/rules
+++ b/pkg/debian/rules
@@ -18,4 +18,5 @@  override_dh_auto_configure:
 
 .PHONY: override_dh_strip
 override_dh_strip:
-	dh_strip --dbg-package=libodp-linux-dbg
+	dh_strip -p libodp-linux --dbg-package=libodp-linux-dbg
+	dh_strip -p libodphelper-linux --dbg-package=libodphelper-linux-dbg
diff --git a/scripts/builddeb b/scripts/builddeb
index 988cb5d..8bde7cf 100755
--- a/scripts/builddeb
+++ b/scripts/builddeb
@@ -23,8 +23,8 @@  cp -r ${ROOT_DIR}/pkg/debian .
 current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
 rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
 
-sed -i "s:\(.*odp-linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
-sed -i "s:\(.*odp-linux\)\(.*\):\1${current}\2:g" debian/rules
+sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
+sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\| \):\1${current}\2:g" debian/rules
 
 if [ $(egrep "\.([a-z0-9]{8}\>|dirty)" .scmversion |wc -l) -gt 0 ]; then
 	export DEBFULLNAME="Donald Duck"