summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/tinderclient.bbclass378
-rw-r--r--classes/xlibs.bbclass2
-rw-r--r--conf/bitbake.conf1
-rw-r--r--conf/distro/angstrom-2006.9.conf65
-rw-r--r--conf/distro/angstrom.conf30
-rw-r--r--conf/machine/ep93xx.conf5
-rw-r--r--packages/angstrom/angstrom-version.bb8
-rw-r--r--packages/avahi/avahi_0.6.5.bb9
-rw-r--r--packages/avahi/avahi_0.6.7.bb (renamed from packages/avahi/avahi_0.6.3.bb)13
-rw-r--r--packages/compositeext/compositeext_cvs.bb2
-rw-r--r--packages/damageext/damageext_cvs.bb2
-rw-r--r--packages/dri/drm-kernel_cvs.bb2
-rw-r--r--packages/dri/drm_cvs.bb2
-rw-r--r--packages/fdclock/fdclock_cvs.bb2
-rw-r--r--packages/fixesext/fixesext_cvs.bb2
-rw-r--r--packages/fontconfig/fontconfig_2.2.95.bb2
-rw-r--r--packages/fs/fs_cvs.bb2
-rw-r--r--packages/gpe-conf/files/fixsegfault.patch44
-rw-r--r--packages/gpe-conf/gpe-conf_0.1.30.bb6
-rw-r--r--packages/gtk-webcore/osb-browser_20060212.bb2
-rw-r--r--packages/gtk-webcore/osb-jscore_20060212.bb2
-rw-r--r--packages/gtk-webcore/osb-nrcit_20060212.bb2
-rw-r--r--packages/gtk-webcore/osb-nrcore_20060212.bb2
-rw-r--r--packages/ice/ice_cvs.bb2
-rw-r--r--packages/libdaemon/libdaemon_0.10.bb4
-rw-r--r--packages/libdaemon/libdaemon_0.3.bb16
-rw-r--r--packages/libdaemon/libdaemon_0.6.bb4
-rw-r--r--packages/libsm/libsm_cvs.bb2
-rw-r--r--packages/libxcursor/libxcursor_cvs.bb2
-rw-r--r--packages/libxfixes/libxfixes_cvs.bb2
-rw-r--r--packages/libxft/libxft_cvs.bb2
-rw-r--r--packages/libxi/libxi_cvs.bb2
-rw-r--r--packages/libxkbfile/libxkbfile_cvs.bb2
-rw-r--r--packages/libxp/libxp_cvs.bb2
-rw-r--r--packages/libxrandr/libxrandr_cvs.bb2
-rw-r--r--packages/libxrender/libxrender_cvs.bb2
-rw-r--r--packages/libxss/libxss_cvs.bb2
-rw-r--r--packages/libxv/libxv_2.2.2+cvs20040918.bb2
-rw-r--r--packages/libxvmc/libxvmc_20040919.bb2
-rw-r--r--packages/libxvmc/libxvmc_20041025.bb2
-rw-r--r--packages/libxvmc/libxvmc_20050612.bb4
-rw-r--r--packages/libxxf86dga/libxxf86dga_cvs.bb2
-rw-r--r--packages/libxxf86vm/libxxf86vm_cvs.bb2
-rw-r--r--packages/linux/ep93xx-kernel_2.6.15.bb12
-rw-r--r--packages/linux/handhelds-pxa-2.6/h2200/defconfig736
-rw-r--r--packages/linux/handhelds-pxa-2.6/ide_not_removable-r0.patch114
-rw-r--r--packages/linux/handhelds-pxa-2.6/ipaq-pxa270/defconfig11
-rw-r--r--packages/linux/handhelds-pxa-2.6_2.6.15-hh0.bb36
-rw-r--r--packages/offlineimap/offlineimap_4.0.11.bb17
-rw-r--r--packages/panoramixext/panoramixext_cvs.bb2
-rw-r--r--packages/randrext/randrext_cvs.bb2
-rw-r--r--packages/recordext/recordext_cvs.bb2
-rw-r--r--packages/renderext/renderext_cvs.bb2
-rw-r--r--packages/resourceext/resourceext_cvs.bb2
-rw-r--r--packages/spca5xx/spca5xx-20060202/.mtn2git_empty0
-rw-r--r--packages/spca5xx/spca5xx-20060202/Makefile.patch19
-rw-r--r--packages/spca5xx/spca5xx_20060202.bb27
-rw-r--r--packages/x11/x11_cvs.bb2
-rw-r--r--packages/xau/xau_cvs.bb2
-rw-r--r--packages/xauth/xauth_cvs.bb2
-rw-r--r--packages/xaw/xaw_cvs.bb2
-rw-r--r--packages/xcalibrate/xcalibrate_cvs.bb2
-rw-r--r--packages/xcalibrateext/xcalibrateext_cvs.bb2
-rw-r--r--packages/xcompmgr/xcompmgr_cvs.bb2
-rw-r--r--packages/xcomposite/xcomposite_cvs.bb2
-rw-r--r--packages/xdamage/xdamage_cvs.bb2
-rw-r--r--packages/xdmcp/libxdmcp_cvs.bb2
-rw-r--r--packages/xdpyinfo/xdpyinfo_cvs.bb2
-rw-r--r--packages/xev/xev_cvs.bb2
-rw-r--r--packages/xext/xext_cvs.bb2
-rw-r--r--packages/xextensions/xextensions_20050610.bb2
-rw-r--r--packages/xextensions/xextensions_cvs.bb2
-rw-r--r--packages/xfont/xfont_cvs.bb2
-rw-r--r--packages/xfonts/xfonts-xorg_6.8.bb2
-rw-r--r--packages/xhost/xhost_20040413.bb2
-rw-r--r--packages/xinerama/xinerama_1.0.2+cvs20050505.bb2
-rw-r--r--packages/xinerama/xinerama_cvs.bb2
-rw-r--r--packages/xmodmap/xmodmap_cvs.bb2
-rw-r--r--packages/xmu/xmu_cvs.bb2
-rw-r--r--packages/xpm/xpm_cvs.bb2
-rw-r--r--packages/xprop/xprop_cvs.bb2
-rw-r--r--packages/xproto/xproto_6.6.2+cvs20050226.bb2
-rw-r--r--packages/xproto/xproto_cvs.bb2
-rw-r--r--packages/xrandr/xrandr_cvs.bb2
-rw-r--r--packages/xrdb/xrdb_cvs.bb2
-rw-r--r--packages/xres/xres_cvs.bb2
-rw-r--r--packages/xserver/xserver-kdrive_20050207.bb4
-rw-r--r--packages/xserver/xserver-kdrive_20050624.bb2
-rw-r--r--packages/xserver/xserver-kdrive_cvs.bb2
-rw-r--r--packages/xserver/xserver-xorg_6.8.99.10.bb2
-rw-r--r--packages/xserver/xserver-xorg_6.8.99.11.bb2
-rw-r--r--packages/xserver/xserver-xorg_cvs.bb2
-rw-r--r--packages/xset/xset_20040817.bb2
-rw-r--r--packages/xt/xt_cvs.bb2
-rw-r--r--packages/xtrans/xtrans_cvs.bb2
-rw-r--r--packages/xtst/xtst_cvs.bb2
-rw-r--r--packages/xxf86dgaext/xxf86dgaext_cvs.bb2
-rw-r--r--packages/xxf86vmext/xxf86vmext_cvs.bb2
98 files changed, 871 insertions, 840 deletions
diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass
index 3385fc0f93..290166bb03 100644
--- a/classes/tinderclient.bbclass
+++ b/classes/tinderclient.bbclass
@@ -1,248 +1,74 @@
-def tinder_form_data(bound, dict, log):
- """
- Create the boundary for the HTTP Post
- """
- output = []
-
- # for each key in the dictionary
- for name in dict:
- output.append( "--" + bound )
- output.append( 'Content-Disposition: form-data; name="%s"' % name )
- output.append( "" )
- output.append( dict[name] )
- if log:
- output.append( "--" + bound )
- output.append( 'Content-Disposition: form-data; name="log"; filename="log.txt"' )
- output.append( '' )
- output.append( log )
- output.append( '--' + bound + '--' )
- output.append( '' )
-
- return "\r\n".join(output)
-
-def tinder_time_string():
- """
- Return the time as GMT
- """
- return ""
-
-def tinder_format_http_post(d,status,log):
- """
- Format the Tinderbox HTTP post with the data needed
- for the tinderbox to be happy.
- """
-
- from bb import data
- import os,random
-
- # the variables we will need to send on this form post
- variables = {
- "tree" : data.getVar('TINDER_TREE', d, True),
- "machine_name" : data.getVar('TINDER_MACHINE', d, True),
- "os" : os.uname()[0],
- "os_version" : os.uname()[2],
- "compiler" : "gcc",
- "clobber" : data.getVar('TINDER_CLOBBER', d, True)
- }
-
- # optionally add the status
- if status:
- variables["status"] = str(status)
-
- # try to load the machine id
- # we only need on build_status.pl but sending it
- # always does not hurt
+def tinder_tz_offset(off):
+ # get the offset.n minutes Either it is a number like
+ # +200 or -300
try:
- f = file(data.getVar('TMPDIR',d,True)+'/tinder-machine.id', 'r')
- id = f.read()
- variables['machine_id'] = id
- except:
- pass
-
- # the boundary we will need
- boundary = "----------------------------------%d" % int(random.random()*1000000000000)
-
- # now format the body
- body = tinder_form_data( boundary, variables, log )
-
- return ("multipart/form-data; boundary=%s" % boundary),body
-
-
-def tinder_build_start(d):
- """
- Inform the tinderbox that a build is starting. We do this
- by posting our name and tree to the build_start.pl script
- on the server.
- """
+ return int(off)
+ except ValueError:
+ if off == "Europe/Berlin":
+ return 120
+ else:
+ return 0
+
+def tinder_tinder_time(offset):
+ import datetime
+ td = datetime.timedelta(minutes=tinder_tz_offset(offset))
+ time = datetime.datetime.utcnow() + td
+ return time.strftime('%m/%d/%Y %H:%M:%S')
+
+def tinder_tinder_start(date,offset):
+ import datetime, time
+ td = datetime.timedelta(minutes=tinder_tz_offset(offset))
+ ti = time.strptime(date, "%m/%d/%Y %H:%M:%S")
+ time = datetime.datetime(*ti[0:7])+td
+ return time.strftime('%m/%d/%Y %H:%M:%S')
+
+def tinder_send_email(da, header, log):
+ import smtplib
from bb import data
- import httplib
-
- # get the body and type
- content_type, body = tinder_format_http_post(d,None,None)
- server = data.getVar('TINDER_HOST', d, True )
- url = data.getVar('TINDER_URL', d, True )
-
- selector = url + "/xml/build_start.pl"
-
- #print "selector %s and url %s" % (selector, url)
-
- # now post it
- h = httplib.HTTP(server)
- h.putrequest('POST', selector)
- h.putheader('content-type', content_type)
- h.putheader('content-length', str(len(body)))
- h.endheaders()
- h.send(body)
- errcode, errmsg, headers = h.getreply()
- #print errcode, errmsg, headers
- report = h.file.read()
-
- # now let us find the machine id that was assigned to us
- search = "<machine id='"
- report = report[report.find(search)+len(search):]
- report = report[0:report.find("'")]
-
- import bb
- bb.note("Machine ID assigned by tinderbox: %s" % report )
+ from email.MIMEText import MIMEText
+ msg = MIMEText(header +'\n' + log)
+ msg['Subject'] = data.getVar('TINDER_SUBJECT',da, True) or "Tinder-Client build log"
+ msg['To'] = data.getVar('TINDER_MAILTO' ,da, True)
+ msg['From'] = data.getVar('TINDER_FROM', da, True)
- # now we will need to save the machine number
- # we will override any previous numbers
- f = file(data.getVar('TMPDIR', d, True)+"/tinder-machine.id", 'w')
- f.write(report)
+ s = smtplib.SMTP()
+ s.connect()
+ s.sendmail(data.getVar('TINDER_FROM', da, True), [data.getVar('TINDER_MAILTO', da, True)], msg.as_string())
+ s.close()
-def tinder_send_http(d, status, log):
- """
- Send this log as build status
- """
+def tinder_send_http(da, header, log):
from bb import data
- import httplib
-
-
- # 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
- h = httplib.HTTP(server)
- h.putrequest('POST', selector)
- h.putheader('content-type', content_type)
- h.putheader('content-length', str(len(body)))
- h.endheaders()
- h.send(body)
- errcode, errmsg, headers = h.getreply()
- print errcode, errmsg, headers
-
+ import httplib, urllib
+ cont = "\n%s\n%s" % ( header, log)
+ headers = {"Content-type": "multipart/form-data" }
-def tinder_print_info(d):
- """
- Print the TinderBox Info
- Including informations of the BaseSystem and the Tree
- we use.
- """
-
- from bb import data
- import os
- # get the local vars
-
- time = tinder_time_string()
- ops = os.uname()[0]
- version = os.uname()[2]
- url = data.getVar( 'TINDER_URL' , d, True )
- tree = data.getVar( 'TINDER_TREE', d, True )
- branch = data.getVar( 'TINDER_BRANCH', d, True )
- srcdate = data.getVar( 'SRCDATE', d, True )
- machine = data.getVar( 'MACHINE', d, True )
- distro = data.getVar( 'DISTRO', d, True )
- bbfiles = data.getVar( 'BBFILES', d, True )
- tarch = data.getVar( 'TARGET_ARCH', d, True )
- fpu = data.getVar( 'TARGET_FPU', d, True )
- oerev = data.getVar( 'OE_REVISION', d, True ) or "unknown"
+ conn = httplib.HTTPConnection(data.getVar('TINDER_HOST',da, True))
+ conn.request("POST", data.getVar('TINDER_URL',da,True), cont, headers)
+ conn.close()
- # there is a bug with tipple quoted strings
- # i will work around but will fix the original
- # bug as well
- output = []
- output.append("== Tinderbox Info" )
- output.append("Time: %(time)s" )
- output.append("OS: %(ops)s" )
- output.append("%(version)s" )
- output.append("Compiler: gcc" )
- output.append("Tinderbox Client: 0.1" )
- output.append("Tinderbox Client Last Modified: yesterday" )
- output.append("Tinderbox Protocol: 0.1" )
- output.append("URL: %(url)s" )
- output.append("Tree: %(tree)s" )
- output.append("Config:" )
- output.append("branch = '%(branch)s'" )
- output.append("TARGET_ARCH = '%(tarch)s'" )
- output.append("TARGET_FPU = '%(fpu)s'" )
- output.append("SRCDATE = '%(srcdate)s'" )
- output.append("MACHINE = '%(machine)s'" )
- output.append("DISTRO = '%(distro)s'" )
- output.append("BBFILES = '%(bbfiles)s'" )
- output.append("OE_REVISION = '%(oerev)s'" )
- output.append("== End Tinderbox Client Info" )
- # now create the real output
- return "\n".join(output) % vars()
-
-
-def tinder_print_env():
- """
- Print the environment variables of this build
- """
+# Prepare tinderbox mail header
+def tinder_prepare_mail_header(da, status):
from bb import data
- import os
-
- time_start = tinder_time_string()
- time_end = tinder_time_string()
-
- # build the environment
- env = ""
- for var in os.environ:
- print var, os.environ[var]
- env += "%s=%s\n" % (var, os.environ[var] or "")
-
- output = []
- output.append( "---> TINDERBOX RUNNING env %(time_start)s" )
- output.append( env )
- output.append( "<--- TINDERBOX FINISHED (SUCCESS) %(time_end)s" )
- return "\n".join(output) % vars()
-
-def tinder_tinder_start(d):
- """
- PRINT the configuration of this build
- """
+ str = "tinderbox: administrator: %s\n" % data.getVar('TINDER_ADMIN', da, True)
+ str += "tinderbox: starttime: %s\n" % tinder_tinder_start(data.getVar('TINDER_START', da, True) or data.getVar('BUILDSTART', da, True), data.getVar('TINDER_TZ', da, True))
+ str += "tinderbox: buildname: %s\n" % data.getVar('TINDER_BUILD', da, True)
+ str += "tinderbox: errorparser: %s\n" % data.getVar('TINDER_ERROR', da, True)
+ str += "tinderbox: status: %s\n" % status
+ str += "tinderbox: timenow: %s\n" % tinder_tinder_time(data.getVar('TINDER_TZ', da, True))
+ str += "tinderbox: tree: %s\n" % data.getVar('TINDER_TREE', da, True)
+ str += "tinderbox: buildfamily: %s\n" % "unix"
+ str += "tinderbox: END"
- time_start = tinder_time_string()
- config = tinder_print_info(d)
- #env = tinder_print_env()
- time_end = tinder_time_string()
-
- output = []
- output.append( "---> TINDERBOX PRINTING CONFIGURATION %(time_start)s" )
- output.append( config )
- #output.append( env )
- output.append( "<--- TINDERBOX FINISHED PRINTING CONFIGURATION %(time_end)s" )
- output.append( "" )
- return "\n".join(output) % vars()
+ return str
def tinder_do_tinder_report(event):
"""
- Report to the tinderbox:
- On the BuildStart we will inform the box directly
- On the other events we will write to the TINDER_LOG and
- when the Task is finished we will send the report.
-
- The above is not yet fully implemented. Currently we send
- information immediately. The caching/queuing needs to be
- implemented. Also sending more or less information is not
- implemented yet.
+ Report to the tinderbox. Either we will report every step
+ (depending on TINDER_VERBOSE_REPORT) at the end we will send the
+ tinderclient.log
"""
from bb.event import getName
from bb import data, mkdirhier
@@ -251,56 +77,74 @@ def tinder_do_tinder_report(event):
# variables
name = getName(event)
log = ""
- status = 1
+