Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291286 - =dev-php/PEAR-Text_CAPTCHA-0.4.0 stable request
Summary: =dev-php/PEAR-Text_CAPTCHA-0.4.0 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2009-10-31 12:24 UTC by Fernando Usero
Modified: 2010-08-12 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Usero 2009-10-31 12:24:40 UTC
this package has been working here for almost a year without problems

Reproducible: Always

Steps to Reproduce:
Comment 1 Fernando Usero 2009-11-07 18:08:52 UTC
any chance to mark rhis stable?
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-04-14 23:57:29 UTC
Sorry for the long response time :/

I'm a bit uncomfortable with marking a package "stable" that upstream still declares in its "alpha" stages.

However, there's been a 0.4.0 release and I will probably ask arches to stable that one, after it has been 30 days in the tree. Leaving this open until then.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-08-02 18:19:42 UTC
Hi arch teams,
as per user-request, please stable 
=dev-php/PEAR-Text_CAPTCHA-0.4.0
=dev-php/PEAR-Image_Text-0.6.0_beta
=dev-php/PEAR-Text_Figlet-1.0.1

No open bugs, no issues I can think of. You can try the examples /usr/share/php/docs/Text_CAPTCHA/examples/ to see if the package really works.

Thanks!
Comment 4 Andreas Schürch gentoo-dev 2010-08-03 12:16:26 UTC
At least my x86 testbox seem to miss some dep i suppose!?

While running the mentioned php-testfiles i just get:
Error loading Text_Figlet fontError generating CAPTCHA!
or 
Error generating CAPTCHA: Error initializing Image_Text (Fontfile not found or not readable.)!
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-08-04 12:23:05 UTC
Um, yeah. I just read up on it in the source - you need to copy /usr/share/fonts/corefonts/cour.ttf as COUR.TTF into your web server directory (where you keep the example files). Also make sure that your webserver user can write to the dir (it stores a temp image there).
Seems this is a limitation of PEAR-Image_Text.
Comment 6 Andreas Schürch gentoo-dev 2010-08-04 14:07:59 UTC
Ok, i've got a step further now, thanks to your instructions! :-)
It works very well, but php needs to be built with gd and truetype!
otherwise i get this:
Fatal error: Call to undefined function imagettfbbox() 

Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-08-04 15:16:45 UTC
Did you USE="minimal"? PEAR-Image_Text requests a gd-enabled php, and it's a dependency (and actually what is used here to generate the captcha image) if you USE="-minimal". Now that sounds confusing.

Bottom line: php should be already built with gd by the time you get to emerge this.

Can you say what you did to produce this setup?
Comment 8 Andreas Schürch gentoo-dev 2010-08-05 05:06:47 UTC
(In reply to comment #7)
> Can you say what you did to produce this setup?
> 
This is my archtesting box, so i have quite a bunch of packages on it, but "minimal" isn't in my main uses... Of course i compiled quite much with "minimal" (to test it actually ;-), but afterwards the version that stays installed, does not have it....

GD was activated, but i didn't had truetype in php! ;-) 
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2010-08-10 11:17:14 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Can you say what you did to produce this setup?
> > 
> GD was activated, but i didn't had truetype in php! ;-) 

 What is the testing status now?
Comment 10 Andreas Schürch gentoo-dev 2010-08-10 12:45:24 UTC
(In reply to comment #9)
>  What is the testing status now?

I personally would add a dependency on php+truetype. 
Apart from that it is ready to go.  
Comment 11 Matti Bickel (RETIRED) gentoo-dev 2010-08-10 13:00:57 UTC
Sorry for slacking on this one, I added truetype and gd as proper USE-deps on php. Turns out, I did it long before but forgot to commit that.

If the EAPI bump is not a turn-off for you, just go on.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2010-08-10 13:27:32 UTC
x86 stable, thanks Andreas.
Comment 13 Markus Meier gentoo-dev 2010-08-12 08:50:07 UTC
amd64 stable, all arches done.