Bug 279965

Summary: graphics/cegui: Fails to build with libxml2 2.13.1 and libxslt 1.1.41
Product: Ports & Packages Reporter: Daniel Engberg <diizzy>
Component: Individual Port(s)Assignee: Oliver Lehmann <oliver>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (oliver)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 279705    

Description Daniel Engberg freebsd_committer freebsd_triage 2024-06-24 18:33:41 UTC
Deps appears to require PR 279741 while port fails with libxml2

https://pdr2.bofh.network/data/140-diizzy/libxml2-libxslt-run2/logs/errors/cegui-0.8.7_19.log
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-06-29 07:27:07 UTC
In this case the best course of action seems to be to track master branch given that it seems like upstream stopped doing releases?

https://github.com/cegui/cegui
Comment 2 Oliver Lehmann freebsd_committer freebsd_triage 2024-06-29 21:50:30 UTC
should be easily fixable by replacing

        xmlError* err = xmlGetLastError();

with

        const xmlError *err = xmlGetLastError();

in cegui/src/XMLParserModules/Libxml2/XMLParser.cpp

What is the easiest way to reproduce the error? Just apply PR 279705 and start the build process?
Comment 3 Oliver Lehmann freebsd_committer freebsd_triage 2024-06-29 21:54:03 UTC
Looks like someone else came up with the same solution already :)

https://github.com/void-linux/void-packages/blob/master/srcpkgs/cegui/patches/fix-libxml2-2.12.patch
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-06-29 23:10:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66ae4f88bcf7ffc77c623d3805567c8e3bc1b69a

commit 66ae4f88bcf7ffc77c623d3805567c8e3bc1b69a
Author:     Oliver Lehmann <oliver@FreeBSD.org>
AuthorDate: 2024-06-29 23:06:57 +0000
Commit:     Oliver Lehmann <oliver@FreeBSD.org>
CommitDate: 2024-06-29 23:08:58 +0000

    graphics/cegui: add patch to fix upcomming libxml2 update

    PR:     279965

 graphics/cegui/files/patch-cegui__src__CMakeLists.txt      |  4 ++--
 ...-cegui_src_XMLParserModules_Libxml2_XMLParser.cpp (new) | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)