NetBSD Problem Report #41063

From www@NetBSD.org  Mon Mar 23 22:52:58 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id CAB3B63BAB3
	for <gnats-bugs@gnats.netbsd.org>; Mon, 23 Mar 2009 22:52:58 +0000 (UTC)
Message-Id: <20090323225258.9905163B9E6@www.NetBSD.org>
Date: Mon, 23 Mar 2009 22:52:58 +0000 (UTC)
From: leuzi@trash.net
Reply-To: leuzi@trash.net
To: gnats-bugs@NetBSD.org
Subject: graphics/py-cairo: Update to 1.8.4 (patch included)
X-Send-Pr-Version: www-1.0

>Number:         41063
>Category:       pkg
>Synopsis:       graphics/py-cairo: Update to 1.8.4 (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 23 22:55:00 +0000 2009
>Closed-Date:    Wed May 13 13:02:21 +0000 2009
>Last-Modified:  Wed May 13 13:02:21 +0000 2009
>Originator:     Christoph Leuzinger
>Release:        4.0
>Organization:
>Environment:
NetBSD charon 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
Overview of changes from pycairo 1.8.2 to pycairo 1.8.4
=======================================================
General Changes:
    Pycairo 1.8.4 requires cairo 1.8.4 (or later) and Python 2.6

Bug Fixes:
    20674: Add get/set_extend for Gradient Patterns

New Classes:
    cairo.ToyFontFace

New Methods:
    Pattern.get_extend
    Pattern.set_extend
    ToyFontFace.get_family
    ToyFontFace.get_slant
    ToyFontFace.get_weight

Deleted Methods:
    SurfacePattern.get_extend
    SurfacePattern.set_extend

Other Changes:
    Threading for surfaces with stream functions has been reenabled.
    Documentation updates.

>How-To-Repeat:

>Fix:
--- Makefile	11 Feb 2009 14:23:32 -0000	1.16
+++ Makefile	23 Mar 2009 22:41:33 -0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2009/02/11 14:23:32 joerg Exp $
+# $NetBSD$
 #

-DISTNAME=		pycairo-1.8.2
+DISTNAME=		pycairo-1.8.4
 PKGNAME=		${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=		graphics
 MASTER_SITES=		http://cairographics.org/releases/
@@ -28,7 +28,7 @@
 BUILDLINK_TRANSFORM+=	rm:-std=c99
 .endif

-BUILDLINK_API_DEPENDS.cairo+=	cairo>=1.8.0
+BUILDLINK_API_DEPENDS.cairo+=	cairo>=1.8.4nb1

 .include "../../lang/python/extension.mk"
 .include "../../math/py-Numeric/buildlink3.mk"
--- distinfo	18 Jan 2009 17:12:56 -0000	1.9
+++ distinfo	23 Mar 2009 22:41:33 -0000
@@ -1,8 +1,8 @@
 $NetBSD: distinfo,v 1.9 2009/01/18 17:12:56 wiz Exp $

-SHA1 (pycairo-1.8.2.tar.gz) = b457949ccfa3af82afcffae8a396a1c840a9428a
-RMD160 (pycairo-1.8.2.tar.gz) = ce48a6b71b802f07d0e0d3cfa140fd39ab5fe4d7
-Size (pycairo-1.8.2.tar.gz) = 519064 bytes
-SHA1 (patch-aa) = 1177a5421d80273721a80603dbd4cfca0fdf1b18
+SHA1 (pycairo-1.8.4.tar.gz) = 450b59376ffea41910f60a0dfc9fd01d277e3950
+RMD160 (pycairo-1.8.4.tar.gz) = 1be18a8516d797694d370f0d02273cad18115320
+Size (pycairo-1.8.4.tar.gz) = 521136 bytes
+SHA1 (patch-aa) = 887dd3204505dfbaff5989920d0cc5a99a8f14ff
 SHA1 (patch-ab) = e8fcf835f97b38df476f09d7bcfe1f84b0264aa3
-SHA1 (patch-ac) = 93cc7fa29f90872dad22b83bc783acf9f1279093
+SHA1 (patch-ac) = 87eae672fc11ce849304a2ef409f06d826c59802
--- patches/patch-aa	18 Nov 2008 12:46:52 -0000	1.3
+++ patches/patch-aa	23 Mar 2009 22:41:33 -0000
@@ -1,12 +1,19 @@
-$NetBSD: patch-aa,v 1.3 2008/11/18 12:46:52 drochner Exp $
+$NetBSD$

---- configure.orig	2008-11-18 12:40:01.000000000 +0100
+--- configure.orig
 +++ configure
-@@ -19384,7 +19384,7 @@ echo $ECHO_N "checking whether $PYTHON v
+@@ -19941,12 +19941,12 @@
+ 
+         if test -n "$PYTHON"; then
+       # If the user set $PYTHON, use it and don't search something else.
+-      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.6" >&5
+-$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
++      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.4" >&5
++$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
        prog="import sys, string
  # split strings by '.' and convert to numeric.  Append some zeros
  # because we need at least 4 digits for the hex conversion.
--minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
+-minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
 +minver = map(int, string.split('2.4', '.')) + [0, 0, 0]
  minverhex = 0
  for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
--- patches/patch-ac	18 Nov 2008 12:46:52 -0000	1.1
+++ patches/patch-ac	23 Mar 2009 22:41:33 -0000
@@ -1,17 +1,17 @@
-$NetBSD: patch-ac,v 1.1 2008/11/18 12:46:52 drochner Exp $
+$NetBSD$

---- cairo/pycairo-surface.c.orig	2008-11-18 12:50:34.000000000 +0100
+--- cairo/pycairo-surface.c.orig
 +++ cairo/pycairo-surface.c
-@@ -122,7 +122,7 @@ static cairo_status_t
- _write_func (void *closure, const unsigned char *data, unsigned int length)
+@@ -123,7 +123,7 @@
  {
+     PyGILState_STATE gstate = PyGILState_Ensure();
      PyObject *res = PyObject_CallMethod ((PyObject *)closure, "write", "(s#)",
 -					 data, (Py_ssize_t)length);
 +					 data, length);
      if (res == NULL) {
  	/* an exception has occurred, it will be picked up later by
  	 * Pycairo_Check_Status()
-@@ -392,7 +392,7 @@ image_surface_create_for_data (PyTypeObj
+@@ -393,7 +393,7 @@ image_surface_create_for_data (PyTypeObj
      cairo_format_t format;
      unsigned char *buffer;
      int width, height, stride = -1, res;
@@ -20,7 +20,7 @@
      PyObject *obj;

      if (!PyArg_ParseTuple(args, "Oiii|i:Surface.create_for_data",
-@@ -570,10 +570,10 @@ image_surface_buffer_getsegcount (Pycair
+@@ -571,10 +571,10 @@ image_surface_buffer_getsegcount (Pycair

  /* See Python C API Manual 10.7 */
  static PyBufferProcs image_surface_as_buffer = {

>Release-Note:

>Audit-Trail:
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41063 CVS commit: pkgsrc/graphics/py-cairo
Date: Wed, 13 May 2009 12:56:47 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed May 13 12:56:47 UTC 2009

 Modified Files:
 	pkgsrc/graphics/py-cairo: Makefile distinfo
 	pkgsrc/graphics/py-cairo/patches: patch-aa patch-ab patch-ac

 Log Message:
 Update pycairo to 1.8.4.
 Based on maintainer update request by PR 41063.
 While here, add commented out LICENSE (LGPL-2.1 or MPL-1.1).

 Overview of changes from pycairo 1.8.2 to pycairo 1.8.4
 =======================================================
 General Changes:
     Pycairo 1.8.4 requires cairo 1.8.4 (or later) and Python 2.6

 Bug Fixes:
     20674: Add get/set_extend for Gradient Patterns

 New Classes:
     cairo.ToyFontFace

 New Methods:
     Pattern.get_extend
     Pattern.set_extend
     ToyFontFace.get_family
     ToyFontFace.get_slant
     ToyFontFace.get_weight

 Deleted Methods:
     SurfacePattern.get_extend
     SurfacePattern.set_extend

 Other Changes:
     Threading for surfaces with stream functions has been reenabled.
     Documentation updates.


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/graphics/py-cairo/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/py-cairo/distinfo
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/graphics/py-cairo/patches/patch-aa
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/graphics/py-cairo/patches/patch-ab \
     pkgsrc/graphics/py-cairo/patches/patch-ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Wed, 13 May 2009 13:02:21 +0000
State-Changed-Why:
Updated based on your patch.  Thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.