commit:     f089c65c66018d722857a2f1aacc6dd8b02d9d44
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  2 08:24:55 2020 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Aug  2 08:26:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f089c65c

x11-themes/adwaita-icon-theme: add warning when building against old librsvg

Building with old non-rust librsvg will result in broken symbolic PNG files
being generated at buildtime, and many broken scalable icons at runtime.
However hard requiring a newer librsvg would enter a big de-keywording
cascade for architectures without rust - so warn instead for now and prefer
broken-looking icons instead of losing it completely for these architectures,
at least for the time being.

Bug: https://bugs.gentoo.org/734602
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 x11-themes/adwaita-icon-theme/adwaita-icon-theme-3.36.1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/x11-themes/adwaita-icon-theme/adwaita-icon-theme-3.36.1.ebuild 
b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-3.36.1.ebuild
index e203c8b5257..8628545b95a 100644
--- a/x11-themes/adwaita-icon-theme/adwaita-icon-theme-3.36.1.ebuild
+++ b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-3.36.1.ebuild
@@ -51,5 +51,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # less than 2.45 being a problem is just a guess, but we didn't carry 
anything between 2.40 and 2.48 in main tree
+       if has_version '<gnome-base/librsvg-2.45:2'; then
+               ewarn "You are building ${CATEGORY}/${PN} against an older"
+               ewarn "gnome-base/librsvg, which will result in various broken 
symbolic icons until"
+               ewarn "rebuild with newer librsvg, and misrendering of scalable 
icons at runtime"
+               ewarn "until gnome-base/librsvg is upgraded!"
+       fi
+
        gnome2_src_configure GTK_UPDATE_ICON_CACHE=$(type -P true)
 }

Reply via email to