dev-libs/glib: fix build without dev-util/gtk-doc
authorMart Raudsepp <leio@gentoo.org>
Mon, 17 Dec 2018 16:29:03 +0000 (18:29 +0200)
committerMart Raudsepp <leio@gentoo.org>
Mon, 17 Dec 2018 16:29:28 +0000 (18:29 +0200)
Closes: https://bugs.gentoo.org/673336
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

dev-libs/glib/glib-2.58.1.ebuild

index 5d7bc1f6a95408ebdf0c4008aa0f122d3360461d..20eae2bd2ebbbdac4bdcd52fb0a452f456e4aa53 100644 (file)
@@ -128,6 +128,12 @@ src_prepare() {
        # gdbus-codegen is a separate package
        eapply "${FILESDIR}"/${PN}-2.54.3-external-gdbus-codegen.patch
 
+       # Tarball doesn't come with gtk-doc.make and we can't unconditionally depend on dev-util/gtk-doc due
+       # to circular deps during bootstramp. If actually not building gtk-doc, an empty file will do fine as
+       # well - this is also what upstream autogen.sh does if gtkdocize is not found. If gtk-doc is installed,
+       # eautoreconf will call gtkdocize, which overwrites the empty gtk-doc.make with a full copy.
+       touch gtk-doc.make
+
        gnome2_src_prepare
        epunt_cxx
 }