Hi.
This folder is in the default php include_path.
We have already remove "doc" from this folder a few versions ago.
I think there still some stuff which need to be moved.
I have open a pull request on pear-core to be able to select path of all configurable folders with installer. https://github.com/pear/pear-core/pull/7
I would like to move (fedora 18)
* test_dir from /ussr/share/pear/test to /usr/share/tests/pear
* xmldir from /usr/share/pear/.pkgxml to /var/lib/pear/pkgxml
In the future (so not fedora 18) :
Will have to investigated if also moving data_dir may break existing packages.
Big work will be to move .channels, .depdb, .depdblock, .filemap, .lock, .registry as this will probably requires lot of code hacking in pear, but also a solution for update.
Of course this change will require a mass rebuild of all pear packages (at least, those installing test units)
Feedback ?
Regards, Remi.
Hi Remi -
On Mon, Aug 13, 2012 at 09:29:19AM +0200, Remi Collet wrote:
I would like to move (fedora 18)
test_dir from /ussr/share/pear/test to /usr/share/tests/pear
xmldir from /usr/share/pear/.pkgxml to /var/lib/pear/pkgxml
+1 here.
In the future (so not fedora 18) :
Will have to investigated if also moving data_dir may break existing packages.
Big work will be to move .channels, .depdb, .depdblock, .filemap, .lock, .registry as this will probably requires lot of code hacking in pear, but also a solution for update.
It would certainly be great to get all that the metadata stored separated from the actual code in the long run.
Regards, Joe
Le 13/08/2012 09:29, Remi Collet a écrit :
I would like to move (fedora 18)
test_dir from /ussr/share/pear/test to /usr/share/tests/pear
xmldir from /usr/share/pear/.pkgxml to /var/lib/pear/pkgxml
Done in Fedora 18.
1 small upgrade issue detected, test_dir is stored in /etc/pear.conf which is flag as %config(noreplace)
So, if a user have change any value, it will not be updated.
So I will check if adding a "pear config-set" in %post could properly fix this.
Will have to investigated if also moving data_dir may break existing packages.
Most packages use @data_dir@ in code which is replace by correct value at build time (so data_dir is hardcoded in installed files).
So, moving to (probably) /usr/share/pear-data should be trivial, only requiring another mass rebuild.
I will start working on this change, in rawhide, in a few days.
Regards, Remi.
P.S. any better value for /usr/share/pear-data is welcome.
Le 15/08/2012 09:01, Remi Collet a écrit :
Most packages use @data_dir@ in code which is replace by correct value at build time (so data_dir is hardcoded in installed files).
So, moving to (probably) /usr/share/pear-data should be trivial, only requiring another mass rebuild.
Done in rawhide (see devel ML)
Waiting for feedback, but I think it will be a good idea to have all this move (.pkgxml, test and data) in the same release instead of two.
Remi.
Le 20/08/2012 15:53, Remi Collet a écrit :
Le 15/08/2012 09:01, Remi Collet a écrit :
Most packages use @data_dir@ in code which is replace by correct value at build time (so data_dir is hardcoded in installed files).
So, moving to (probably) /usr/share/pear-data should be trivial, only requiring another mass rebuild.
Done in rawhide (see devel ML)
Waiting for feedback, but I think it will be a good idea to have all this move (.pkgxml, test and data) in the same release instead of two.
Done in fedora 18 too.
php-pear is in the buildroot override for a long time (I will push it to stable asap, to avoid any issue with build using another datadir)
Remi.
php-devel@lists.fedoraproject.org