Merge pull request #21 from ojab/master

misc updates/fixes from ojab.
This commit is contained in:
Juan RP 2012-01-14 06:58:50 -08:00
commit 6de948facb
61 changed files with 104 additions and 726 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.swo
*.swp
*~
\#*#

View File

@ -286,7 +286,8 @@ libxcb-keysyms.so.1 xcb-util xcb-util-devel
libxcb-property.so.1 xcb-util xcb-util-devel libxcb-property.so.1 xcb-util xcb-util-devel
libxcb-atom.so.1 xcb-util xcb-util-devel libxcb-atom.so.1 xcb-util xcb-util-devel
libxcb-event.so.1 xcb-util xcb-util-devel libxcb-event.so.1 xcb-util xcb-util-devel
libtiff.so.3 tiff tiff-devel libtiff.so.5 tiff tiff-devel
libtiffxx.so.5 tiff tiff-devel
libnotify.so.4 libnotify libnotify-devel libnotify.so.4 libnotify libnotify-devel
libexo-1.so.0 exo exo-devel libexo-1.so.0 exo exo-devel
libvte.so.9 vte vte-devel libvte.so.9 vte vte-devel
@ -410,7 +411,7 @@ libQt3Support.so.4 qt qt-devel
libQtSvg.so.4 qt qt-devel libQtSvg.so.4 qt qt-devel
libQtScript.so.4 qt qt-devel libQtScript.so.4 qt qt-devel
libQtHelp.so.4 qt qt-devel libQtHelp.so.4 qt qt-devel
libphonon.so qt qt-devel libphonon.so.4 qt qt-devel
libQtCore.so.4 qt qt-devel libQtCore.so.4 qt qt-devel
libQtSql.so.4 qt qt-devel libQtSql.so.4 qt qt-devel
libQtWebKit.so.4 qt qt-devel libQtWebKit.so.4 qt qt-devel

View File

@ -1,5 +1,4 @@
liblcms2.so.2 liblcms2.so.2
libtiff.so.3
libfreetype.so.6 libfreetype.so.6
libjpeg.so.8 libjpeg.so.8
libfftw3.so.3 libfftw3.so.3
@ -35,3 +34,4 @@ libstdc++.so.6
libgcc_s.so.1 libgcc_s.so.1
libpangoft2-1.0.so.0 libpangoft2-1.0.so.0
libpango-1.0.so.0 libpango-1.0.so.0
libtiff.so.5

View File

@ -1,5 +1,6 @@
# Template file for 'libmagick'. # Template file for 'libmagick'.
# #
revision=1
short_desc="ImageMagick low-level image manipulation libraries" short_desc="ImageMagick low-level image manipulation libraries"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,16 +1,14 @@
# Template build file for 'babl'. # Template build file for 'babl'.
pkgname=babl pkgname=babl
version=0.1.4 version=0.1.6
revision=3 distfiles="ftp://ftp.gimp.org/pub/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
distfiles="ftp://ftp.gimp.org/pub/babl/0.1/babl-${version}.tar.bz2"
build_style=gnu-configure build_style=gnu-configure
# XXX reenable when it's fixed.
configure_args="--disable-introspection" configure_args="--disable-introspection"
short_desc="Dynamic pixel format translation library" short_desc="Dynamic pixel format translation library"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://gegl.org/babl/" homepage="http://gegl.org/babl/"
license="LGPL-3" license="LGPL-3"
checksum=5b36312528de84815f054345cd478743a9493981a44060013b682d0304ffe733 checksum=319b9004a5366101fd522da02cc983a5d0f50a17af0fa5cbce3535e31bce19a4
long_desc=" long_desc="
babl is a dynamic, any to any, pixel format translation library. babl is a dynamic, any to any, pixel format translation library.

View File

@ -11,3 +11,4 @@ libcrypto.so.1
libdl.so.2 libdl.so.2
libz.so.1 libz.so.1
libc.so.6 libc.so.6
liblber-2.4.so.2

View File

@ -1,5 +1,6 @@
# Template file for 'libcurl'. # Template file for 'libcurl'.
# #
revision=1
short_desc="The multiprotocol file transfer library" short_desc="The multiprotocol file transfer library"
long_desc=" long_desc="
libcurl is a free and easy-to-use client-side URL transfer library, libcurl is a free and easy-to-use client-side URL transfer library,

View File

@ -2,6 +2,6 @@ libdjvulibre.so.21
libstdc++.so.6 libstdc++.so.6
libgcc_s.so.1 libgcc_s.so.1
libc.so.6 libc.so.6
libtiff.so.3
libm.so.6 libm.so.6
libpthread.so.0 libpthread.so.0
libtiff.so.5

View File

@ -5,7 +5,7 @@ homepage="http://djvu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/djvu/$pkgname-$version.tar.gz" distfiles="${SOURCEFORGE_SITE}/djvu/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-desktopfiles" configure_args="--disable-desktopfiles"
revision=1 revision=2
short_desc="Utilities for the DjVu image format" short_desc="Utilities for the DjVu image format"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"

View File

@ -1,18 +1,17 @@
# Template file for 'ethtool' # Template file for 'ethtool'
pkgname=ethtool pkgname=ethtool
_distver=3.1 _distver=3.2
# Previous version was 6, we have to conserve it to make version comparision # Previous version was 6, we have to conserve it to make version comparision
# work with previous versions. # work with previous versions.
version=6:${_distver} version=6:${_distver}
wrksrc=${pkgname}-${_distver} wrksrc=${pkgname}-${_distver}
#distfiles="http://www.kernel.org/pub/software/network/$pkgname/$pkgname-${_distver}.tar.bz2" distfiles="http://www.kernel.org/pub/software/network/$pkgname/$pkgname-${_distver}.tar.bz2"
distfiles="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-${_distver}.tar.gz"
build_style=gnu-configure build_style=gnu-configure
short_desc="Display or change ethernet card settings" short_desc="Display or change ethernet card settings"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/pub/software/network/ethtool/" homepage="http://www.kernel.org/pub/software/network/ethtool/"
license="GPL-2" license="GPL-2"
checksum=3ff78f9278a7a2fd0c508c6347b48beb5aa21eb3339070e6c8ba25fc0503f01c checksum=edeb2f1c44e396c3801ddb56ebb9bb0a8f8a0110acc68ccfd492d5a73ac6ef5b
long_desc=" long_desc="
ethtool is used for querying settings of an ethernet device and ethtool is used for querying settings of an ethernet device and
changing them." changing them."

View File

@ -27,11 +27,9 @@ libgcc_s.so.1
libdjvulibre.so.21 libdjvulibre.so.21
libpthread.so.0 libpthread.so.0
libnautilus-extension.so.1 libnautilus-extension.so.1
libSM.so.6
libICE.so.6
libevview3.so.3 libevview3.so.3
libX11.so.6 libX11.so.6
libgnome-keyring.so.0 libgnome-keyring.so.0
libgxps.so.2 libgxps.so.2
libarchive.so.12 libarchive.so.12
libtiff.so.3 libtiff.so.5

View File

@ -6,7 +6,7 @@ build_style=gnu-configure
configure_args="--enable-introspection --disable-schemas-compile configure_args="--enable-introspection --disable-schemas-compile
--enable-comics --disable-scrollkeeper --enable-xps --disable-t1lib --enable-comics --disable-scrollkeeper --enable-xps --disable-t1lib
--disable-tests --disable-static" --disable-tests --disable-static"
revision=4 revision=5
short_desc="GNOME Document viewer for multiple document formats" short_desc="GNOME Document viewer for multiple document formats"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://projects.gnome.org/evince/" homepage="http://projects.gnome.org/evince/"

View File

@ -8,5 +8,5 @@ libm.so.6
libgobject-2.0.so.0 libgobject-2.0.so.0
libgthread-2.0.so.0 libgthread-2.0.so.0
librt.so.1 librt.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libtiff.so.5

View File

@ -4,6 +4,7 @@ version=2.24.1
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--without-libjasper --with-included-loaders=png" configure_args="--without-libjasper --with-included-loaders=png"
revision=1
short_desc="An Image loading library for The GTK+ toolkit (v2)" short_desc="An Image loading library for The GTK+ toolkit (v2)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gtk.org/" homepage="http://www.gtk.org/"

View File

@ -1,14 +1,14 @@
# Template build file for 'gegl'. # Template build file for 'gegl'.
pkgname=gegl pkgname=gegl
version=0.1.6 version=0.1.8
distfiles="ftp://ftp.gimp.org/pub/gegl/0.1/gegl-$version.tar.bz2" distfiles="ftp://ftp.gimp.org/pub/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-docs --without-sdl --without-libopenraw configure_args="--disable-docs --without-sdl --without-libopenraw
--without-libavformat --without-graphviz --without-lua --without-libspiro --without-libavformat --without-graphviz --without-lua --without-libspiro
--without-umfpack --with-exiv2 --without-libv4l" --without-umfpack --with-exiv2 --without-libv4l --disable-introspection"
short_desc="Graph based image processing framework" short_desc="Graph based image processing framework"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=a166225625eebfb57fd417c88cf1fa6e29b1d308d50ac3bd9ef30bad9f3726d1 checksum=106b9574b6d5fb282683794f7a7f090a1a3f4a388890e592b202827a4ca76f75
long_desc=" long_desc="
GEGL (Generic Graphics Library) is a graph based image processing GEGL (Generic Graphics Library) is a graph based image processing
framework. framework.
@ -28,6 +28,6 @@ Add_dependency build jpeg-devel
Add_dependency build librsvg-devel Add_dependency build librsvg-devel
Add_dependency build pango-devel Add_dependency build pango-devel
Add_dependency build gtk+-devel Add_dependency build gtk+-devel
Add_dependency build babl-devel Add_dependency build babl-devel ">=0.1.6"
Add_dependency build jasper-devel Add_dependency build jasper-devel
Add_dependency build exiv2-devel Add_dependency build exiv2-devel

View File

@ -35,9 +35,12 @@ libmng.so.1
libpoppler-glib.so.8 libpoppler-glib.so.8
libz.so.1 libz.so.1
librsvg-2.so.2 librsvg-2.so.2
libtiff.so.3
libwmf-0.2.so.7 libwmf-0.2.so.7
libwmflite-0.2.so.7 libwmflite-0.2.so.7
libXpm.so.4 libXpm.so.4
libXext.so.6 libXext.so.6
libXfixes.so.3 libXfixes.so.3
libjasper.so.1
libXcursor.so.1
libgudev-1.0.so.0
libtiff.so.5

View File

@ -1,476 +0,0 @@
From 69f69eed816b89be9a01a48a1f0643d1fd496118 Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@redhat.com>
Date: Fri, 6 May 2011 11:58:44 +0200
Subject: [PATCH] patch: poppler-0.17
Squashed commit of the following:
commit 529d940222dfc352d41fbf72de29134421aa4002
Author: Nils Philippsen <nils@redhat.com>
Date: Fri May 6 11:50:30 2011 +0200
use code based on pixbufs instead of cairo surfaces
this is done to avoid adding to libgimp, thanks to Mukund Sivaraman for
hints how to do this
commit f8671d8767d4cdab830dc06310e96c63a88ec0fd
Author: Mukund Sivaraman <muks@banu.com>
Date: Thu Apr 21 13:57:13 2011 +0530
file-pdf-load: Update attribution, removing bogus copyright
(cherry picked from commit e999122e0b20b6ccd6bde3ce039bb64068fc0019)
commit 89a78f2590d298dac2f42e6d9a3016fc5d672c70
Author: Nils Philippsen <nils@redhat.com>
Date: Thu Apr 21 13:52:18 2011 +0200
file-pdf-load: Use better API + cleanups
* fixes issues with poppler 0.17 completely
* uses new libgimp API to pass surfaces instead of pixbufs
* uses GTK+ 3 API to convert surfaces to pixbufs where available
(backported from commit 7bdadd80ba479d6ff904e276d805e16f6b940ee2)
commit 4e92302c4a14a961f112587a0ad86696c88da2f8
Author: Nils Philippsen <nils@redhat.com>
Date: Thu Apr 21 13:38:08 2011 +0200
file-pdf-load: Don't use deprecated API (bug #646947)
(cherry picked from commit 9b3e1c91fd2eac69da6947ec9c7fbf10096ba237)
Conflicts:
plug-ins/common/file-pdf.c
---
plug-ins/common/file-pdf.c | 323 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 283 insertions(+), 40 deletions(-)
diff --git a/plug-ins/common/file-pdf.c b/plug-ins/common/file-pdf.c
index a43b459..43c2b7d 100644
--- plug-ins/common/file-pdf.c
+++ plug-ins/common/file-pdf.c
@@ -4,6 +4,9 @@
*
* Copyright (C) 2005 Nathan Summers
*
+ * Some code in render_page_to_surface() borrowed from
+ * poppler.git/glib/poppler-page.cc.
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -80,16 +83,20 @@ static gboolean load_dialog (PopplerDocument *doc,
static PopplerDocument * open_document (const gchar *filename,
GError **error);
-static GdkPixbuf * get_thumbnail (PopplerDocument *doc,
+static cairo_surface_t * get_thumb_surface (PopplerDocument *doc,
+ gint page,
+ gint preferred_size);
+
+static GdkPixbuf * get_thumb_pixbuf (PopplerDocument *doc,
gint page,
gint preferred_size);
static gint32 layer_from_pixbuf (gint32 image,
- const gchar *layer_name,
- gint position,
- GdkPixbuf *buf,
- gdouble progress_start,
- gdouble progress_scale);
+ const gchar *layer_name,
+ gint position,
+ GdkPixbuf *pixbuf,
+ gdouble progress_start,
+ gdouble progress_scale);
/**
** the following was formerly part of
@@ -433,11 +440,12 @@ run (const gchar *name,
}
else
{
- gdouble width = 0;
- gdouble height = 0;
- gdouble scale;
- gint32 image = -1;
- GdkPixbuf *pixbuf = NULL;
+ gdouble width = 0;
+ gdouble height = 0;
+ gdouble scale;
+ gint32 image = -1;
+ gint num_pages = 0;
+ GdkPixbuf *pixbuf = NULL;
/* Possibly retrieve last settings */
gimp_get_data (LOAD_PROC, &loadvals);
@@ -455,7 +463,10 @@ run (const gchar *name,
g_object_unref (page);
}
- pixbuf = get_thumbnail (doc, 0, param[1].data.d_int32);
+ num_pages = poppler_document_get_n_pages (doc);
+
+ pixbuf = get_thumb_pixbuf (doc, 0, param[1].data.d_int32);
+
g_object_unref (doc);
}
@@ -548,6 +559,187 @@ open_document (const gchar *filename,
return doc;
}
+/* FIXME: Remove this someday when we depend fully on GTK+ >= 3 */
+
+#if (!GTK_CHECK_VERSION (3, 0, 0))
+
+static cairo_format_t
+gdk_cairo_format_for_content (cairo_content_t content)
+{
+ switch (content)
+ {
+ case CAIRO_CONTENT_COLOR:
+ return CAIRO_FORMAT_RGB24;
+ case CAIRO_CONTENT_ALPHA:
+ return CAIRO_FORMAT_A8;
+ case CAIRO_CONTENT_COLOR_ALPHA:
+ default:
+ return CAIRO_FORMAT_ARGB32;
+ }
+}
+
+static cairo_surface_t *
+gdk_cairo_surface_coerce_to_image (cairo_surface_t *surface,
+ cairo_content_t content,
+ int src_x,
+ int src_y,
+ int width,
+ int height)
+{
+ cairo_surface_t *copy;
+ cairo_t *cr;
+
+ copy = cairo_image_surface_create (gdk_cairo_format_for_content (content),
+ width,
+ height);
+
+ cr = cairo_create (copy);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+ cairo_set_source_surface (cr, surface, -src_x, -src_y);
+ cairo_paint (cr);
+ cairo_destroy (cr);
+
+ return copy;
+}
+
+static void
+convert_alpha (guchar *dest_data,
+ int dest_stride,
+ guchar *src_data,
+ int src_stride,
+ int src_x,
+ int src_y,
+ int width,
+ int height)
+{
+ int x, y;
+
+ src_data += src_stride * src_y + src_x * 4;
+
+ for (y = 0; y < height; y++) {
+ guint32 *src = (guint32 *) src_data;
+
+ for (x = 0; x < width; x++) {
+ guint alpha = src[x] >> 24;
+
+ if (alpha == 0)
+ {
+ dest_data[x * 4 + 0] = 0;
+ dest_data[x * 4 + 1] = 0;
+ dest_data[x * 4 + 2] = 0;
+ }
+ else
+ {
+ dest_data[x * 4 + 0] = (((src[x] & 0xff0000) >> 16) * 255 + alpha / 2) / alpha;
+ dest_data[x * 4 + 1] = (((src[x] & 0x00ff00) >> 8) * 255 + alpha / 2) / alpha;
+ dest_data[x * 4 + 2] = (((src[x] & 0x0000ff) >> 0) * 255 + alpha / 2) / alpha;
+ }
+ dest_data[x * 4 + 3] = alpha;
+ }
+
+ src_data += src_stride;
+ dest_data += dest_stride;
+ }
+}
+
+static void
+convert_no_alpha (guchar *dest_data,
+ int dest_stride,
+ guchar *src_data,
+ int src_stride,
+ int src_x,
+ int src_y,
+ int width,
+ int height)
+{
+ int x, y;
+
+ src_data += src_stride * src_y + src_x * 4;
+
+ for (y = 0; y < height; y++) {
+ guint32 *src = (guint32 *) src_data;
+
+ for (x = 0; x < width; x++) {
+ dest_data[x * 3 + 0] = src[x] >> 16;
+ dest_data[x * 3 + 1] = src[x] >> 8;
+ dest_data[x * 3 + 2] = src[x];
+ }
+
+ src_data += src_stride;
+ dest_data += dest_stride;
+ }
+}
+
+/**
+ * gdk_pixbuf_get_from_surface:
+ * @surface: surface to copy from
+ * @src_x: Source X coordinate within @surface
+ * @src_y: Source Y coordinate within @surface
+ * @width: Width in pixels of region to get
+ * @height: Height in pixels of region to get
+ *
+ * Transfers image data from a #cairo_surface_t and converts it to an RGB(A)
+ * representation inside a #GdkPixbuf. This allows you to efficiently read
+ * individual pixels from cairo surfaces. For #GdkWindows, use
+ * gdk_pixbuf_get_from_window() instead.
+ *
+ * This function will create an RGB pixbuf with 8 bits per channel.
+ * The pixbuf will contain an alpha channel if the @surface contains one.
+ *
+ * Return value: (transfer full): A newly-created pixbuf with a reference
+ * count of 1, or %NULL on error
+ */
+static GdkPixbuf *
+gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
+ gint src_x,
+ gint src_y,
+ gint width,
+ gint height)
+{
+ cairo_content_t content;
+ GdkPixbuf *dest;
+
+ /* General sanity checks */
+ g_return_val_if_fail (surface != NULL, NULL);
+ g_return_val_if_fail (width > 0 && height > 0, NULL);
+
+ content = cairo_surface_get_content (surface) | CAIRO_CONTENT_COLOR;
+ dest = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
+ !!(content & CAIRO_CONTENT_ALPHA),
+ 8,
+ width, height);
+
+ surface = gdk_cairo_surface_coerce_to_image (surface, content,
+ src_x, src_y,
+ width, height);
+ cairo_surface_flush (surface);
+ if (cairo_surface_status (surface) || dest == NULL)
+ {
+ cairo_surface_destroy (surface);
+ return NULL;
+ }
+
+ if (gdk_pixbuf_get_has_alpha (dest))
+ convert_alpha (gdk_pixbuf_get_pixels (dest),
+ gdk_pixbuf_get_rowstride (dest),
+ cairo_image_surface_get_data (surface),
+ cairo_image_surface_get_stride (surface),
+ 0, 0,
+ width, height);
+ else
+ convert_no_alpha (gdk_pixbuf_get_pixels (dest),
+ gdk_pixbuf_get_rowstride (dest),
+ cairo_image_surface_get_data (surface),
+ cairo_image_surface_get_stride (surface),
+ 0, 0,
+ width, height);
+
+ cairo_surface_destroy (surface);
+ return dest;
+}
+
+#endif
+
static gint32
layer_from_pixbuf (gint32 image,
const gchar *layer_name,
@@ -566,6 +758,54 @@ layer_from_pixbuf (gint32 image,
return layer;
}
+static cairo_surface_t *
+render_page_to_surface (PopplerPage *page,
+ int width,
+ int height,
+ double scale)
+{
+ cairo_surface_t *surface;
+ cairo_t *cr;
+
+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
+ cr = cairo_create (surface);
+
+ cairo_save (cr);
+ cairo_translate (cr, 0.0, 0.0);
+
+ if (scale != 1.0)
+ cairo_scale (cr, scale, scale);
+
+ poppler_page_render (page, cr);
+ cairo_restore (cr);
+
+ cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_paint (cr);
+
+ cairo_destroy (cr);
+
+ return surface;
+}
+
+static GdkPixbuf *
+render_page_to_pixbuf (PopplerPage *page,
+ int width,
+ int height,
+ double scale)
+{
+ GdkPixbuf *pixbuf;
+ cairo_surface_t *surface;
+
+ surface = render_page_to_surface (page, width, height, scale);
+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
+ cairo_image_surface_get_width (surface),
+ cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
+
+ return pixbuf;
+}
+
static gint32
load_image (PopplerDocument *doc,
const gchar *filename,
@@ -597,7 +837,7 @@ load_image (PopplerDocument *doc,
gdouble page_width;
gdouble page_height;
- GdkPixbuf *buf;
+ GdkPixbuf *pixbuf;
gint width;
gint height;
@@ -627,15 +867,13 @@ load_image (PopplerDocument *doc,
gimp_image_set_resolution (image_ID, resolution, resolution);
}
- buf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height);
-
- poppler_page_render_to_pixbuf (page, 0, 0, width, height, scale, 0, buf);
+ pixbuf = render_page_to_pixbuf (page, width, height, scale);
- layer_from_pixbuf (image_ID, page_label, i, buf,
+ layer_from_pixbuf (image_ID, page_label, i, pixbuf,
doc_progress, 1.0 / pages->n_pages);
g_free (page_label);
- g_object_unref (buf);
+ g_object_unref(pixbuf);
doc_progress = (double) (i + 1) / pages->n_pages;
gimp_progress_update (doc_progress);
@@ -676,30 +914,22 @@ load_image (PopplerDocument *doc,
return image_ID;
}
-static GdkPixbuf *
-get_thumbnail (PopplerDocument *doc,
- gint page_num,
- gint preferred_size)
+static cairo_surface_t *
+get_thumb_surface (PopplerDocument *doc,
+ gint page_num,
+ gint preferred_size)
{
PopplerPage *page;
- GdkPixbuf *pixbuf;
+ cairo_surface_t *surface;
page = poppler_document_get_page (doc, page_num);
if (! page)
return NULL;
- /* XXX: Remove conditional when we depend on poppler 0.8.0, but also
- * add configure check to make sure POPPLER_WITH_GDK is enabled!
- */
-#ifdef POPPLER_WITH_GDK
- pixbuf = poppler_page_get_thumbnail_pixbuf (page);
-#else
- pixbuf = poppler_page_get_thumbnail (page);
-#endif
-
+ surface = poppler_page_get_thumbnail (page);
- if (! pixbuf)
+ if (! surface)
{
gdouble width;
gdouble height;
@@ -712,15 +942,28 @@ get_thumbnail (PopplerDocument *doc,
width *= scale;
height *= scale;
- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
- width, height);
-
- poppler_page_render_to_pixbuf (page,
- 0, 0, width, height, scale, 0, pixbuf);
+ surface = render_page_to_surface (page, width, height, scale);
}
g_object_unref (page);
+ return surface;
+}
+
+static GdkPixbuf *
+get_thumb_pixbuf (PopplerDocument *doc,
+ gint page_num,
+ gint preferred_size)
+{
+ cairo_surface_t *surface;
+ GdkPixbuf *pixbuf;
+
+ surface = get_thumb_surface (doc, page_num, preferred_size);
+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
+ cairo_image_surface_get_width (surface),
+ cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
+
return pixbuf;
}
@@ -769,8 +1012,8 @@ thumbnail_thread (gpointer data)
idle_data->page_no = i;
/* FIXME get preferred size from somewhere? */
- idle_data->pixbuf = get_thumbnail (thread_data->document, i,
- THUMBNAIL_SIZE);
+ idle_data->pixbuf = get_thumb_pixbuf (thread_data->document, i,
+ THUMBNAIL_SIZE);
g_idle_add (idle_set_thumbnail, idle_data);
--
1.7.5

View File

@ -1,76 +0,0 @@
--- plug-ins/file-uri/uri-backend-libcurl.c 2010-07-03 00:51:59.000000000 +0200
+++ plug-ins/file-uri/uri-backend-libcurl.c 2011-06-23 19:15:30.000000000 +0200
@@ -4,9 +4,9 @@
* libcurl backend for the URI plug-in
* Copyright (C) 2006 Mukund Sivaraman <muks@mukund.org>
*
- * This program is free software; you can redistribute it and/or modify
+ * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -15,8 +15,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
@@ -24,7 +23,6 @@
#include <errno.h>
#include <curl/curl.h>
-#include <curl/types.h>
#include <curl/easy.h>
#include <glib/gstdio.h>
@@ -63,7 +61,7 @@
vinfo = curl_version_info (CURLVERSION_NOW);
- protocols = g_string_new ("http:,ftp:");
+ protocols = g_string_new ("http:,ftp:,gopher:");
if (vinfo->features & CURL_VERSION_SSL)
{
@@ -153,7 +151,7 @@
FILE *out_file;
CURL *curl_handle;
CURLcode result;
- gint response_code;
+ glong response_code;
gimp_progress_init (_("Connecting to server"));
@@ -195,12 +193,12 @@
curl_easy_getinfo (curl_handle, CURLINFO_RESPONSE_CODE, &response_code);
- if (response_code != 200)
+ if (response_code != 200 && response_code != 226 && response_code != 0)
{
fclose (out_file);
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Opening '%s' for reading resulted in HTTP "
- "response code: %d"),
+ "response code: %ld"),
uri, response_code);
curl_easy_cleanup (curl_handle);
return FALSE;
@@ -224,3 +222,10 @@
return FALSE;
}
+
+gchar *
+uri_backend_map_image (const gchar *uri,
+ GimpRunMode run_mode)
+{
+ return NULL;
+}

View File

@ -1,15 +1,14 @@
# Template build file for 'gimp'. # Template build file for 'gimp'.
pkgname=gimp pkgname=gimp
version=2.6.11 version=2.7.4
revision=4 distfiles="ftp://ftp.gimp.org/pub/gimp/v${version%.*}/gimp-$version.tar.bz2"
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/gimp/gimp-$version.tar.bz2/bb2939fe13e54fc7255cef5d097bb5dd/gimp-$version.tar.bz2"
#distfiles="http://ftp.gimp.org/pub/gimp/v2.6/gimp-$version.tar.bz2"
build_style=gnu-configure build_style=gnu-configure
configure_args="--without-aa --without-gvfs --without-gnomevfs configure_args="--without-aa --without-gvfs --without-gnomevfs
--enable-gimp-remote --without-hal" --enable-gimp-remote --without-hal"
revision=1
short_desc="The GNU image manipulation program" short_desc="The GNU image manipulation program"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9b6d08d0803b3912ea596d1b77b9c21ee13778c23388a225c004b8c1587cb0a1 checksum=6c0690d5c4e58423308169a2419b684d05e06bd346cded9e081be470a5f93710
long_desc=" long_desc="
Powerful image manipulation program similar to Adobe Photoshop[tm]. Powerful image manipulation program similar to Adobe Photoshop[tm].
It supports layers, arbitrary image sizes and working on several images It supports layers, arbitrary image sizes and working on several images
@ -49,9 +48,11 @@ Add_dependency build poppler-glib-devel
Add_dependency build libmng-devel Add_dependency build libmng-devel
Add_dependency build libXpm-devel Add_dependency build libXpm-devel
Add_dependency build libcurl-devel Add_dependency build libcurl-devel
Add_dependency build gegl-devel Add_dependency build gegl-devel ">=0.1.8"
Add_dependency build babl-devel Add_dependency build babl-devel ">=0.1.6"
Add_dependency build pygtk-devel Add_dependency build pygtk-devel
Add_dependency build libgudev-devel
Add_dependency build jasper-devel
Add_dependency full iso-codes Add_dependency full iso-codes

View File

@ -33,3 +33,5 @@ libQtGui.so.4
libQtCore.so.4 libQtCore.so.4
libstdc++.so.6 libstdc++.so.6
libgcc_s.so.1 libgcc_s.so.1
libgd.so.2
libXpm.so.4

View File

@ -3,13 +3,13 @@ pkgname=graphviz
version=2.28.0 version=2.28.0
distfiles="http://www.graphviz.org/pub/graphviz/stable/SOURCES/$pkgname-$version.tar.gz" distfiles="http://www.graphviz.org/pub/graphviz/stable/SOURCES/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
revision=2 revision=3
short_desc="Graph Visualization Software" short_desc="Graph Visualization Software"
configure_args="--disable-rpath --enable-ltdl --disable-ltdl-install configure_args="--disable-rpath --enable-ltdl --disable-ltdl-install
--disable-swig --disable-sharp --disable-guile --disable-io --disable-java --disable-swig --disable-sharp --disable-guile --disable-io --disable-java
--disable-lua --disable-ocaml --disable-perl --disable-php --disable-python --disable-lua --disable-ocaml --disable-perl --disable-php --disable-python
--disable-r --disable-ruby --disable-tcl --without-included-ltdl --disable-r --disable-ruby --disable-tcl --without-included-ltdl
--without-devil --without-glut --without-ghoscript" --without-devil --without-glut --without-ghoscript --with-libgd"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76 checksum=d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
long_desc=" long_desc="
@ -24,6 +24,7 @@ Add_dependency build libpng-devel
Add_dependency build gd-devel Add_dependency build gd-devel
Add_dependency build expat-devel Add_dependency build expat-devel
Add_dependency build zlib-devel Add_dependency build zlib-devel
Add_dependency build gd-devel
Add_dependency build gtk+-devel Add_dependency build gtk+-devel
Add_dependency build glib-devel Add_dependency build glib-devel
Add_dependency build pango-devel Add_dependency build pango-devel
@ -40,6 +41,7 @@ Add_dependency build libSM-devel
Add_dependency build libICE-devel Add_dependency build libICE-devel
Add_dependency build libXt-devel Add_dependency build libXt-devel
Add_dependency build libXmu-devel Add_dependency build libXmu-devel
Add_dependency build libXpm-devel
Add_dependency build libXext-devel Add_dependency build libXext-devel
Add_dependency build libltdl-devel Add_dependency build libltdl-devel
Add_dependency build libXrender-devel Add_dependency build libXrender-devel

View File

@ -8,6 +8,6 @@ libm.so.6
libc.so.6 libc.so.6
libjpeg.so.8 libjpeg.so.8
libpng14.so.14 libpng14.so.14
libtiff.so.3
libgif.so.4 libgif.so.4
libid3tag.so.0 libid3tag.so.0
libtiff.so.5

View File

@ -1,7 +1,7 @@
# Template build file for 'imlib2'. # Template build file for 'imlib2'.
pkgname=imlib2 pkgname=imlib2
version=1.4.2 version=1.4.2
revision=3 revision=4
distfiles="${SOURCEFORGE_SITE}/enlightenment/imlib2-$version.tar.gz" distfiles="${SOURCEFORGE_SITE}/enlightenment/imlib2-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--sysconfdir=/etc/imlib2 --enable-visibility-hiding" configure_args="--sysconfdir=/etc/imlib2 --enable-visibility-hiding"

View File

@ -1,6 +1,6 @@
# Template build file for 'iso-codes'. # Template build file for 'iso-codes'.
pkgname=iso-codes pkgname=iso-codes
version=3.29 version=3.32
homepage="http://pkg-isocodes.alioth.debian.org/" homepage="http://pkg-isocodes.alioth.debian.org/"
distfiles="${DEBIAN_SITE}/main/i/iso-codes/${pkgname}_${version}.orig.tar.bz2" distfiles="${DEBIAN_SITE}/main/i/iso-codes/${pkgname}_${version}.orig.tar.bz2"
build_style=gnu-configure build_style=gnu-configure
@ -8,7 +8,7 @@ make_install_args="pkgconfigdir=/usr/lib/pkgconfig"
short_desc="List of country, language and currency names" short_desc="List of country, language and currency names"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1" license="LGPL-2.1"
checksum=8478b514cc57bcb75e7bc7c6259fac86bca42eaf4cdfc913cf846c6b72ef7edb checksum=de19d88fcbb0441d42cabdb88bddf273a2d5f332bc98875ce9f1cd9782eaba2b
long_desc=" long_desc="
iso-codes provides the list of the country, language and currency names in iso-codes provides the list of the country, language and currency names in
one place, rather than repeated in many third-party programs. This was one place, rather than repeated in many third-party programs. This was

View File

@ -1,4 +1,4 @@
libm.so.6 libm.so.6
libc.so.6 libc.so.6
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libtiff.so.5

View File

@ -1,7 +1,7 @@
# Template build file for 'lcms'. # Template build file for 'lcms'.
pkgname=lcms pkgname=lcms
version=1.19 version=1.19
revision=4 revision=5
wrksrc=${pkgname}-${version%[a-z]*} wrksrc=${pkgname}-${version%[a-z]*}
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
build_style=gnu-configure build_style=gnu-configure

View File

@ -1,4 +1,4 @@
libc.so.6 libc.so.6
libjpeg.so.8 libjpeg.so.8
libtiff.so.3
libm.so.6 libm.so.6
libtiff.so.5

View File

@ -3,7 +3,7 @@ pkgname=lcms2
version=2.2 version=2.2
distfiles="${SOURCEFORGE_SITE}/lcms/lcms2-$version.tar.gz" distfiles="${SOURCEFORGE_SITE}/lcms/lcms2-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
revision=1 revision=2
short_desc="Small-footprint color management engine, version 2" short_desc="Small-footprint color management engine, version 2"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.littlecms.com" homepage="http://www.littlecms.com"

View File

@ -7,10 +7,10 @@ libglib-2.0.so.0
libcairo.so.2 libcairo.so.2
libfreetype.so.6 libfreetype.so.6
libjpeg.so.8 libjpeg.so.8
libtiff.so.3
libpthread.so.0 libpthread.so.0
libc.so.6 libc.so.6
liblcms2.so.2 liblcms2.so.2
libpng14.so.14 libpng14.so.14
libm.so.6 libm.so.6
libarchive.so.12 libarchive.so.12
libtiff.so.5

View File

@ -5,7 +5,7 @@ homepage="http://live.gnome.org/libgxps"
distfiles="${GNOME_SITE}/$pkgname/0.2/$pkgname-$version.tar.xz" distfiles="${GNOME_SITE}/$pkgname/0.2/$pkgname-$version.tar.xz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static" configure_args="--disable-static"
revision=1 revision=2
short_desc="GObject base library for XPS documents" short_desc="GObject base library for XPS documents"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1" license="LGPL-2.1"

View File

@ -1,13 +1,12 @@
# Template build file for 'perl-Test-Simple'. # Template build file for 'perl-Test-Simple'.
pkgname=perl-Test-Simple pkgname=perl-Test-Simple
version=0.94 version=1.005000_002
revision=1
wrksrc="Test-Simple-$version" wrksrc="Test-Simple-$version"
distfiles="http://cpan.uwinnipeg.ca/cpan/authors/id/M/MS/MSCHWERN/Test-Simple-$version.tar.gz" distfiles="http://cpan.uwinnipeg.ca/cpan/authors/id/M/MS/MSCHWERN/Test-Simple-$version.tar.gz"
build_style=perl-module build_style=perl-module
short_desc="Perl module with a simple framework for writing tests" short_desc="Perl module with a simple framework for writing tests"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=6f93a4f758ac99bcaa2f917bf10493f6eb102b1ab769d57f5d5cafd6bf4aaee9 checksum=b7ccaa175831f491ada10f021035e80dc50837c77d34e5662cb04f848594b6ff
long_desc=" long_desc="
This is an extremely simple, extremely basic module for writing This is an extremely simple, extremely basic module for writing
tests suitable for CPAN modules and other pursuits. If you wish tests suitable for CPAN modules and other pursuits. If you wish

View File

@ -1,6 +1,5 @@
libpoppler.so.18 libpoppler.so.18
liblcms.so.1 liblcms.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libpng14.so.14 libpng14.so.14
libcurl.so.4 libcurl.so.4
@ -11,3 +10,4 @@ libstdc++.so.6
libm.so.6 libm.so.6
libc.so.6 libc.so.6
libgcc_s.so.1 libgcc_s.so.1
libtiff.so.5

View File

@ -1,6 +1,6 @@
# Template file for 'poppler-cpp'. # Template file for 'poppler-cpp'.
# #
revision=1 revision=2
short_desc="${short_desc} (C++ bindings)" short_desc="${short_desc} (C++ bindings)"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
libpoppler.so.18 libpoppler.so.18
liblcms.so.1 liblcms.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libpng14.so.14 libpng14.so.14
libcurl.so.4 libcurl.so.4
@ -16,3 +15,4 @@ libstdc++.so.6
libm.so.6 libm.so.6
libc.so.6 libc.so.6
libgcc_s.so.1 libgcc_s.so.1
libtiff.so.5

View File

@ -1,6 +1,6 @@
# Template file for 'poppler-glib'. # Template file for 'poppler-glib'.
# #
revision=1 revision=2
short_desc="${short_desc} (GLib bindings)" short_desc="${short_desc} (GLib bindings)"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
libpoppler.so.18 libpoppler.so.18
liblcms.so.1 liblcms.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libpng14.so.14 libpng14.so.14
libcurl.so.4 libcurl.so.4
@ -14,3 +13,4 @@ libstdc++.so.6
libm.so.6 libm.so.6
libc.so.6 libc.so.6
libgcc_s.so.1 libgcc_s.so.1
libtiff.so.5

View File

@ -1,6 +1,6 @@
# Template file for 'poppler-qt4'. # Template file for 'poppler-qt4'.
# #
revision=1 revision=2
short_desc="${short_desc} (QT bindings)" short_desc="${short_desc} (QT bindings)"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,5 +1,4 @@
liblcms.so.1 liblcms.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
libpng14.so.14 libpng14.so.14
libcurl.so.4 libcurl.so.4
@ -10,3 +9,4 @@ libstdc++.so.6
libm.so.6 libm.so.6
libc.so.6 libc.so.6
libgcc_s.so.1 libgcc_s.so.1
libtiff.so.5

View File

@ -5,8 +5,8 @@ homepage="http://poppler.freedesktop.org"
distfiles="${homepage}/$pkgname-$version.tar.gz" distfiles="${homepage}/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-zlib --enable-libcurl --enable-libjpeg configure_args="--enable-zlib --enable-libcurl --enable-libjpeg
--disable-libopenjpeg" --enable-libtiff --disable-libopenjpeg"
revision=1 revision=3
short_desc="PDF rendering library" short_desc="PDF rendering library"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"
@ -31,3 +31,4 @@ Add_dependency build gtk+-devel
Add_dependency build lcms-devel Add_dependency build lcms-devel
Add_dependency build qt-devel Add_dependency build qt-devel
Add_dependency build libcurl-devel Add_dependency build libcurl-devel
Add_dependency build tiff-devel

View File

@ -1,89 +0,0 @@
diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
index 328c5c2..1ae98f4 100644
--- src/network/ssl/qsslcertificate.cpp
+++ src/network/ssl/qsslcertificate.cpp
@@ -803,22 +803,47 @@ QList<QSslCertificate> QSslCertificatePrivate::certificatesFromDer(const QByteAr
// These certificates are known to be fraudulent and were created during the comodo
// compromise. See http://www.comodo.com/Comodo-Fraud-Incident-2011-03-23.html
static const char *certificate_blacklist[] = {
- "04:7e:cb:e9:fc:a5:5f:7b:d0:9e:ae:36:e1:0c:ae:1e",
- "f5:c8:6a:f3:61:62:f1:3a:64:f5:4f:6d:c9:58:7c:06",
- "d7:55:8f:da:f5:f1:10:5b:b2:13:28:2b:70:77:29:a3",
- "39:2a:43:4f:0e:07:df:1f:8a:a3:05:de:34:e0:c2:29",
- "3e:75:ce:d4:6b:69:30:21:21:88:30:ae:86:a8:2a:71",
- "e9:02:8b:95:78:e4:15:dc:1a:71:0a:2b:88:15:44:47",
- "92:39:d5:34:8f:40:d1:69:5a:74:54:70:e1:f2:3f:43",
- "b0:b7:13:3e:d0:96:f9:b5:6f:ae:91:c8:74:bd:3a:c0",
- "d8:f3:5f:4e:b7:87:2b:2d:ab:06:92:e3:15:38:2f:b0",
+ "04:7e:cb:e9:fc:a5:5f:7b:d0:9e:ae:36:e1:0c:ae:1e", "mail.google.com", // Comodo
+ "f5:c8:6a:f3:61:62:f1:3a:64:f5:4f:6d:c9:58:7c:06", "www.google.com", // Comodo
+ "d7:55:8f:da:f5:f1:10:5b:b2:13:28:2b:70:77:29:a3", "login.yahoo.com", // Comodo
+ "39:2a:43:4f:0e:07:df:1f:8a:a3:05:de:34:e0:c2:29", "login.yahoo.com", // Comodo
+ "3e:75:ce:d4:6b:69:30:21:21:88:30:ae:86:a8:2a:71", "login.yahoo.com", // Comodo
+ "e9:02:8b:95:78:e4:15:dc:1a:71:0a:2b:88:15:44:47", "login.skype.com", // Comodo
+ "92:39:d5:34:8f:40:d1:69:5a:74:54:70:e1:f2:3f:43", "addons.mozilla.org", // Comodo
+ "b0:b7:13:3e:d0:96:f9:b5:6f:ae:91:c8:74:bd:3a:c0", "login.live.com", // Comodo
+ "d8:f3:5f:4e:b7:87:2b:2d:ab:06:92:e3:15:38:2f:b0", "global trustee", // Comodo
+
+ "05:e2:e6:a4:cd:09:ea:54:d6:65:b0:75:fe:22:a2:56", "*.google.com", // leaf certificate issued by DigiNotar
+ "0c:76:da:9c:91:0c:4e:2c:9e:fe:15:d0:58:93:3c:4c", "DigiNotar Root CA", // DigiNotar root
+ "f1:4a:13:f4:87:2b:56:dc:39:df:84:ca:7a:a1:06:49", "DigiNotar Services CA", // DigiNotar intermediate signed by DigiNotar Root
+ "36:16:71:55:43:42:1b:9d:e6:cb:a3:64:41:df:24:38", "DigiNotar Services 1024 CA", // DigiNotar intermediate signed by DigiNotar Root
+ "0a:82:bd:1e:14:4e:88:14:d7:5b:1a:55:27:be:bf:3e", "DigiNotar Root CA G2", // other DigiNotar Root CA
+ "a4:b6:ce:e3:2e:d3:35:46:26:3c:b3:55:3a:a8:92:21", "CertiID Enterprise Certificate Authority", // DigiNotar intermediate signed by "DigiNotar Root CA G2"
+ "5b:d5:60:9c:64:17:68:cf:21:0e:35:fd:fb:05:ad:41", "DigiNotar Qualified CA", // DigiNotar intermediate signed by DigiNotar Root
+
+ "1184640176", "DigiNotar Services 1024 CA", // DigiNotar intermediate cross-signed by Entrust
+ "120000525", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
+ "120000505", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
+ "120000515", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
+ "20015536", "DigiNotar PKIoverheid CA Overheid en Bedrijven", // DigiNotar intermediate cross-signed by the Dutch government
+ "20001983", "DigiNotar PKIoverheid CA Organisatie - G2", // DigiNotar intermediate cross-signed by the Dutch government
+ "d6:d0:29:77:f1:49:fd:1a:83:f2:b9:ea:94:8c:5c:b4", "DigiNotar Extended Validation CA", // DigiNotar intermediate signed by DigiNotar EV Root
+ "1e:7d:7a:53:3d:45:30:41:96:40:0f:71:48:1f:45:04", "DigiNotar Public CA 2025", // DigiNotar intermediate
+// "(has not been seen in the wild so far)", "DigiNotar Public CA - G2", // DigiNotar intermediate
+// "(has not been seen in the wild so far)", "Koninklijke Notariele Beroepsorganisatie CA", // compromised during DigiNotar breach
+// "(has not been seen in the wild so far)", "Stichting TTP Infos CA," // compromised during DigiNotar breach
+ "1184640175", "DigiNotar Root CA", // DigiNotar intermediate cross-signed by Entrust
+ "1184644297", "DigiNotar Root CA", // DigiNotar intermediate cross-signed by Entrust
0
};
bool QSslCertificatePrivate::isBlacklisted(const QSslCertificate &certificate)
{
for (int a = 0; certificate_blacklist[a] != 0; a++) {
- if (certificate.serialNumber() == certificate_blacklist[a])
+ QString blacklistedCommonName = QString::fromUtf8(certificate_blacklist[(a+1)]);
+ if (certificate.serialNumber() == certificate_blacklist[a++] &&
+ (certificate.subjectInfo(QSslCertificate::CommonName) == blacklistedCommonName ||
+ certificate.issuerInfo(QSslCertificate::CommonName) == blacklistedCommonName))
return true;
}
return false;
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
index 141d80a..b8e6c4c 100644
--- src/network/ssl/qsslsocket_openssl.cpp
+++ src/network/ssl/qsslsocket_openssl.cpp
@@ -1193,12 +1193,16 @@ bool QSslSocketBackendPrivate::startHandshake()
X509 *x509 = q_SSL_get_peer_certificate(ssl);
configuration.peerCertificate = QSslCertificatePrivate::QSslCertificate_from_X509(x509);
q_X509_free(x509);
- if (QSslCertificatePrivate::isBlacklisted(configuration.peerCertificate)) {
- q->setErrorString(QSslSocket::tr("The peer certificate is blacklisted"));
- q->setSocketError(QAbstractSocket::SslHandshakeFailedError);
- emit q->error(QAbstractSocket::SslHandshakeFailedError);
- plainSocket->disconnectFromHost();
- return false;
+
+ // check the whole chain for blacklisting (including root, as we check for subjectInfo and issuer)
+ foreach (const QSslCertificate &cert, configuration.peerCertificateChain) {
+ if (QSslCertificatePrivate::isBlacklisted(cert)) {
+ q->setErrorString(QSslSocket::tr("The peer certificate is blacklisted"));
+ q->setSocketError(QAbstractSocket::SslHandshakeFailedError);
+ emit q->error(QAbstractSocket::SslHandshakeFailedError);
+ plainSocket->disconnectFromHost();
+ return false;
+ }
}
// Start translating errors.

View File

@ -7,13 +7,11 @@ libgcc_s.so.1
libc.so.6 libc.so.6
libGL.so.1 libGL.so.1
libQtSql.so.4 libQtSql.so.4
libGLU.so.1
libQtWebKit.so.4 libQtWebKit.so.4
libQtNetwork.so.4 libQtNetwork.so.4
libQtDeclarative.so.4 libQtDeclarative.so.4
libQtXml.so.4 libQtXml.so.4
libQtSvg.so.4 libQtSvg.so.4
libQt3Support.so.4
libQtMultimedia.so.4 libQtMultimedia.so.4
libQtScript.so.4 libQtScript.so.4
libQtScriptTools.so.4 libQtScriptTools.so.4
@ -21,3 +19,4 @@ libQtTest.so.4
libQtHelp.so.4 libQtHelp.so.4
libQtDBus.so.4 libQtDBus.so.4
libQtXmlPatterns.so.4 libQtXmlPatterns.so.4
libphonon.so.4

View File

@ -5,8 +5,6 @@ long_desc="${long_desc}
This package contains Qt 4 examples and demos." This package contains Qt 4 examples and demos."
revision=2
gtk_iconcache_dirs="/usr/share/icons/hicolor" gtk_iconcache_dirs="/usr/share/icons/hicolor"
Add_dependency run hicolor-icon-theme Add_dependency run hicolor-icon-theme

View File

@ -12,3 +12,4 @@ libm.so.6
libQtScript.so.4 libQtScript.so.4
libQtXml.so.4 libQtXml.so.4
libQtNetwork.so.4 libQtNetwork.so.4
libphonon.so.4

View File

@ -6,8 +6,6 @@ long_desc="${long_desc}
Qt Designer is a tool for designing and building graphical user Qt Designer is a tool for designing and building graphical user
interfaces (GUIs) from Qt components." interfaces (GUIs) from Qt components."
revision=3
gtk_iconcache_dirs="/usr/share/icons/hicolor" gtk_iconcache_dirs="/usr/share/icons/hicolor"
Add_dependency run hicolor-icon-theme Add_dependency run hicolor-icon-theme

View File

@ -1,6 +1,5 @@
# Template file for 'qt-devel-tools'. # Template file for 'qt-devel-tools'.
# #
revision=1
short_desc="Qt development tools" short_desc="Qt development tools"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
# Template file for 'qt-devel'. # Template file for 'qt-devel'.
# #
revision=1
short_desc="Qt development files" short_desc="Qt development files"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
# Template file for 'qt-plugin-mysql'. # Template file for 'qt-plugin-mysql'.
# #
revision=1
short_desc="Qt MySQL plugin" short_desc="Qt MySQL plugin"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
# Template file for 'qt-plugin-pgsql'. # Template file for 'qt-plugin-pgsql'.
# #
revision=1
short_desc="Qt PostgreSQL plugin" short_desc="Qt PostgreSQL plugin"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
# Template file for 'qt-plugin-sqlite'. # Template file for 'qt-plugin-sqlite'.
# #
revision=1
short_desc="Qt SQLite plugin" short_desc="Qt SQLite plugin"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,5 @@
# Template file for 'qt-qmake'. # Template file for 'qt-qmake'.
# #
revision=1
short_desc="Qt qmake Makefile generator tool" short_desc="Qt qmake Makefile generator tool"
long_desc="${long_desc} long_desc="${long_desc}

View File

@ -1,6 +1,9 @@
libQt3Support.so.4
libQtGui.so.4 libQtGui.so.4
libQtCore.so.4 libQtCore.so.4
libstdc++.so.6 libstdc++.so.6
libgcc_s.so.1 libgcc_s.so.1
libc.so.6 libc.so.6
libgstreamer-0.10.so.0
libgobject-2.0.so.0
libphonon.so.4
libglib-2.0.so.0

View File

@ -6,8 +6,6 @@ long_desc="${long_desc}
The Qt Configuration program allows end users to configure the look The Qt Configuration program allows end users to configure the look
and behavior of any Qt application." and behavior of any Qt application."
revision=3
gtk_iconcache_dirs="/usr/share/icons/hicolor" gtk_iconcache_dirs="/usr/share/icons/hicolor"
Add_dependency run hicolor-icon-theme Add_dependency run hicolor-icon-theme

View File

@ -25,5 +25,15 @@ libOpenVG.so.1
libasound.so.2 libasound.so.2
libsqlite3.so.0 libsqlite3.so.0
libmng.so.1 libmng.so.1
libtiff.so.3
libjpeg.so.8 libjpeg.so.8
ld-linux-x86-64.so.2
libgstapp-0.10.so.0
libgstinterfaces-0.10.so.0
libgstpbutils-0.10.so.0
libgstvideo-0.10.so.0
libgstbase-0.10.so.0
libgstreamer-0.10.so.0
libpulse-mainloop-glib.so.0
libpulse.so.0
libgstaudio-0.10.so.0
libtiff.so.5

View File

@ -1,15 +1,15 @@
# Template file for 'qt' # Template file for 'qt'
pkgname=qt pkgname=qt
version=4.7.4 version=4.8.0
revision=5
_distname=qt-everywhere-opensource-src _distname=qt-everywhere-opensource-src
wrksrc=${_distname}-${version} wrksrc=${_distname}-${version}
homepage="http://qt.nokia.com/" homepage="http://qt.nokia.com/"
distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz" distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz"
revision=1
short_desc="A cross-platform application and UI framework" short_desc="A cross-platform application and UI framework"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3, LGPL-2.1" license="GPL-3, LGPL-2.1"
checksum=97195ebce8a46f9929fb971d9ae58326d011c4d54425389e6e936514f540221e checksum=9392b74e485e15f75a3e07a527547d4f6747eaf55ebce71ba0e863a9fd320b6e
long_desc=" long_desc="
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
maintaining GUI (graphical user interface) applications." maintaining GUI (graphical user interface) applications."
@ -34,6 +34,8 @@ Add_dependency build libXrandr-devel
Add_dependency build zlib-devel Add_dependency build zlib-devel
Add_dependency build dbus-devel Add_dependency build dbus-devel
Add_dependency build glib-devel Add_dependency build glib-devel
Add_dependency build gstreamer-devel
Add_dependency build gst-plugins-base-devel
Add_dependency build sqlite-devel Add_dependency build sqlite-devel
Add_dependency build alsa-lib-devel Add_dependency build alsa-lib-devel
Add_dependency build openssl-devel Add_dependency build openssl-devel
@ -63,11 +65,11 @@ do_configure() {
-examplesdir /usr/share/doc/qt/examples \ -examplesdir /usr/share/doc/qt/examples \
-demosdir /usr/share/doc/qt/demos -largefile \ -demosdir /usr/share/doc/qt/demos -largefile \
-plugin-sql-sqlite -system-sqlite \ -plugin-sql-sqlite -system-sqlite \
-xmlpatterns -no-phonon -no-phonon-backend -svg -webkit \ -xmlpatterns -svg -webkit \
-scripttools -system-zlib \ -scripttools -system-zlib \
-system-libtiff -system-libpng -system-libmng -system-libjpeg \ -system-libtiff -system-libpng -system-libmng -system-libjpeg \
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations \ -openssl-linked -optimized-qmake -no-rpath -reduce-relocations \
-no-separate-debug-info -gtkstyle -opengl -glib \ -no-separate-debug-info -gtkstyle -opengl -glib -gstreamer \
-no-sql-db2 -no-sql-ibase -gtkstyle \ -no-sql-db2 -no-sql-ibase -gtkstyle \
-plugin-sql-mysql -plugin-sql-psql -no-sql-oci \ -plugin-sql-mysql -plugin-sql-psql -no-sql-oci \
-no-sql-odbc -no-sql-sqlite2 \ -no-sql-odbc -no-sql-sqlite2 \
@ -84,6 +86,9 @@ do_install() {
make INSTALL_ROOT=${DESTDIR} install make INSTALL_ROOT=${DESTDIR} install
# delete tests
rm -rf ${DESTDIR}/usr/tests
# install missing icons and desktop files # install missing icons and desktop files
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
size=$(echo $(basename ${icon}) | cut -d- -f2) size=$(echo $(basename ${icon}) | cut -d- -f2)

View File

@ -1,2 +1,2 @@
abi_depends=">=3.8.2" abi_depends=">=4.0.0"
api_depends="${abi_depends}" api_depends="${abi_depends}"

View File

@ -1,13 +1,12 @@
# Template build file for 'tiff'. # Template build file for 'tiff'.
pkgname=tiff pkgname=tiff
version=3.9.3 version=4.0.0
distfiles="ftp://ftp.remotesensing.org/pub/libtiff/$pkgname-$version.tar.gz" distfiles="ftp://ftp.remotesensing.org/pub/libtiff/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-cxx --without-x" configure_args="--enable-cxx --without-x"
revision=1
short_desc="Library and tools for reading and writing TIFF data files" short_desc="Library and tools for reading and writing TIFF data files"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=60e08794966b7cbf46bbf13c347f1fe41c982f98714909f49d6f198add4fdee6 checksum=9f4c0b2a8446a259db431c6401342bcb2c1be4a604e77a532d109c8448619288
long_desc=" long_desc="
This is software provides support for the Tag Image Format (TIFF). This is software provides support for the Tag Image Format (TIFF).
Included is a library, libtiff, for reading and writing TIFF, a Included is a library, libtiff, for reading and writing TIFF, a
@ -23,3 +22,4 @@ long_desc="
subpackages="$pkgname-devel" subpackages="$pkgname-devel"
Add_dependency build zlib-devel Add_dependency build zlib-devel
Add_dependency build jpeg-devel Add_dependency build jpeg-devel
Add_dependency build liblzma-devel

View File

@ -4,3 +4,4 @@ libjpeg.so.8
libz.so.1 libz.so.1
libstdc++.so.6 libstdc++.so.6
libgcc_s.so.1 libgcc_s.so.1
liblzma.so.5

View File

@ -7,7 +7,7 @@ build_style=gnu-configure
configure_args="--enable-libflac --enable-libvorbis --disable-unit-tests configure_args="--enable-libflac --enable-libvorbis --disable-unit-tests
--enable-libtiff --disable-static" --enable-libtiff --disable-static"
short_desc="Personal search tool and storage system" short_desc="Personal search tool and storage system"
revision=1 revision=2
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"
checksum=ccd61c8f79905f7e09af3a4a863772256601dcd3213b0f9a3f76add04e553b5c checksum=ccd61c8f79905f7e09af3a4a863772256601dcd3213b0f9a3f76add04e553b5c

View File

@ -19,7 +19,6 @@ libogg.so.0
libFLAC.so.8 libFLAC.so.8
libgif.so.4 libgif.so.4
libjpeg.so.8 libjpeg.so.8
libtiff.so.3
libxml2.so.2 libxml2.so.2
libgsf-1.so.114 libgsf-1.so.114
libpoppler-glib.so.8 libpoppler-glib.so.8
@ -47,3 +46,4 @@ libupower-glib.so.1
librest-0.7.so.0 librest-0.7.so.0
libpanel-applet-4.so.0 libpanel-applet-4.so.0
libgee.so.2 libgee.so.2
libtiff.so.5

View File

@ -1,7 +1,7 @@
# Template file for 'xbmc' # Template file for 'xbmc'
pkgname=xbmc pkgname=xbmc
version=10.1 version=10.1
revision=9 revision=10
patch_args="-Np1" patch_args="-Np1"
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz" distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz"
short_desc="XBMC Media Center" short_desc="XBMC Media Center"

View File

@ -42,7 +42,7 @@ ld-linux-x86-64.so.2
libexpat.so.1 libexpat.so.1
libpng14.so.14 libpng14.so.14
libjpeg.so.8 libjpeg.so.8
libtiff.so.3 libtiff.so.5
libXmu.so.6 libXmu.so.6
libcdio.so.13 libcdio.so.13
libXrender.so.1 libXrender.so.1