From f7e29534ad1221689c36545760a9b182545ecaa1 Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Sat, 18 Feb 2017 12:48:04 +0300 Subject: [PATCH] dmapi add patch --- hardware/disk/dmapi/actions.py | 1 + ...-add-missing-includes-to-handle2path.patch | 24 +++++++++++++++++++ hardware/disk/dmapi/pspec.xml | 3 +++ 3 files changed, 28 insertions(+) create mode 100644 hardware/disk/dmapi/files/dmapi-add-missing-includes-to-handle2path.patch diff --git a/hardware/disk/dmapi/actions.py b/hardware/disk/dmapi/actions.py index b7effaed99..bcb063bf07 100644 --- a/hardware/disk/dmapi/actions.py +++ b/hardware/disk/dmapi/actions.py @@ -13,6 +13,7 @@ from pisi.actionsapi import get def setup(): shelltools.export("OPTIMIZER", get.CFLAGS()) shelltools.export("DEBUG", "-DNDEBUG") + pisitools.cflags.add("-fPIC") autotools.autoconf() autotools.configure("--libexecdir=/usr/lib \ diff --git a/hardware/disk/dmapi/files/dmapi-add-missing-includes-to-handle2path.patch b/hardware/disk/dmapi/files/dmapi-add-missing-includes-to-handle2path.patch new file mode 100644 index 0000000000..8c8597502d --- /dev/null +++ b/hardware/disk/dmapi/files/dmapi-add-missing-includes-to-handle2path.patch @@ -0,0 +1,24 @@ +From: Jeff Mahoney +Subject: dmapi: add missing includes to handle2path + +The update to xfsprogs 4.2.0 removed some includes from its own headers, so +those headers need to be added manually to dmapi. + +Signed-off-by: Jeff Mahoney +--- + libdm/dm_handle2path.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/libdm/dm_handle2path.c ++++ b/libdm/dm_handle2path.c +@@ -16,6 +16,10 @@ + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + ++#include ++#include ++#include ++#include + #include + #include + #include "dmapi_lib.h" diff --git a/hardware/disk/dmapi/pspec.xml b/hardware/disk/dmapi/pspec.xml index 53914b9140..2026d47661 100644 --- a/hardware/disk/dmapi/pspec.xml +++ b/hardware/disk/dmapi/pspec.xml @@ -17,6 +17,9 @@ xfsprogs-devel libutil-linux-devel + + dmapi-add-missing-includes-to-handle2path.patch +