commit:     516ae6944125152d8c832e1d63fdc7b1fbd47967
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat Jul 12 17:45:50 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 13 06:48:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516ae694

media-video/dvdauthor: handle libxml2-2.14 breakage

Closes: https://bugs.gentoo.org/955781
Thanks-To: ak <4nykey <AT> gmail.com>
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42974
Closes: https://github.com/gentoo/gentoo/pull/42974
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-video/dvdauthor/dvdauthor-0.7.2-r4.ebuild    |  1 +
 .../files/dvdauthor-0.7.2-libxml2-pkgconfig.patch  | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/media-video/dvdauthor/dvdauthor-0.7.2-r4.ebuild 
b/media-video/dvdauthor/dvdauthor-0.7.2-r4.ebuild
index be5d451718ca..df5f8c4bf72a 100644
--- a/media-video/dvdauthor/dvdauthor-0.7.2-r4.ebuild
+++ b/media-video/dvdauthor/dvdauthor-0.7.2-r4.ebuild
@@ -29,6 +29,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${P}-freetype-pkgconfig.patch
+       "${FILESDIR}"/${P}-libxml2-pkgconfig.patch
 )
 
 src_prepare() {

diff --git 
a/media-video/dvdauthor/files/dvdauthor-0.7.2-libxml2-pkgconfig.patch 
b/media-video/dvdauthor/files/dvdauthor-0.7.2-libxml2-pkgconfig.patch
new file mode 100644
index 000000000000..c492454f048c
--- /dev/null
+++ b/media-video/dvdauthor/files/dvdauthor-0.7.2-libxml2-pkgconfig.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/955781
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -135,10 +133,9 @@ dnl AM_LANGINFO_CODESET
+ 
+ AM_ICONV
+ 
+-ifdef([AM_PATH_XML2],
+-    [AM_PATH_XML2(2.6.0, , AC_MSG_ERROR([You must have libxml2 >= 2.6.0 
installed]))],
+-    [errprint([You must have libxml2 (>= 2.6.0) installed
+-])m4_exit(1)AC_MSG_ERROR([You must have libxml2 (>= 2.6.0) installed])])
++PKG_CHECK_MODULES(XML, [libxml-2.0])
++AC_SUBST(XML_CFLAGS)
++AC_SUBST(XML_LIBS)
+ 
+ AC_CHECK_DECLS(O_BINARY, , , [ #include <fcntl.h> ] )
+ 
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -8,7 +8,7 @@ endif
+ nodist_bin_SCRIPTS = dvddirdel
+ 
+ AM_CPPFLAGS = -DSYSCONFDIR="\"$(sysconfdir)\"" \
+-    @XML_CPPFLAGS@ @MAGICK_CPPFLAGS@ @FREETYPE_CPPFLAGS@ @FRIBIDI_CFLAGS@ 
@FONTCONFIG_CFLAGS@
++    @XML_CFLAGS@ @MAGICK_CPPFLAGS@ @FREETYPE_CPPFLAGS@ @FRIBIDI_CFLAGS@ 
@FONTCONFIG_CFLAGS@
+ AM_CFLAGS = -Wall
+ 
+ dvdauthor_SOURCES = dvdauthor.c common.h dvdauthor.h da-internal.h \

Reply via email to