diff options
| author | Khem Raj <raj.khem@gmail.com> | 2018-06-22 19:04:21 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-06-24 23:04:04 -0700 |
| commit | 835ab5e341191b9d6c548e33d3b0e19b6fe72c47 (patch) | |
| tree | a5badf722b4a5498ed15a14ead2e190aceb77a52 /meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb | |
| parent | 7e66808136a1d800c487d181438f8f0225bac0fa (diff) | |
| download | meta-openembedded-835ab5e341191b9d6c548e33d3b0e19b6fe72c47.tar.gz | |
opensaf: Upgrade to 5.18.04
fix strncpy overflow errors seen with gcc8
refresh patches with devtool
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb')
| -rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb new file mode 100644 index 0000000000..effe956999 --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | SUMMARY = "OpenSAF is an open source implementation of the SAF AIS specification" | ||
| 2 | DESCRIPTION = "OpenSAF is an open source project established to develop a base platform \ | ||
| 3 | middleware consistent with Service Availability Forum (SA Forum) \ | ||
| 4 | specifications, under the LGPLv2.1 license. The OpenSAF Foundation was \ | ||
| 5 | established by leading Communications and Enterprise Computing Companies to \ | ||
| 6 | facilitate the OpenSAF Project and to accelerate the adoption of the OpenSAF \ | ||
| 7 | code base in commercial products. \ | ||
| 8 | The OpenSAF project was launched in mid 2007 and has been under development by \ | ||
| 9 | an informal group of supporters of the OpenSAF initiative. The OpenSAF \ | ||
| 10 | Foundation was founded on January 22nd 2008 with Emerson Network Power, \ | ||
| 11 | Ericsson, Nokia Siemens Networks, HP and Sun Microsystems as founding members." | ||
| 12 | HOMEPAGE = "http://www.opensaf.org" | ||
| 13 | SECTION = "admin" | ||
| 14 | LICENSE = "LGPLv2.1" | ||
| 15 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7" | ||
| 16 | |||
| 17 | DEPENDS = "libxml2 python" | ||
| 18 | TOOLCHAIN = "gcc" | ||
| 19 | |||
| 20 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
| 21 | |||
| 22 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ | ||
| 23 | file://0001-configure-Pass-linker-specific-options-with-Wl.patch \ | ||
| 24 | file://0001-configure-Disable-format-overflow-if-supported-by-gc.patch \ | ||
| 25 | file://0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch \ | ||
| 26 | file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \ | ||
| 27 | file://0001-Catch-std-ifstream-failure-by-reference.patch \ | ||
| 28 | file://0002-Fix-format-truncation-errors.patch \ | ||
| 29 | file://0001-Fix-string-overflow-in-snprintf.patch \ | ||
| 30 | file://0008-check-for-size-before-using-strncpy.patch \ | ||
| 31 | " | ||
| 32 | SRC_URI[md5sum] = "21836e43b13ad33bed9bd0ed391e5a6e" | ||
| 33 | SRC_URI[sha256sum] = "e55dc2645487fb22938e8386b99eef6eb7aff43a246ce3e92488daf6ee46247a" | ||
| 34 | |||
| 35 | inherit autotools useradd systemd pkgconfig | ||
| 36 | |||
| 37 | USERADD_PACKAGES = "${PN}" | ||
| 38 | GROUPADD_PARAM_${PN} = "-f -r opensaf" | ||
| 39 | USERADD_PARAM_${PN} = "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nologin -c \"OpenSAF\" opensaf" | ||
| 40 | |||
| 41 | SYSTEMD_SERVICE_${PN} += "opensafd.service" | ||
| 42 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 43 | |||
| 44 | PACKAGECONFIG[systemd] = ",,systemd" | ||
| 45 | PACKAGECONFIG[openhpi] = "--with-hpi-interface=B03,,openhpi" | ||
| 46 | PACKAGECONFIG[plm] = "--enable-ais-plm,--disable-ais-plm,libvirt openhpi" | ||
| 47 | |||
| 48 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | ||
| 49 | |||
| 50 | PKGLIBDIR="${libdir}" | ||
| 51 | |||
| 52 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" | ||
| 53 | |||
| 54 | do_install_append() { | ||
| 55 | cp -av --no-preserve=ownership ${B}/lib/.libs/*.so* ${D}${libdir} | ||
| 56 | rm -fr "${D}${localstatedir}/lock" | ||
| 57 | rm -fr "${D}${localstatedir}/run" | ||
| 58 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
| 59 | rmdir --ignore-fail-on-non-empty "${D}${datadir}/java" | ||
| 60 | if [ ! -d "${D}${sysconfdir}/init.d" ]; then | ||
| 61 | install -d ${D}${sysconfdir}/init.d | ||
| 62 | install -m 0755 ${B}/osaf/services/infrastructure/nid/scripts/opensafd ${D}${sysconfdir}/init.d/ | ||
| 63 | fi | ||
| 64 | } | ||
| 65 | |||
| 66 | FILES_${PN} += "${systemd_unitdir}/system/*.service" | ||
| 67 | FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a" | ||
| 68 | |||
| 69 | INSANE_SKIP_${PN} = "dev-so" | ||
| 70 | |||
| 71 | RDEPENDS_${PN} += "bash python" | ||
| 72 | |||
