[arch-commits] Commit in lib32-librsvg/trunk (PKGBUILD lto.diff)
Jan Steffens
heftig at archlinux.org
Sun Mar 8 03:35:29 UTC 2020
Date: Sunday, March 8, 2020 @ 03:35:29
Author: heftig
Revision: 591453
2.48.0-1
Added:
lib32-librsvg/trunk/lto.diff
Modified:
lib32-librsvg/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++++++--------
lto.diff | 10 ++++++++++
2 files changed, 25 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-08 00:15:05 UTC (rev 591452)
+++ PKGBUILD 2020-03-08 03:35:29 UTC (rev 591453)
@@ -1,20 +1,24 @@
# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
# Contributor: jtts <jussaar at mbnet.fi>
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=lib32-librsvg
-pkgver=2.46.4
+pkgver=2.48.0
pkgrel=1
pkgdesc="SVG rendering library (32-bit)"
url="https://wiki.gnome.org/Projects/LibRsvg"
arch=(x86_64)
license=(LGPL)
-depends=(lib32-gdk-pixbuf2 lib32-pango lib32-libcroco librsvg)
+depends=(lib32-gdk-pixbuf2 lib32-pango lib32-libxml2 librsvg)
makedepends=(gobject-introspection gtk-doc git rust lib32-rust-libs)
-_commit=c7c2c6c280dec08d4dc804379d0fe389e28fbeb3 # tags/2.46.4^0
+checkdepends=(ttf-dejavu)
+provides=(librsvg-${pkgver%%.*}.so)
+_commit=cc3b2fb0672052721e761ca9dd1c8ab6821cbdf9 # tags/2.48.0^0
source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit"
- multilib.diff)
+ lto.diff multilib.diff)
sha256sums=('SKIP'
+ '3cc8ad1af515b2cb4071f0647319c1cf3280dc054875634239061800af1616b6'
'c32283a724e8d1a87ad64330ee72781396b6f439dcae0f56da074e9a988ec544')
pkgver() {
@@ -25,8 +29,11 @@
prepare() {
cd librsvg
+ # Turn LTO back on
+ git apply -3 ../lto.diff
+
# Hack to cross-compile rust only
- patch -Np1 -i ../multilib.diff
+ git apply -3 ../multilib.diff
NOCONFIGURE=1 ./autogen.sh
}
@@ -38,7 +45,8 @@
export RUST_TARGET=i686-unknown-linux-gnu
cd librsvg
- ./configure --prefix=/usr --disable-static --disable-vala --disable-gtk-doc --disable-introspection --libdir=/usr/lib32
+ ./configure --prefix=/usr --disable-static --disable-vala \
+ --disable-gtk-doc --disable-introspection --libdir=/usr/lib32
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make
}
@@ -46,8 +54,7 @@
check() {
cd librsvg
# Reftests are probably broken
- # e.g. 91-nonzero-translation-ref.png's background is only 95% transparent,
- # while 91-nonzero-translation-out.png is 100% transparent
+ # some reference images were created without the requested fonts
make check || :
}
Added: lto.diff
===================================================================
--- lto.diff (rev 0)
+++ lto.diff 2020-03-08 03:35:29 UTC (rev 591453)
@@ -0,0 +1,10 @@
+diff --git i/Cargo.toml w/Cargo.toml
+index 818fa620..c776b113 100644
+--- i/Cargo.toml
++++ w/Cargo.toml
+@@ -8,3 +8,5 @@ members = [
+
+ [profile.release]
+ debug = true
++lto = "fat"
++codegen-units = 1
More information about the arch-commits
mailing list