ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Devel Mailing List <devel@lists.altlinux.org>
Subject: Re: [devel] Q: wtf w/ python-cairo
Date: Mon, 24 Apr 2006 18:17:22 +0400
Message-ID: <20060424141722.GZ8441@localhost> (raw)
In-Reply-To: <200604241725.36654.shrek@freesource.info>

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]

On Mon, Apr 24, 2006 at 05:25:35PM +0400, Valery V. Inozemtsev wrote:
> > Если вернуть назад --enable-ps и --enable-pdf, то символы cairo_ps_*
> > cairo_pdf_* появляются назад.  Остается только cairo_glitz_surface_create.
> >
> > С glitz уже были проблемы?
> постоянно. с glitz он просто не соберется

Тогда для cairo_glitz_surface_create проще всего сделать заглушку,
которая возвращает "false".  Вообще экспорт функций в зависимости от
опций configure - сомнительная практика.

--- cairo-1.0.4/src/Makefile.am-	2006-03-15 18:26:51 +0300
+++ cairo-1.0.4/src/Makefile.am	2006-04-24 17:58:13 +0400
@@ -44,6 +44,8 @@ endif
 if CAIRO_HAS_GLITZ_SURFACE
 libcairo_glitz_headers = cairo-glitz.h
 libcairo_glitz_sources = cairo-glitz-surface.c
+else
+libcairo_glitz_sources = cairo-glitz-stub.c
 endif
 
 if CAIRO_HAS_ATSUI_FONT
--- cairo-1.0.4/src/cairo-glitz-stub.c-	2006-04-24 17:59:38 +0400
+++ cairo-1.0.4/src/cairo-glitz-stub.c	2006-04-24 18:05:07 +0400
@@ -0,0 +1,15 @@
+/*
+ * I don't want glitz, but some binary code assumes cairo_glitz_surface_create is here.
+ * So I need to provide a stub.  -- Alexey Tourbin, Mon Apr 24 2006
+ */
+
+#define CAIRO_HAS_GLITZ_SURFACE 1
+#include "cairoint.h"
+#include "cairo-glitz.h"
+
+cairo_surface_t *
+cairo_glitz_surface_create (glitz_surface_t *surface)
+{
+	(void) surface;
+	return (cairo_surface_t*) &_cairo_surface_nil;
+}

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-04-24 14:17 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24 11:50 Konstantin A. Lepikhov
2006-04-24 11:52 ` Dmitry V. Levin
2006-04-24 12:10   ` Konstantin A. Lepikhov
2006-04-24 12:12   ` Alexey Tourbin
2006-04-24 12:15     ` Valery V. Inozemtsev
2006-04-24 12:22       ` Alexey Tourbin
2006-04-24 12:29         ` Valery V. Inozemtsev
2006-04-24 12:49           ` Alexey Tourbin
2006-04-24 12:56             ` Valery V. Inozemtsev
2006-04-24 13:14               ` Alexey Tourbin
2006-04-24 13:25                 ` Valery V. Inozemtsev
2006-04-24 14:17                   ` Alexey Tourbin [this message]
2006-04-24 16:07                     ` Alexey Tourbin
2006-04-24 16:39                       ` [devel] libfreetype.so.6 sucks Alexey Tourbin
2006-04-24 16:46                         ` Alexey Tourbin
2006-04-24 17:08                           ` Dmitry V. Levin
2006-04-24 17:18                             ` Alexey Tourbin
2006-04-24 18:09                             ` Alexey Tourbin
2006-04-24 18:21                             ` Alexey Tourbin
2006-04-24 18:27                               ` Valery V. Inozemtsev
2006-04-24 18:40                               ` Valery V. Inozemtsev
2006-04-24 18:50                                 ` Alexey Tourbin
2006-04-24 19:12                                   ` Valery V. Inozemtsev
2006-04-24 19:20                                     ` Alexey Tourbin
2006-04-24 19:55                                   ` Dmitry V. Levin
2006-04-24 20:01                                     ` Alexey Tourbin
2006-04-25  5:41                                     ` Valery V. Inozemtsev
2006-04-25 12:37                                       ` Dmitry V. Levin
2006-04-25 21:12                           ` Dmitry V. Levin
2006-04-25 21:19                             ` Alexey Tourbin
2006-04-25 21:31                               ` Dmitry V. Levin
2006-04-25 21:36                                 ` Alexey Tourbin
2006-04-26  5:27                                   ` Valery V. Inozemtsev
2006-05-14  4:13                           ` [devel] grep unreliable Alexey Tourbin
2006-04-24 13:51     ` [devel] Q: wtf w/ python-cairo Денис Смирнов
2006-04-24 12:13 ` Anton Farygin
2006-04-24 14:43   ` Alexey Tourbin
2006-04-24 14:43 ` Alexey Tourbin
2006-04-24 15:45   ` Konstantin A. Lepikhov
2006-04-24 15:58     ` Alexey Tourbin
2006-04-24 16:04       ` Konstantin A. Lepikhov
2006-04-24 16:15         ` Alexey Tourbin
2006-04-24 16:25           ` Valery V. Inozemtsev
2006-04-24 16:26           ` Konstantin A. Lepikhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060424141722.GZ8441@localhost \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git