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.