public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Priit Laes" <plaes@plaes.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: x11-libs/gtk+/files/, x11-libs/gtk+/
Date: Sun,  5 Aug 2012 13:34:05 +0000 (UTC)	[thread overview]
Message-ID: <1344173584.1ea2733e10c732768ce17693547d8565b86c9c0f.plaes@gentoo> (raw)

commit:     1ea2733e10c732768ce17693547d8565b86c9c0f
Author:     Priit Laes <plaes <AT> plaes <DOT> org>
AuthorDate: Sun Aug  5 13:33:04 2012 +0000
Commit:     Priit Laes <plaes <AT> plaes <DOT> org>
CommitDate: Sun Aug  5 13:33:04 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=1ea2733e

x11-libs/gtk+: Fix build with USE=cups and >=cups-1.6

---
 x11-libs/gtk+/files/gtk+-3.5.8-cups-1-6-fix.patch |   24 +++++++++++++++++++++
 x11-libs/gtk+/gtk+-3.5.8.ebuild                   |    2 +
 2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/x11-libs/gtk+/files/gtk+-3.5.8-cups-1-6-fix.patch b/x11-libs/gtk+/files/gtk+-3.5.8-cups-1-6-fix.patch
new file mode 100644
index 0000000..3106179
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-3.5.8-cups-1-6-fix.patch
@@ -0,0 +1,24 @@
+From e8dcfad441aad7e03a8a459f3818018bd6ff63c7 Mon Sep 17 00:00:00 2001
+From: Rico Tzschichholz <ricotz@t-online.de>
+Date: Sun, 05 Aug 2012 07:56:58 +0000
+Subject: cups: Use IPP api when necessary with CUPS 1.6
+
+---
+diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
+index d9110be..c79fe9d 100644
+--- a/modules/printbackends/cups/gtkprintbackendcups.c
++++ b/modules/printbackends/cups/gtkprintbackendcups.c
+@@ -1835,9 +1835,9 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
+ 	    info->auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
+ 	}
+     }
+-  else if (strcmp (attr->name, "number-up-default") == 0)
++  else if (strcmp (ippGetName (attr), "number-up-default") == 0)
+     {
+-      info->default_number_up = attr->values[0].integer;
++      info->default_number_up = ippGetInteger (attr, 0);
+     }
+   else
+     {
+--
+cgit v0.9.0.2

diff --git a/x11-libs/gtk+/gtk+-3.5.8.ebuild b/x11-libs/gtk+/gtk+-3.5.8.ebuild
index 972753c..9cd9dab 100644
--- a/x11-libs/gtk+/gtk+-3.5.8.ebuild
+++ b/x11-libs/gtk+/gtk+-3.5.8.ebuild
@@ -108,6 +108,8 @@ src_prepare() {
 	# https://bugzilla.gnome.org/show_bug.cgi?id=65410
 	epatch "${FILESDIR}/${PN}-3.3.18-fallback-theme.patch"
 
+	epatch "${FILESDIR}/${P}-cups-1-6-fix.patch"
+
 	# Work around https://bugzilla.gnome.org/show_bug.cgi?id=663991
 	if [[ ${CHOST} == *-solaris* ]]; then
 		sed -i -e '/_XOPEN_SOURCE/s/500/600/' gtk/gtksearchenginesimple.c || die


             reply	other threads:[~2012-08-05 13:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 13:34 Priit Laes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-01-18 21:07 [gentoo-commits] proj/gnome:master commit in: x11-libs/gtk+/files/, x11-libs/gtk+/ Mart Raudsepp
2014-11-30 15:52 Remi Cardona
2014-04-20 18:17 Gilles Dartiguelongue
2012-08-10  5:31 Priit Laes
2012-03-15 15:55 Alexandre Restovtsev
2012-02-26 21:19 Alexandre Restovtsev
2011-10-17 19:10 Alexandre Restovtsev
2011-03-29  8:35 Nirbheek Chauhan
2011-03-09 11:34 Nirbheek Chauhan
2011-02-25  9:39 Priit Laes

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=1344173584.1ea2733e10c732768ce17693547d8565b86c9c0f.plaes@gentoo \
    --to=plaes@plaes.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox