diff options
| -rw-r--r-- | meta-networking/recipes-extended/corosync/corosync/0001-configure.ac-fix-pkgconfig-issue-of-rdma.patch | 32 | ||||
| -rw-r--r-- | meta-networking/recipes-extended/corosync/corosync_3.0.3.bb (renamed from meta-networking/recipes-extended/corosync/corosync_2.4.5.bb) | 23 |
2 files changed, 8 insertions, 47 deletions
diff --git a/meta-networking/recipes-extended/corosync/corosync/0001-configure.ac-fix-pkgconfig-issue-of-rdma.patch b/meta-networking/recipes-extended/corosync/corosync/0001-configure.ac-fix-pkgconfig-issue-of-rdma.patch deleted file mode 100644 index bdc7645ce6..0000000000 --- a/meta-networking/recipes-extended/corosync/corosync/0001-configure.ac-fix-pkgconfig-issue-of-rdma.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | Subject: [PATCH] configure.ac: fix pkgconfig issue of rdma | ||
| 2 | |||
| 3 | pkgconfig files from rdma-core(https://github.com/linux-rdma/rdma-core) | ||
| 4 | are named start with lib, such as librdmacm.pc and libibverbs.pc. When | ||
| 5 | rdma support is enabled, it fails to find rdma related libraries. Update | ||
| 6 | configure.ac to the issue. | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/corosync/corosync/pull/515] | ||
| 9 | |||
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 11 | --- | ||
| 12 | configure.ac | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index ac513e93..240cfed4 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -459,8 +459,8 @@ if test "x${enable_testagents}" = xyes; then | ||
| 20 | fi | ||
| 21 | |||
| 22 | if test "x${enable_rdma}" = xyes; then | ||
| 23 | - PKG_CHECK_MODULES([rdmacm],[rdmacm]) | ||
| 24 | - PKG_CHECK_MODULES([ibverbs],[ibverbs]) | ||
| 25 | + PKG_CHECK_MODULES([rdmacm],[librdmacm]) | ||
| 26 | + PKG_CHECK_MODULES([ibverbs],[libibverbs]) | ||
| 27 | AC_DEFINE_UNQUOTED([HAVE_RDMA], 1, [have rdmacm]) | ||
| 28 | PACKAGE_FEATURES="$PACKAGE_FEATURES rdma" | ||
| 29 | WITH_LIST="$WITH_LIST --with rdma" | ||
| 30 | -- | ||
| 31 | 2.20.1 | ||
| 32 | |||
diff --git a/meta-networking/recipes-extended/corosync/corosync_2.4.5.bb b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb index eefbcca8a1..c0531d3866 100644 --- a/meta-networking/recipes-extended/corosync/corosync_2.4.5.bb +++ b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb | |||
| @@ -7,20 +7,16 @@ SECTION = "base" | |||
| 7 | 7 | ||
| 8 | inherit autotools pkgconfig systemd useradd | 8 | inherit autotools pkgconfig systemd useradd |
| 9 | 9 | ||
| 10 | SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \ | 10 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ |
| 11 | file://corosync.conf \ | 11 | file://corosync.conf \ |
| 12 | file://0001-configure.ac-fix-pkgconfig-issue-of-rdma.patch \ | ||
| 13 | " | 12 | " |
| 14 | 13 | SRC_URI[sha256sum] = "20eb903eb984f6a728282c199825e442e8bba869acefd22390076ef3a33a4ded" | |
| 15 | SRC_URI[md5sum] = "e36a056b893c313c4ec1fe0d7e6cdebd" | ||
| 16 | SRC_URI[sha256sum] = "ab6eafdb8f43a23794fc15d4c5198bbd6759060cb13c8d2d1e78a6c8360aba5f" | ||
| 17 | |||
| 18 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.(?!99)\d+(\.\d+)+)" | 14 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.(?!99)\d+(\.\d+)+)" |
| 19 | 15 | ||
| 20 | LICENSE = "BSD-3-Clause" | 16 | LICENSE = "BSD-3-Clause" |
| 21 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" | 17 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" |
| 22 | 18 | ||
| 23 | DEPENDS = "groff-native nss libqb" | 19 | DEPENDS = "groff-native nss libqb kronosnet" |
| 24 | 20 | ||
| 25 | SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service \ | 21 | SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service \ |
| 26 | ${@bb.utils.contains('PACKAGECONFIG', 'qdevice', 'corosync-qdevice.service', '', d)} \ | 22 | ${@bb.utils.contains('PACKAGECONFIG', 'qdevice', 'corosync-qdevice.service', '', d)} \ |
| @@ -31,23 +27,20 @@ SYSTEMD_AUTO_ENABLE = "disable" | |||
| 31 | INITSCRIPT_NAME = "corosync-daemon" | 27 | INITSCRIPT_NAME = "corosync-daemon" |
| 32 | 28 | ||
| 33 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 29 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 34 | dbus qdevice qnetd snmp \ | 30 | dbus snmp \ |
| 35 | " | 31 | " |
| 36 | 32 | ||
| 37 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" | 33 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" |
| 38 | PACKAGECONFIG[qdevice] = "--enable-qdevices,--disable-qdevices" | ||
| 39 | PACKAGECONFIG[qnetd] = "--enable-qnetd,--disable-qnetd" | ||
| 40 | PACKAGECONFIG[rdma] = "--enable-rdma,--disable-rdma,rdma-core" | ||
| 41 | PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" | 34 | PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" |
| 42 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_system_unitdir},--disable-systemd --without-systemddir,systemd" | 35 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_system_unitdir},--disable-systemd --without-systemddir,systemd" |
| 43 | 36 | ||
| 44 | EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash ap_cv_cc_pie=no" | 37 | EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash ap_cv_cc_pie=no" |
| 45 | EXTRA_OEMAKE = "tmpfilesdir_DATA=" | 38 | EXTRA_OEMAKE = "tmpfilesdir_DATA=" |
| 46 | 39 | ||
| 47 | do_configure_prepend() { | 40 | #do_configure_prepend() { |
| 48 | ( cd ${S} | 41 | # ( cd ${S} |
| 49 | ${S}/autogen.sh ) | 42 | # ${S}/autogen.sh ) |
| 50 | } | 43 | #} |
| 51 | 44 | ||
| 52 | do_install_append() { | 45 | do_install_append() { |
| 53 | install -D -m 0644 ${WORKDIR}/corosync.conf ${D}/${sysconfdir}/corosync/corosync.conf.example | 46 | install -D -m 0644 ${WORKDIR}/corosync.conf ${D}/${sysconfdir}/corosync/corosync.conf.example |
