diff options
| author | Jiaying Song <jiaying.song.cn@windriver.com> | 2024-11-04 14:00:18 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2024-12-08 14:38:16 -0500 |
| commit | b126eb370512f8a3de06f6aebe8913c532d21dbe (patch) | |
| tree | 00543f0437930e08701b74d7ef5ddb0d044f0fb4 /meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb | |
| parent | 4b706692bac9f2630ea2868f634e8dec13794e6d (diff) | |
| download | meta-openembedded-b126eb370512f8a3de06f6aebe8913c532d21dbe.tar.gz | |
openipmi: upgrade 2.0.32->2.0.36
2c4ab4a6c openipmi: fix do_configure error when using dash
03dd014eb openipmi: update 2.0.32 -> 2.0.34
Merge the above commits related to the upgrade, and then upgrade the
version of openipmi from 2.0.34 to 2.0.36.
Full changelog for openipmi::
https://sourceforge.net/p/openipmi/news/
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb')
| -rw-r--r-- | meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb b/meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb new file mode 100644 index 0000000000..35fea7879f --- /dev/null +++ b/meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | SUMMARY = "IPMI (Intelligent Platform Management Interface) library and tools" | ||
| 2 | DESCRIPTION = "OpenIPMI is an effort to create a full-function IPMI system, \ | ||
| 3 | to allow full access to all IPMI information on a server \ | ||
| 4 | and to abstract it to a level that will make it easy to use" | ||
| 5 | |||
| 6 | HOMEPAGE = "http://openipmi.sourceforge.net" | ||
| 7 | |||
| 8 | DEPENDS = " \ | ||
| 9 | glib-2.0 \ | ||
| 10 | ncurses \ | ||
| 11 | net-snmp \ | ||
| 12 | openssl \ | ||
| 13 | popt \ | ||
| 14 | python3 \ | ||
| 15 | swig-native \ | ||
| 16 | readline \ | ||
| 17 | " | ||
| 18 | |||
| 19 | LICENSE = "GPL-2.0-only & LGPL-2.1-only & BSD-3-Clause" | ||
| 20 | |||
| 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
| 22 | file://COPYING.LIB;md5=d8045f3b8f929c1cb29a1e3fd737b499 \ | ||
| 23 | file://COPYING.BSD;md5=4b318d4160eb69c8ee53452feb1b4cdf \ | ||
| 24 | " | ||
| 25 | |||
| 26 | SRC_URI = "${SOURCEFORGE_MIRROR}/openipmi/OpenIPMI-${PV}.tar.gz \ | ||
| 27 | file://fix-symlink-install-error-in-cmdlang.patch \ | ||
| 28 | file://openipmi-no-openipmigui-man.patch \ | ||
| 29 | file://ipmi-init-fix-the-arguments.patch \ | ||
| 30 | file://include_sys_types.patch \ | ||
| 31 | file://openipmi-helper \ | ||
| 32 | file://ipmi.service \ | ||
| 33 | " | ||
| 34 | |||
| 35 | S = "${WORKDIR}/OpenIPMI-${PV}" | ||
| 36 | |||
| 37 | SRC_URI[sha256sum] = "a0403148fa5f7bed930c958a4d1c558047e273763a408b3a0368edc137cc55d9" | ||
| 38 | |||
| 39 | inherit autotools-brokensep pkgconfig perlnative update-rc.d systemd cpan-base python3targetconfig | ||
| 40 | |||
| 41 | EXTRA_OECONF = "--disable-static \ | ||
| 42 | --with-perl='${STAGING_BINDIR_NATIVE}/perl-native/perl' \ | ||
| 43 | --with-glibver=2.0 \ | ||
| 44 | --with-pythoncflags='-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}' \ | ||
| 45 | " | ||
| 46 | |||
| 47 | PACKAGECONFIG ??= "gdbm" | ||
| 48 | PACKAGECONFIG[gdbm] = "ac_cv_header_gdbm_h=yes,ac_cv_header_gdbm_h=no,gdbm," | ||
| 49 | |||
| 50 | PACKAGES += "${PN}-perl ${PN}-python" | ||
| 51 | PRIVATE_LIBS:${PN}-perl = "libOpenIPMI.so.0" | ||
| 52 | |||
| 53 | FILES:${PN}-perl = " \ | ||
| 54 | ${libdir}/perl/vendor_perl/*/OpenIPMI.pm \ | ||
| 55 | ${libdir}/perl/vendor_perl/*/auto/OpenIPMI/OpenIPMI.so \ | ||
| 56 | " | ||
| 57 | |||
| 58 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" | ||
| 59 | |||
| 60 | FILES:${PN}-dbg += " \ | ||
| 61 | ${libdir}/perl/vendor_perl/*/auto/OpenIPMI/.debug \ | ||
| 62 | ${PYTHON_SITEPACKAGES_DIR}/.debug \ | ||
| 63 | " | ||
| 64 | |||
| 65 | do_configure () { | ||
| 66 | |||
| 67 | # Let's perform regular configuration first then handle perl issues. | ||
| 68 | autotools_do_configure | ||
| 69 | |||
| 70 | perl_ver=`perl -V:version | cut -d\' -f 2` | ||
| 71 | |||
| 72 | # Force openipmi perl bindings to be compiled using perl-native instead of | ||
| 73 | # the host's perl. Set the proper install directory for the resulting | ||
| 74 | # openipmi.pm and openipmi.so | ||
| 75 | for i in ${S}/swig/Makefile ${S}/swig/perl/Makefile; do | ||
| 76 | echo "SAL: i = $i" | ||
| 77 | echo "SAL: STAGING_INCDIR_NATIVE = $STAGING_INCDIR_NATIVE" | ||
| 78 | echo "SAL: libdir = $libdir" | ||
| 79 | sed -i -e "/^PERL_CFLAGS/s:-I/usr/local/include:-I${STAGING_INCDIR_NATIVE}:g" $i | ||
| 80 | sed -i -e "/^PERL_CFLAGS/s:-I .* :-I ${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}/CORE :g" $i | ||
| 81 | sed -i -e "/^PERL_INSTALL_DIR/s:^PERL_INSTALL_DIR = .*:PERL_INSTALL_DIR = ${libdir}/perl/vendor_perl/$perl_ver:g" $i | ||
| 82 | done | ||
| 83 | } | ||
| 84 | |||
| 85 | do_compile:append () { | ||
| 86 | sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${S}/swig/perl/OpenIPMI_wrap.c | ||
| 87 | } | ||
| 88 | |||
| 89 | do_install:append () { | ||
| 90 | echo "SAL: D = $D" | ||
| 91 | echo "SAL: libdir = $libdir" | ||
| 92 | install -m 0755 -d ${D}${sysconfdir}/sysconfig ${D}${sysconfdir}/init.d | ||
| 93 | install -m 0755 ${S}/ipmi.init ${D}${sysconfdir}/init.d/ipmi | ||
| 94 | install -m 0644 ${S}/ipmi.sysconf ${D}${sysconfdir}/sysconfig/ipmi | ||
| 95 | # SAL: mv: cannot stat `/localdisk/loadbuild/slittle1/workspace/cgts_test_build/bitbake_build/tmp/work/x86_64-wrs-linux/openipmi-2.0.19-r4/image/usr/lib64/perl5': No such file or directory | ||
| 96 | # SAL: real path to perl is /localdisk/loadbuild/slittle1/workspace/cgts_test_build/bitbake_build/tmp/work/x86_64-wrs-linux/perl-5.14.2-r8.3/package/usr/lib64/perl5 and it is a symlink to perl so no need to mv. | ||
| 97 | if [ -d ${D}${libdir}/perl5 ] | ||
| 98 | then | ||
| 99 | mv ${D}${libdir}/perl5 ${D}${libdir}/perl | ||
| 100 | fi | ||
| 101 | |||
| 102 | # for systemd | ||
| 103 | install -d ${D}${systemd_unitdir}/system | ||
| 104 | install -m 0664 ${WORKDIR}/ipmi.service ${D}${systemd_unitdir}/system | ||
| 105 | sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/ipmi.service | ||
| 106 | install -d ${D}${libexecdir} | ||
| 107 | install -m 0755 ${WORKDIR}/openipmi-helper ${D}${libexecdir} | ||
| 108 | } | ||
| 109 | |||
| 110 | INITSCRIPT_NAME = "ipmi" | ||
| 111 | INITSCRIPT_PARAMS = "start 30 . stop 70 0 1 2 3 4 5 6 ." | ||
| 112 | |||
| 113 | SYSTEMD_SERVICE:${PN} = "ipmi.service" | ||
| 114 | SYSTEMD_AUTO_ENABLE = "disable" | ||
