diff options
| -rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf/0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch | 23 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf_5.19.07.bb | 8 |
2 files changed, 28 insertions, 3 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch new file mode 100644 index 0000000000..21abcf75b5 --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | From 300fd3e27e71a91fc52d3f985ed4fde548852853 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 27 Sep 2019 12:50:11 -0700 | ||
| 4 | Subject: [PATCH] create_empty_library: Use CC variable intead of hardcoding | ||
| 5 | gcc | ||
| 6 | |||
| 7 | This ensures that cross-compiles can succeed, otherwise we get wrong | ||
| 8 | architecture on these stub libraries | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | scripts/create_empty_library | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | --- a/scripts/create_empty_library | ||
| 17 | +++ b/scripts/create_empty_library | ||
| 18 | @@ -66,4 +66,4 @@ for s in $symbols; do | ||
| 19 | echo "SaAisErrorT $s() { return SA_AIS_ERR_UNAVAILABLE; }" >> "$tmpdir/lib.c" | ||
| 20 | done | ||
| 21 | rm -f "$1" | ||
| 22 | -gcc -O2 -shared -fPIC "$tmpdir/lib.c" -Wl,-version-script="$2" -Wl,-soname="$libbase.so.$version1" -o "$1" | ||
| 23 | +$CC -O2 -shared -fPIC "$tmpdir/lib.c" -Wl,-version-script="$2" -Wl,-soname="$libbase.so.$version1" -o "$1" $LDFLAGS | ||
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.19.07.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.19.07.bb index 3df6824ff3..efa2bf5eb5 100644 --- a/meta-networking/recipes-daemons/opensaf/opensaf_5.19.07.bb +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.19.07.bb | |||
| @@ -25,6 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ | |||
| 25 | file://0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.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 \ | 26 | file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \ |
| 27 | file://0001-Add-configure-time-check-for-gettid-API.patch \ | 27 | file://0001-Add-configure-time-check-for-gettid-API.patch \ |
| 28 | file://0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch \ | ||
| 28 | " | 29 | " |
| 29 | SRC_URI[md5sum] = "e9ae9de803a99b7ab33757a49858542f" | 30 | SRC_URI[md5sum] = "e9ae9de803a99b7ab33757a49858542f" |
| 30 | SRC_URI[sha256sum] = "caed672d03ab1fe3f27d333429c7ca03022714e7c6350500208b7bd7349f03ce" | 31 | SRC_URI[sha256sum] = "caed672d03ab1fe3f27d333429c7ca03022714e7c6350500208b7bd7349f03ce" |
| @@ -44,13 +45,11 @@ PACKAGECONFIG[plm] = "--enable-ais-plm,--disable-ais-plm,libvirt openhpi" | |||
| 44 | 45 | ||
| 45 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | 46 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" |
| 46 | 47 | ||
| 47 | PKGLIBDIR="${libdir}" | ||
| 48 | CPPFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation" | 48 | CPPFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation" |
| 49 | CXXFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation -Wno-error=format-truncation=" | 49 | CXXFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation -Wno-error=format-truncation=" |
| 50 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" | 50 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" |
| 51 | 51 | ||
| 52 | do_install_append() { | 52 | do_install_append() { |
| 53 | cp -av --no-preserve=ownership ${B}/lib/.libs/*.so* ${D}${libdir} | ||
| 54 | rm -fr "${D}${localstatedir}/lock" | 53 | rm -fr "${D}${localstatedir}/lock" |
| 55 | rm -fr "${D}${localstatedir}/run" | 54 | rm -fr "${D}${localstatedir}/run" |
| 56 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | 55 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" |
| @@ -61,7 +60,8 @@ do_install_append() { | |||
| 61 | fi | 60 | fi |
| 62 | } | 61 | } |
| 63 | 62 | ||
| 64 | FILES_${PN} += "${systemd_unitdir}/system/*.service" | 63 | FILES_${PN} += "${libdir}/libSa*.so ${systemd_unitdir}/system/*.service" |
| 64 | FILES_${PN}-dev += "${libdir}/libopensaf_core.so" | ||
| 65 | FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a" | 65 | FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a" |
| 66 | 66 | ||
| 67 | INSANE_SKIP_${PN} = "dev-so" | 67 | INSANE_SKIP_${PN} = "dev-so" |
| @@ -70,3 +70,5 @@ RDEPENDS_${PN} += "bash python" | |||
| 70 | 70 | ||
| 71 | # http://errors.yoctoproject.org/Errors/Details/186970/ | 71 | # http://errors.yoctoproject.org/Errors/Details/186970/ |
| 72 | COMPATIBLE_HOST_libc-musl = 'null' | 72 | COMPATIBLE_HOST_libc-musl = 'null' |
| 73 | |||
| 74 | FILES_SOLIBSDEV = "" | ||
