All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-gnome, jethro][PATCH] fix zenity build, and remove blacklist
Date: Tue, 1 Nov 2016 19:06:31 +0100	[thread overview]
Message-ID: <20161101180631.GD2985@jama> (raw)
In-Reply-To: <82cf8d34-0c55-f3ea-ebfa-b184a7c1c478@zenotrack.com>

[-- Attachment #1: Type: text/plain, Size: 3980 bytes --]

On Fri, Oct 28, 2016 at 04:17:47PM +0200, Kai Iskratsch wrote:
> 
> Zenity was blacklisted in meta-gnome, but it seems the fixes for the 
> problem listed in blacklist reason were rather minimal,
> 
> additionally the newer version of libnotify no longer has the notify_notification_new_with_status_icon function, so this
> had to be replaced with notify_notification_new to get the build to complete

Is this already fixed in krogoth, morty and master?

I don't think so, so it needs to be fixed in master first and then it
might be backported into older releases.

> ---
>   .../0002-fix-build-with-newer-libnotify.patch      | 28 ++++++++++++++++++++++
>   meta-gnome/recipes-gnome/zenity/zenity_2.32.1.bb   | 12 ++++++----
>   2 files changed, 35 insertions(+), 5 deletions(-)
>   create mode 100644 meta-gnome/recipes-gnome/zenity/files/0002-fix-build-with-newer-libnotify.patch
> 
> diff --git a/meta-gnome/recipes-gnome/zenity/files/0002-fix-build-with-newer-libnotify.patch b/meta-gnome/recipes-gnome/zenity/files/0002-fix-build-with-newer-libnotify.patch
> new file mode 100644
> index 0000000..67501c8
> --- /dev/null
> +++ b/meta-gnome/recipes-gnome/zenity/files/0002-fix-build-with-newer-libnotify.patch
> @@ -0,0 +1,28 @@
> +From 87f5f2acbf4f2cad50a0d1ea389d7170fe325b4e Mon Sep 17 00:00:00 2001
> +From: Kai Iskratsch <kai.iskratsch@zenotrack.com>
> +Date: Thu, 27 Oct 2016 13:08:40 +0200
> +Subject: [PATCH] fix build with newer libnotify
> +
> +---
> + src/notification.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/src/notification.c b/src/notification.c
> +index 99a2e36..3e5b320 100644
> +--- a/src/notification.c
> ++++ b/src/notification.c
> +@@ -184,10 +184,10 @@ zenity_notification_handle_stdin (GIOChannel *channel,
> +             icon = freeme = g_filename_to_uri (icon_file, NULL, NULL);
> +           }
> +
> +-          notif = notify_notification_new_with_status_icon (
> ++          notif = notify_notification_new (
> +                               message[0] /* title */,
> +                               message[1] /* summary */,
> +-                              icon, status_icon);
> ++                              gtk_status_icon_get_icon_name( status_icon));
> +
> +           g_strfreev (message);
> +           g_free (freeme);
> +--
> +2.10.1
> diff --git a/meta-gnome/recipes-gnome/zenity/zenity_2.32.1.bb b/meta-gnome/recipes-gnome/zenity/zenity_2.32.1.bb
> index 4e01c5c..bc6c9c4 100644
> --- a/meta-gnome/recipes-gnome/zenity/zenity_2.32.1.bb
> +++ b/meta-gnome/recipes-gnome/zenity/zenity_2.32.1.bb
> @@ -4,18 +4,20 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
>   
>   PR = "r2"
>   
> -PNBLACKLIST[zenity] ?= "BROKEN: doesn't build with B!=S"
> -
> -DEPENDS = "gtk+ glib-2.0 libnotify gnome-doc-utils"
> +GNOME_COMPRESS_TYPE = "bz2"
> +DEPENDS = "gtk+ glib-2.0 libnotify gnome-doc-utils intltool-native"
> +RDEPENDS_${PN} += "perl"
>   
>   inherit gnomebase
> -SRC_URI += "file://0001-Makefile.am-don-t-build-help.patch"
> +SRC_URI += "file://0001-Makefile.am-don-t-build-help.patch \
> +            file://0002-fix-build-with-newer-libnotify.patch \
> +            "
>   SRC_URI[archive.md5sum] = "aa66ec35451b16e424519b4973082170"
>   SRC_URI[archive.sha256sum] = "8838be041a07364b62a4281c971392e4a09bb01bb3237a836ec0457ec0ea18ac"
>   
>   EXTRA_OECONF += "--disable-scrollkeeper"
>   # remove -I/usr/include from zenity_CPPFLAGS
>   do_configure_prepend() {
> -    sed -i -e '/-I$(includedir)/d' src/Makefile.am
> +    sed -i -e '/-I$(includedir)/d' ${S}/src/Makefile.am
>   }
>   
> -- 
> 2.10.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 169 bytes --]

  parent reply	other threads:[~2016-11-01 18:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161028112529.28464-1-kai.iskratsch@zenotrack.com>
2016-10-28 14:17 ` [meta-gnome, jethro][PATCH] fix zenity build, and remove blacklist Kai Iskratsch
2016-10-28 17:59   ` Khem Raj
2016-11-01 18:06   ` Martin Jansa [this message]
2016-11-02  7:00     ` Kai Iskratsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161101180631.GD2985@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.