Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325163 - dev-php5/pecl-ncurses (new ebuild)
Summary: dev-php5/pecl-ncurses (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://pecl.php.net/package/ncurses
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 05:27 UTC by Brandon Holbrook
Modified: 2012-01-22 00:10 UTC (History)
2 users (show)

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


Attachments
pecl-ncurses ebuild candidate (pecl-ncurses-1.0.1.ebuild,530 bytes, text/plain)
2010-06-23 05:28 UTC, Brandon Holbrook
Details
minor changes (pecl-ncurses-1.0.1.ebuild,419 bytes, text/plain)
2010-06-23 05:31 UTC, Brandon Holbrook
Details
New proposed ebuild (pecl-ncurses-1.0.1.ebuild,534 bytes, text/plain)
2012-01-21 23:30 UTC, Mike Thompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Holbrook 2010-06-23 05:27:12 UTC
As of php-5.3.0, the ncurses extension is no longer bundled in.  Instead, it has been moved out to a PECL package, which is not part of the current portage tree.  This ebuild is a candidate for a new "dev-php5/pecl-ncurses" package.

I'm not sure if this ebuild should check for ( >=php-5.3 and/or <php-5.3[-ncurses])...

This ebuild has only been tested on amd64 against dev-lang/php-5.3.2
Comment 1 Brandon Holbrook 2010-06-23 05:28:04 UTC
Created attachment 236307 [details]
pecl-ncurses ebuild candidate
Comment 2 Brandon Holbrook 2010-06-23 05:31:44 UTC
Created attachment 236309 [details]
minor changes

Fixed some typos, and removed the $Header macro that pointed to pecl-fileinfo
Comment 3 Johan Bergström 2010-06-23 20:30:41 UTC
Changing owner and CC:ing php herd since this probably should end up there if it goes in.
Comment 4 Ole Markus With (RETIRED) gentoo-dev 2010-06-24 08:10:08 UTC
Thanks for the ebuild! Added to the php overlay for now. 

I opted for php-5.3 only.
I also thought about re-adding the ncurses USE flag to php, but then thought better of it. People using this extension are probably aware of it moving to pecl.
Comment 5 Mike Thompson 2012-01-21 22:01:42 UTC
WOW!  Talk about being thrown to the wolves!

Somehow I wasn't aware that ncurses support was going to be taken from PHP at 5.3; the old documentation package (which is still the most recent in Portage) says it won't be removed until 6.0.  I didn't know it would happen so soon.  In any event my ncurses-using script broke in my PHP 5.3 installation.

The downward spiral gets worse and worse.  The USE flag is gone (I hadn't noticed) and there is no pecl-ncurses package in Portage.  I emerged layman and looked hopefully to the PHP overlay only to see that dev-php5/pecl-ncurses is not there either.

So now I dug through documentation (not all in once place) to find out how to make my own overlay and plunk down the ebuild that Brandon posted here (attachment 236309 [details]).  I see that I needed to apply some glue in the form of

ebuild pecl-ncurses-1.0.0.ebuild manifest

but this gives me the error message

need_php_by_category: command not found

Now I'm really in the dark.

This is really vexing.  While it is true that the PHP ncurses extension is marked as experimental, the ncurses USE flag was indeed a stable feature of PHP 5.2, linking as it did to a super-stable mainline library that gets tons of use.  I really think the ncurses USE flag should come back--after all, it's very common for Gentoo packages to pick up other dependencies as a function of the USE flags.  This would also cut down on the size of the world file.

Where can I go from here, though?  Can I fix this ebuild easily enough (I've never written one, after all), or should I just go ahead and apply the configure-and-make approach and apply this code outside of package management?
Comment 6 Mike Thompson 2012-01-21 23:30:49 UTC
Created attachment 299469 [details]
New proposed ebuild

I feel so proud.  I modified that ebuild using another PECL ebuild as a guide, dug through the eclasses to figure out how to use phpize to get a configure script where I could see what the configure options are.  This time I was successful in getting a manifest and got the package to emerge.  I'll have to get back with you about how well it works.

So, better than telling me what I got wrong about the ebuild--I'm sure there's plenty--please try to get the package ready for release.
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2012-01-22 00:10:11 UTC
(In reply to comment #6)
> Created attachment 299469 [details]
> New proposed ebuild

Aw, I'm sorry. When we decided to take the overlay down I wasn't thinking there might be someone still relying on anything there.

I added dev-php/pecl-ncurses to the tree, have fun and thanks for taking the time to report this. I'll have the arch teams take a look if they wany yo keyword it, too (at the moment it's only available for ~amd64).