From patchwork Sun May 6 06:18:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 135082 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1866704lji; Sat, 5 May 2018 23:18:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQ91dHiIjjuHcq1u6j/MOvOBEU0GvD3Jb8XpBvwTPhlY4wdMtnLiAbdcRVAPc8wsqOLgSB X-Received: by 2002:a17:902:3303:: with SMTP id a3-v6mr18730316plc.209.1525587538504; Sat, 05 May 2018 23:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525587538; cv=none; d=google.com; s=arc-20160816; b=c0ePlXG0dr5Wb95AgOPCHchadWkiQkq17Tde9poDvfVVkAa45ndcQm8KFNHcMEtf8B ohYtrmMwAZh5CT1PCazzXgu+NwB5ZDngnfBN5ouSwT1UIKmieccnmQfNs8bVM4uKX4gH XgM8UZeTk/jZEpHfE122JNsVDRKGorttEaaoZ91UTuDmBu+GUvTJNv5rWgjwalQL+OLZ +RYGjSKXHM1iWXBqjj6OvrftvWnpqGgbLP2lMXN7o/BQHWBSaSIZaYVEof1Inlbdy4HH os6MMOEWG2CHEdDB0Nw6+GVcRA+zIcn+1ZN4CLB7mQLEos309snMFAKnbMCzn+wiq+UP 9DCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=PVWjNa9YdPh1Ywqs6f9Tve4gGqSETtBtRTVkQJhF1fw=; b=mhgU6MPySOfgFTyHP5QwjVxhZNH3pJ2fTY+z9sU1lajOSHW4lQfWBvhb1j5813YHcX Z0xl2n04UwpWatnYq/UwZ3v5WELm1UmXgyRyZRQqGH9mf9+/DmT3bbQqLAxc/JS8k7v8 tdma1biR+86tO3FGeu3RqyPT+iVwZyXHzBaxlxO2l8Rt8+WAjVfe/ad0QaDbTdyuVBen YegqTOgov4Y0sOSsVMDzLVIL/QfwwX18bJbOz92mMTeB63b9zPdoCJSbtKgWJKnsdZmt SbV+oMTdSgW6fkGBb19CVo9yBxOs+wQTT2TA0GdOhv+6T2CWcKLYe7bOR8MMmvgyQaN3 bPzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AoDZdIrs; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c10-v6si11676910pgv.446.2018.05.05.23.18.58; Sat, 05 May 2018 23:18:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AoDZdIrs; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2239974D99; Sun, 6 May 2018 06:18:55 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 148AD74D36 for ; Sun, 6 May 2018 06:18:10 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id c10so20400834pfi.12 for ; Sat, 05 May 2018 23:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xdcsrN5ve43mXaorfEmThu4UMPeenZ4r9DpI9mFJi0o=; b=AoDZdIrsXBQGkQM3DtBbr5QVggN5fDnBMjgQRmWdzUMt2Ep+cBcor2+TARgDj7eX5B D3H3BZ6prqHn7RjgJwaoXnnaZa2+ziUxmASqPkUmm4dTypenLnB9hxEVBpvOpGQad1Bo y9Jl79yL9rsFNHfqN31TTskuMUcjMnjXPfqWuvbH02U/0pk+yzR0ISfrew9dOHTKN8hM Hi16NVqSTdEEmLEA9qhxb83+lBsLXxGqz7xcvdnutW8sW7uWeGjZ88gNl+UjfsJeeMhP DfRnpky4DM+dc5dh2fxsQIU3iRYZXe2Ksj81wKLpD1lM8wUXXeTDFqv6ZrcHlCMqHRHu uaCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xdcsrN5ve43mXaorfEmThu4UMPeenZ4r9DpI9mFJi0o=; b=eMMrwNzuhtdzMzPTlXVEmNSt4KQE3ygBfUPdni7muhd6akq32mA62EMchfAo19V0ZN LFnhINMvskmOYQwHYxjqaZNj+6ptf+ZYgr2HP32UKoN1skJwQaOrNWqqaBed0qgs4wVS t0IxlmOnhJsZgM8mrRRgatFuzjcFSdWgxBKjoNaE+nkh/sZsmrItMahH7xL4JKGEsafZ eYmR8Uk/wzT2E45QpQUHmeiM8VNoQXPwxI4Kn6kMIXapf1dq9N3bXybTZqXFyIj0OUFL qrdDIB+HamaVZxxjAEyU/5yDJ+fLZPYlSPNcK4adhryd3dV2Sc7EvWPkANL2r5dCrqdj z6mw== X-Gm-Message-State: ALQs6tAgh6LMUlAZy4Da0ifowED8SE1y8g1Ho0A8igHb9oUJpK+efD94 r2Rr6mzjXelOTYQJQcBz4Qmafg== X-Received: by 2002:a17:902:9a8c:: with SMTP id w12-v6mr34298708plp.333.1525587491379; Sat, 05 May 2018 23:18:11 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id s65sm46674457pfj.124.2018.05.05.23.18.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 May 2018 23:18:10 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 5 May 2018 23:18:00 -0700 Message-Id: <20180506061804.19509-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180506061804.19509-1-raj.khem@gmail.com> References: <20180506061804.19509-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-gnome][PATCH 2/6] nautilus: Fix build with gdx-pixbuf >= to 2.36.11 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org OE-Core has updates to 2.36.11, so we have to replace obsolete API uses Signed-off-by: Khem Raj --- ...ome-desktop-thumbnail-API-with-new-g.patch | 40 +++++++++++++++++++ .../recipes-gnome/nautilus/nautilus_3.18.5.bb | 10 +++-- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 meta-gnome/recipes-gnome/nautilus/nautilus/0001-nautilus-drop-gnome-desktop-thumbnail-API-with-new-g.patch diff --git a/meta-gnome/recipes-gnome/nautilus/nautilus/0001-nautilus-drop-gnome-desktop-thumbnail-API-with-new-g.patch b/meta-gnome/recipes-gnome/nautilus/nautilus/0001-nautilus-drop-gnome-desktop-thumbnail-API-with-new-g.patch new file mode 100644 index 000000000..f19eb4979 --- /dev/null +++ b/meta-gnome/recipes-gnome/nautilus/nautilus/0001-nautilus-drop-gnome-desktop-thumbnail-API-with-new-g.patch @@ -0,0 +1,40 @@ +From a4ed38e95cbe07f02028249b8b315565a5ac1e43 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 5 May 2018 22:32:45 -0700 +Subject: [PATCH] nautilus: drop gnome-desktop thumbnail API with new + gdk-pixbuf +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If gdk-pixbuf >= 2.36.5 is available, its scaling API can do what we +want, so we don’t need to use the deprecated gnome-desktop one. + +Also fixes compile errors seen on master +nautilus-properties-window.c:5101: undefined reference to `gnome_desktop_thumbnail_scale_down_pixbuf' + +Upstream-Status: Backport + +Signed-off-by: Khem Raj +--- + src/nautilus-properties-window.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c +index dea8b0f..fad9bd1 100644 +--- a/src/nautilus-properties-window.c ++++ b/src/nautilus-properties-window.c +@@ -5098,10 +5098,11 @@ update_preview_callback (GtkFileChooser *icon_chooser, + scale = (double)gdk_pixbuf_get_height (pixbuf) / + gdk_pixbuf_get_width (pixbuf); + +- scaled_pixbuf = gnome_desktop_thumbnail_scale_down_pixbuf ++ scaled_pixbuf = gdk_pixbuf_scale_simple + (pixbuf, + PREVIEW_IMAGE_WIDTH, +- scale * PREVIEW_IMAGE_WIDTH); ++ scale * PREVIEW_IMAGE_WIDTH, ++ GDK_INTERP_HYPER); + g_object_unref (pixbuf); + pixbuf = scaled_pixbuf; + } diff --git a/meta-gnome/recipes-gnome/nautilus/nautilus_3.18.5.bb b/meta-gnome/recipes-gnome/nautilus/nautilus_3.18.5.bb index 8fdbf6ac2..bdb2f3c88 100644 --- a/meta-gnome/recipes-gnome/nautilus/nautilus_3.18.5.bb +++ b/meta-gnome/recipes-gnome/nautilus/nautilus_3.18.5.bb @@ -6,14 +6,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=36cf660aea2b8beffba7945f44a7e748 \ file://COPYING.EXTENSIONS;md5=7579d6678402a1868631bf82c93ff0d4 \ file://COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a" -SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/nautilus/3.18/nautilus-${PV}.tar.xz" +inherit distro_features_check autotools pkgconfig gobject-introspection + +MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" +SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/nautilus/${MAJ_VER}/nautilus-${PV}.tar.xz \ + file://0001-nautilus-drop-gnome-desktop-thumbnail-API-with-new-g.patch \ + " SRC_URI[md5sum] = "0f578bda5655c0ce204befafca5803d7" SRC_URI[sha256sum] = "60a927c0522b4cced9d8f62baed2ee5e2fd4305be4523eb5bc44805971a6cc15" DEPENDS = "gtk+3 gnome-desktop3 gsettings-desktop-schemas glib-2.0-native intltool-native pango" -inherit distro_features_check autotools pkgconfig gobject-introspection REQUIRED_DISTRO_FEATURES = "x11" EXTRA_OECONF = " \ @@ -23,7 +27,7 @@ EXTRA_OECONF = " \ --enable-tracker=no \ --disable-schemas-compile \ --enable-xmp=no \ - --enable-libexif=no \ + --enable-libexif=no \ " FILES_${PN} += "${datadir}/*"