diff options
Diffstat (limited to 'meta-oe/recipes-extended/libwmf')
5 files changed, 31 insertions, 147 deletions
diff --git a/meta-oe/recipes-extended/libwmf/libwmf/0001-configure-use-pkg-config-for-freetype.patch b/meta-oe/recipes-extended/libwmf/libwmf/0001-configure-use-pkg-config-for-freetype.patch deleted file mode 100644 index 21a6f292c8..0000000000 --- a/meta-oe/recipes-extended/libwmf/libwmf/0001-configure-use-pkg-config-for-freetype.patch +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | From 61655f82224cadb261e81f8bae111eaaa7bdf531 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 6 Aug 2014 14:53:03 +0200 | ||
4 | Subject: [PATCH] configure: use pkg-config for freetype | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
8 | --- | ||
9 | configure.ac | 37 ++++++++----------------------------- | ||
10 | 1 file changed, 8 insertions(+), 29 deletions(-) | ||
11 | |||
12 | diff --git a/configure.ac b/configure.ac | ||
13 | index 3cfe974..0055a8c 100644 | ||
14 | --- a/configure.ac | ||
15 | +++ b/configure.ac | ||
16 | @@ -399,40 +399,19 @@ AC_ARG_WITH(freetype,[ --with-freetype=DIR use freetype2 in DIR],[ | ||
17 | fi | ||
18 | ]) | ||
19 | |||
20 | -if [ test -n "$FREETYPE_DIR" ]; then | ||
21 | - AC_PATH_PROG(FREETYPE_CONFIG,freetype-config, ,[$FREETYPE_DIR/bin:$PATH]) | ||
22 | -else | ||
23 | - AC_PATH_PROG(FREETYPE_CONFIG,freetype-config) | ||
24 | -fi | ||
25 | - | ||
26 | -if [ test -n "$FREETYPE_CONFIG" ]; then | ||
27 | - if [ test -n "$FREETYPE_DIR" ]; then | ||
28 | - freetype_cflags="`$FREETYPE_CONFIG --cflags` -I$FREETYPE_DIR/include" | ||
29 | - freetype_libs=`$FREETYPE_CONFIG --libs` | ||
30 | - else | ||
31 | - freetype_cflags=`$FREETYPE_CONFIG --cflags` | ||
32 | - freetype_libs=`$FREETYPE_CONFIG --libs` | ||
33 | - fi | ||
34 | -else | ||
35 | - if [ test -n "$FREETYPE_DIR" ]; then | ||
36 | - freetype_cflags="-I$FREETYPE_DIR/include/freetype2 -I$FREETYPE_DIR/include" | ||
37 | - freetype_libs="-L$FREETYPE_DIR/lib -lfreetype" | ||
38 | - else | ||
39 | - freetype_cflags="" | ||
40 | - freetype_libs="-lfreetype" | ||
41 | - fi | ||
42 | -fi | ||
43 | - | ||
44 | -CPPFLAGS="$freetype_cflags $CPPFLAGS" | ||
45 | -LDFLAGS="$LDFLAGS $freetype_libs" | ||
46 | +PKG_CHECK_MODULES(FREETYPE2, freetype2, | ||
47 | + CFLAGS="$CFLAGS $FREETYPE2_CFLAGS" | ||
48 | + LDFLAGS="$LDFLAGS $FREETYPE2_LIBS", | ||
49 | + AC_MSG_ERROR([*** Unable to find FreeType2 library (http://www.freetype.org/)]) | ||
50 | +) | ||
51 | |||
52 | AC_CHECK_LIB(freetype,FT_Init_FreeType,[ | ||
53 | - WMF_FT_LDFLAGS="$freetype_libs" | ||
54 | + WMF_FT_LDFLAGS="$FREETYPE2_LIBS" | ||
55 | ],[ AC_MSG_ERROR([* * * freetype(2) is required * * *]) | ||
56 | ]) | ||
57 | AC_CHECK_HEADER(ft2build.h,[ | ||
58 | - WMF_FT_CFLAGS="$freetype_cflags" | ||
59 | - WMF_FT_CONFIG_CFLAGS="$freetype_cflags" | ||
60 | + WMF_FT_CFLAGS="$FREETYPE2_CFLAGS" | ||
61 | + WMF_FT_CONFIG_CFLAGS="$FREETYPE2_CFLAGS" | ||
62 | ],[ AC_MSG_ERROR([* * * freetype(2) is required * * *]) | ||
63 | ]) | ||
64 | |||
65 | -- | ||
66 | 1.9.0 | ||
67 | |||
diff --git a/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-intoverflow.patch b/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-intoverflow.patch deleted file mode 100644 index 4e7cd8887a..0000000000 --- a/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-intoverflow.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | http://cvs.fedoraproject.org/viewvc/devel/libwmf/libwmf-0.2.8.4-intoverflow.patch?view=log | ||
4 | |||
5 | CVE-2006-3376 libwmf integer overflow | ||
6 | |||
7 | --- libwmf-0.2.8.4.orig/src/player.c 2002-12-10 19:30:26.000000000 +0000 | ||
8 | +++ libwmf-0.2.8.4/src/player.c 2006-07-12 15:12:52.000000000 +0100 | ||
9 | @@ -42,6 +42,7 @@ | ||
10 | #include "player/defaults.h" /* Provides: default settings */ | ||
11 | #include "player/record.h" /* Provides: parameter mechanism */ | ||
12 | #include "player/meta.h" /* Provides: record interpreters */ | ||
13 | +#include <stdint.h> | ||
14 | |||
15 | /** | ||
16 | * @internal | ||
17 | @@ -132,8 +134,14 @@ | ||
18 | } | ||
19 | } | ||
20 | |||
21 | -/* P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API)-3) * 2 * sizeof (unsigned char)); | ||
22 | - */ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char)); | ||
23 | + if (MAX_REC_SIZE(API) > UINT32_MAX / 2) | ||
24 | + { | ||
25 | + API->err = wmf_E_InsMem; | ||
26 | + WMF_DEBUG (API,"bailing..."); | ||
27 | + return (API->err); | ||
28 | + } | ||
29 | + | ||
30 | + P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char)); | ||
31 | |||
32 | if (ERR (API)) | ||
33 | { WMF_DEBUG (API,"bailing..."); | ||
diff --git a/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-useafterfree.patch b/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-useafterfree.patch deleted file mode 100644 index 9a8cbcb508..0000000000 --- a/meta-oe/recipes-extended/libwmf/libwmf/libwmf-0.2.8.4-useafterfree.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | |||
4 | http://cvs.fedoraproject.org/viewvc/devel/libwmf/libwmf-0.2.8.4-useafterfree.patch?view=log | ||
5 | Resolves: CVE-2009-1364 | ||
6 | |||
7 | --- libwmf-0.2.8.4/src/extra/gd/gd_clip.c.CVE-2009-1364-im-clip-list 2009-04-24 04:06:44.000000000 -0400 | ||
8 | +++ libwmf-0.2.8.4/src/extra/gd/gd_clip.c 2009-04-24 04:08:30.000000000 -0400 | ||
9 | @@ -70,6 +70,7 @@ void gdClipSetAdd(gdImagePtr im,gdClipRe | ||
10 | { more = gdRealloc (im->clip->list,(im->clip->max + 8) * sizeof (gdClipRectangle)); | ||
11 | if (more == 0) return; | ||
12 | im->clip->max += 8; | ||
13 | + im->clip->list = more; | ||
14 | } | ||
15 | im->clip->list[im->clip->count] = (*rect); | ||
16 | im->clip->count++; | ||
diff --git a/meta-oe/recipes-extended/libwmf/libwmf_0.2.13.bb b/meta-oe/recipes-extended/libwmf/libwmf_0.2.13.bb new file mode 100644 index 0000000000..c5411d53a1 --- /dev/null +++ b/meta-oe/recipes-extended/libwmf/libwmf_0.2.13.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "Library for converting WMF files" | ||
2 | #HOMEPAGE = "http://wvware.sourceforge.net/libwmf.html" | ||
3 | HOMEPAGE = "https://github.com/caolanm/libwmf" | ||
4 | SECTION = "libs" | ||
5 | |||
6 | LICENSE = "GPL-2.0-only" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
8 | |||
9 | |||
10 | DEPENDS:class-native = "freetype-native libpng-native jpeg-native" | ||
11 | DEPENDS = "freetype libpng jpeg expat gtk+" | ||
12 | |||
13 | BBCLASSEXTEND = "native" | ||
14 | |||
15 | inherit features_check autotools pkgconfig | ||
16 | |||
17 | REQUIRED_DISTRO_FEATURES = "x11" | ||
18 | |||
19 | SRC_URI = "git://github.com/caolanm/libwmf.git;protocol=https;branch=master" | ||
20 | SRCREV = "9e4737f2293c0d127bda92e5b01896df10571424" | ||
21 | |||
22 | |||
23 | do_install:append() { | ||
24 | sed -i -e 's@${RECIPE_SYSROOT}@@g' ${D}${bindir}/libwmf-config ${D}${libdir}/pkgconfig/libwmf.pc | ||
25 | } | ||
26 | |||
27 | FILES:${PN}-dbg += "${libdir}/gdk-pixbuf-2.0/2.10.0/loaders/.debug" | ||
28 | FILES:${PN}-dev += "${libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la" | ||
29 | FILES:${PN}-staticdev += "${libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.a" | ||
30 | FILES:${PN} += "${libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so" | ||
31 | |||
diff --git a/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb b/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb deleted file mode 100644 index 93b58057ce..0000000000 --- a/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | SUMMARY = "Library for converting WMF files" | ||
2 | HOMEPAGE = "http://wvware.sourceforge.net/libwmf.html" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | LICENSE = "GPL-2.0-only" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | |||
9 | DEPENDS:class-native = "freetype-native libpng-native jpeg-native" | ||
10 | DEPENDS = "freetype libpng jpeg expat gtk+" | ||
11 | |||
12 | BBCLASSEXTEND = "native" | ||
13 | |||
14 | inherit features_check autotools pkgconfig | ||
15 | |||
16 | REQUIRED_DISTRO_FEATURES = "x11" | ||
17 | |||
18 | SRC_URI = "${SOURCEFORGE_MIRROR}/wvware/${BPN}/${PV}/${BPN}-${PV}.tar.gz;name=tarball \ | ||
19 | file://libwmf-0.2.8.4-intoverflow.patch \ | ||
20 | file://libwmf-0.2.8.4-useafterfree.patch \ | ||
21 | file://0001-configure-use-pkg-config-for-freetype.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[tarball.md5sum] = "d1177739bf1ceb07f57421f0cee191e0" | ||
25 | SRC_URI[tarball.sha256sum] = "5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8" | ||
26 | |||
27 | FILES:${PN}-dbg += "${libdir}/gtk-2.0/2.10.0/loaders/.debug" | ||
28 | FILES:${PN}-dev += "${libdir}/gtk-2.0/2.10.0/loaders/*.la" | ||
29 | FILES:${PN}-staticdev += "${libdir}/gtk-2.0/2.10.0/loaders/*.a" | ||
30 | FILES:${PN} += "${libdir}/gtk-2.0/2.10.0/loaders/*.so" | ||
31 | |||