diff options
-rw-r--r-- | classes/tinderclient.bbclass | 20 | ||||
-rw-r--r-- | packages/xerces-c/xerces-c_2.6.0.bb | 46 |
2 files changed, 44 insertions, 22 deletions
diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass index 6e10d0f34b..f544c203fe 100644 --- a/classes/tinderclient.bbclass +++ b/classes/tinderclient.bbclass @@ -13,12 +13,15 @@ def tinder_http_post(server, selector, content_type, body): #print errcode, errmsg, headers return (errcode,errmsg, headers, h.file) except: + print "Error sending the report!" # try again pass + # return some garbage + return (-1, "unknown", "unknown", None) + def tinder_form_data(bound, dict, log): output = [] - #br # for each key in the dictionary for name in dict: output.append( "--" + bound ) @@ -119,7 +122,7 @@ def tinder_build_start(d): f.write(report) -def tinder_send_http(d, status, log): +def tinder_send_http(d, status, _log): """ Send this log as build status """ @@ -127,16 +130,19 @@ def tinder_send_http(d, status, log): # get the body and type - content_type, body = tinder_format_http_post(d,status,log) server = data.getVar('TINDER_HOST', d, True ) url = data.getVar('TINDER_URL', d, True ) selector = url + "/xml/build_status.pl" - # now post it - errcode, errmsg, headers, h_file = tinder_http_post(server,selector,content_type, body) - #print errcode, errmsg, headers - #print h.file.read() + # now post it - in chunks of 10.000 charachters + new_log = _log + while len(new_log) > 0: + content_type, body = tinder_format_http_post(d,status,new_log[0:18000]) + errcode, errmsg, headers, h_file = tinder_http_post(server,selector,content_type, body) + #print errcode, errmsg, headers + #print h.file.read() + new_log = new_log[18000:] def tinder_print_info(d): diff --git a/packages/xerces-c/xerces-c_2.6.0.bb b/packages/xerces-c/xerces-c_2.6.0.bb index 1fa986c6f4..b38842951a 100644 --- a/packages/xerces-c/xerces-c_2.6.0.bb +++ b/packages/xerces-c/xerces-c_2.6.0.bb @@ -5,32 +5,48 @@ PRIORITY = "optional" MAINTAINER = "Philip Balister philip@balister.org" LICENSE = "MIT" + + + S="${WORKDIR}/xerces-c-src_2_6_0" SRC_URI = "http://www.axint.net/apache/xml/xerces-c/xerces-c-src_2_6_0.tar.gz" -inherit pkgconfig +inherit pkgconfig + + +# +# Warning: BITSTOBUILD will default to 32 bits +# +export TRANSCODER="NATIVE" +export MESSAGELOADER="INMEM" +export NETACCESSOR="Socket" +export THREADS="pthread" +export BITSTOBUILD="32" +export LIBS = " -lpthread " +CFLAGS_append = " -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET " +CXXFLAGS_append = " -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET " + +do_configure() { + export XERCESCROOT=${S} + cd src/xercesc + ./configure +} do_compile () { - export XERCESCROOT=${S} - cd src/xercesc -# runConfigure is going to bust CC and CXX I bet - CC_SAVE="${CC}" - CXX_SAVE="${CXX}" - ./runConfigure -plinux -c${CC} -x${CXX} -minmem -nsocket -tnative -rpthread - CC="${CC_SAVE}" - CXX="${CXX_SAVE}" - oe_runmake + export XERCESCROOT=${S} + cd src/xercesc + oe_runmake } do_stage () { - oe_libinstall -C lib libxerces-c ${STAGING_LIBDIR} - oe_libinstall -C lib libxerces-depdom ${STAGING_LIBDIR} + oe_libinstall -C lib libxerces-c ${STAGING_LIBDIR} + oe_libinstall -C lib libxerces-depdom ${STAGING_LIBDIR} - cp -pPR include/xercesc ${STAGING_INCDIR} + cp -pPR include/xercesc ${STAGING_INCDIR} } do_install () { - oe_libinstall -C lib libxerces-c ${D}${libdir} - oe_libinstall -C lib libxerces-depdom ${D}${libdir} + oe_libinstall -C lib libxerces-c ${D}${libdir} + oe_libinstall -C lib libxerces-depdom ${D}${libdir} } |