Skip to contentSkip to conversation

multipath-tools: add recipe for git version

PATCH Superseded Koen Kooi 3 participants 5 messages Mar 27, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 multipath-tools: add recipe for git version

Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

---
 .../multipath-tools/multipath-tools_git.bb         | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-support/multipath-tools/multipath-tools_git.bb
recipes-support/multipath-tools/multipath-tools_git.bb new file +34 -0
new file mode 100644
index 0000000..1b83f49
@@ -0,0 +1,34 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+
+EXTRA_OEMAKE = "MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} libdir=${base_libdir}/multipath"
+
+do_compile() {
+	oe_runmake
+}
+
+do_install() {
+	oe_runmake install
+}
+
+FILES_${PN}-dbg += "${base_libdir}/multipath/.debug"
+FILES_${PN} += "${base_libdir}/multipath \
+                ${base_libdir}/systemd"
+
+PACKAGES =+ "kpartx"
+FILES_kpartx = "${base_sbindir}/kpartx \
+                ${base_libdir}/udev/kpartx_id"
+
+RDEPENDS_${PN} += "kpartx"
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 31 lines · Koen Kooi

Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

---
 .../multipath-tools/multipath-tools_git.bb         | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-support/multipath-tools/multipath-tools_git.bb
recipes-support/multipath-tools/multipath-tools_git.bb new file +15 -0
new file mode 100644
index 0000000..1b83f49
@@ -0,0 +1,34 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+

recipes-support/multipath-tools/multipath-tools_git.bb line 25

Quoted 10 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +10 -0
+EXTRA_OEMAKE = "MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} libdir=${base_libdir}/multipath"
+
+do_compile() {
+       oe_runmake
+}
+
+do_install() {
+       oe_runmake install
+}
+

Is overwriting do_compile & do_install required?

Andreas

author
#2 lore raw

Op 27 mrt. 2013, om 11:20 heeft Andreas Müller <[email protected]> het volgende geschreven:

Quoted 35 lines · Koen Kooi
Quoted 34 lines

Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

---
.../multipath-tools/multipath-tools_git.bb | 34 ++++++++++++++++++++++

1 file changed, 34 insertions(+)

create mode 100644 recipes-support/multipath-tools/multipath-tools_git.bb

recipes-support/multipath-tools/multipath-tools_git.bb new file +18 -0
new file mode 100644
index 0000000..1b83f49
@@ -0,0 +1,34 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+
+EXTRA_OEMAKE = "MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} libdir=${base_libdir}/multipath"
+
+do_compile() {
Quoted 8 lines

recipes-support/multipath-tools/multipath-tools_git.bb line 25

Quoted 7 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +7 -0
+       oe_runmake
+}
+
+do_install() {
+       oe_runmake install
+}
+

Is overwriting do_compile & do_install required?

do_install, yes, do_compile probably not

#3 lore raw
In reply to Koen Kooi

Hi Koen

Quoted 16 lines · Koen Kooi

Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

---
.../multipath-tools/multipath-tools_git.bb | 34 ++++++++++++++++++++++

1 file changed, 34 insertions(+)

create mode 100644 recipes-support/multipath-tools/multipath-tools_git.bb

recipes-support/multipath-tools/multipath-tools_git.bb new file +0 -0
new file mode 100644
index 0000000..1b83f49

recipes-support/multipath-tools/multipath-tools_git.bb line 3

Quoted 3 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +3 -0
@@ -0,0 +1,34 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio"

as I read it also depends on libreadline

recipes-support/multipath-tools/multipath-tools_git.bb line 15

Quoted 12 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +12 -0
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+

Is current release 0.4.9 ? I wonder if it will this be ok for upgrade path when a release happens

Quoted 27 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +19 -0
+EXTRA_OEMAKE = "MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} libdir=${base_libdir}/multipath"
+
+do_compile() {
+	oe_runmake
+}
+
+do_install() {
+	oe_runmake install
+}
+
+FILES_${PN}-dbg += "${base_libdir}/multipath/.debug"
+FILES_${PN} += "${base_libdir}/multipath \
+                ${base_libdir}/systemd"
+
+PACKAGES =+ "kpartx"
+FILES_kpartx = "${base_sbindir}/kpartx \
+                ${base_libdir}/udev/kpartx_id"
+
+RDEPENDS_${PN} += "kpartx"
Signature · 7 lines
1.8.1.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
author
#4 lore raw

Op 27 mrt. 2013, om 18:43 heeft Khem Raj <[email protected]> het volgende geschreven:

Quoted 14 lines

Hi Koen

Quoted 10 lines · Koen Kooi

Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

---
.../multipath-tools/multipath-tools_git.bb | 34 ++++++++++++++++++++++

1 file changed, 34 insertions(+)

create mode 100644 recipes-support/multipath-tools/multipath-tools_git.bb

Quoted 11 lines

recipes-support/multipath-tools/multipath-tools_git.bb line 3

Quoted 9 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +3 -0
new file mode 100644
index 0000000..1b83f49
@@ -0,0 +1,34 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio"

as I read it also depends on libreadline

OK, fixed that in v2

Quoted 15 lines

recipes-support/multipath-tools/multipath-tools_git.bb line 15

Quoted 13 lines
recipes-support/multipath-tools/multipath-tools_git.bb new file +12 -0
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+

Is current release 0.4.9 ? I wonder if it will this be ok for upgrade path when a release happens

It is, so upgrade path is safe