Skip Menu |

This queue is for tickets about the Prima-Cairo CPAN distribution.

Report information
The Basics
Id: 118093
Status: resolved
Priority: 0/
Queue: Prima-Cairo

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.03
Fixed in: 1.04



Subject: Compilation failure (with Prima 1.48_3?)
On some of my smokers I see the following compilation failure: cc -c -I/tmpfs/.cpan-build-cpansand/2016092618/Prima-1.48_3-6/include -I/tmpfs/.cpan-build-cpansand/2016092618/Prima-1.48_3-6/include/generic -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu -Iinclude -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" -fPIC "-I/opt/perl-5.20.1/lib/5.20.1/x86_64-linux/CORE" -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 Cairo.c Cairo.xs: In function 'XS_Prima__Cairo_surface_create': Cairo.xs:309:36: error: 'struct _DeviceBitmap' has no member named 'monochrome' request = ((PDeviceBitmap)object)->monochrome ? REQ_TARGET_BITMAP : REQ_TARGET_PIXMAP; ^ Makefile:342: recipe for target 'Cairo.o' failed make: *** [Cairo.o] Error 1 Statistical analysis suggests that this happens only with the latest devel version of Prima, 1.48_3 (theta near zero means "bad"; disregard the pseudo version "broken", probably these were tests runs without a $DISPLAY): **************************************************************** Regression 'mod:Prima' **************************************************************** Name Theta StdErr T-stat [0='const'] 0.0000 0.0000 4.57 [1='eq_1.44'] 1.0000 0.0000 22835208805146308.00 [2='eq_1.45'] 1.0000 0.0000 18644869914172668.00 [3='eq_1.46'] 1.0000 0.0000 24941468238508796.00 [4='eq_1.47'] 1.0000 0.0000 23057996605780248.00 [5='eq_1.48_3'] -0.0000 0.0000 -5.32 [6='eq_broken'] 1.0000 0.0000 15223472536764206.00 R^2= 1.000, N= 88, K= 7 ****************************************************************
Hi Slaven, Thanks for the report, but, are you sure you have the right version? 1.04's XS file doesn't have the "monochrome" string anymore[1], the last time it was there was 1.03. The API change is related to Prima-1.48 though, that's correct. Regards, Dmitry [1] http://cpansearch.perl.org/src/KARASIK/Prima-Cairo-1.04/Cairo.xs
On 2016-09-26 17:24:00, KARASIK wrote: Show quoted text
> Hi Slaven, > > Thanks for the report, but, are you sure you have the right version? > 1.04's XS file doesn't have the "monochrome" string anymore[1], the > last time it was there was 1.03. The API change is related to Prima- > 1.48 though, that's correct. > > Regards, > Dmitry > > [1] http://cpansearch.perl.org/src/KARASIK/Prima-Cairo-1.04/Cairo.xs
Then this can be reduced to a PAUSE/CPAN indexing problem. For example, if I go to https://metacpan.org/release/Prima-Cairo then 1.03 is shown, not 1.04. Or in a CPAN.pm shell: cpan[1]> reload index ... cpan[2]> m Prima::Cairo Module id = Prima::Cairo CPAN_USERID KARASIK (Dmitry Karasik <dmitry@karasik.eu.org>) CPAN_VERSION 1.03 CPAN_FILE K/KA/KARASIK/Prima-Cairo-1.03.tar.gz UPLOAD_DATE 2016-03-20 INST_FILE (not installed)
On 2016-09-26 17:27:45, SREZIC wrote: Show quoted text
> On 2016-09-26 17:24:00, KARASIK wrote:
> > Hi Slaven, > > > > Thanks for the report, but, are you sure you have the right version? > > 1.04's XS file doesn't have the "monochrome" string anymore[1], the > > last time it was there was 1.03. The API change is related to Prima- > > 1.48 though, that's correct. > > > > Regards, > > Dmitry > > > > [1] http://cpansearch.perl.org/src/KARASIK/Prima-Cairo-1.04/Cairo.xs
> > Then this can be reduced to a PAUSE/CPAN indexing problem. For > example, if I go to https://metacpan.org/release/Prima-Cairo then 1.03 > is shown, not 1.04. > > Or in a CPAN.pm shell: > > cpan[1]> reload index > ... > cpan[2]> m Prima::Cairo > Module id = Prima::Cairo > CPAN_USERID KARASIK (Dmitry Karasik <dmitry@karasik.eu.org>) > CPAN_VERSION 1.03 > CPAN_FILE K/KA/KARASIK/Prima-Cairo-1.03.tar.gz > UPLOAD_DATE 2016-03-20 > INST_FILE (not installed)
Of course, I was inattentive and should have seen the discrepancy of the latest presented version in RT's select box and the version in the fail reports...
Indeed, looks like indexer problem. I think it will be easier if I re-release 1.05 (forgot to bump required Prima to 1.48 anyway) - my experience in getting support from CPAN was never positive. /dk
On 2016-09-26 18:16:04, KARASIK wrote: Show quoted text
> Indeed, looks like indexer problem. I think it will be easier if I re- > release 1.05 (forgot to bump required Prima to 1.48 anyway) - my > experience in getting support from CPAN was never positive.
PAUSE has a "Force Reindexing" tool --- maybe it would helped here (but you have to re-release anyway...)
Oh, thank you! Never used it. But it worked, please check now :) I guess we could close the ticket then? I'll release 1.05 when Prima 1.49 is ready, which should be today-tomorrow. /dk
On 2016-09-27 03:05:56, KARASIK wrote: Show quoted text
> Oh, thank you! Never used it. But it worked, please check now :) > > I guess we could close the ticket then? I'll release 1.05 when Prima > 1.49 is ready, which should be today-tomorrow. >
All well now. Closing ticket.