From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1183632-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AAE101382C5 for <garchives@archives.gentoo.org>; Tue, 30 Jun 2020 13:10:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC200E092D; Tue, 30 Jun 2020 13:10:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A307FE092D for <gentoo-commits@lists.gentoo.org>; Tue, 30 Jun 2020 13:10:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4ADFD34F31F for <gentoo-commits@lists.gentoo.org>; Tue, 30 Jun 2020 13:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5424227F for <gentoo-commits@lists.gentoo.org>; Tue, 30 Jun 2020 13:10:07 +0000 (UTC) From: "Michael Orlitzky" <mjo@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" <mjo@gentoo.org> Message-ID: <1593522476.77e589717e3fe5788ef0030d5cc4a2517670cc9a.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/netsurf/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/netsurf/netsurf-3.10-r1.ebuild X-VCS-Directories: www-client/netsurf/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 77e589717e3fe5788ef0030d5cc4a2517670cc9a X-VCS-Branch: master Date: Tue, 30 Jun 2020 13:10:07 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bb1c0caf-63a8-4a50-af14-eab1f20eb18a X-Archives-Hash: 44fe86543d15c48b169f9e07f8f617b8 commit: 77e589717e3fe5788ef0030d5cc4a2517670cc9a Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Tue Jun 30 13:07:37 2020 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Tue Jun 30 13:07:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77e58971 www-client/netsurf: fix build with USE="fbcon svg -svgtiny". The build system for netsurf only does the pkg-config magic needed to find librsvg's headers when it's building the GTK targets (and not when it's building the framebuffer target). As a result, building the framebuffer target can fail if you have USE="svg -svgtiny" set. This commit disables librsvg while building and installing the framebuffer target. Thanks are due to ernsteiswuerfel for the extensive testing on bug 728994. Bug: https://bugs.gentoo.org/728994 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> www-client/netsurf/netsurf-3.10-r1.ebuild | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/www-client/netsurf/netsurf-3.10-r1.ebuild b/www-client/netsurf/netsurf-3.10-r1.ebuild index 1ac3219ccb8..62dea848e93 100644 --- a/www-client/netsurf/netsurf-3.10-r1.ebuild +++ b/www-client/netsurf/netsurf-3.10-r1.ebuild @@ -97,7 +97,15 @@ _emake() { } src_compile() { - use fbcon && _emake TARGET=framebuffer + # The build system only runs pkg-config to find librsvg's include + # dir for the gtk targets. So if you try to build the framebuffer + # target with NETSURF_USE_RSVG=YES, the build crashes on failing to + # find rsvg.h. To work around that, we set NETSURF_USE_RSVG=NO. It + # might be possible to fall back to svgtiny with USE="svg -svgtiny" + # if svgtiny works in a framebuffer, but then our (R)DEPEND would + # need some mangling to ensure that svgtiny is installed. + use fbcon && _emake NETSURF_USE_RSVG=NO TARGET=framebuffer + use gtk2 && _emake TARGET=gtk2 use gtk && _emake TARGET=gtk3 } @@ -111,19 +119,29 @@ src_install() { -i "${WORKDIR}"/*/utils/git-testament.pl || die if use fbcon ; then - _emake TARGET=framebuffer DESTDIR="${D}" install + # See earlier comments about rsvg.h. + _emake NETSURF_USE_RSVG=NO TARGET=framebuffer DESTDIR="${D}" install elog "framebuffer binary has been installed as netsurf-fb" - make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" + make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-fb \ + NetSurf-framebuffer \ + netsurf \ + "Network;WebBrowser" fi if use gtk2 ; then _emake TARGET=gtk2 DESTDIR="${D}" install elog "netsurf gtk2 version has been installed as netsurf-gtk2" - make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk2 NetSurf-gtk2 netsurf "Network;WebBrowser" + make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk2 \ + NetSurf-gtk2 \ + netsurf \ + "Network;WebBrowser" fi if use gtk ; then _emake TARGET=gtk3 DESTDIR="${D}" install elog "netsurf gtk3 version has been installed as netsurf-gtk3" - make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" + make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk3 \ + NetSurf-gtk3 \ + netsurf \ + "Network;WebBrowser" fi insinto /usr/share/pixmaps