How to downgrade libxml2

Horst B Simon horst.simon2 at icloud.com
Sat Mar 29 21:46:40 UTC 2025



> On 29 Mar 2025, at 22:53, Ryan Carsten Schmidt <ryandesign at macports.org> wrote:
> 
> On Mar 28, 2025, at 21:11, Horst B Simon wrote:
> 
>> The error I am getting when running: /opt/local/bin/php74 -d detect_unicode=0 go-pear.phar is:nstalling phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.5.tar...
>> 
>> parsePackageName(): array $param must contain a valid package name in "phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.16.tar"
>> Invalid tag order in <dependencies>, found <_content> expected one of "group"
>> Parsing of package.xml from file "/private/tmp/pear/install/pearXuHHr9/package.xml” failed
>> 
>> If I read correct is was fixed in PHP8.2 onwards in Fix GH-14834 <https://github.com/php/php-src/issues/14834>: Error installing PHP when --with-pear is used.
>> 
>> Maybe if I patch php74 the same way it might work.
> 
> That failure is new to me. Please file a ticket in the issue tracker so I won't forget to backport that patch. 

I got it working by only patching php74 as indicated in the Fix GH-14834. I didn’t need to modify php74-libxml. Since tickets https://github.com/BjarneDMat/macports-ports/commit/3140324  and https://github.com/BjarneDMat/macports-ports/commit/6892c52 are created for this problem, I didn’t create a new ticket.

Horst Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250330/7d1a1ccb/attachment.htm>


More information about the macports-users mailing list