Hello community, here is the log from the commit of package perl-Cairo checked in at Tue Dec 12 23:23:26 CET 2006. -------- --- perl-Cairo/perl-Cairo.changes 2006-09-25 15:26:18.000000000 +0200 +++ /mounts/work_src_done/STABLE/perl-Cairo/perl-Cairo.changes 2006-12-12 13:55:51.000000000 +0100 @@ -1,0 +2,8 @@ +Tue Dec 12 13:35:03 CET 2006 - anicka@suse.cz + +- update to 1.021 +* MakeHelper.pm, CairoSurface.t: When comparing enum values, look + at length+1, not just length, bytes to discern string pairs like + 'color' and 'color-alpha'. + +------------------------------------------------------------------- Old: ---- Cairo-1.01.tar.bz2 New: ---- Cairo-1.021.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Cairo.spec ++++++ --- /var/tmp/diff_new_pack.HZ4zEN/_old 2006-12-12 23:23:18.000000000 +0100 +++ /var/tmp/diff_new_pack.HZ4zEN/_new 2006-12-12 23:23:18.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package perl-Cairo (Version 1.01 ) +# spec file for package perl-Cairo (Version 1.021 ) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -11,13 +11,13 @@ # norootforbuild Name: perl-Cairo -Version: 1.01 +Version: 1.021 Release: 1 Requires: perl = %{perl_version} perl-ExtUtils-Depends perl-ExtUtils-PkgConfig BuildRequires: cairo-devel perl-ExtUtils-Depends perl-ExtUtils-PkgConfig pkgconfig Autoreqprov: on Group: Development/Libraries/Perl -License: LGPL +License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) URL: http://cpan.org//authors/id/T/TS/TSCH/ Summary: Perl bindings to the cairo graphics library. Source: Cairo-%{version}.tar.bz2 @@ -64,6 +64,11 @@ /var/adm/perl-modules/%{name} %changelog -n perl-Cairo +* Tue Dec 12 2006 - anicka@suse.cz +- update to 1.021 + * MakeHelper.pm, CairoSurface.t: When comparing enum values, look + at length+1, not just length, bytes to discern string pairs like + 'color' and 'color-alpha'. * Mon Sep 25 2006 - anicka@suse.cz - update to 1.01 * test fixes ++++++ Cairo-1.01.tar.bz2 -> Cairo-1.021.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/Cairo.pm new/Cairo-1.021/Cairo.pm --- old/Cairo-1.01/Cairo.pm 2006-09-24 23:26:40.000000000 +0200 +++ new/Cairo-1.021/Cairo.pm 2006-11-11 21:07:55.000000000 +0100 @@ -3,7 +3,7 @@ # # Licensed under the LGPL, see LICENSE file for more information. # -# $Header: /cvs/cairo/cairo-perl/Cairo.pm,v 1.21 2006/09/24 21:26:40 tsch Exp $ +# $Header: /cvs/cairo/cairo-perl/Cairo.pm,v 1.22.2.1 2006/11/11 20:07:55 tsch Exp $ # package Cairo; @@ -14,7 +14,7 @@ our @ISA = qw/DynaLoader/; -our $VERSION = '1.01'; +our $VERSION = '1.021'; sub dl_load_flags { $^O eq 'darwin' ? 0x00 : 0x01 } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/ChangeLog new/Cairo-1.021/ChangeLog --- old/Cairo-1.01/ChangeLog 2006-09-24 23:26:31.000000000 +0200 +++ new/Cairo-1.021/ChangeLog 2006-11-11 21:07:10.000000000 +0100 @@ -1,3 +1,22 @@ +2006-11-11 tsch + + * Cairo.pm, NEWS, README: Brown paper bag release 1.021. + +2006-11-11 tsch + + * t/CairoSurface.t: Skip content tests on old cairo's. + +2006-11-09 tsch + + * Cairo.pm, NEWS, README: Stable release 1.02. + +2006-11-09 tsch + + * MakeHelper.pm, CairoSurface.t: When comparing enum values, look + at length+1, not just length, bytes to discern string pairs like + 'color' and 'color-alpha'. Duh! Many thanks to Martijn van Beers + for finding this bug. + 2006-09-24 tsch * Cairo.pm, NEWS: Stable release 1.01. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/META.yml new/Cairo-1.021/META.yml --- old/Cairo-1.01/META.yml 2006-09-24 23:27:07.000000000 +0200 +++ new/Cairo-1.021/META.yml 2006-11-11 21:08:28.000000000 +0100 @@ -1,12 +1,13 @@ -# http://module-build.sourceforge.net/META-spec.html -#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# -name: Cairo -version: 1.01 -version_from: Cairo.pm -installdirs: site -requires: +--- #YAML:1.0 +name: Cairo +version: 1.021 +abstract: Perl interface to the cairo library +license: ~ +generated_by: ExtUtils::MakeMaker version 6.31 +distribution_type: module +requires: ExtUtils::Depends: 0.2 ExtUtils::PkgConfig: 1 - -distribution_type: module -generated_by: ExtUtils::MakeMaker version 6.30 +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.2.html + version: 1.2 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/MakeHelper.pm new/Cairo-1.021/MakeHelper.pm --- old/Cairo-1.01/MakeHelper.pm 2006-08-20 20:33:22.000000000 +0200 +++ new/Cairo-1.021/MakeHelper.pm 2006-11-09 20:35:10.000000000 +0100 @@ -2,7 +2,7 @@ # this is all hacky etc. it works so it's gonna stay for now. it is not and # should not be installed. # -# $Header: /cvs/cairo/cairo-perl/MakeHelper.pm,v 1.9 2006/08/20 18:33:22 tsch Exp $ +# $Header: /cvs/cairo/cairo-perl/MakeHelper.pm,v 1.10 2006/11/09 18:44:49 tsch Exp $ # package MakeHelper; @@ -306,7 +306,10 @@ my $full = shift @enums; my $name = canonicalize($full, $prefix); - my $len = length ($name); + + # +1 so that strncmp also looks at the trailing \0, and discerns + # 'color' and 'color-alpha', for example. + my $len = length ($name) + 1; my $str = <<"EOS"; if (strncmp (str, "$name", $len) == 0) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/NEWS new/Cairo-1.021/NEWS --- old/Cairo-1.01/NEWS 2006-09-24 23:26:03.000000000 +0200 +++ new/Cairo-1.021/NEWS 2006-11-11 21:05:49.000000000 +0100 @@ -1,3 +1,14 @@ +Overview of changes in Cairo 1.021 +================================== + +* Fix test failure. + +Overview of changes in Cairo 1.02 +================================= + +* Fix a bug that caused the content type value 'content-alpha' to be + interpreted as just 'content'. + Overview of changes in Cairo 1.01 ================================= diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/README new/Cairo-1.021/README --- old/Cairo-1.01/README 2006-09-04 17:30:49.000000000 +0200 +++ new/Cairo-1.021/README 2006-11-11 21:05:34.000000000 +0100 @@ -1,5 +1,5 @@ -Cairo version 1.00 -================== +Cairo version 1.021 +=================== Perl bindings to the cairo graphics library (http://www.cairographics.org). diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Cairo-1.01/t/CairoSurface.t new/Cairo-1.021/t/CairoSurface.t --- old/Cairo-1.01/t/CairoSurface.t 2006-09-24 23:13:15.000000000 +0200 +++ new/Cairo-1.021/t/CairoSurface.t 2006-11-11 21:04:23.000000000 +0100 @@ -3,13 +3,13 @@ # # Licensed under the LGPL, see LICENSE file for more information. # -# $Header: /cvs/cairo/cairo-perl/t/CairoSurface.t,v 1.16 2006/09/24 21:13:15 tsch Exp $ +# $Header: /cvs/cairo/cairo-perl/t/CairoSurface.t,v 1.17.2.1 2006/11/11 20:04:23 tsch Exp $ # use strict; use warnings; -use Test::More tests => 60; +use Test::More tests => 62; use constant { IMG_WIDTH => 256, @@ -50,6 +50,18 @@ isa_ok ($surf, 'Cairo::ImageSurface'); isa_ok ($surf, 'Cairo::Surface'); +# Test that the enum wrappers differentiate between color and color-alpha. +# Duh! +SKIP: { + skip 'content tests', 2 + unless Cairo::VERSION >= Cairo::VERSION_ENCODE (1, 2, 0); + + my $tmp = $surf->create_similar ('color-alpha', IMG_WIDTH, IMG_HEIGHT); + is ($tmp->get_content, 'color-alpha'); + $tmp = $surf->create_similar ('color', IMG_WIDTH, IMG_HEIGHT); + is ($tmp->get_content, 'color'); +} + $surf->set_device_offset (23, 42); SKIP: { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de