multipath-tools: update to version 0.5.0+
PATCH 1/1 multipath-tools: update to version 0.5.0+
SCRREV includes patches up to 9/12/2014.
Modify upstream source to be better set up for
cross compilation.
Signed-off-by Joe Slater <[email protected]>
--- .../files/always-use-libdevmapper-kpartx.patch | 29 ++++ .../files/always-use-libdevmapper.patch | 44 ++++++ .../multipath-tools/files/makefile_inc.patch | 36 +++++ .../multipath-tools/files/multipathd.oe | 146 ++++++++++++++++++++ .../multipath-tools/multipath-tools_git.bb | 58 +++++++-- 5 files changed, 304 insertions(+), 9 deletions(-) create mode 100644 meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper-kpartx.patch create mode 100644 meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch create mode 100644 meta-oe/recipes-support/multipath-tools/files/makefile_inc.patch create mode 100755 meta-oe/recipes-support/multipath-tools/files/multipathd.oe
meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper-kpartx.patch new file +29 -0
@@ -0,0 +1,29 @@ +Always use devmapper for kpartx + +Do not try to compute the LIBDM_API_COOKIE make variable +from host information when cross-compiling. + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Aws Ismail <[email protected]> +Signed-off-by: Joe Slater <[email protected]> + +diff --git a/kpartx/Makefile b/kpartx/Makefile +index 2a07334..24bdabc 100644 +--- a/kpartx/Makefile ++++ b/kpartx/Makefile +@@ -4,13 +4,7 @@ + # + include ../Makefile.inc + +-CFLAGS += -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +- +-LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie' /usr/include/libdevmapper.h) +- +-ifneq ($(strip $(LIBDM_API_COOKIE)),0) +- CFLAGS += -DLIBDM_API_COOKIE +-endif ++CFLAGS += -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE + + LDFLAGS = -ldevmapper + OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch new file +44 -0
44 lines not on this page · raw message
meta-oe/recipes-support/multipath-tools/files/makefile_inc.patch new file +36 -0
@@ -0,0 +1,36 @@ +multipath-tools: modify Makefile.inc for cross-compilation + +Do not look for systemd info on the host, and allow us to pass in CFLAGS +using the OPTFLAGS variable. + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Joe Slater <[email protected]> + + +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -21,12 +21,6 @@ ifndef LIB + endif + endif + +-ifndef SYSTEMD +- ifeq ($(shell systemctl --version > /dev/null 2>&1 && echo 1), 1) +- SYSTEMD = $(shell systemctl --version 2> /dev/null | sed -n 's/systemd \([0-9]*\)/\1/p') +- endif +-endif +- + prefix = + exec_prefix = $(prefix) + bindir = $(exec_prefix)/sbin +@@ -49,7 +43,10 @@ ifndef RPM_OPT_FLAGS + RPM_OPT_FLAGS = -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 + endif + ++ifndef OPTFLAGS + OPTFLAGS = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes ++endif ++ + CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" + SHARED_FLAGS = -shared +
meta-oe/recipes-support/multipath-tools/files/multipathd.oe new file +146 -0
146 lines not on this page · raw message
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb +49 -9
79 lines not on this page · raw message
Signature · 1 line
1.7.3.4