summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 13:05:15 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-09 13:05:15 +0000
commit4f6eac999417c7901b305c296b86a7cfec2c5e00 (patch)
treefcfc6d0af1570b496303a06b8d5de3700e1e0a27 /net-print/gnome-cups-manager
parentAdd patch to build with GCC 4.3. Thanks to Marek Miller in bug #225479. (diff)
downloadhistorical-4f6eac999417c7901b305c296b86a7cfec2c5e00.tar.gz
historical-4f6eac999417c7901b305c296b86a7cfec2c5e00.tar.bz2
historical-4f6eac999417c7901b305c296b86a7cfec2c5e00.zip
Add patch from upstream to build with GCC 4.3. Thanks to Jose daLuz for reporting and Arun Raghavan for providing the patches. Closes s bug #225501.
Package-Manager: portage-2.1.5.4
Diffstat (limited to 'net-print/gnome-cups-manager')
-rw-r--r--net-print/gnome-cups-manager/ChangeLog11
-rw-r--r--net-print/gnome-cups-manager/Manifest15
-rw-r--r--net-print/gnome-cups-manager/files/gnome-cups-manager-0.31+gcc-4.3.patch64
-rw-r--r--net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild8
4 files changed, 91 insertions, 7 deletions
diff --git a/net-print/gnome-cups-manager/ChangeLog b/net-print/gnome-cups-manager/ChangeLog
index f5d3a5efdb65..7e7b8270fbed 100644
--- a/net-print/gnome-cups-manager/ChangeLog
+++ b/net-print/gnome-cups-manager/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-print/gnome-cups-manager
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/gnome-cups-manager/ChangeLog,v 1.73 2007/12/18 16:20:11 dang Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/gnome-cups-manager/ChangeLog,v 1.74 2008/06/09 13:05:14 flameeyes Exp $
+
+ 09 Jun 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/gnome-cups-manager-0.31+gcc-4.3.patch,
+ gnome-cups-manager-0.31-r2.ebuild:
+ Add patch from upstream to build with GCC 4.3. Thanks to Jose daLuz for
+ reporting and Arun Raghavan for providing the patches. Closes s bug
+ #225501.
18 Dec 2007; Daniel Gryniewicz <dang@gentoo.org>
gnome-cups-manager-0.31-r2.ebuild:
diff --git a/net-print/gnome-cups-manager/Manifest b/net-print/gnome-cups-manager/Manifest
index f040e45e474d..de59c2300145 100644
--- a/net-print/gnome-cups-manager/Manifest
+++ b/net-print/gnome-cups-manager/Manifest
@@ -1,6 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX gnome-cups-manager-0.31+gcc-4.3.patch 2481 RMD160 355d501b9de3d4ba0011ffbb9722c6bbd2e295b9 SHA1 c6a887a3df65813639b1623be9eae67dc85bddc8 SHA256 f295c8fe6ed6f25d49be889989a233af7d135ff361a71607d08e81a125494ec2
AUX gnome-cups-manager.desktop 313 RMD160 d3b200d93c454c9a59e23c59610f68e047be6eab SHA1 45f87cb6d09739ade0f9e2228621672da5dd65eb SHA256 972bb844f9317cc5bc64c86d0799903df695d75290518cf925343f0924df33fd
DIST gnome-cups-manager-0.31.tar.bz2 507851 RMD160 4dfaaa301ab043e2f1806b2d339169109d56f9b5 SHA1 4516f6e810dce5548e95a0464b0f7abec9d8ae1a SHA256 8ccfd3816757fa8127cf96a530e374c81a449fbcd9391d2d3e1bac29f54ab3e6
DIST gnome-cups-manager_0.31-1.1ubuntu14.diff.gz 387348 RMD160 cb476338989e257f6f57daab74414a3b87627690 SHA1 d8f20a7c4a7cb6e5c480a4064aa33d1ce8fce98a SHA256 d89dbe9b398265ea7a7c0b72f705b31aac957a822e56f80cc65baafa4b9d8993
-EBUILD gnome-cups-manager-0.31-r2.ebuild 2109 RMD160 dd0c23607fa5c714c839ed3327c27076e0b91c7c SHA1 c549aaacb3feaac06b19a0f8b057bb85ceb05a6b SHA256 52682b8a38790b0af65292b7b6f9fe004ab86938e665dc50e667555e57ad08fc
-MISC ChangeLog 9865 RMD160 4f2020c288df28d538708fcd3e7084ef90a8462b SHA1 437121012cdd30f149bf9ea714058b247abbdf42 SHA256 6c5ea3ce3f11d1c2256f6e486809588671ca0ae88c7ec803b3c066ec334a594a
+EBUILD gnome-cups-manager-0.31-r2.ebuild 2155 RMD160 7003877892bb85795319c477d2872d62a0b0acc5 SHA1 f4ba1824e282361f1a948d100a737631e2a85bde SHA256 d7cdec4b94f4d59149d32ab8b66c1d69cfc2e062fd008760b131aa651827a13b
+MISC ChangeLog 10164 RMD160 d721d006464a594cea6ee8a7d07f5014d77aea22 SHA1 386ad7ac401096429e977f24b7f894337ec41246 SHA256 67bdc2836eb8ea24a1e1577701f19b10bec289e4dbc007b474d04a9efb3753ba
MISC metadata.xml 180 RMD160 082aa46c6fe033d8548d5351c7073d98a11e952b SHA1 f006fd73fec1f95de0831e1d942d6078620fe43f SHA256 21576b6f9d195cfd7a7f38ef661ffad9e39e979c1c98c9af12ce85398fc133a9
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkhNKpIACgkQAiZjviIA2XiM5ACgg9e2upDZn1pxAgI0DqhQcB+j
+JbcAnjymD0oazLtmTIccVXs/3gFD6ju6
+=zyiO
+-----END PGP SIGNATURE-----
diff --git a/net-print/gnome-cups-manager/files/gnome-cups-manager-0.31+gcc-4.3.patch b/net-print/gnome-cups-manager/files/gnome-cups-manager-0.31+gcc-4.3.patch
new file mode 100644
index 000000000000..37c7d7f8aca0
--- /dev/null
+++ b/net-print/gnome-cups-manager/files/gnome-cups-manager-0.31+gcc-4.3.patch
@@ -0,0 +1,64 @@
+Index: gnome-cups-manager-0.31/libgnomecups/snmpkit/snmpkit
+===================================================================
+--- gnome-cups-manager-0.31.orig/libgnomecups/snmpkit/snmpkit
++++ gnome-cups-manager-0.31/libgnomecups/snmpkit/snmpkit
+@@ -31,6 +31,7 @@
+ #include <netdb.h>
+ #include <pthread.h>
+
++#include <cstring>
+ #include <string>
+ #include <list>
+ #include <functional>
+Index: gnome-cups-manager-0.31/libgnomecups/snmpkit/structfill.C
+===================================================================
+--- gnome-cups-manager-0.31.orig/libgnomecups/snmpkit/structfill.C
++++ gnome-cups-manager-0.31/libgnomecups/snmpkit/structfill.C
+@@ -28,7 +28,8 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <iostream.h>
++#include <iostream>
++#include <ios>
+ #include <algorithm>
+
+ #include "snmpkit"
+@@ -91,22 +92,22 @@ int SNMP_structFiller::fillStruct(OidSeq
+ counters or large ints */
+ if(curber->type()==INT_TAG && cur->type==COUNTER_TAG)
+ // these errors are minor enough and simple enough to fix
+- cerr << "Warning: Counter returned when Integer expected for "
++ std::cerr << "Warning: Counter returned when Integer expected for "
+ << cur->oidstr << " Buggy firmware?\n";
+ else if(curber->type()==COUNTER_TAG && cur->type==INT_TAG)
+ // these errors are minor enough and simple enough to fix
+- cerr << "Warning: Integer returned when Counter expected for "
++ std::cerr << "Warning: Integer returned when Counter expected for "
+ << cur->oidstr << " Buggy firmware?\n";
+ else{
+- ios::fmtflags opts=ios::hex;
+- opts=cerr.flags(opts);
+- cerr << "Warning: Printer returned a value of type 0x"
++ std::ios::fmtflags opts=std::ios::hex;
++ opts=std::cerr.flags(opts);
++ std::cerr << "Warning: Printer returned a value of type 0x"
+ << static_cast<long unsigned int>(curber->type())
+ << " when a value of 0x"
+ << static_cast<long unsigned int>(cur->type)
+ << " was expected for " << cur->oidstr
+ << " Buggy firmware? Skipping.\n";
+- cerr.flags(opts);
++ std::cerr.flags(opts);
+ retval=0;
+ break;
+ }
+@@ -177,7 +178,7 @@ void *SNMP_structFiller::get(void *tobef
+ throw SNMPNoResponseException();
+
+ if(!fillStruct(retseq,(unsigned char*)tobefilled)){
+- cerr << "Warning: printer did not respond with a value for one of the "
++ std::cerr << "Warning: printer did not respond with a value for one of the "
+ << "OIDs. Buggy firmware?\n";
+ return NULL;
+ }
diff --git a/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild b/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild
index 4b2a8868a3b8..7d3ca6902db8 100644
--- a/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild
+++ b/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild,v 1.15 2007/12/18 16:20:11 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild,v 1.16 2008/06/09 13:05:14 flameeyes Exp $
inherit eutils gnome2 flag-o-matic
@@ -52,13 +52,15 @@ src_unpack() {
# scripts fixing bug 147972 (removes LAN browsing detection)
sed -i \
-e '/^---.*ui_browse_share_ctl.patch/,/^---/{/^---.*ui_browse_share_ctl.patch/!d;}' \
- ${WORKDIR}/gnome-cups-manager_0.31-1.1ubuntu14.diff
+ ${WORKDIR}/gnome-cups-manager_0.31-1.1ubuntu14.diff
epatch ${WORKDIR}/gnome-cups-manager_0.31-1.1ubuntu14.diff
# gksudo does not always work
sed -i "s:gksudo:gksu:" debian/patches/change-su-command.patch
cd ${S}
epatch ${WORKDIR}/ubuntu/debian/patches/*
+ epatch "${FILESDIR}"/${P}+gcc-4.3.patch
+
# bug 141929
use amd64 && replace-flags -O* -O0
}