From 85b9381262655b68fe5f48e0e586d383f9e52c97 Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Fri, 2 Jun 2023 21:20:21 +0300 Subject: app-emulation/virtualbox: fix building with dev-libs/libxml2-2.11 Replace some xhtml codes with their numeric equivalents and add empty fallbacks for missing files. Nothing changes in the resulting files. Closes: https://bugs.gentoo.org/906309 Signed-off-by: Viorel Munteanu --- .../files/virtualbox-6.1.44-fix-libxml2.patch | 25 ++++++++++++++++++++++ app-emulation/virtualbox/virtualbox-6.1.44.ebuild | 11 ++++++++++ 2 files changed, 36 insertions(+) create mode 100644 app-emulation/virtualbox/files/virtualbox-6.1.44-fix-libxml2.patch diff --git a/app-emulation/virtualbox/files/virtualbox-6.1.44-fix-libxml2.patch b/app-emulation/virtualbox/files/virtualbox-6.1.44-fix-libxml2.patch new file mode 100644 index 000000000000..c3e76e58c3f2 --- /dev/null +++ b/app-emulation/virtualbox/files/virtualbox-6.1.44-fix-libxml2.patch @@ -0,0 +1,25 @@ +With dev-libs/libxml2-2.11, xi:include errors out if it can't find a file, so add an empty fallback. +Used to work with dev-libs/libxml2-2.10. + +See also: https://bugs.gentoo.org/906309 + +--- a/doc/manual/en_US/user_Frontends.xml ++++ b/doc/manual/en_US/user_Frontends.xml +@@ -1205,6 +1205,6 @@ + + + +- ++ + + +--- b/doc/manual/en_US/user_VBoxManage.xml ++++ a/doc/manual/en_US/user_VBoxManage.xml +@@ -8975,6 +8975,6 @@ + + +- ++ + + diff --git a/app-emulation/virtualbox/virtualbox-6.1.44.ebuild b/app-emulation/virtualbox/virtualbox-6.1.44.ebuild index 84d1d998b3b0..b148184cbd9b 100644 --- a/app-emulation/virtualbox/virtualbox-6.1.44.ebuild +++ b/app-emulation/virtualbox/virtualbox-6.1.44.ebuild @@ -179,6 +179,9 @@ PATCHES=( # 865361 "${FILESDIR}"/${PN}-6.1.36-fcf-protection.patch + # 906309 + "${FILESDIR}"/${PN}-6.1.44-fix-libxml2.patch + # Downloaded patchset "${WORKDIR}"/virtualbox-patches-6.1.36/patches ) @@ -278,6 +281,14 @@ src_configure() { append-cxxflags $(test-flags-CXX -mno-$i) done + # replace xhtml names with numeric equivalents + find doc/manual -name \*.xml -exec sed -i \ + -e 's/ /\ /g' \ + -e 's/–/\–/g' \ + -e 's/←/\←/g' \ + -e 's/→/\→/g' \ + -e 's/↔/\↔/g' {} \+ || die + tc-export AR CC CXX LD RANLIB export HOST_CC="$(tc-getBUILD_CC)" -- cgit v1.2.3-65-gdbad