multipath-tools: update to 0.6.4
PATCH 1/1 multipath-tools: update to 0.6.4
No particular reason for updating besides following upstream.
Only kpartx has been tested after updating! Seems to work as before; unfortunately that means that as in 0.5.0, "kpartx -d" doesn't do anything.
Upstream refreshed the COPYING file, hence the checksum change:
$ git log --oneline 0.5.0..HEAD COPYING bf05f63 multipath-tools: replace COPYING with a fresh copy from gnu.org 1d6c88a Update FSF address
The QA error that do-not-link-libmpathpersist-to-TMPDIR.patch fixes no longer occurs because upstream changed that particular part of the Makefile.
A new patch is needed to avoid building libcheckerrdb, which depends on the (currently) unavailable librados.
The other patches had to be refreshed.
--- .../files/0001-multipathd.service-Error-fix.patch | 10 ++-- .../files/always-use-libdevmapper-kpartx.patch | 25 ++++++---- .../files/always-use-libdevmapper.patch | 53 ++++++++++++++-------- .../files/checkers-disable-libcheckrbd.so.patch | 31 +++++++++++++ .../do-not-link-libmpathpersist-to-TMPDIR.patch | 30 ------------ .../multipath-tools/files/makefile_inc.patch | 38 ++++++++++++---- ...ared-libs-avoid-linking-.so-as-executable.patch | 44 ++++++++++-------- .../multipath-tools/multipath-tools_git.bb | 32 +++---------- 8 files changed, 146 insertions(+), 117 deletions(-) create mode 100644 meta-oe/recipes-support/multipath-tools/files/checkers-disable-libcheckrbd.so.patch delete mode 100644 meta-oe/recipes-support/multipath-tools/files/do-not-link-libmpathpersist-to-TMPDIR.patch
meta-oe/recipes-support/multipath-tools/files/0001-multipathd.service-Error-fix.patch +5 -5
@@ -1,4 +1,4 @@ -From 74ff5e1cf8ef83dabcf6e6b92f87d6761f7f4d51 Mon Sep 17 00:00:00 2001 +From 630483b9738349c8b3e637a00879b96834a33cdb Mon Sep 17 00:00:00 2001 From: Li xin <[email protected]> Date: Tue, 7 Jul 2015 11:34:36 +0900 Subject: [PATCH] multipathd.service: Error fix
@@ -13,10 +13,10 @@ Signed-off-by: Li Xin <[email protected]> 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/multipathd/multipathd.service b/multipathd/multipathd.service -index be3ba3f..b8d3ecd 100644 +index e3d6f91..a7e00b2 100644 --- a/multipathd/multipathd.service +++ b/multipathd/multipathd.service -@@ -6,11 +6,12 @@ DefaultDependencies=no +@@ -8,11 +8,12 @@ Wants=local-fs-pre.target multipathd.socket blk-availability.service Conflicts=shutdown.target [Service]
@@ -25,12 +25,12 @@ index be3ba3f..b8d3ecd 100644 NotifyAccess=main LimitCORE=infinity +PIDFile=/var/run/multipathd.pid - ExecStartPre=/sbin/modprobe dm-multipath + ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath -ExecStart=/sbin/multipathd -d -s +ExecStart=/sbin/multipathd ExecReload=/sbin/multipathd reconfigure [Install] -- -1.8.4.2 +2.11.0
meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper-kpartx.patch +16 -9
@@ -1,4 +1,7 @@ -Always use devmapper for kpartx +From 7267cf235fc052eaa1ca36e437096576edacb131 Mon Sep 17 00:00:00 2001 +From: Aws Ismail <[email protected]> +Date: Mon, 22 Sep 2014 17:22:32 -0700 +Subject: [PATCH] Always use devmapper for kpartx Do not try to compute the LIBDM_API_COOKIE make variable from host information when cross-compiling.
@@ -7,23 +10,27 @@ Upstream-Status: Inappropriate [embedded specific] Signed-off-by: Aws Ismail <[email protected]> Signed-off-by: Joe Slater <[email protected]> +--- + kpartx/Makefile | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kpartx/Makefile b/kpartx/Makefile -index 2a07334..24bdabc 100644 +index e8a59f2..e694a65 100644 --- a/kpartx/Makefile +++ b/kpartx/Makefile -@@ -4,13 +4,7 @@ - # - include ../Makefile.inc +@@ -7,11 +7,7 @@ CFLAGS += -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + + LIBDEPS += -ldevmapper --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 ++CFLAGS += -DLIBDM_API_COOKIE - LDFLAGS = -ldevmapper OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \ + gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o +-- +2.11.0 +
meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch +33 -20
75 lines not on this page · raw message
meta-oe/recipes-support/multipath-tools/files/checkers-disable-libcheckrbd.so.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 148b848f45957e5e1c0466e8c79c84ba4a0bf241 Mon Sep 17 00:00:00 2001 +From: Patrick Ohly <[email protected]> +Date: Fri, 27 Jan 2017 10:35:54 +0100 +Subject: [PATCH] checkers: disable libcheckrbd.so + +libcheckrbd.so depends on librados, which is not currently available +as a recipe. These checkers seem to be optional, so for now we merely +disable compilation of libcheckrbd.so. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Patrick Ohly <[email protected]> +--- + libmultipath/checkers/Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/libmultipath/checkers/Makefile b/libmultipath/checkers/Makefile +index 11ab76f..c848d50 100644 +--- a/libmultipath/checkers/Makefile ++++ b/libmultipath/checkers/Makefile +@@ -14,7 +14,6 @@ LIBS= \ + libcheckemc_clariion.so \ + libcheckhp_sw.so \ + libcheckrdac.so \ +- libcheckrbd.so + + all: $(LIBS) + +-- +2.11.0 +
meta-oe/recipes-support/multipath-tools/files/do-not-link-libmpathpersist-to-TMPDIR.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From fe65ac8face3c88d9d4e12811f44e63ad72c59ae Mon Sep 17 00:00:00 2001 -From: Bian Naimeng <[email protected]> -Date: Thu, 18 Jun 2015 12:25:25 +0900 -Subject: [PATCH] fix build warning - - NOTE: Executing RunQueue Tasks - WARNING: QA Issue: Symlink /lib/libmpathpersist.so in multipath-tools-dev points to TMPDIR [symlink-to-sysroot] - NOTE: Tasks Summary: Attempted 1604 tasks of which 1591 didn't need to be rerun and all succeeded. - -Signed-off-by: Bian Naimeng <[email protected]> ---- - libmpathpersist/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libmpathpersist/Makefile b/libmpathpersist/Makefile -index c4ec1c5..62022eb 100644 ---- a/libmpathpersist/Makefile -+++ b/libmpathpersist/Makefile -@@ -32,7 +32,7 @@ install: $(LIBS) - $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(man3dir) - $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)/usr/include/ - $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)/usr/share/doc/mpathpersist/ -- ln -sf $(DESTDIR)$(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB) -+ ln -sf $(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB) - install -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir) - install -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir) - install -m 644 mpath_persist.h $(DESTDIR)/usr/include/ --- -1.8.4.2 -
meta-oe/recipes-support/multipath-tools/files/makefile_inc.patch +29 -9
@@ -1,4 +1,8 @@ -multipath-tools: modify Makefile.inc for cross-compilation +From 9f5768eca165502b0f17d271aa6f7cf530ec60b2 Mon Sep 17 00:00:00 2001 +From: Joe Slater <[email protected]> +Date: Mon, 22 Sep 2014 17:22:32 -0700 +Subject: [PATCH] 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.
@@ -10,10 +14,15 @@ Signed-off-by: Joe Slater <[email protected]> Update for version 0.5.0-144-g770e6d0 Signed-off-by: Kai Kang <[email protected]> +--- + Makefile.inc | 17 +++++------------ + 1 file changed, 5 insertions(+), 12 deletions(-) +diff --git a/Makefile.inc b/Makefile.inc +index 1cc8f44..15f8b91 100644 --- a/Makefile.inc +++ b/Makefile.inc -@@ -21,12 +21,6 @@ ifndef LIB +@@ -29,12 +29,6 @@ ifndef RUN endif endif
@@ -26,14 +35,25 @@ Signed-off-by: Kai Kang <[email protected]> ifndef SYSTEMDPATH SYSTEMDPATH=usr/lib endif -@@ -53,7 +47,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 +@@ -61,13 +55,12 @@ RM = rm -f + LN = ln -sf + INSTALL_PROGRAM = install +-OPTFLAGS = -O2 -g -pipe -Wall -Wextra -Wformat=2 \ +- -Wno-sign-compare -Wno-unused-parameter -Wno-clobbered \ +- -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector \ +- --param=ssp-buffer-size=4 +ifndef OPTFLAGS - OPTFLAGS = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes ++OPTFLAGS = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes +endif -+ - CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" - SHARED_FLAGS = -shared +-CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" +-SHARED_FLAGS = -shared ++CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" ++SHARED_FLAGS = -shared + + %.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< +-- +2.11.0 +
meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch +25 -19
61 lines not on this page · raw message
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb +7 -25
@@ -1,6 +1,6 @@ SUMMARY = "The upstream project used to drive the Device Mapper multipathing driver" -DEPENDS = "lvm2 libaio readline udev" +DEPENDS = "lvm2 libaio liburcu readline udev" LICENSE = "LGPLv2"
@@ -9,36 +9,21 @@ SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http \ file://makefile_inc.patch \ file://always-use-libdevmapper.patch \ file://always-use-libdevmapper-kpartx.patch \ - file://do-not-link-libmpathpersist-to-TMPDIR.patch \ file://0001-multipathd.service-Error-fix.patch \ file://shared-libs-avoid-linking-.so-as-executable.patch \ + file://checkers-disable-libcheckrbd.so.patch \ " -# 0.5.0 -# -#SRCREV = "82f391e787dc02e9d9294aa391137ab424bb83c4" -#LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d" - -# 0.5.0 + commits thru 7/18/2014 -# -#SRCREV = "0d72f46c12207a6b7b89f5ef4f5ab5f87ed8bc90" -#LIC_FILES_CHKSUM = "file://COPYING;md5=b06690e7a95c166eefe0199b39118eb1" - -# 0.5.0 + commits thru 9/12/2014 -# -# includes important systemd related structure size fix -# -#SRCREV = "aec68ab217fd2956443b27ceeb97dd6475267789" -LIC_FILES_CHKSUM = "file://COPYING;md5=b06690e7a95c166eefe0199b39118eb1" +LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" -# 0.5.0 + commits thru 2/16/2015 -SRCREV = "770e6d0da035deaced82885939161c2b69225e10" +# 0.6.4 +SRCREV = "922421cf795d53d339862bb2d99f1a85c96ad9a3" inherit systemd S = "${WORKDIR}/git" -PV = "0.5.0+git${@'${SRCPV}'.split('+')[-1]}" +PV = "0.6.4+git${@'${SRCPV}'.split('+')[-1]}" TARGET_CC_ARCH += "${LDFLAGS}"
@@ -54,12 +39,9 @@ EXTRA_OEMAKE = 'MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} \ do_install() { oe_runmake install - # Copy a sample conf file, but do not rename it multipath.conf. - # - cp multipath.conf.defaults ${D}${sysconfdir} - # We copy an initscript, but do not start multipathd at init time. # + install -d ${D}${sysconfdir}/init.d cp ${WORKDIR}/multipathd.oe ${D}${sysconfdir}/init.d/multipathd }
Signature · 1 line
2.11.0
Quoted 1 line · Patrick Ohly
No particular reason for updating besides following upstream.
Please ignore. It's a duplicate of the same patch from the patch series.
Signature · 6 lines
Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter.
Quoted 11 lines · Patrick Ohly
No particular reason for updating besides following upstream.
Only kpartx has been tested after updating! Seems to work as before; unfortunately that means that as in 0.5.0, "kpartx -d" doesn't do anything.
Upstream refreshed the COPYING file, hence the checksum change:
$ git log --oneline 0.5.0..HEAD COPYING bf05f63 multipath-tools: replace COPYING with a fresh copy from gnu.org 1d6c88a Update FSF address
Quoted 6 lines
The QA error that do-not-link-libmpathpersist-to-TMPDIR.patch fixes no longer occurs because upstream changed that particular part of the
Makefile.A new patch is needed to avoid building libcheckerrdb, which depends on the (currently) unavailable librados.
FWIW: it would be even better if you mark
https://patchwork.openembedded.org/patch/136518/
as Superseded as patchwork is where I take patches for master-next and I need to remember that there was e-mail reply for this one that it should be ignored.
Thanks
Quoted 16 lines · Martin Jansa
Quoted 15 lines · Patrick Ohly
No particular reason for updating besides following upstream.
Only kpartx has been tested after updating! Seems to work as before; unfortunately that means that as in 0.5.0, "kpartx -d" doesn't do anything.
Upstream refreshed the COPYING file, hence the checksum change:
$ git log --oneline 0.5.0..HEAD COPYING bf05f63 multipath-tools: replace COPYING with a fresh copy from gnu.org 1d6c88a Update FSF addressThe QA error that do-not-link-libmpathpersist-to-TMPDIR.patch fixes no longer occurs because upstream changed that particular part of the
Makefile.
Quoted 8 lines
Quoted 2 lines
A new patch is needed to avoid building libcheckerrdb, which depends on the (currently) unavailable librados.
FWIW: it would be even better if you mark
https://patchwork.openembedded.org/patch/136518/
as Superseded as patchwork is where I take patches for master-next and I need to remember that there was e-mail reply for this one that it should be ignored.
Thanks, I'll try to remember that going forward. Would have been a nice testcase for
[Patchwork-Status: Superseded]
Signature · 6 lines
Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter.