Topic: JsMin problem with php-pear-phing

Hello,

  I have problem with phing installed from remi repo:

[PHP Error] include_once(phing/tasks/ext/jsmin/JsMinTask.php): failed to open stream: No such file or directory [line 1065 of /usr/share/pear/phing/Phing.php]
[PHP Error] include_once(): Failed opening 'phing/tasks/ext/jsmin/JsMinTask.php' for inclusion (include_path='/usr/share/pear/../classes:.:/usr/share/pear:/usr/share/php') [line 1065 of /usr/share/pear/phing/Phing.php]

BUILD FAILED
exception 'ConfigurationException' with message 'Error importing phing/tasks/ext/jsmin/JsMinTask.php' in /usr/share/pear/phing/Phing.php:1073
Stack trace:
#0 /usr/share/pear/phing/Phing.php(1023): Phing::__import('phing/tasks/ext...', NULL)
#1 /usr/share/pear/phing/Project.php(563): Phing::import('phing.tasks.ext...', NULL)
#2 /usr/share/pear/phing/Project.php(154): Project->addTaskDefinition('jsmin', 'phing.tasks.ext...')
#3 /usr/share/pear/phing/Phing.php(523): Project->init()
#4 /usr/share/pear/phing/Phing.php(170): Phing->runBuild()
#5 /usr/share/pear/phing/Phing.php(270): Phing::start(Array, NULL)
#6 /usr/share/pear/phing.php(43): Phing::fire(Array)
#7 {main}

Total time: 0.1150 seconds

Error importing phing/tasks/ext/jsmin/JsMinTask.php


I find the reason - there is JsMinTask mentioned in:
/usr/share/pear-data/phing/tasks/defaults.properties

line:
jsmin=phing.tasks.ext.jsmin.JsMinTask

It's enough to comment/remove the jsmin line and everything is ok. However after phing upgrade I'll have the same problem if it'll not be fixed in rpm package:
$ rpm -qf /usr/share/pear-data/phing/tasks/defaults.properties
php-pear-phing-2.5.0-1.el6.remi.noarch

BTW the reason and also the solution is mentioned here:
https://bugzilla.redhat.com/show_bug.cgi?id=894748

Best regards,

Luf

Re: JsMin problem with php-pear-phing

Thanks for the reminder.

Please confirm that php-pear-phing-2.5.0-2 fixes the issue.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi