Revert "librsvg: bump to version 2.42.5"
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 16 Jul 2018 11:12:14 +0000 (13:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 16 Jul 2018 11:12:14 +0000 (13:12 +0200)
This reverts commit 1ec1f865515223426518e0709d4ca8b57dded6fc, which
causes numerous build failures due to Rust handling problems. See the
thread at
http://lists.busybox.net/pipermail/buildroot/2018-June/223642.html for
details.

Fixes (or rather avoids):

  http://autobuild.buildroot.net/results/26102d0ec258d5ef3af36ac32371fba1c996965b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/efl/Config.in
package/enlightenment/Config.in
package/gstreamer/gst-plugins-bad/Config.in
package/gstreamer1/gst1-plugins-bad/Config.in
package/librsvg/0001-Add-RUST_TARGET-variable.patch [deleted file]
package/librsvg/Config.in
package/librsvg/librsvg.hash
package/librsvg/librsvg.mk

index b9b285d8da1df064f4b480099ee2ab6a6340b7cd..cfb803c6df2d7ea5acbcd4a38708e65be683ad15 100644 (file)
@@ -289,7 +289,6 @@ config BR2_PACKAGE_EFL_LIBRAW
 
 config BR2_PACKAGE_EFL_SVG
        bool "SVG loader"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # librsvg
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # librsvg -> pango -> harfbuzz
        select BR2_PACKAGE_LIBRSVG
        select BR2_PACKAGE_CAIRO
index 892da79b4d1cdf075b3267985958a9f26e55d178..d1dee25f862b6e0736daedb16f6e5bd953ae669e 100644 (file)
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_ENLIGHTENMENT
        bool "enlightenment"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # efl svg -> librsvg
        # libevas-generic-loaders-svg -> librsvg -> glib2 / pango
        depends on BR2_USE_WCHAR
        depends on BR2_INSTALL_LIBSTDCPP
@@ -30,7 +29,6 @@ config BR2_PACKAGE_ENLIGHTENMENT
          http://www.enlightenment.org/
 
 comment "enlightenment needs udev /dev management and a toolchain w/ wchar, C++, threads"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
        depends on BR2_PACKAGE_EFL && BR2_PACKAGE_XORG7 && BR2_USE_MMU
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
                !BR2_PACKAGE_HAS_UDEV
index 3f2392afdbe9bef7e454ace887d4c16e3a73f524..7bbd56a602ab91f5b338fe8fc3cb28d6dae91dc4 100644 (file)
@@ -297,13 +297,11 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_OPUS
 
 config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_RSVG
        bool "rsvg"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # librsvg
        depends on BR2_INSTALL_LIBSTDCPP # librsvg -> pango
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # librsvg -> pango -> harfbuzz
        select BR2_PACKAGE_LIBRSVG
 
 comment "rsvg plugin needs a toolchain w/ C++"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
        depends on !BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
 
index 3ce6daf544a53363d36bf8ff9518a407c731e765..a2ceeb90350a90fa23e18d77c7cb27219469d9c2 100644 (file)
@@ -510,7 +510,6 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPUS
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RSVG
        bool "rsvg"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # librsvg
        depends on BR2_INSTALL_LIBSTDCPP # librsvg -> pango
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # librsvg -> pango -> harfbuzz
        select BR2_PACKAGE_LIBRSVG
@@ -518,7 +517,6 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RSVG
          RSVG plugin library
 
 comment "rsvg plugin needs a toolchain w/ C++"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
        depends on !BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
 
diff --git a/package/librsvg/0001-Add-RUST_TARGET-variable.patch b/package/librsvg/0001-Add-RUST_TARGET-variable.patch
deleted file mode 100644 (file)
index 2807c24..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-From 2bef718d1ade8dd20f431ac2eef9fdf58d96842f Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Fri, 1 Jun 2018 20:58:25 +0200
-Subject: [PATCH] Add RUST_TARGET variable
-
-Add RUST_TARGET environment variable through AC_ARG_VAR to allow the
-user to override the rust target name. Indeed, using $host when
-cross-compiling is not always the good option especially when vendor
-part of target is not set to unknown but to another value such as
-buildroot.
-Indeed, in this case aarch64-buildroot-linux-gnu won't be recognised as
-a valid target by rust/cargo.
-
-[Upstream status: merged (https://github.com/GNOME/librsvg/commit/f0b76ab6f003b8e05d4caab2b6d844e97b97796f)]
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
----
- Makefile.am  | 2 +-
- configure.ac | 7 ++++++-
- 2 files changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index f21b58e2..0b5b906f 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -136,7 +136,7 @@ CARGO_RELEASE_ARGS=--release
- endif
- if CROSS_COMPILING
--CARGO_TARGET_ARGS=--target=$(host)
-+CARGO_TARGET_ARGS=--target=$(RUST_TARGET)
- endif
- CARGO_VERBOSE = $(cargo_verbose_$(V))
-diff --git a/configure.ac b/configure.ac
-index c9666757..50ca9f0f 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -286,9 +286,14 @@ else
- fi
- AM_CONDITIONAL([DEBUG_RELEASE], [test "x$debug_release" = "xyes"])
-+AC_ARG_VAR(RUST_TARGET, [Set rust target (default=$host)])
-+if test "x$RUST_TARGET" == x; then
-+      RUST_TARGET=$host
-+fi
-+
- AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
- if test "x$cross_compiling" = "xyes" ; then
--      RUST_TARGET_SUBDIR="$host/$RUST_TARGET_SUBDIR"
-+      RUST_TARGET_SUBDIR="$RUST_TARGET/$RUST_TARGET_SUBDIR"
- fi
- AC_SUBST([RUST_TARGET_SUBDIR])
--- 
-2.14.1
-
index 45919c7d51b5ac75b5b5b3788f708c74051295f7..ffb0287dbdd8243acad1342b8e66f88bc7fadfb1 100644 (file)
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LIBRSVG
        bool "librsvg"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
        depends on BR2_USE_WCHAR # glib2
        depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
        depends on BR2_USE_MMU # glib2
@@ -9,7 +8,6 @@ config BR2_PACKAGE_LIBRSVG
        select BR2_PACKAGE_CAIRO
        select BR2_PACKAGE_CAIRO_PNG
        select BR2_PACKAGE_GDK_PIXBUF
-       select BR2_PACKAGE_HOST_CARGO
        select BR2_PACKAGE_LIBCROCO
        select BR2_PACKAGE_LIBGLIB2
        select BR2_PACKAGE_LIBXML2
@@ -21,7 +19,6 @@ config BR2_PACKAGE_LIBRSVG
          https://wiki.gnome.org/Projects/LibRsvg
 
 comment "librsvg needs a toolchain w/ wchar, threads, C++"
-       depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
        depends on BR2_USE_MMU
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
index dce918d0ce212c44631b0c43e57c0fbb4835b0e4..6f4b07423a28ace81d9a0d104123ae7d300f067d 100644 (file)
@@ -1,5 +1,2 @@
-# From http://ftp.gnome.org/pub/gnome/sources/librsvg/2.42/librsvg-2.42.5.sha256sum
-sha256 d4dd51a492a2022c07dec385e22947190fe70410928c471934ff3399f20935ec        librsvg-2.42.5.tar.xz
-
-# Hash for license file:
-sha256 d7bf9d064ac3e5840f9dd02422b7eeec4f1fd03f37fadbd043602be5e882304f        COPYING.LIB
+# From http://ftp.gnome.org/pub/gnome/sources/librsvg/2.40/librsvg-2.40.20.sha256sum
+sha256 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b        librsvg-2.40.20.tar.xz
index 037e1fbc14acdf1abe9b23c26a3db8402e3e9689..4f563ce6dbe75f794ce85cd9d7446e3bf1e3794e 100644 (file)
@@ -4,22 +4,18 @@
 #
 ################################################################################
 
-LIBRSVG_VERSION_MAJOR = 2.42
-LIBRSVG_VERSION = $(LIBRSVG_VERSION_MAJOR).5
+LIBRSVG_VERSION_MAJOR = 2.40
+LIBRSVG_VERSION = $(LIBRSVG_VERSION_MAJOR).20
 LIBRSVG_SITE = http://ftp.gnome.org/pub/gnome/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)
 LIBRSVG_SOURCE = librsvg-$(LIBRSVG_VERSION).tar.xz
 LIBRSVG_INSTALL_STAGING = YES
 LIBRSVG_CONF_OPTS = --disable-pixbuf-loader --disable-tools --enable-introspection=no
 HOST_LIBRSVG_CONF_OPTS = --enable-introspection=no
-LIBRSVG_DEPENDENCIES = cairo host-cargo host-gdk-pixbuf gdk-pixbuf libcroco libglib2 libxml2 pango \
+LIBRSVG_DEPENDENCIES = cairo host-gdk-pixbuf gdk-pixbuf libcroco libglib2 libxml2 pango \
        $(if $(BR2_PACKAGE_LIBGTK3),libgtk3)
-HOST_LIBRSVG_DEPENDENCIES = host-cairo host-cargo host-gdk-pixbuf host-libcroco host-libglib2 host-libxml2 host-pango
+HOST_LIBRSVG_DEPENDENCIES = host-cairo host-gdk-pixbuf host-libcroco host-libglib2 host-libxml2 host-pango
 LIBRSVG_LICENSE = LGPL-2.0+
 LIBRSVG_LICENSE_FILES = COPYING.LIB
 
-# We're patching configure.ac
-LIBRSVG_AUTORECONF = YES
-LIBRSVG_CONF_ENV = RUST_TARGET=$(RUSTC_TARGET_NAME)
-
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))