Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322271 - Pear channels should be handled by individual ebuilds instead of dev-php/pear
Summary: Pear channels should be handled by individual ebuilds instead of dev-php/pear
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 17:05 UTC by Ole Markus With (RETIRED)
Modified: 2011-03-14 22:58 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 Ole Markus With (RETIRED) gentoo-dev 2010-05-31 17:05:03 UTC
Currently all pear channels are added at the end of installing dev-php/pear. This causes problems when a pear package uses secondary channels. E.g if you want to create an ebuild for pdepend, you need to create your own revision of dev-lang/pear that adds the required channel pear.pdepend.org. 

A better solution would be to let ebuilds handle adding/updating channels, e.g through added functionality to the pear eclass.

Reproducible: Always

Steps to Reproduce:
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2010-06-12 09:31:32 UTC
http://git.overlays.gentoo.org/gitweb/?p=proj/php.git;a=commitdiff;h=9be2f0058bf63d9a9ed6630943178e759f9fc8ea

My take on solving the problem. I have no idea about conventions for eclass and whatnot, but it works
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-06-12 09:45:08 UTC
The only thing I see blocking this is that you're assuming the user will be online when he emerges stuff. Pear channel updates need connectivity, while you can provide the distfiles via other means (usb, disk, whatever). Not sure how many users actually run a partially disconnected gentoo box (you're still required to be online when installing PEAR-PEAR).

Maybe the GSoC projects of this year have already fixed that? Beandog?
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2010-06-13 00:04:24 UTC
I think it is infeasable to support the pear installer and offline installs at the same time. Pear simply doesn't support it and I think it would be way too much work to somehow add channels offline. The solution I propose is better than to keep rev bumping dev-lang/pear. Especially considering supporting pear-based packages in other overlays.
Comment 4 Ole Markus With (RETIRED) gentoo-dev 2010-06-18 12:22:01 UTC
Actually, pear channel-add adds a channel using a local channel.xml-file. So one solution to the channel problem is to have packages for channels. Then packages can simply depend on the channel package that they belong to. This should be fairly straightforward to support.
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2011-03-14 22:58:02 UTC
Since dev-php/pear basically does the same thing, I opted for the changes I did in the overlay.