pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/librsvg



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Sep 24 05:47:00 UTC 2021

Modified Files:
        pkgsrc/graphics/librsvg: Makefile

Log Message:
librsvg: apply band-aid for build breakage with rust-1.54.0 on aarch64

Tested on NetBSD/aarch64 and macOS/aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 pkgsrc/graphics/librsvg/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/librsvg/Makefile
diff -u pkgsrc/graphics/librsvg/Makefile:1.133 pkgsrc/graphics/librsvg/Makefile:1.134
--- pkgsrc/graphics/librsvg/Makefile:1.133      Fri Aug 20 02:54:51 2021
+++ pkgsrc/graphics/librsvg/Makefile    Fri Sep 24 05:47:00 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2021/08/20 02:54:51 gutteridge Exp $
+# $NetBSD: Makefile,v 1.134 2021/09/24 05:47:00 tnn Exp $
 
 DISTNAME=      librsvg-2.50.7
 CATEGORIES=    graphics gnome
@@ -26,6 +26,20 @@ TEST_TARGET=         check
 
 .include "cargo-depends.mk"
 
+.include "../../mk/bsd.prefs.mk"
+
+# librsvg broken with rustc-1.54.0. Temp fix for pkgsrc freeze.
+.if \
+  !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64)   || \
+  !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+RUSTFLAGS+=    -C target-feature=-lse
+PKG_LIBTOOL=   ${WRKDIR}/libtool
+pre-configure:
+       sed 's,$$AR t "$$f_ex_an_ar_oldlib",& | grep -v lse.o,' \
+         < ${PREFIX}/bin/libtool > ${WRKDIR}/libtool
+       chmod +x ${WRKDIR}/libtool
+.endif
+
 BUILDLINK_DEPMETHOD.gobject-introspection+=    build
 .include "../../devel/gobject-introspection/buildlink3.mk"
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.50.0



Home | Main Index | Thread Index | Old Index