dev-util/gtk-doc: mkpdf: fix exitcode (bug 646850)
authorZac Medico <zmedico@gentoo.org>
Sun, 26 Aug 2018 06:35:20 +0000 (23:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 26 Aug 2018 06:55:59 +0000 (23:55 -0700)
Fix gtk-doc exitcode. The problem can be demonstrated by building
gtk-doc with dblatex installed, and then building evince with
EXTRA_ECONF="--enable-gtk-doc --enable-gtk-doc-pdf".

Bug: https://bugs.gentoo.org/646850
See: https://github.com/GNOME/gtk-doc/commit/1baf9a63bdf3283832be06bce151835922909436
Package-Manager: Portage-2.3.48, Repoman-2.3.10

dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild

index 155f1f6a02f9c33a04c29b8d891f50e8baa400af..f696a066e7f799e24e0a362d97b064acd2b87dc2 100644 (file)
@@ -50,6 +50,10 @@ src_prepare() {
        # Remove global Emacs keybindings, bug #184588
        eapply "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch
 
+       # Apply upstream commit 1baf9a6, bug #646850
+       sed -e '1,/exit 1/s/exit 1/exit $1/' \
+               -i gtkdoc-mkpdf.in || die
+
        gnome2_src_prepare
 }