Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926109 - media-gfx/inkscape-1.3.2 needs a patch to compile with libxml2
Summary: media-gfx/inkscape-1.3.2 needs a patch to compile with libxml2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-03 18:12 UTC by Helmut Jarausch
Modified: 2024-03-05 16:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2024-03-03 18:12:54 UTC
libxml2 doesn't contain a definition of xmlFRee anymore

/var/tmp/portage/media-gfx/inkscape-1.3.2/work/inkscape-1.3.2/src/object/uri.cpp:86:9: error: 'xmlFree' was not declared in this scope; did you mean 'xmlFreeURI'?

To fix this
change src_prepare in the ebuild to contain

src_prepare() {
	cmake_src_prepare
	sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die
	sed -i '\#include <libxml/uri.h>#a \
#include <libxml/xmlmemory.h>' src/object/uri.h || die
}


Reference: 
https://gitlab.com/inkscape/inkscape/-/commit/694d8ae43d06efff21adebf377ce614d660b24cd
Comment 1 Andreas Sturmlechner gentoo-dev 2024-03-03 18:13:54 UTC
emerge -vp libxml2
Comment 2 Andreas Sturmlechner gentoo-dev 2024-03-03 18:15:09 UTC
I mean, that's really weird since bug 923247 exists and is fixed.
Comment 3 Andreas Sturmlechner gentoo-dev 2024-03-03 18:17:55 UTC
Did you file a random bug based on an upstream commit without hitting the error yourself nor searching for existing bugs?