diff options
author | Jeremy Laine <jeremy.laine@m4x.org> | 2008-05-16 16:24:50 +0000 |
---|---|---|
committer | Jeremy Laine <jeremy.laine@m4x.org> | 2008-05-16 16:24:50 +0000 |
commit | af19efb1b5128bfce441029e131dbe6c8a0e8043 (patch) | |
tree | 609ec59467ba1ff5e445ac5a9f8cc9bf1cceb0f2 | |
parent | 9c36fb3b4266b5b0864b9898d171c731bcf403b4 (diff) | |
parent | e59191af5bc39b3ad744059da92f7c398b227c3e (diff) |
merge of '87aa8e8cdbee54b3d7ff294da220db58798e8c12'
and 'a5324bd0638da4faba37d7b92ff362d19510c2fc'
-rw-r--r-- | classes/base.bbclass | 40 | ||||
-rw-r--r-- | packages/libvorbis/libvorbis/r14598-CVE-2008-1420.patch | 36 | ||||
-rw-r--r-- | packages/libvorbis/libvorbis/r14602-CVE-2008-1419.patch | 15 | ||||
-rw-r--r-- | packages/libvorbis/libvorbis/r14602-CVE-2008-1423.patch | 15 | ||||
-rw-r--r-- | packages/libvorbis/libvorbis_1.2.0.bb | 7 | ||||
-rw-r--r-- | packages/sakura/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sakura/sakura_2.1.0.bb | 12 |
7 files changed, 111 insertions, 14 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 64a179f182..7ffb472058 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -701,6 +701,31 @@ python base_do_unpack() { raise bb.build.FuncFailed() } +def base_get_scmbasepath(d): + import bb + path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split() + return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )] + +def base_get_metadata_monotone_revision(d): + monotone_revision = "<unknown>" + try: + monotone_revision = file( "%s/_MTN/revision" % base_get_scmbasepath(d) ).read().strip() + if monotone_revision.startswith( "format_version" ): + monotone_revision_words = monotone_revision.split() + monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1] + except IOError: + pass + return monotone_revision + +def base_get_metadata_svn_revision(d): + revision = "<unknown>" + try: + revision = file( "%s/.svn/entries" % base_get_scmbasepath(d) ).readlines()[3].strip() + except IOError: + pass + return revision + +METADATA_REVISION ?= "${@base_get_metadata_monotone_revision(d)}" addhandler base_eventhandler python base_eventhandler() { @@ -732,19 +757,8 @@ python base_eventhandler() { if name.startswith("BuildStarted"): bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) - path_to_bbfiles = bb.data.getVar( 'BBFILES', e.data, 1 ) - path_to_packages = path_to_bbfiles[:path_to_bbfiles.rindex( "packages" )] - monotone_revision = "<unknown>" - try: - monotone_revision = file( "%s/_MTN/revision" % path_to_packages ).read().strip() - if monotone_revision.startswith( "format_version" ): - monotone_revision_words = monotone_revision.split() - monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1] - except IOError: - pass - bb.data.setVar( 'OE_REVISION', monotone_revision, e.data ) - statusvars = ['BB_VERSION', 'OE_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TARGET_FPU'] - statuslines = ["%-14s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] + statusvars = ['BB_VERSION', 'METADATA_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TARGET_FPU'] + statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) print statusmsg diff --git a/packages/libvorbis/libvorbis/r14598-CVE-2008-1420.patch b/packages/libvorbis/libvorbis/r14598-CVE-2008-1420.patch new file mode 100644 index 0000000000..5fb5b2acda --- /dev/null +++ b/packages/libvorbis/libvorbis/r14598-CVE-2008-1420.patch @@ -0,0 +1,36 @@ +patch taken from redhat + +Index: libvorbis-1.2.0/lib/res0.c +=================================================================== +--- libvorbis-1.2.0/lib/res0.c (revision 14597) ++++ libvorbis-1.2.0/lib/res0.c (revision 14598) +@@ -223,6 +223,20 @@ + for(j=0;j<acc;j++) + if(info->booklist[j]>=ci->books)goto errout; + ++ /* verify the phrasebook is not specifying an impossible or ++ inconsistent partitioning scheme. */ ++ { ++ int entries = ci->book_param[info->groupbook]->entries; ++ int dim = ci->book_param[info->groupbook]->dim; ++ int partvals = 1; ++ while(dim>0){ ++ partvals *= info->partitions; ++ if(partvals > entries) goto errout; ++ dim--; ++ } ++ if(partvals != entries) goto errout; ++ } ++ + return(info); + errout: + res0_free_info(info); +@@ -263,7 +277,7 @@ + } + } + +- look->partvals=rint(pow((float)look->parts,(float)dim)); ++ look->partvals=look->phrasebook->entries; + look->stages=maxstage; + look->decodemap=_ogg_malloc(look->partvals*sizeof(*look->decodemap)); + for(j=0;j<look->partvals;j++){ diff --git a/packages/libvorbis/libvorbis/r14602-CVE-2008-1419.patch b/packages/libvorbis/libvorbis/r14602-CVE-2008-1419.patch new file mode 100644 index 0000000000..b9d6b7adb5 --- /dev/null +++ b/packages/libvorbis/libvorbis/r14602-CVE-2008-1419.patch @@ -0,0 +1,15 @@ +patch taken from redhat + +Index: libvorbis-1.2.0/lib/codebook.c +=================================================================== +--- libvorbis-1.2.0/lib/codebook.c (revision 14601) ++++ libvorbis-1.2.0/lib/codebook.c (revision 14602) +@@ -225,7 +225,7 @@ + int quantvals=0; + switch(s->maptype){ + case 1: +- quantvals=_book_maptype1_quantvals(s); ++ quantvals=(s->dim==0?0:_book_maptype1_quantvals(s)); + break; + case 2: + quantvals=s->entries*s->dim; diff --git a/packages/libvorbis/libvorbis/r14602-CVE-2008-1423.patch b/packages/libvorbis/libvorbis/r14602-CVE-2008-1423.patch new file mode 100644 index 0000000000..d912c57f79 --- /dev/null +++ b/packages/libvorbis/libvorbis/r14602-CVE-2008-1423.patch @@ -0,0 +1,15 @@ +patch taken from redhat + +Index: libvorbis-1.2.0/lib/codebook.c +=================================================================== +--- libvorbis-1.2.0/lib/codebook.c (revision 14603) ++++ libvorbis-1.2.0/lib/codebook.c (revision 14604) +@@ -159,6 +159,8 @@ + s->entries=oggpack_read(opb,24); + if(s->entries==-1)goto _eofout; + ++ if(_ilog(s->dim)+_ilog(s->entries)>24)goto _eofout; ++ + /* codeword ordering.... length ordered or unordered? */ + switch((int)oggpack_read(opb,1)){ + case 0: diff --git a/packages/libvorbis/libvorbis_1.2.0.bb b/packages/libvorbis/libvorbis_1.2.0.bb index 79b79e8f49..30031ad5e8 100644 --- a/packages/libvorbis/libvorbis_1.2.0.bb +++ b/packages/libvorbis/libvorbis_1.2.0.bb @@ -4,8 +4,13 @@ DESCRIPTION = "Ogg Vorbis is a high-quality lossy audio codec \ that is free of intellectual property restrictions. libvorbis \ is the main vorbis codec library." LICENSE = "BSD" +PR = "1" -SRC_URI = "http://downloads.xiph.org/releases/vorbis/libvorbis-${PV}.tar.gz" +SRC_URI = "http://downloads.xiph.org/releases/vorbis/libvorbis-${PV}.tar.gz \ + file://r14598-CVE-2008-1420.patch;patch=1 \ + file://r14602-CVE-2008-1419.patch;patch=1 \ + file://r14602-CVE-2008-1423.patch;patch=1 \ + " inherit autotools pkgconfig diff --git a/packages/sakura/.mtn2git_empty b/packages/sakura/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sakura/.mtn2git_empty diff --git a/packages/sakura/sakura_2.1.0.bb b/packages/sakura/sakura_2.1.0.bb new file mode 100644 index 0000000000..551ac371ad --- /dev/null +++ b/packages/sakura/sakura_2.1.0.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "VTE-based terminal emulator" +AUTHOR = "David Gómez Espinosa <david@pleyades.net>" +HOMEPAGE = "http://www.pleyades.net/david/sakura.php" +SECTION = "x11/applications" +PRIORITY = "optional" +LICENSE = "GPLv2" +DEPENDS = "gtk+ (>=2.6) vte (>=0.11)" + +SRC_URI = "http://www.pleyades.net/david/projects/sakura/sakura-${PV}.tar.bz2" + +inherit cmake + |