[yocto] Help with Opensips Recipe - QA run found fatal errors

Caio caiortp at gmail.com
Tue Nov 24 05:48:13 PST 2015


Hello,

I'm writing a recipe to a Sip proxy Opensips, but I'm having problems with
QA Issues.
In the First time I tried to use make install from Opensips Makefile I had
problem with QA Issues,  so I added all the folders to FILES_${PN} and
FILES_${PN} but I still having problem.

So I decided to start small, creating the folder structure and copy only
the binary files and after I will copy all the files using the  do_install
function.

But when I added the folders and I started to have problems with QA again.

FILES_${PN} = " \
        ${sbindir}/* \
        ${sysconfdir}/* \
        ${sysconfdir}/opensips/* \
        ${libdir}/* \
        ${libdir}/opensips/* \
        ${libdir}/opensips/modules/* \
        "
Someone could help me with this problem?


Thank you very much

Best Regards,

Caio Pereira


ERROR: QA Issue: opensips: The compile log indicates that host include
and/or library paths were used.
         Please check the log
'/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile'
for more information. [compile-host-path]


ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973
ERROR: Task 9
(/home/icchw/fsl-community-bsp/sources/icchw/meta-caio/recipes-telephony/opensips/
opensips_2.2.0.bb, do_package_qa) failed with exit code '1'


cat
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973

DEBUG: Python function read_subpackage_metadata finished
ERROR: QA Issue: opensips: The compile log indicates that host include
and/or library paths were used.
         Please check the log
'/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile'
for more information. [compile-host-path]
NOTE: Checking Package: opensips-dbg
NOTE: arm-poky-linux-gnueabi-objdump -p
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/packages-split/opensips-dbg/usr/sbin/.debug/opensips
NOTE: Checking Package: opensips-staticdev
NOTE: Checking Package: opensips-dev
NOTE: Checking Package: opensips-doc
NOTE: Checking Package: opensips-locale
NOTE: Checking Package: opensips
NOTE: arm-poky-linux-gnueabi-objdump -p
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/packages-split/opensips/usr/sbin/opensips
ERROR: QA run found fatal errors. Please consider fixing them.
DEBUG: Python function do_package_qa finished
ERROR: Function failed: do_package_qa


opensips_2.2.bb

DESCRIPTION = "SIP Proxy"
HOMEPAGE = "http://www.opensips.org"
LICENSE = "GPLv2"
DEPENDS = "sqlite3 libxml2 openssl confuse curl"
LIC_FILES_CHKSUM = "file://COPYING;md5=007e0c25afacf8e39c37f27c8212bc67"

SRC_URI = "git://github.com/OpenSIPS/opensips.git;branch=master \
           file://Makefile.conf \
           "
SRCREV = "d6660513634c8e4305e7c5b03510893efced1b68"
S = "${WORKDIR}/git"
inherit autotools pkgconfig

OPENSIPS_CPPFLAGS = "-fexpensive-optimizations -fomit-frame-pointer
-fsigned-char -Wcast-align -fPIC "

OSREL = "${LINUX_VERSION}"
OSREL .= "3.10.17"
#FIX-ME
OPENSIPS_ARCH .= "${TUNE_PKGARCH}"
OPENSIPS_MAKEFLAGS = "ARCH=${OPENSIPS_ARCH}  OS=linux OSREL=${OSREL}"
OPENSIPS_BUILD_DIR = "${S}"
OPENSIPS_INCLUDE_BASE_MODULES = "\"presence db_sqlite\""
export TLS = "1"
OPENSIPS_EXCLUDE_MODULES = "\"aaa_radius b2b_logic cachedb_cassandra
cachedb_couchbase cachedb_memcached cachedb_mongodb cachedb_redis
carrierroute compression cpl-c db_berkeley db_http db_mysql db_oracle
db_perlvdb db_postgres db_unixodbc dialplan emergency event_rabbitmq h350
regex identity jabber json ldap lua httpd mi_xmlrpc_ng mmgeoip osp perl
pi_http presence presence_dialoginfo presence_mwi presence_xml proto_sctp
proto_tls pua pua_bla pua_dialoginfo pua_mi pua_usrloc pua_xmpp python
rest_client rls sngtc snmpstats tlsops xcap xcap_client xmpp proto_wsi\""

OPENSIPS_DEBUG_MODE = ""

do_configure(){
        cp ${WORKDIR}/Makefile.conf ${S}
}

do_compile() {
        oe_runmake -C ${OPENSIPS_BUILD_DIR} ${OPENSIPS_MAKEFLAGS}
${OPENSIPS_DEBUG_MODE} include_modules="${OPENSIPS_INCLUDE_BASE_MODULES}"
prefix=${D}${prefix} modules app

}

#I decide to move in small steps, so this installations doesn't have all
the files
do_install() {

        install -d ${D}${sbindir}/
        install -d ${D}${sysconfdir}
        install -d ${D}${sysconfdir}/opensips/
        install -d ${D}${libdir}
        install -d ${D}${libdir}/opensips
        install -d ${D}${libdir}/opensips/modules
        install -m 0755 ${S}/opensips ${D}${sbindir}/

        #oe_runmake -C ${OPENSIPS_BUILD_DIR}
include_modules="${OPENSIPS_INCLUDE_BASE_MODULES}" prefix=${D}${prefix}
install-modules

}

do_install_append() {
#       rm -rf ${D}${prefix}/share/
#       rm -rf ${D}${libdir}/opensips/opensipsctl/
#       rm -rf ${D}${prefix}/etc/
#       rm -rf ${D}${prefix}/etc/opensips/tls/
#       rm -rf ${D}${prefix}${libdir}/opensips/opensipsctl
#       rm -rf ${D}${prefix}${libdir}/opensips/modules/.debug
#       rm -rf ${D}${prefix}/share
}

FILES_${PN} = " \
        ${sbindir}/* \
        ${sysconfdir}/* \
        ${sysconfdir}/opensips/* \
        ${libdir}/* \
        ${libdir}/opensips/* \
        ${libdir}/opensips/modules/* \
        "

FILES_${PN}-dbg += "${sbindir}/opensips/modules/.debug/* \
                   ${sbindir}/.debug/*"

RDEPENDS_${PN} = "python"

ALLOW_EMPTY_${PN} = "1"
ALLOW_EMPTY_${PN}-dev = "1"
ALLOW_EMPTY_${PN}-locale = "1"
ALLOW_EMPTY_${PN}-doc = "1"
ALLOW_EMPTY_${PN}-staticdev = "1"

PACKAGE = "${PN} ${PN}-dbg "


-- 
----------------------------------------------
Caio Pereira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151124/79422d59/attachment.html>


More information about the yocto mailing list