packagegroup-cgl-*: fix LIC_FILES_CHKSUM variables
PATCH 1/9 packagegroup-cgl-*: fix LIC_FILES_CHKSUM variables
LIC_FILES_CHKSUM variables in all packagegroup files reference wrong location of the COPYING.MIT file resulting in warnings during build. Fix them by pointing to the main COPYING.MIT file in OE-Core.
--- meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb | 2 +- meta-cgl-common/packagegroups/packagegroup-cgl-kernel.bb | 2 +- meta-cgl-common/packagegroups/packagegroup-cgl-middleware.bb | 2 +- meta-cgl-common/packagegroups/packagegroup-cgl-swdevtools.bb | 2 +- meta-cgl-common/packagegroups/packagegroup-cgl.bb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb +1 -1
@@ -2,7 +2,7 @@ SUMMARY = "Application packages required to satisfy the Carrier Grade Linux (CGL DESCRIPTION = "This package group includes the application with which the user interacts \ when using a Linux operation system." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta-cgl/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" inherit packagegroup inherit pkgconfig
meta-cgl-common/packagegroups/packagegroup-cgl-kernel.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "This package group contains hardened device drivers, HW configura management, standard, high availability, service and co-processor interfaces." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta-cgl/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" inherit packagegroup
meta-cgl-common/packagegroups/packagegroup-cgl-middleware.bb +1 -1
@@ -2,7 +2,7 @@ SUMMARY = "Middleware packages required to satisfy the Carrier Grade Linux (CGL) DESCRIPTION = "This package group contains high availability application and platform \ interfaces, databases, application servers, communication protocols etc." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta-cgl/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" inherit packagegroup
meta-cgl-common/packagegroups/packagegroup-cgl-swdevtools.bb +1 -1
@@ -2,7 +2,7 @@ SUMMARY = "Software development tools packages required to satisfy the Carrier G DESCRIPTION = "This package group contains programs or applications used to create, debug, maintain, \ or otherwise support other programs and applications." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta-cgl/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" inherit packagegroup
meta-cgl-common/packagegroups/packagegroup-cgl.bb +1 -1
@@ -2,7 +2,7 @@ SUMMARY = "Packages required to satisfy the Carrier Grade Linux (CGL) specificat DESCRIPTION = "This package group is the one that gathers all the available \ package groups." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta-cgl/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20421" inherit packagegroup
Signature · 1 line
2.1.4
PATCH 2/9 packagegroup-cgl-swdevtools: don't depend on numactl on arm
Package numactl is disabled on ARM platform. Do no depend on it if we are building for this platform.
--- meta-cgl-common/packagegroups/packagegroup-cgl-swdevtools.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-cgl-common/packagegroups/packagegroup-cgl-swdevtools.bb +4 -1
@@ -9,6 +9,9 @@ inherit packagegroup PACKAGES = "packagegroup-cgl-swdevtools" +NUMACTL = "numactl" +NUMACTL_arm = "" + RDEPENDS_packagegroup-cgl-swdevtools = " \ libuio \ libcap-ng \
@@ -17,7 +20,7 @@ RDEPENDS_packagegroup-cgl-swdevtools = " \ libsocket6-perl \ libmailtools-perl \ libhtml-tagset-perl \ - numactl \ + ${NUMACTL} \ " RRECOMMENDS_packagegroup-cgl-swdevtools = ""
Signature · 1 line
2.1.4
PATCH 3/9 cluster-glue: add openhpi and net-snmp to DEPENDS
In reply to Dmitry Eremin-Solenikovcluster-glue makes use of openhpi and net-snmp libraries, so DEPEND on them as pointed by the following QA warnings:
cluster-glue-1.0.5: cluster-glue-plugin-stonith2 rdepends on net-snmp-libs, but it isn't a build dependency? [build-deps] cluster-glue-1.0.5: cluster-glue-plugin-stonith2 rdepends on openhpi, but it isn't a build dependency? [build-deps]
--- meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cgl-common/recipes-cgl/cluster-glue/cluster-glue_1.0.5.bb +1 -1
@@ -4,7 +4,7 @@ is not the cluster messaging layer (Heartbeat), nor the cluster resource manager (Pacemaker), nor a Resource Agent." LICENSE = "GPLv2" -DEPENDS = "libxml2 libtool glib-2.0 bzip2 util-linux" +DEPENDS = "libxml2 libtool glib-2.0 bzip2 util-linux net-snmp openhpi" SRC_URI = " \ http://hg.linux-ha.org/glue/archive/glue-${PV}.tar.bz2 \
Signature · 1 line
2.1.4
PATCH 4/9 cluster-resource-agents: add sha256 sum of the tarball
In reply to Dmitry Eremin-Solenikov--- .../recipes-cgl/cluster-resource-agents/cluster-resource-agents_1.0.3.bb | 1 + 1 file changed, 1 insertion(+)
meta-cgl-common/recipes-cgl/cluster-resource-agents/cluster-resource-agents_1.0.3.bb +1 -0
@@ -13,6 +13,7 @@ SRC_URI = " \ " SRC_URI_append_libc-uclibc = " file://kill-stack-protector.patch" SRC_URI[md5sum] = "fcaa2cfd83a28d1965200e11db2ddd41" +SRC_URI[sha256sum] = "09b58332e34cf128c8d53d5bb4b3f61e402c2e0c0c809f5abae53ca144ad101e" inherit autotools
Signature · 1 line
2.1.4
PATCH 5/9 cluster-resource-agents: add bash to RDEPENDS for ocft and ${PN}
In reply to Dmitry Eremin-SolenikovAdd bash to respective RDEPENDS as pointed by QA WARNINGS:
cluster-resource-agents-1.0.3: /usr/sbin/ocft_ocft contained in package ocft requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]
cluster-resource-agents-1.0.3: /usr/lib/ocf/resource.d/heartbeat/AoEtarget_cluster-resource-agents contained in package cluster-resource-agents requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]
--- .../cluster-resource-agents/cluster-resource-agents_1.0.3.bb | 8 ++++++++ 1 file changed, 8 insertions(+)
meta-cgl-common/recipes-cgl/cluster-resource-agents/cluster-resource-agents_1.0.3.bb +8 -0
@@ -76,9 +76,17 @@ FILES_${PN} += " \ ${datadir}/resource-agents/ra-api-1.dtd \ " +RDEPENDS_ocft += " \ + bash \ +" + FILES_ocft += " \ ${datadir}/resource-agents/ocft \ ${sbindir}/ocft \ " +RDEPENDS_${PN} += " \ + bash \ +" + FILES_${PN}-dbg += "${libdir}/heartbeat/.debug/ ${libdir}/ocf/resource.d/heartbeat/.debug/"
Signature · 1 line
2.1.4
PATCH 6/9 ocfs2-tools: drop clutter-1.0 dependency
In reply to Dmitry Eremin-SolenikovThere is nothing in ocfs2-tools that depends on clutter. Drop corresponding package from DEPENDS list.
--- meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.4.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.4.3.bb +1 -1
@@ -24,7 +24,7 @@ SRC_URI[md5sum] = "296f1242f4d00d188231d726d7a1d148" SRC_URI[sha256sum] = "a809f03c62e515a4c23e98c4b4c3f8150377af2cf44cd2a2ee56e175b0e4d0b3" S = "${WORKDIR}/ocfs2-tools-ocfs2-tools-1.4.3" inherit autotools-brokensep pkgconfig -DEPENDS = "corosync openais clutter-1.0 cluster-glue pacemaker libxml2 linux-libc-headers e2fsprogs" +DEPENDS = "corosync openais cluster-glue pacemaker libxml2 linux-libc-headers e2fsprogs" RDEPENDS_${PN} = "bash coreutils net-tools module-init-tools e2fsprogs chkconfig glib-2.0" ASNEEDED_pn-${PN} = "" PARALLEL_MAKE = ""
Signature · 1 line
2.1.4
PATCH 7/9 openais: make openais script use sh instead of bash
In reply to Dmitry Eremin-SolenikovThere is no point in using bash for the openais script, if just sh is enough. In addition this fixes the following QA warning:
openais-1.1.3: /etc/init.d/openais_openais contained in package openais requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]
--- .../recipes-cgl/openais/files/openais-fix-bash.patch | 10 ++++++++++ meta-cgl-common/recipes-cgl/openais/openais_1.1.3.bb | 1 + 2 files changed, 11 insertions(+) create mode 100644 meta-cgl-common/recipes-cgl/openais/files/openais-fix-bash.patch
meta-cgl-common/recipes-cgl/openais/files/openais-fix-bash.patch new file +10 -0
@@ -0,0 +1,10 @@ +Index: openais-1.1.3/init/generic.in +=================================================================== +--- openais-1.1.3.orig/init/generic.in ++++ openais-1.1.3/init/generic.in +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + # Authors: + # Andrew Beekhof <[email protected]>
meta-cgl-common/recipes-cgl/openais/openais_1.1.3.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI = " \ ftp://[email protected]/gentoo/distfiles/openais-${PV}.tar.gz \ file://fix-lcrso-linkage.patch \ file://build-cleanup-configure-ac.patch \ + file://openais-fix-bash.patch \ " SRC_URI[md5sum] = "13d8d590f806fb396d750b086c6c0b78" SRC_URI[sha256sum] = "eeef58dd2df3eb16ba68b3fbdc6f0d4dfb537443f1c091ec6f0431594f2f00b6"
Signature · 1 line
2.1.4
PATCH 8/9 pacemaker: fix building with xml-config now being disabled
In reply to Dmitry Eremin-SolenikovOE-Core now forbids using of xml-config, thus pacemaker is now broken. Rewrite configure.ac to use pkg-config instead of xml-config.
--- .../pacemaker-fix-xml-config.patch | 53 ++++++++++++++++++++++ .../recipes-cgl/pacemaker/pacemaker_1.0.9.1.bb | 3 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 meta-cgl-common/recipes-cgl/pacemaker/pacemaker-1.0.9.1/pacemaker-fix-xml-config.patch
meta-cgl-common/recipes-cgl/pacemaker/pacemaker-1.0.9.1/pacemaker-fix-xml-config.patch new file +53 -0
@@ -0,0 +1,53 @@ +Index: pacemaker-1.0-Pacemaker-1.0.9.1/configure.ac +=================================================================== +--- pacemaker-1.0-Pacemaker-1.0.9.1.orig/configure.ac ++++ pacemaker-1.0-Pacemaker-1.0.9.1/configure.ac +@@ -22,6 +22,7 @@ dnl checks for system services + AC_INIT(pacemaker, 1.0.9, [email protected]) + CRM_DTD_VERSION="1.0" + ++m4_pattern_allow([PKG_FEATURES]) + PKG_FEATURES="" + HB_PKG=heartbeat + +@@ -97,7 +98,7 @@ dnl ==================================== + cc_supports_flag() { + local CFLAGS="$@" + AC_MSG_CHECKING(whether $CC supports "$@") +- AC_COMPILE_IFELSE([int main(){return 0;}] ,[RC=0; AC_MSG_RESULT(yes)],[RC=1; AC_MSG_RESULT(no)]) ++ AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main(){return 0;}])] ,[RC=0; AC_MSG_RESULT(yes)],[RC=1; AC_MSG_RESULT(no)]) + return $RC + } + +@@ -502,7 +503,6 @@ AC_PATH_PROGS(TAR, tar) + AC_PATH_PROGS(MD5, md5) + AC_PATH_PROGS(TEST, test) + AC_PATH_PROGS(PKGCONFIG, pkg-config) +-AC_PATH_PROGS(XML2CONFIG, xml2-config) + AC_PATH_PROGS(VALGRIND_BIN, valgrind, /usr/bin/valgrind) + AC_DEFINE_UNQUOTED(VALGRIND_BIN, "$VALGRIND_BIN", Valgrind command) + +@@ -671,17 +671,13 @@ dnl AC_CHECK_HEADERS(netinet/icmp6.h) + dnl AC_CHECK_HEADERS(netinet/ip6.h) + dnl AC_CHECK_HEADERS(netinet/ip_icmp.h) + +-AC_MSG_CHECKING(for special libxml2 includes) +-if test "x$XML2CONFIG" = "x"; then +- AC_MSG_ERROR(libxml2 config not found) +-else +- XML2HEAD="`$XML2CONFIG --cflags`" +- AC_MSG_RESULT($XML2HEAD) +- AC_CHECK_LIB(xml2, xmlReadMemory) +- AC_CHECK_LIB(xslt, xsltApplyStylesheet) +-fi ++PKG_CHECK_MODULES([XML], [libxml-2.0]) ++PKG_CHECK_MODULES([XSLT], [libxslt]) ++ ++AC_CHECK_LIB(xml2, xmlReadMemory) ++AC_CHECK_LIB(xslt, xsltApplyStylesheet) + +-CPPFLAGS="$CPPFLAGS $XML2HEAD" ++CPPFLAGS="$CPPFLAGS $XML_CFLAGS" + + AC_CHECK_HEADERS(libxml/xpath.h) + AC_CHECK_HEADERS(libxslt/xslt.h)
meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.0.9.1.bb +2 -1
@@ -25,12 +25,13 @@ SRC_URI = " \ file://pacemaker-dont-use-help2man.patch \ file://fix-header-defs-lookup.patch \ file://pacemaker-remove-ptest-functionality.patch \ + file://pacemaker-fix-xml-config.patch \ file://volatiles \ " SRC_URI_append_libc-uclibc = " file://kill-stack-protector.patch" SRC_URI[md5sum] = "103fb2e804be3f8ace17021c5d9ad15d" SRC_URI[sha256sum] = "aabfc9ee1c66804151d973d0ed0323798ffebe49e1c2219fa804dc6898a69a1e" -inherit autotools-brokensep python-dir +inherit autotools-brokensep python-dir pkgconfig S = "${WORKDIR}/pacemaker-1.0-Pacemaker-${PV}"
Signature · 1 line
2.1.4
PATCH 9/9 pacemaker: fix runtime dependencies on bash
In reply to Dmitry Eremin-SolenikovAdd bash to the pacemaker-tests RDEPENDS. Also make all scripts that are installed in main pacemaker package use sh instead of bash.
--- .../pacemaker-1.0.9.1/pacemaker-no-bash.patch | 40 ++++++++++++++++++++++ .../recipes-cgl/pacemaker/pacemaker_1.0.9.1.bb | 3 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 meta-cgl-common/recipes-cgl/pacemaker/pacemaker-1.0.9.1/pacemaker-no-bash.patch
meta-cgl-common/recipes-cgl/pacemaker/pacemaker-1.0.9.1/pacemaker-no-bash.patch new file +40 -0
@@ -0,0 +1,40 @@ +Index: pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_failcount +=================================================================== +--- pacemaker-1.0-Pacemaker-1.0.9.1.orig/tools/crm_failcount ++++ pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_failcount +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + options="" + target=`uname -n` +Index: pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_master +=================================================================== +--- pacemaker-1.0-Pacemaker-1.0.9.1.orig/tools/crm_master ++++ pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_master +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + TEMP=`getopt -o DGQVN:U:v:i:l:r: --long resource:,node:,uname:,attr-value:,delete-attr,get-value,attr-id:,lifetime:,quiet \ + -n 'crm_master' -- "$@"` +Index: pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_standby +=================================================================== +--- pacemaker-1.0-Pacemaker-1.0.9.1.orig/tools/crm_standby ++++ pacemaker-1.0-Pacemaker-1.0.9.1/tools/crm_standby +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + op="" + options="" +Index: pacemaker-1.0-Pacemaker-1.0.9.1/extra/resources/o2cb +=================================================================== +--- pacemaker-1.0-Pacemaker-1.0.9.1.orig/extra/resources/o2cb ++++ pacemaker-1.0-Pacemaker-1.0.9.1/extra/resources/o2cb +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # Copyright (c) 2005,2008 Oracle + # Copyright (c) 2008 Andrew Beekhof + # All Rights Reserved.
meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.0.9.1.bb +2 -1
@@ -26,6 +26,7 @@ SRC_URI = " \ file://fix-header-defs-lookup.patch \ file://pacemaker-remove-ptest-functionality.patch \ file://pacemaker-fix-xml-config.patch \ + file://pacemaker-no-bash.patch \ file://volatiles \ " SRC_URI_append_libc-uclibc = " file://kill-stack-protector.patch"
@@ -80,5 +81,5 @@ RDEPENDS_${PN}-hb2openais += "python-core" FILES_${PN}-haresources2cib = "${libdir}/heartbeat/haresources2cib.py" RDEPENDS_${PN}-haresources2cib += "python-core" FILES_${PN}-tests = "${datadir}/pacemaker/tests ${datadir}/pacemaker/stonithdtest ${libdir}/heartbeat/atest ${libdir}/heartbeat/stonithdtest/*" -RDEPENDS_${PN}-test += "python-core" +RDEPENDS_${PN}-tests += "python-core bash" FILES_${PN}-snmp = "${datadir}/snmp/mibs/PCMK-MIB.txt"
Signature · 1 line
2.1.4